/* shared-styles.css */
/* Common styles for header and footer across all BambooReader pages */

:root {
    --primary-green: #8fbc8f;
    --sage-green: #9cb59c;
    --light-green: #b8d4b8;
    --cream: #faf9f7;
    --warm-white: #ffffff;
    --text-dark: #2c3e2c;
    --text-medium: #5a6b5a;
    --text-light: #8a9b8a;
    --shadow: rgba(143, 188, 143, 0.15);
    --border: rgba(143, 188, 143, 0.2);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--cream);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation Styles */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(20px);
    background: rgba(250, 249, 247, 0.95);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-medium);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-links a:not(.download-btn)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-green), var(--sage-green));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a.active {
    color: var(--text-dark);
    font-weight: 600;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-green);
}

.nav-links a:hover {
    color: var(--text-dark);
}

.nav-links a:not(.download-btn):hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.download-btn {
    background: var(--primary-green) !important;
    color: white !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.download-btn:hover {
    transform: translateY(-2px) !important;
    background: var(--sage-green) !important;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(250, 249, 247, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    box-shadow: 0 4px 20px var(--shadow);
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu a {
    display: block;
    color: var(--text-medium);
    text-decoration: none;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    font-weight: 500;
    transition: all 0.3s ease;
    transform: translateX(-20px);
    opacity: 0;
}

.mobile-menu.active a {
    transform: translateX(0);
    opacity: 1;
}

.mobile-menu.active a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active a:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu.active a:nth-child(3) { transition-delay: 0.3s; }

.mobile-menu a:hover {
    color: var(--text-dark);
    background: var(--cream);
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu .download-btn {
    background: var(--primary-green) !important;
    color: white !important;
    border-radius: 8px !important;
    margin-top: 0.5rem;
}

/* Footer Styles */
footer {
    background: var(--text-dark);
    color: white;
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--light-green);
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--light-green);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
    color: #999;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-bottom a {
    color: var(--light-green);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: white;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-container {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Utility Classes */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-medium);
    max-width: 600px;
    margin: 0 auto;
}