/* Prayer Time App - Global CSS */
/* Optimized for 1920x1080 display */
/* Includes consolidated clock styles from wp-widgets.php */

/* ========================================
   RESET AND BASE STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: #503ced;
    color: #fff;
    overflow: auto; /* Show scrollbar in normal mode */
}

/* Hide scrollbar when in fullscreen mode */
body.fullscreen-active {
    overflow: hidden;
}

/* Alternative approach: Hide scrollbar when fullscreen button is hidden */
body:has(.pta_fullscreen_button.hide-on-fullscreen) {
    overflow: hidden;
}

/* Fallback for browsers that don't support :has() selector */
body.fullscreen-mode {
    overflow: hidden;
}


/* ========================================
   HEADER SECTION
   ======================================== */
.pta_header_container {
    display: flex;
    width: 100%;
    height: auto;
    min-height: auto;
    align-content: stretch;
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap;
    height: auto;
    margin-top: 2.5%;
    margin-bottom: 2.5%;
    padding-top: 0%;
    padding-right: 2.5%;
    padding-bottom: 0%;
    padding-left: 2.5%;
}

.pta_header_row {
    display: flex;
    width: 100%;
}

.pta_header_column_left {
    flex: 1 1 33.333%;
    align-self: stretch;
    align-content: center;
    justify-content: flex-start;
    margin: 0;
    padding: 5% 0;
    border: 1px solid rgba(255,255,255,0.2);
    border-right: none;
    border-radius: 20px 0 0 20px;
    background: rgba(255,255,255,0.15);
    background-position: left top;
    background-repeat: no-repeat;
    animation: pta_zoom_in 0.1s ease;
}

.pta_header_column_center {
    flex: 1 1 33.333%;
    align-self: center;
    align-content: center;
    justify-content: flex-start;
    margin: 0;
    padding: 5% 0;
    border: 1px solid rgba(255,255,255,0.2);
    border-left: none;
    border-right: none;
    background: rgba(255,255,255,0.1);
    background-position: left top;
    background-repeat: no-repeat;
    animation: pta_zoom_in 0.1s ease;
}

.pta_header_column_right {
    flex: 1 1 33.333%;
    align-self: stretch;
    align-content: center;
    justify-content: flex-start;
    margin: 0;
    padding: 5% 0;
    border: 1px solid rgba(255,255,255,0.2);
    border-left: none;
    border-radius: 0 20px 20px 0;
    background: rgba(255,255,255,0.15);
    background-position: left top;
    background-repeat: no-repeat;
    animation: pta_zoom_in 0.1s ease;
}

.pta_separator {
    width: 100%;
    height: 20px;
    margin: 2% 0;
    text-align: center;
}

.pta_digital_clock {
    text-align: center;
    color: #ffd000;
    font-size: 110px;
    font-weight: 700;
}

.pta_analog_clock {
    text-align: center;
    color: #ffffff;
    font-size: 48px;
}

/* Analog Clock Styles */
.pta_clock_wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pta_clock {
    position: relative;
    width: 180px;
    height: 180px;
    border: 8px solid white;
    border-radius: 50%;
    background: transparent;
}

.pta_hand {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform-origin: bottom center;
    transform: translateX(-50%);
    z-index: 1;
}

.pta_hour {
    width: 10px;
    height: 55px;
    background: white;
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}

.pta_minute {
    width: 6px;
    height: 70px;
    background: white;
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}

.pta_second {
    width: 2px;
    height: 70px;
    background: #ffd000;
}

.pta_center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    background: #ffd000;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.pta_hour_dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: center center;
}

.pta_hour_dot span {
    display: block;
    width: 6px;
    height: 6px;
    background-color: white;
    border-radius: 50%;
    position: absolute;
    top: -72px;
    left: -3px;
}

/* ========================================
   CLOCK STYLES
   ======================================== */
/* Backward Compatibility - DTC Clock Styles */
.dtc-clock-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dtc-clock {
    position: relative;
    width: 180px;
    height: 180px;
    border: 8px solid white;
    border-radius: 50%;
    background: transparent;
}

.dtc-hand {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform-origin: bottom center;
    transform: translateX(-50%);
    z-index: 1;
}

.dtc-hour {
    width: 10px;
    height: 55px;
    background: white;
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}

.dtc-minute {
    width: 6px;
    height: 70px;
    background: white;
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}

.dtc-second {
    width: 2px;
    height: 70px;
    background: #ffd000;
}

.dtc-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    background: #ffd000;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.dtc-hour-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: center center;
}

.dtc-hour-dot span {
    display: block;
    width: 6px;
    height: 6px;
    background-color: white;
    border-radius: 50%;
    position: absolute;
    top: -72px;
    left: -3px;
}

/* ========================================
   PRAYER TIME DISPLAY
   ======================================== */
.pta_calculation_text {
    text-align: center;
    color: #ffffff;
    font-size: 24px;
    margin-top: 10px;
}

.pta_current_date {
    text-align: center;
    color: #ffd000;
    font-size: 56px;
}

.pta_hijri_date {
    text-align: center;
    color: #ffffff;
    font-size: 24px;
    margin-top: 10px;
}

/* ========================================
   FOOTER SECTION
   ======================================== */
.pta_footer_container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    min-height: auto;
    align-content: stretch;
    align-items: stretch;
    justify-content: center;
    flex-wrap: nowrap;
    height: auto;
    margin-top: 2.5%;
    margin-bottom: 2.5%;
    padding-top: 0%;
    padding-right: 2.5%;
    padding-bottom: 0%;
    padding-left: 2.5%;
    max-width: 100%;
    box-sizing: border-box;
}

.pta_footer_row_top {
    display: flex;
    width: 100%;
}

.pta_footer_row_bottom {
    display: flex;
    width: 100%;
}

.pta_footer_column_fajr {
    width: 20%;
    align-self: stretch;
    align-content: center;
    justify-content: flex-start;
    margin: 0;
    padding: 2.5% 0;
    border: 1px solid rgba(255,255,255,0.2);
    border-bottom: none;
    border-radius: 20px 0 0 0;
    background: rgba(255,255,255,0.1);
    background-position: left top;
    background-repeat: no-repeat;
    animation: pta_zoom_in 0.2s ease;
}

.pta_footer_column_dhuhr {
    width: 20%;
    align-self: stretch;
    align-content: center;
    justify-content: flex-start;
    margin: 0;
    padding: 2.5% 0;
    border: 1px solid rgba(255,255,255,0.2);
    border-left: none;
    border-bottom: none;
    background: rgba(255,255,255,0.1);
    background-position: left top;
    background-repeat: no-repeat;
    animation: pta_zoom_in 0.3s ease;
}

.pta_footer_column_asr {
    width: 20%;
    align-self: stretch;
    align-content: center;
    justify-content: flex-start;
    margin: 0;
    padding: 2.5% 0;
    border: 1px solid rgba(255,255,255,0.2);
    border-left: none;
    border-bottom: none;
    background: rgba(255,255,255,0.1);
    background-position: left top;
    background-repeat: no-repeat;
    animation: pta_zoom_in 0.3s ease;
}

.pta_footer_column_maghrib {
    width: 20%;
    align-self: stretch;
    align-content: center;
    justify-content: flex-start;
    margin: 0;
    padding: 2.5% 0;
    border: 1px solid rgba(255,255,255,0.2);
    border-left: none;
    border-bottom: none;
    background: rgba(255,255,255,0.1);
    background-position: left top;
    background-repeat: no-repeat;
    animation: pta_zoom_in 0.4s ease;
}

.pta_footer_column_isha {
    width: 20%;
    align-self: stretch;
    align-content: center;
    justify-content: flex-start;
    margin: 0;
    padding: 2.5% 0;
    border: 1px solid rgba(255,255,255,0.2);
    border-left: none;
    border-bottom: none;
    border-radius: 0 20px 0 0;
    background: rgba(255,255,255,0.1);
    background-position: left top;
    background-repeat: no-repeat;
    animation: pta_zoom_in 0.5s ease;
}

.pta_footer_column_sunrise {
    width: 20%;
    align-self: stretch;
    align-content: center;
    justify-content: flex-start;
    margin: 0;
    padding: 3% 0;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 0 0 0 20px;
    background: rgba(255,255,255,0.1);
    background-position: left top;
    background-repeat: no-repeat;
    animation: pta_zoom_in 0.6s ease;
}

.pta_footer_column_jummah {
    width: 20%;
    align-self: stretch;
    align-content: center;
    justify-content: flex-start;
    margin: 0;
    padding: 3% 0;
    border: 1px solid rgba(255,255,255,0.2);
    border-left: none;
    background: rgba(255,255,255,0.1);
    background-position: left top;
    background-repeat: no-repeat;
    animation: pta_zoom_in 0.8s ease;
}

.pta_footer_column_news {
    width: 60%;
    align-self: stretch;
    align-content: center;
    justify-content: flex-start;
    margin: 0;
    padding: 3% 0;
    border: 1px solid rgba(255,255,255,0.2);
    border-left: none;
    border-radius: 0 0 20px 0;
    background: rgba(255,255,255,0.1);
    background-position: left top;
    background-repeat: no-repeat;
    animation: pta_zoom_in 0.7s ease;
}

.pta_prayer_label {
    text-align: center;
    color: #ffd000;
    font-size: 24px;
    font-weight: 600;
    margin: 2% 0;
}

.pta_prayer_time {
    text-align: center;
    color: #ffffff;
    font-size: 36px;
    font-weight: 700;
    margin: 10px 0;
}

.pta_iqamah_label {
    text-align: center;
    color: #ffd000;
    font-size: 18px;
    margin: 5% 0 0 0;
}

.pta_iqamah_time {
    text-align: center;
    color: #ffffff;
    font-size: 24px;
    font-weight: 600;
    margin: 5px 0;
}

.pta_news_ticker {
    text-align: center;
    color: #ffffff;
    font-size: 64px;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes pta_zoom_in {
    0% {
        opacity: 0;
        transform: scale(0.5);
        filter: blur(3px);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}



/* ========================================
   FULLSCREEN BUTTON
   ======================================== */
.pta_fullscreen_button {
    background-color: #282c32;
    color: white;
    border: 4px solid #282c32;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    margin: 10px auto;
    width: auto;
    min-width: 180px;
    max-width: 200px;
    display: inline-block;
    z-index: 1000;
    transition: all 0.3s ease;
}

.pta_fullscreen_button:hover {
    background-color: #3a3f47;
    border-color: #3a3f47;
    transform: scale(1.05);
}

/* Hide button when in fullscreen mode */
.hide-on-fullscreen {
    display: none !important;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */
/* Date Display Styles */
.pta_date_display {
    font-weight: 600;
    letter-spacing: 1px;
}

/* Responsive adjustments for 1920x1080 */
@media screen and (min-width: 1920px) {
    body {
        font-size: 16px;
    }
    
    .pta_digital_clock {
        font-size: 120px;
    }
    
    .pta_current_date {
        font-size: 64px;
    }
    
    .pta_prayer_time {
        font-size: 42px;
    }
    
    .pta_news_ticker {
        font-size: 72px;
    }
}


