/* Aum - Celestial Sky Theme */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Merriweather:ital,wght@0,300;0,400;0,700;1,300;1,400&display=swap');

:root {
    --primary-gold: #b8860b;
    --deep-blue: #2c3e50;
    --navy-blue: #1a252f;
    --gold-accent: #8b6b10;
    --bg-page: #f8f9fa;
    --container-bg: #ffffff;
    --nav-bg: rgba(255, 255, 255, 0.9);
    --nav-border: rgba(184, 134, 11, 0.15);
    --text-main: #2c3e50;
    --text-meta: #7f8c8d;
    --container-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Merriweather', 'Georgia', serif;
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.8;
    margin: 0;
    padding: 0;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
}

/* --- Container --- */
.container {
    max-width: 650px;
    margin: 40px auto 80px;
    padding: 60px 50px;
    background-color: var(--container-bg);
    border-radius: 12px;
    box-shadow: var(--container-shadow);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.03);
}

/* --- Typography --- */
h1 {
    font-family: 'Outfit', sans-serif;
    color: var(--primary-gold);
    text-align: center;
    font-weight: 600;
    font-size: 2.2rem;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

h2 {
    font-family: 'Outfit', sans-serif;
    color: var(--gold-accent);
    font-weight: 500;
    font-size: 1.6rem;
    margin-top: 45px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(212, 180, 93, 0.2);
    padding-bottom: 12px;
}

.dates {
    font-family: 'Outfit', sans-serif;
    text-align: center;
    font-style: normal;
    color: var(--primary-gold);
    margin-bottom: 40px;
    font-size: 0.95rem;
    font-weight: 400;
    opacity: 0.8;
}

.med-text {
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--text-main);
    padding: 20px 0;
    margin: 20px auto;
    text-align: center;
    line-height: 1.6;
    font-style: italic;
}

.med-text p {
    margin: 0.5em 0;
}

.commentary p {
    margin-bottom: 1.6em;
    text-align: justify;
    font-size: 1.15rem;
    color: var(--text-main);
    font-weight: 300;
}

/* --- YouTube & Links --- */
.youtube-link {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.youtube-link a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #f44336;
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.3);
}

.youtube-link a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 67, 54, 0.4);
    background: #d32f2f;
}

/* --- Navigation Bar (Modern Glassmorphism) --- */
.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 24px;
    background-color: var(--nav-bg);
    border-bottom: 1px solid var(--nav-border);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-home {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-gold);
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    transition: opacity 0.2s;
}

.nav-home:hover {
    opacity: 0.8;
}

.nav-home img {
    height: 40px;
    margin-right: 12px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-controls button {
    background: rgba(184, 134, 11, 0.08);
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--primary-gold);
    font-size: 1.2rem;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-controls button:hover:not(:disabled) {
    background: var(--primary-gold);
    color: white;
    transform: scale(1.1);
}

.nav-controls button:disabled {
    opacity: 0.2;
    cursor: default;
}

.nav-controls input {
    width: 54px;
    text-align: center;
    font-size: 1.1rem;
    padding: 8px 4px;
    border: 1px solid rgba(184, 134, 11, 0.2);
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    color: var(--primary-gold);
    background: #fff;
    font-weight: 600;
}

.nav-group-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-shuffle, .nav-share {
    color: var(--primary-gold);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-shuffle:hover, .nav-share:hover {
    background: rgba(184, 134, 11, 0.1);
}

/* --- Share Dropdown --- */
.nav-share-wrapper {
    position: relative;
}

.share-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    background: #ffffff;
    border: 1px solid var(--nav-border);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    display: none;
    flex-direction: column;
    padding: 8px;
    min-width: 160px;
    z-index: 1001;
    animation: slideDown 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.share-dropdown.show {
    display: flex;
}

.share-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    color: var(--text-main);
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

.share-dropdown-item:hover {
    background: rgba(184, 134, 11, 0.08);
    color: var(--primary-gold);
}

.share-dropdown-item svg {
    width: 18px;
    height: 18px;
}

/* --- Chapter Cover --- */
.chapter-cover {
    margin-bottom: 40px;
    text-align: center;
}

.chapter-cover img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    max-height: 400px;
}

/* --- Footer --- */
.page-footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-meta);
    font-size: 0.95rem;
}

.page-footer a {
    color: var(--primary-gold);
    text-decoration: none;
    margin: 0 15px;
    font-family: 'Georgia', 'Times New Roman', serif;
    transition: opacity 0.2s;
    font-style: italic;
}

.page-footer a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* --- Mobile --- */
@media (max-width: 768px) {
    .container {
        margin: 15px auto;
        padding: 40px 25px;
        border-radius: 15px;
        max-width: calc(100% - 30px);
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .med-text {
        font-size: 1.2rem;
        padding: 10px 0;
    }
    
    .nav-home span {
        display: none;
    }
}
