/**
 * Masjid Prayer Times - Main Stylesheet
 * Design by Àṣẹ Haus Studio
 * 
 * Color Palette:
 * Primary Green: #4a7c59 (House of Truth brand)
 * Accent Gold: #d4af37
 * Background: #f8f9f7 (soft cream)
 * Text: #2c3e35 (deep forest)
 */

:root {
    --mpt-primary: #4a7c59;
    --mpt-primary-light: #6b9d7a;
    --mpt-primary-dark: #3a6247;
    --mpt-accent: #d4af37;
    --mpt-accent-light: #e4c76f;
    --mpt-background: #f8f9f7;
    --mpt-background-light: #ffffff;
    --mpt-text: #2c3e35;
    --mpt-text-light: #5a6b5e;
    --mpt-border: #d4ddd7;
    --mpt-shadow: rgba(74, 124, 89, 0.08);
    --mpt-shadow-strong: rgba(74, 124, 89, 0.15);
}

/* ==========================================================================
   TYPOGRAPHY - Playfair Display + Lato
   ========================================================================== */

.mpt-daily-container,
.mpt-monthly-container,
.mpt-next-prayer-container,
.mpt-widget-container {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--mpt-text);
    line-height: 1.6;
}

.mpt-daily-title,
.mpt-monthly-title,
.mpt-prayer-name,
.mpt-next-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* ==========================================================================
   DAILY PRAYER TIMES - Elegant Card Layout
   ========================================================================== */

.mpt-daily-container {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 3rem;
    background: linear-gradient(135deg, var(--mpt-background) 0%, var(--mpt-background-light) 100%);
    border-radius: 24px;
    box-shadow: 
        0 10px 40px var(--mpt-shadow),
        0 2px 8px var(--mpt-shadow-strong);
    position: relative;
    overflow: hidden;
}

/* Decorative background pattern */
.mpt-daily-container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, var(--mpt-primary) 0%, transparent 70%);
    opacity: 0.03;
    pointer-events: none;
}

/* Header Section */
.mpt-daily-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.mpt-header-ornament {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    animation: mpt-float 3s ease-in-out infinite;
}

@keyframes mpt-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.mpt-daily-title {
    font-size: 3rem;
    margin: 0 0 1rem;
    color: var(--mpt-primary);
    text-align: center;
}

.mpt-dates {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.mpt-gregorian-date {
    font-size: 1.125rem;
    font-weight: 300;
    color: var(--mpt-text-light);
}

.mpt-hijri-date {
    font-size: 1rem;
    color: var(--mpt-accent);
    font-weight: 400;
    font-style: italic;
}

/* Prayer Cards Grid */
.mpt-prayers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.mpt-prayer-card {
    background: var(--mpt-background-light);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 16px var(--mpt-shadow);
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.mpt-prayer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--mpt-primary), var(--mpt-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.mpt-prayer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--mpt-shadow-strong);
    border-color: var(--mpt-border);
}

.mpt-prayer-card:hover::before {
    transform: scaleX(1);
}

/* Current Prayer Highlight */
.mpt-current-prayer {
    background: linear-gradient(135deg, var(--mpt-primary) 0%, var(--mpt-primary-light) 100%);
    color: white;
    border-color: var(--mpt-accent);
    animation: mpt-pulse-border 2s ease-in-out infinite;
}

@keyframes mpt-pulse-border {
    0%, 100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(212, 175, 55, 0); }
}

.mpt-current-prayer .mpt-prayer-name,
.mpt-current-prayer .mpt-time-label,
.mpt-current-prayer .mpt-time-value {
    color: white;
}

.mpt-current-indicator {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mpt-pulse {
    width: 8px;
    height: 8px;
    background: var(--mpt-accent);
    border-radius: 50%;
    animation: mpt-pulse 2s ease-in-out infinite;
}

@keyframes mpt-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.mpt-current-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--mpt-accent);
}

/* Sunrise Card - Different styling */
.mpt-sunrise-card {
    background: linear-gradient(135deg, #fff9e6 0%, white 100%);
    opacity: 0.95;
}

.mpt-sunrise-card:hover {
    opacity: 1;
}

/* Prayer Card Content */
.mpt-prayer-icon {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.mpt-prayer-info {
    text-align: center;
}

.mpt-prayer-name {
    margin-bottom: 1.5rem;
}

.mpt-name-english {
    display: block;
    font-size: 1.5rem;
    color: var(--mpt-primary);
    margin-bottom: 0.25rem;
}

.mpt-current-prayer .mpt-name-english {
    color: white;
}

.mpt-name-arabic {
    display: block;
    font-size: 1.125rem;
    color: var(--mpt-text-light);
    font-weight: 300;
}

.mpt-current-prayer .mpt-name-arabic {
    color: rgba(255, 255, 255, 0.9);
}

/* Time Display */
.mpt-times-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mpt-adhan-time,
.mpt-iqamah-time {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--mpt-background);
    border-radius: 10px;
}

.mpt-current-prayer .mpt-adhan-time,
.mpt-current-prayer .mpt-iqamah-time {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.mpt-time-label {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--mpt-text-light);
}

.mpt-time-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--mpt-primary);
    font-family: 'Lato', monospace;
}

.mpt-current-prayer .mpt-time-value {
    color: white;
}

.mpt-iqamah-value {
    color: var(--mpt-accent);
}

.mpt-current-prayer .mpt-iqamah-value {
    color: var(--mpt-accent-light);
}

/* Jumu'ah Notice */
.mpt-jumah-notice {
    margin: 2.5rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, var(--mpt-accent) 0%, var(--mpt-accent-light) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.mpt-jumah-icon {
    font-size: 3rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.mpt-jumah-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    margin: 0 0 0.5rem;
    color: var(--mpt-text);
}

.mpt-jumah-times {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--mpt-text);
}

.mpt-jumah-separator {
    color: var(--mpt-text-light);
}

/* Footer Ornament */
.mpt-daily-footer {
    margin-top: 3rem;
    text-align: center;
}

.mpt-footer-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.mpt-ornament-line {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--mpt-border), transparent);
}

.mpt-ornament-center {
    color: var(--mpt-accent);
    font-size: 1.25rem;
}

/* ==========================================================================
   RESPONSIVE - Mobile Optimization
   ========================================================================== */

@media (max-width: 768px) {
    .mpt-daily-container {
        padding: 2rem 1.5rem;
        margin: 1.5rem;
        border-radius: 20px;
    }
    
    .mpt-daily-title {
        font-size: 2rem;
    }
    
    .mpt-prayers-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .mpt-prayer-card {
        padding: 1.5rem 1.25rem;
    }
    
    .mpt-jumah-notice {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .mpt-header-ornament {
        font-size: 2rem;
    }
    
    .mpt-daily-title {
        font-size: 1.75rem;
    }
    
    .mpt-name-english {
        font-size: 1.25rem;
    }
    
    .mpt-time-value {
        font-size: 1.125rem;
    }
}

/* ==========================================================================
   MONTHLY PRAYER CALENDAR - Professional Table Design
   ========================================================================== */

.mpt-monthly-container {
    max-width: 1400px;
    margin: 2rem auto;
    background: var(--mpt-background-light);
    border-radius: 20px;
    box-shadow: 0 8px 32px var(--mpt-shadow);
    overflow: hidden;
}

.mpt-monthly-header {
    background: linear-gradient(135deg, var(--mpt-primary) 0%, var(--mpt-primary-light) 100%);
    padding: 2.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.mpt-header-content h2 {
    margin: 0 0 0.5rem;
    font-size: 2.5rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mpt-month-icon {
    font-size: 2rem;
}

.mpt-masjid-name {
    margin: 0;
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
}

.mpt-print-btn {
    background: var(--mpt-accent);
    color: var(--mpt-text);
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.mpt-print-btn:hover {
    background: var(--mpt-accent-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.4);
}

/* Month Navigation */
.mpt-month-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    background: var(--mpt-background);
    border-bottom: 2px solid var(--mpt-border);
}

.mpt-nav-btn {
    padding: 0.75rem 1.5rem;
    background: var(--mpt-background-light);
    border: 2px solid var(--mpt-border);
    border-radius: 10px;
    color: var(--mpt-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.mpt-nav-btn:hover {
    background: var(--mpt-primary);
    color: white;
    border-color: var(--mpt-primary);
    transform: translateX(0);
}

.mpt-nav-btn.mpt-prev:hover {
    transform: translateX(-4px);
}

.mpt-nav-btn.mpt-next:hover {
    transform: translateX(4px);
}

.mpt-current-month {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--mpt-text);
}

/* Prayer Times Table */
.mpt-monthly-table-wrapper {
    overflow-x: auto;
    padding: 2rem 3rem;
}

.mpt-monthly-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.875rem;
}

.mpt-monthly-table thead {
    background: linear-gradient(135deg, var(--mpt-primary-dark) 0%, var(--mpt-primary) 100%);
    color: white;
}

.mpt-monthly-table th {
    padding: 1rem 0.75rem;
    text-align: center;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 10;
}

.mpt-monthly-table th:first-child {
    border-top-left-radius: 12px;
}

.mpt-monthly-table th:last-child {
    border-top-right-radius: 12px;
}

.mpt-prayer-group {
    background: rgba(255, 255, 255, 0.05);
    font-size: 1rem;
    padding: 0.75rem;
}

.mpt-arabic {
    display: block;
    font-size: 0.75rem;
    font-weight: 300;
    opacity: 0.9;
    margin-top: 0.25rem;
}

.mpt-subheader {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.75rem 0.5rem;
    background: rgba(255, 255, 255, 0.03);
}

.mpt-iqamah-header {
    background: rgba(212, 175, 55, 0.15);
}

/* Table Body */
.mpt-monthly-table tbody tr {
    transition: all 0.2s ease;
}

.mpt-monthly-table tbody tr:hover {
    background: var(--mpt-background);
}

.mpt-monthly-table tbody tr:nth-child(even) {
    background: rgba(74, 124, 89, 0.02);
}

.mpt-monthly-table td {
    padding: 1rem 0.75rem;
    text-align: center;
    border: 1px solid var(--mpt-border);
    color: var(--mpt-text);
}

/* Special Row Styling */
.mpt-jumah-row {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.08), transparent, rgba(212, 175, 55, 0.08));
    font-weight: 600;
}

.mpt-weekend-row {
    background: rgba(74, 124, 89, 0.04);
}

/* Date Cell */
.mpt-date-cell {
    font-weight: 700;
    background: var(--mpt-background);
}

.mpt-day-number {
    display: block;
    font-size: 1.125rem;
    color: var(--mpt-primary);
    margin-bottom: 0.25rem;
}

.mpt-weekday {
    display: block;
    font-size: 0.75rem;
    color: var(--mpt-text-light);
    font-weight: 400;
    text-transform: uppercase;
}

.mpt-hijri-cell {
    font-size: 0.875rem;
    color: var(--mpt-accent);
    font-style: italic;
}

.mpt-sunrise-cell {
    background: rgba(255, 243, 205, 0.3);
    font-style: italic;
    color: var(--mpt-text-light);
}

.mpt-iqamah-cell {
    background: rgba(212, 175, 55, 0.05);
    font-weight: 600;
    color: var(--mpt-primary);
}

.mpt-jumah-indicator {
    background: var(--mpt-accent);
    color: var(--mpt-text);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Footer Notes */
.mpt-monthly-footer {
    padding: 2rem 3rem;
    background: var(--mpt-background);
    border-top: 2px solid var(--mpt-border);
}

.mpt-footer-notes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.mpt-note-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.mpt-note-icon {
    font-size: 1.5rem;
}

.mpt-note-text {
    font-size: 0.9rem;
    color: var(--mpt-text-light);
    line-height: 1.6;
}

.mpt-note-text strong {
    color: var(--mpt-text);
    display: block;
    margin-bottom: 0.25rem;
}

.mpt-print-footer {
    text-align: center;
    margin-top: 2rem;
}

.mpt-print-text {
    color: var(--mpt-text-light);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.mpt-footer-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.mpt-decoration-line {
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--mpt-border), transparent);
}

.mpt-decoration-star {
    color: var(--mpt-accent);
    font-size: 1rem;
}

/* ==========================================================================
   NEXT PRAYER COUNTDOWN
   ========================================================================== */

.mpt-next-prayer-container {
    max-width: 500px;
    margin: 2rem auto;
    background: linear-gradient(135deg, var(--mpt-primary) 0%, var(--mpt-primary-light) 100%);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px var(--mpt-shadow-strong);
    color: white;
    text-align: center;
}

.mpt-next-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: mpt-float 3s ease-in-out infinite;
}

.mpt-next-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--mpt-accent);
    margin-bottom: 0.5rem;
}

.mpt-next-name {
    font-size: 2.5rem;
    margin: 0 0 1rem;
    color: white;
}

.mpt-next-time {
    font-size: 2rem;
    font-weight: 700;
    color: var(--mpt-accent-light);
    margin-bottom: 1.5rem;
}

.mpt-countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.mpt-countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.mpt-countdown-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    font-family: 'Lato', monospace;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    min-width: 80px;
}

.mpt-countdown-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.8);
}

.mpt-countdown-separator {
    font-size: 2rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   WIDGET STYLES
   ========================================================================== */

.mpt-widget-container {
    background: var(--mpt-background-light);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 16px var(--mpt-shadow);
}

.mpt-widget-date {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--mpt-primary);
    margin-bottom: 0.5rem;
    text-align: center;
}

.mpt-widget-hijri {
    font-size: 0.75rem;
    color: var(--mpt-accent);
    text-align: center;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.mpt-widget-prayers {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mpt-widget-prayer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--mpt-background);
    border-radius: 8px;
    border-left: 3px solid var(--mpt-primary);
    transition: all 0.2s ease;
}

.mpt-widget-prayer:hover {
    background: white;
    transform: translateX(4px);
}

.mpt-widget-name {
    font-weight: 600;
    color: var(--mpt-text);
}

.mpt-widget-times {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.mpt-widget-adhan {
    font-size: 1rem;
    font-weight: 700;
    color: var(--mpt-primary);
}

.mpt-widget-iqamah {
    font-size: 0.75rem;
    color: var(--mpt-accent);
    font-weight: 600;
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    @page {
        size: landscape;
        margin: 1cm;
    }
    
    .no-print,
    .mpt-print-btn,
    .mpt-month-nav {
        display: none !important;
    }
    
    .mpt-monthly-container {
        box-shadow: none;
        border-radius: 0;
    }
    
    .mpt-monthly-header {
        background: white !important;
        color: var(--mpt-text) !important;
        border-bottom: 3px solid var(--mpt-primary);
    }
    
    .mpt-monthly-header h2 {
        color: var(--mpt-primary) !important;
    }
    
    .mpt-monthly-table {
        font-size: 0.7rem;
    }
    
    .mpt-monthly-table th {
        background: var(--mpt-primary) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .mpt-monthly-table td {
        border: 1px solid #ddd !important;
    }
    
    .mpt-jumah-row {
        background: rgba(212, 175, 55, 0.15) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* ==========================================================================
   RESPONSIVE - Mobile & Tablet
   ========================================================================== */

@media (max-width: 1024px) {
    .mpt-monthly-header {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .mpt-monthly-table {
        font-size: 0.75rem;
    }
    
    .mpt-monthly-table th,
    .mpt-monthly-table td {
        padding: 0.75rem 0.5rem;
    }
}

@media (max-width: 768px) {
    .mpt-monthly-container {
        margin: 1rem;
        border-radius: 16px;
    }
    
    .mpt-monthly-header {
        padding: 2rem 1.5rem;
    }
    
    .mpt-header-content h2 {
        font-size: 1.75rem;
    }
    
    .mpt-monthly-table-wrapper {
        padding: 1rem;
    }
    
    .mpt-monthly-footer {
        padding: 1.5rem;
    }
    
    .mpt-footer-notes {
        grid-template-columns: 1fr;
    }
    
    .mpt-next-prayer-container {
        margin: 1rem;
        padding: 2rem 1.5rem;
    }
    
    .mpt-countdown {
        flex-wrap: wrap;
    }
    
    .mpt-countdown-value {
        font-size: 2rem;
        min-width: 60px;
    }
}

/* ==========================================================================
   COMPACT HORIZONTAL PRAYER TIMES (Mobile Homepage)
   ========================================================================== */

.mpt-compact-container {
    background: linear-gradient(135deg, var(--mpt-primary) 0%, var(--mpt-primary-light) 100%);
    border-radius: 16px;
    padding: 1.25rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 16px var(--mpt-shadow-strong);
}

.mpt-compact-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: white;
}

.mpt-compact-icon {
    font-size: 1.25rem;
}

.mpt-compact-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.125rem;
    font-weight: 600;
}

.mpt-compact-date {
    font-size: 0.8125rem;
    color: var(--mpt-accent-light);
    font-style: italic;
    margin-left: 0.5rem;
}

.mpt-compact-prayers {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
}

.mpt-compact-prayer {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 0.75rem 0.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.mpt-compact-prayer:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.mpt-compact-current {
    background: rgba(212, 175, 55, 0.3);
    border-color: var(--mpt-accent);
    animation: mpt-compact-pulse 2s ease-in-out infinite;
}

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

.mpt-compact-prayer-icon {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.mpt-compact-prayer-name {
    font-weight: 700;
    font-size: 0.75rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.mpt-compact-prayer-time {
    font-size: 0.9375rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.125rem;
}

.mpt-compact-iqamah {
    font-size: 0.6875rem;
    color: var(--mpt-accent-light);
    font-weight: 600;
}

.mpt-compact-jumah {
    margin-top: 0.75rem;
    padding: 0.5rem;
    background: rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    text-align: center;
    color: white;
    font-weight: 700;
    font-size: 0.9375rem;
}

/* Tablet - keep horizontal */
@media (max-width: 1024px) {
    .mpt-compact-prayers {
        gap: 0.5rem;
    }
    
    .mpt-compact-prayer {
        padding: 0.65rem 0.4rem;
    }
    
    .mpt-compact-prayer-icon {
        font-size: 1.5rem;
    }
    
    .mpt-compact-prayer-time {
        font-size: 0.875rem;
    }
    
    .mpt-compact-iqamah {
        font-size: 0.625rem;
    }
}

/* Mobile - still keep horizontal but smaller */
@media (max-width: 768px) {
    .mpt-compact-container {
        padding: 1rem;
    }
    
    .mpt-compact-header {
        flex-direction: column;
        gap: 0.25rem;
        margin-bottom: 0.75rem;
    }
    
    .mpt-compact-date {
        margin-left: 0;
    }
    
    .mpt-compact-prayers {
        gap: 0.375rem;
    }
    
    .mpt-compact-prayer {
        padding: 0.5rem 0.25rem;
    }
    
    .mpt-compact-prayer-icon {
        font-size: 1.25rem;
    }
    
    .mpt-compact-prayer-name {
        font-size: 0.625rem;
    }
    
    .mpt-compact-prayer-time {
        font-size: 0.75rem;
    }
    
    .mpt-compact-iqamah {
        font-size: 0.5625rem;
    }
}

/* Very small phones - ultra compact */
@media (max-width: 400px) {
    .mpt-compact-container {
        padding: 0.75rem;
    }
    
    .mpt-compact-prayers {
        gap: 0.25rem;
    }
    
    .mpt-compact-prayer {
        padding: 0.4rem 0.2rem;
    }
    
    .mpt-compact-prayer-icon {
        font-size: 1.125rem;
        margin-bottom: 0.125rem;
    }
    
    .mpt-compact-prayer-name {
        font-size: 0.5625rem;
        margin-bottom: 0.125rem;
    }
    
    .mpt-compact-prayer-time {
        font-size: 0.6875rem;
    }
    
    .mpt-compact-iqamah {
        font-size: 0.5rem;
    }
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

.mpt-prayer-card:focus-within,
.mpt-nav-btn:focus,
.mpt-print-btn:focus {
    outline: 3px solid var(--mpt-accent);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support (future enhancement) */
@media (prefers-color-scheme: dark) {
    :root {
        --mpt-background: #1a2520;
        --mpt-background-light: #243329;
        --mpt-text: #e8f0ec;
        --mpt-text-light: #b8c9bf;
        --mpt-border: #3a4f42;
    }
}
