/* Masjid Noor Style Display - Greenish Theme */

.ipt-masjid-display {
    min-height: 100vh;
    background: linear-gradient(135deg, #047857 0%, #059669 50%, #10b981 100%);
    font-family: 'Arial', 'Helvetica', sans-serif;
    color: #1f2937;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ==================== TOP SECTION ==================== */
.ipt-top-section {
    display: grid;
    grid-template-columns: 300px 1fr 400px;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
}

/* Left Panel - Logo & QR */
.ipt-left-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.mosque-logo img,
.mosque-logo-placeholder {
    max-width: 250px;
    height: auto;
}

.mosque-logo-placeholder {
    text-align: center;
    padding: 20px;
}

.mosque-icon {
    font-size: 80px;
    margin-bottom: 10px;
}

.mosque-name-logo {
    font-size: 24px;
    font-weight: 700;
    color: #047857;
}

.qr-code-section {
    text-align: center;
}

.qr-code-section img {
    max-width: 150px;
    height: auto;
    border: 3px solid #047857;
    padding: 10px;
    background: white;
}

.qr-text {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
    letter-spacing: 1px;
}

/* Center Panel - Message Box */
.ipt-center-message {
    display: flex;
    align-items: center;
    justify-content: center;
}

.message-box {
    background: #1e3a5f;
    color: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 600px;
}

.message-title {
    background: #fbbf24;
    color: #1e3a5f;
    font-size: 20px;
    font-weight: 900;
    padding: 8px 20px;
    margin: -40px -40px 20px -40px;
    border-radius: 15px 15px 0 0;
    letter-spacing: 2px;
}

.message-content {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 25px;
}

.message-footer {
    font-size: 16px;
    color: #fbbf24;
    font-weight: 600;
}

/* Right Panel - Time & Next Prayer */
.ipt-right-panel {
    background: #f3f4f6;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hijri-date {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    text-align: center;
}

.gregorian-date {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    text-align: center;
    border-bottom: 2px solid #d1d5db;
    padding-bottom: 10px;
}

.current-time {
    font-size: 72px;
    font-weight: 900;
    text-align: center;
    color: #047857;
    line-height: 1;
}

.time-period {
    font-size: 32px;
    font-weight: 700;
}

.next-iqamah-box {
    background: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #047857;
}

.next-label {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 8px;
}

.countdown-display {
    font-size: 56px;
    font-weight: 900;
    color: #047857;
    line-height: 1;
}

.next-prayer-details {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #d1d5db;
}

.next-prayer-name {
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
    color: #1f2937;
}

.prayer-times-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.prayer-time-col {
    text-align: center;
}

.time-value {
    font-size: 32px;
    font-weight: 900;
    color: #047857;
    line-height: 1;
}

.time-value .pm,
.time-value .am {
    font-size: 16px;
    font-weight: 700;
}

.time-label {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    margin-top: 5px;
}

/* ==================== PRAYER BAR ==================== */
.ipt-prayer-bar {
    display: flex;
    background: #1f2937;
    padding: 15px;
    gap: 10px;
    flex: 1;
}

.prayer-time-card {
    flex: 1;
    background: #1e3a5f;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 140px;
}

.adhan-time {
    margin-bottom: 10px;
}

.time-small {
    font-size: 18px;
    font-weight: 700;
    color: #d1d5db;
}

.period-small {
    font-size: 12px;
    font-weight: 600;
}

.prayer-label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-top: 5px;
    opacity: 0.9;
}

.iqamah-time {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 8px;
}

.time-large {
    font-size: 32px;
    font-weight: 900;
    line-height: 1;
}

.period-large {
    font-size: 16px;
    font-weight: 700;
}

/* Sunrise/Sunset Card */
.sun-times-card {
    background: #1e3a5f;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
    min-width: 200px;
}

.sun-time-row {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.sun-icon {
    font-size: 28px;
}

.sun-time {
    font-size: 18px;
    font-weight: 900;
    flex: 1;
}

.am-small,
.pm-small {
    font-size: 12px;
    font-weight: 600;
}

.sun-label {
    font-size: 11px;
    font-weight: 600;
    opacity: 0.8;
}

/* ==================== TICKER BAR ==================== */
.ipt-ticker-bar {
    background: #1f2937;
    color: white;
    padding: 15px 20px;
    overflow: hidden;
    border-top: 3px solid #047857;
}

.ticker-content {
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    transition: opacity 0.5s ease;
    white-space: nowrap;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1600px) {
    .ipt-top-section {
        grid-template-columns: 250px 1fr 350px;
    }
    
    .current-time {
        font-size: 56px;
    }
    
    .message-content {
        font-size: 28px;
    }
}

@media (max-width: 1200px) {
    .ipt-top-section {
        grid-template-columns: 1fr;
    }
    
    .ipt-prayer-bar {
        flex-wrap: wrap;
    }
    
    .prayer-time-card {
        min-width: 150px;
    }
}

/* Portrait Orientation */
.ipt-masjid-display.orientation-portrait .ipt-top-section {
    grid-template-columns: 1fr;
}

.ipt-masjid-display.orientation-portrait .ipt-prayer-bar {
    flex-direction: column;
}

.ipt-masjid-display.orientation-portrait .prayer-time-card {
    min-height: auto;
}
