/* Islamic Prayer Times Dashboard - CSS Styles */
/* Optimized for 600x448px display with Arabic RTL layout */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    width: 600px;
    height: 448px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    direction: rtl;
    font-family: 'Amiri', 'Noto Naskh Arabic', serif;
    background: linear-gradient(135deg, #F8F6F0 0%, #E8E6E0 100%);
}

/* Container */
.container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Header Section */
.header {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #006341 0%, #004d32 100%);
    border-bottom: 2px solid #D4AF37;
    position: relative;
    overflow: hidden;
}

.title {
    font-size: 24px;
    color: #D4AF37;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 2;
    position: relative;
}

/* Islamic geometric pattern background */
.islamic-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(212, 175, 55, 0.05) 10px, rgba(212, 175, 55, 0.05) 20px),
        repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(212, 175, 55, 0.05) 10px, rgba(212, 175, 55, 0.05) 20px);
    opacity: 0.3;
    z-index: 1;
}

/* Date Section */
.dates {
    height: 32px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 20px;
    background: rgba(0, 99, 65, 0.05);
    border-bottom: 2px solid #D4AF37;
}

.date-item {
    font-size: 12px;
    color: #1A1A1A;
}

.date-label {
    color: #006341;
    font-weight: bold;
    margin-left: 8px;
}

.date-value {
    color: #4A4A4A;
    font-family: 'Cairo', sans-serif;
}

/* Prayer Times Grid Section */
.prayer-times {
    height: 366px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 6px;
    padding: 8px;
    overflow: hidden;
}

/* Prayer Card */
.prayer-card {
    background: white;
    border: 2px solid #D4AF37;
    border-radius: 6px;
    padding: 6px 5px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 99, 65, 0.15);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 0;
    max-height: 100%;
}

.prayer-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 99, 65, 0.25);
}

/* Next Prayer Highlight */
.next-prayer {
    background: linear-gradient(135deg, #FFE5B4 0%, #FFF8E7 100%);
    border: 3px solid #D4AF37;
    border-radius: 10px;
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 16px rgba(212, 175, 55, 0.4);
    }
    50% {
        box-shadow: 0 6px 24px rgba(212, 175, 55, 0.6);
    }
}

/* Prayer Name */
.prayer-name {
    font-size: 16px;
    color: #006341;
    font-weight: bold;
    margin-bottom: 3px;
    font-family: 'Amiri', serif;
}

/* Prayer Time */
.prayer-time {
    font-size: 19px;
    color: #1A1A1A;
    font-family: 'Cairo', sans-serif;
    font-weight: bold;
    letter-spacing: 0.5px;
}

/* Special styling for sunrise (reference prayer) */
.prayer-card[data-prayer="sunrise"] {
    border-style: dashed;
    opacity: 0.85;
    background: rgba(255, 255, 255, 0.7);
}

.prayer-card[data-prayer="sunrise"] .prayer-name {
    color: #8B4513;
    font-size: 14px;
}

/* Responsive adjustments for exact 600x448 layout */
@media (width: 600px) and (height: 448px) {
    body {
        overflow: hidden;
    }
}

/* Print styles (if needed) */
@media print {
    body {
        background: white;
    }

    .prayer-card {
        break-inside: avoid;
    }
}
