/* 
   Theme: Awake (Verses of Day Edition)
   Font: Inter Tight, Instrument Serif
*/
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter+Tight:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
    --primary: #1a1a1a;
    --accent: #3898ec;
    /* Awake Blue */
    --accent-hover: #2b7bc0;
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --text-muted: #666;
    --light-gray: #f4f6f8;
    --border-color: #e0e0e0;
    --success: #10b981;
    --error: #ef4444;

    --font-heading: 'Inter Tight', sans-serif;
    --font-body: 'Inter Tight', sans-serif;
    --font-serif: 'Instrument Serif', serif;

    --container-width: 1100px;
    --radius: 0px;
    /* Awake uses sharp edges mostly */
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text-color);
    background: var(--bg-color);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent);
}

/* ── Liens dans les zones de contenu prose (partout sur le site) ── */
/* Appliqué automatiquement dans tout contexte p > a, li > a, etc.   */
/* N'affecte pas les liens de navigation, boutons, cards.             */

/* Classe utilitaire à poser sur n'importe quel conteneur de prose */
.prose a,
.prose-links a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: rgba(56, 152, 236, 0.4);
    text-underline-offset: 3px;
    text-decoration-thickness: 1.5px;
    font-weight: 500;
    border-radius: 2px;
    padding: 0 1px;
    transition: color 0.2s, text-decoration-color 0.2s, background 0.15s;
}

.prose a:hover,
.prose-links a:hover {
    color: #1a6fb5;
    text-decoration-color: #1a6fb5;
    background: rgba(56, 152, 236, 0.07);
}

.prose a:visited,
.prose-links a:visited {
    color: #7c5cbf;
    text-decoration-color: rgba(124, 92, 191, 0.4);
}

/* Liens dans les paragraphes de contenu hors .article-body */
/* (testimonies, plans, bible pages, passage, etc.)          */
.content-area p a,
.entry-content p a,
.wa-related p a,
.source-credit a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: rgba(56, 152, 236, 0.4);
    text-underline-offset: 3px;
    text-decoration-thickness: 1.5px;
    font-weight: 500;
    border-radius: 2px;
    padding: 0 1px;
    transition: color 0.2s, text-decoration-color 0.2s, background 0.15s;
}

.content-area p a:hover,
.entry-content p a:hover,
.wa-related p a:hover {
    color: #1a6fb5;
    text-decoration-color: #1a6fb5;
    background: rgba(56, 152, 236, 0.07);
}


/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

/* Buttons */
.btn,
.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
    border-radius: 4px;
}

.btn:hover,
.action-btn:hover {
    background: #333;
    transform: translateY(-1px);
}

.btn.secondary,
.action-btn.secondary {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--border-color);
}

.btn.secondary:hover,
.action-btn.secondary:hover {
    background: var(--light-gray);
    color: var(--primary);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 100px 20px 60px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #444 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Cards */
.card {
    background: white;
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

/* Hero Section Refined */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 20px;
    text-align: center;
    border-radius: 0 0 50% 50% / 20px;
    /* Subtle curve */
    margin-bottom: 40px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, #444 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

/* Verse Card Enhancements */
.verse-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    max-width: 800px;
    margin: -40px auto 40px;
    /* Overlap hero */
    position: relative;
    z-index: 10;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.verse-text {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    line-height: 1.6;
    color: var(--primary);
    margin: 20px 0;
    font-style: italic;
    text-align: center;
}

.verse-reference {
    display: block;
    text-align: right;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--accent);
    margin-top: 15px;
    font-style: normal;
}

/* Action Buttons Grid */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
    /* Responsive wrap */
}

/* Download Section */
.download-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.download-formats {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.format-btn {
    background: #f8f9fa;
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.format-btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* Bible Reader Specifics */
.bible-text-container {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background: white;
    box-shadow: var(--shadow);
    border-radius: 4px;
}

.verse-span:hover {
    background-color: #fff9c4;
    /* Subtle yellow highlight on hover */
}

/* Forms */
input,
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    /* Modern radius */
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(56, 152, 236, 0.1);
}

/* Custom Checkbox Styling */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    padding: 8px 0;
}

.checkbox-input {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--accent);
    border-radius: 4px;
}

.checkbox-text {
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.4;
}

.checkbox-label:hover .checkbox-text {
    color: var(--accent);
}


/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: rgba(26, 26, 26, 0.95);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: toastUp 0.3s ease forwards;
    pointer-events: auto;
    backdrop-filter: blur(5px);
}

@keyframes toastUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.modal .card {
    animation: scaleUp 0.2s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleUp {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 1.8rem;
    font-weight: 300;
    cursor: pointer;
    color: #888;
    transition: color 0.2s;
}

.close:hover {
    color: var(--error);
}

/* Footer */
footer {
    background: #111;
    color: white;
    padding: 80px 0 40px;
    margin-top: 100px;
}

footer h3 {
    color: white;
    margin-bottom: 20px;
}

footer a {
    color: #888;
    display: block;
    margin-bottom: 10px;
}

footer a:hover {
    color: white;
}

/* Utilities */
.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mt-4 {
    margin-top: 2rem;
}

.flex-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    /* Improved breakdown */
    gap: 30px;
}

/* Mobile & Responsive Menu */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .verse-card {
        padding: 25px;
        margin-top: -20px;
    }

    .verse-text {
        font-size: 1.4rem;
    }

    .hero {
        padding: 60px 20px;
    }

    .nav-container {
        position: relative;
    }

    .menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 2000;
        position: relative;
    }

    .menu-toggle span {
        width: 100%;
        height: 3px;
        background-color: var(--text-color);
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: white;
        padding: 20px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
        z-index: 1999;
        border-top: 1px solid #eee;
        gap: 8px;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-links a {
        padding: 14px 20px !important;
        font-size: 1.05rem;
        justify-content: flex-start;
        border-radius: 8px !important;
        width: 100%;
        gap: 12px;
        background: transparent !important;
    }

    .nav-links a .nav-icon {
        font-size: 1.3rem;
    }

    .nav-links a .nav-text {
        font-size: 1.05rem;
    }

    .nav-icon-only {
        justify-content: flex-start !important;
    }

    .desktop-only {
        display: none;
    }

    /* Profile Dropdown Mobile */
    .profile-dropdown {
        width: 100%;
    }

    .profile-btn {
        width: 100%;
        justify-content: flex-start;
        border-radius: 8px !important;
        padding: 14px 20px !important;
    }

    .profile-menu {
        position: static;
        box-shadow: none;
        border: none;
        border-radius: 0;
        margin-top: 8px;
        background: var(--light-gray);
        border-radius: 8px;
        margin-left: 0;
    }

    .profile-menu a {
        padding: 12px 20px !important;
        font-size: 1rem;
    }

    .btn-login,
    .btn.secondary {
        width: 100%;
        justify-content: center;
        margin-top: 8px;
        padding: 14px 20px !important;
    }

    .action-btn {
        margin-top: 0;
        /* Override old */
        width: auto;
        padding: 10px 20px;
        flex: 1 1 auto;
        /* Grow buttons to fill */
    }

    .action-buttons {
        gap: 10px;
    }

    .bible-text-container {
        padding: 20px;
        font-size: 1.2rem;
    }
}

@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
}