/* ===== STYLES DES HORAIRES DE PRIÈRE ===== */

.prayer-times-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* ===== HEADER ===== */
.prayer-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, #2D5F4F 0%, #4A8B73 100%);
    border-radius: 20px;
    color: white;
    margin-bottom: 2rem;
    box-shadow: 0 8px 24px rgba(45, 95, 79, 0.2);
}

.prayer-header-icon {
    font-size: 3rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.prayer-header-info {
    flex: 1;
}

.prayer-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.prayer-subtitle {
    display: flex;
    gap: 1.5rem;
    font-size: 0.95rem;
    opacity: 0.95;
    margin: 0.5rem 0;
}

.prayer-method {
    font-size: 0.85rem;
    opacity: 0.8;
    margin: 0.5rem 0 0 0;
}

.btn-refresh {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-refresh:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(180deg);
}

/* ===== GRILLE DES PRIÈRES ===== */
.prayer-times-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.prayer-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.75rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.prayer-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(45, 95, 79, 0.15);
    border-color: #C9A661;
}

.prayer-card-icon {
    font-size: 2.5rem;
    transition: transform 0.3s ease;
}

.prayer-card:hover .prayer-card-icon {
    transform: scale(1.15) rotate(5deg);
}

.prayer-card-content {
    flex: 1;
}

.prayer-name {
    font-size: 1rem;
    font-weight: 600;
    color: #64748B;
    margin-bottom: 0.5rem;
}

.prayer-time {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2D5F4F;
    font-family: 'Courier New', monospace;
}

/* ===== PROCHAINE PRIÈRE ===== */
.next-prayer-card {
    padding: 2rem;
    background: linear-gradient(135deg, #C9A661 0%, #E6C27E 100%);
    border-radius: 20px;
    color: white;
    text-align: center;
    box-shadow: 0 8px 24px rgba(201, 166, 97, 0.3);
}

.next-prayer-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.next-prayer-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.next-prayer-time {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    margin-bottom: 0.5rem;
}

.next-prayer-countdown {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* ===== LOADER ===== */
.prayer-loader {
    text-align: center;
    padding: 4rem 2rem;
}

.loader-icon {
    font-size: 4rem;
    animation: float 2s ease-in-out infinite;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    margin: 2rem auto;
    border: 4px solid rgba(45, 95, 79, 0.2);
    border-top-color: #2D5F4F;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== ERREUR ===== */
.prayer-error {
    text-align: center;
    padding: 4rem 2rem;
}

.error-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.prayer-error h3 {
    font-size: 1.5rem;
    color: #2D5F4F;
    margin-bottom: 1rem;
}

.prayer-error p {
    color: #64748B;
    margin-bottom: 2rem;
}

.btn-retry {
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, #2D5F4F 0%, #4A8B73 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-retry:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(45, 95, 79, 0.3);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .prayer-times-wrapper {
        padding: 1rem;
    }

    .prayer-header {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .prayer-title {
        font-size: 1.5rem;
    }

    .prayer-subtitle {
        flex-direction: column;
        gap: 0.5rem;
    }

    .prayer-times-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .prayer-card {
        padding: 1.5rem;
    }

    .prayer-time {
        font-size: 1.5rem;
    }

    .next-prayer-time {
        font-size: 2rem;
    }
}

[data-theme="dark"] .prayer-card {
    background: var(--surface);
    color: var(--text-primary);
}

[data-theme="dark"] .prayer-name {
    color: var(--text-secondary);
}

[data-theme="dark"] .prayer-time {
    color: var(--accent-color);
}