/* Prayer Times Card - Matching Lunar Status Card Style */

.rhcn-prayer-times-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    color: inherit;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    min-height: 300px; /* Reduced from 400px */
    display: flex;
    flex-direction: column;
}

.rhcn-prayer-times-card-header {
    background: #2271b1 !important;
    color: #ffffff !important;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid #d4af37 !important;
}

.rhcn-prayer-times-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rhcn-prayer-times-card-icon {
    font-size: 1.2em;
    filter: brightness(1.2) saturate(1.3);
    display: inline-block;
    line-height: 1;
}

.rhcn-prayer-times-card-label {
    font-size: 0.9em;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.2;
}

.rhcn-prayer-times-card-badge {
    background: #22c55e !important;
    color: #ffffff !important;
    padding: 6px 14px !important;
    border-radius: 12px;
    font-size: 0.75em !important;
    font-weight: 600 !important;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: inline-block !important;
    box-shadow: 0 2px 4px rgba(34, 197, 94, 0.3) !important;
    border: none !important;
}

.rhcn-prayer-times-card-body {
    padding: 15px; /* Reduced from 20px */
    background: #f9f9f9 !important;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px; /* Reduced from 20px */
}

/* Top Section: Countdown */
.rhcn-prayer-times-top-section {
    display: flex;
    gap: 0; /* No gap needed since moon section is removed */
    align-items: flex-start;
    margin-bottom: 15px; /* Reduced from 20px */
}

.rhcn-prayer-times-countdown-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px; /* Reduced from 20px */
}

.rhcn-prayer-times-upcoming {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85em;
    color: #4a90e2;
    font-weight: 500;
}

.rhcn-prayer-times-upcoming-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4a90e2;
    display: inline-block;
}

.rhcn-prayer-times-upcoming-text {
    color: inherit;
}

.rhcn-prayer-times-next-prayer-name {
    font-weight: 600;
    text-transform: uppercase;
}

.rhcn-prayer-times-remaining-time {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.rhcn-prayer-times-remaining-label {
    font-size: 1.2em; /* Reduced from 1.5em */
    font-weight: 300;
    color: #ffffff;
    letter-spacing: 0.02em;
}

.rhcn-prayer-times-countdown {
    display: flex;
    align-items: baseline; /* Align baseline for proper ":" alignment */
    gap: 10px;
}

.rhcn-prayer-times-countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    justify-content: flex-start;
}

.rhcn-prayer-times-countdown-value {
    font-size: 2em; /* Reduced from 2.5em */
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rhcn-prayer-times-countdown-value.rhcn-prayer-times-seconds {
    color: #4a90e2;
}

.rhcn-prayer-times-countdown-label {
    font-size: 0.7em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.rhcn-prayer-times-countdown-separator {
    font-size: 2em; /* Reduced from 2.5em to match countdown values */
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    margin: 0 -5px;
    display: inline-flex;
    align-items: baseline; /* Align with countdown values */
    vertical-align: baseline;
}

/* Moon section removed per user request */
.rhcn-prayer-times-moon-section {
    display: none !important;
}

.rhcn-prayer-times-moon-phase-text,
.rhcn-prayer-times-moon-container,
.rhcn-prayer-times-hijri-date {
    display: none !important;
}

/* Schedule Section - Creative Grid Layout */
.rhcn-prayer-times-schedule-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 12px;
    padding: 20px;
}

.rhcn-prayer-times-schedule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.rhcn-prayer-times-schedule-title {
    font-size: 0.9em;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.9;
}

/* Creative Grid Layout */
.rhcn-prayer-times-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.rhcn-prayer-times-grid-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.rhcn-prayer-times-grid-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: transparent;
    transition: all 0.3s ease;
}

.rhcn-prayer-times-grid-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.rhcn-prayer-times-grid-item.rhcn-prayer-times-card-active {
    background: rgba(74, 144, 226, 0.15);
    border-color: rgba(74, 144, 226, 0.4);
}

.rhcn-prayer-times-grid-item.rhcn-prayer-times-card-active::before {
    background: #4a90e2;
}

.rhcn-prayer-grid-status {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rhcn-prayer-grid-status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
}

.rhcn-prayer-grid-status-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    opacity: 0.3;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

.rhcn-prayer-grid-completed {
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
}

.rhcn-prayer-grid-completed::after {
    background: #22c55e;
}

.rhcn-prayer-grid-upcoming {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

.rhcn-prayer-grid-upcoming::after {
    background: rgba(255, 255, 255, 0.5);
}

.rhcn-prayer-grid-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.rhcn-prayer-grid-name-badge {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 4px 8px;
    display: inline-block;
    transition: all 0.3s ease;
}

.rhcn-prayer-grid-name {
    font-size: 0.75em;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.2;
}

.rhcn-prayer-times-grid-item.rhcn-prayer-times-card-active .rhcn-prayer-grid-name-badge {
    background: #4a90e2;
    box-shadow: 0 0 12px rgba(74, 144, 226, 0.4);
}

.rhcn-prayer-times-grid-item.rhcn-prayer-times-card-active .rhcn-prayer-grid-name {
    color: #ffffff;
}

.rhcn-prayer-grid-time {
    font-size: 1.3em;
    font-weight: 700;
    color: #ffffff;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.05em;
    line-height: 1;
}

.rhcn-prayer-times-grid-item.rhcn-prayer-times-card-active .rhcn-prayer-grid-time {
    color: #4a90e2;
    text-shadow: 0 0 10px rgba(74, 144, 226, 0.5);
}

/* Responsive: Single column on mobile */
@media (max-width: 480px) {
    .rhcn-prayer-times-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .rhcn-prayer-times-top-section {
        flex-direction: column;
        gap: 20px;
    }
    
    .rhcn-prayer-times-moon-section {
        flex: 1;
        width: 100%;
    }
    
    .rhcn-prayer-times-remaining-label {
        font-size: 1.2em;
    }
    
    .rhcn-prayer-times-countdown-value {
        font-size: 2em;
    }
    
    .rhcn-prayer-times-countdown-separator {
        font-size: 2em;
    }
}
