/* TradingTeaching Website Styles
   Brand Colors:
   - Deep Blue: #0a1628
   - Gold: #d4a574
   - Teal: #00d4aa
   - Light Gray: #f8f9fa
   - White: #ffffff
*/

/* CSS Variables for Theme Support */
:root {
    --bg-primary: #0a1628;
    --bg-secondary: #152238;
    --bg-tertiary: #0d1f35;
    --text-primary: #ffffff;
    --text-secondary: #b0b8c4;
    --text-muted: #8892a0;
    --accent: #00d4aa;
    --accent-hover: #00f4c4;
    --border: rgba(255, 255, 255, 0.1);
}

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: #00d4aa;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #d4a574;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background-color: #0a1628;
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

.logo-text span {
    color: #d4a574;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    color: #ffffff;
    font-weight: 500;
    padding: 10px 0;
    position: relative;
}

nav ul li a:hover {
    color: #00d4aa;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #00d4aa;
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    transition: 0.3s;
}

/* Theme Toggle Button */
.theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    margin-left: 15px;
}

.theme-toggle:hover {
    background: rgba(0, 212, 170, 0.2);
    border-color: #00d4aa;
    transform: rotate(15deg);
}

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

.nav-search {
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-search svg {
    width: 20px;
    height: 20px;
    stroke: #ffffff;
}

.nav-search:hover {
    color: #00d4aa;
    background: rgba(0, 212, 170, 0.2);
    border-color: #00d4aa;
}

.nav-search:hover svg {
    stroke: #00d4aa;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0a1628 0%, #1a2d4a 100%);
    color: #ffffff;
    padding: 150px 0 100px;
    text-align: center;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero h1 {
    color: #ffffff;
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero h1 span {
    color: #d4a574;
}

.hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 30px;
    color: #b0b8c4;
}

.hero-badge {
    display: inline-block;
    background-color: rgba(212, 165, 116, 0.2);
    color: #d4a574;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid #d4a574;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: #00d4aa;
    color: #0a1628;
}

.btn-primary:hover {
    background-color: #00b894;
    color: #0a1628;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 212, 170, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #d4a574;
}

.btn-secondary:hover {
    background-color: #d4a574;
    color: #0a1628;
}

.btn-gold {
    background-color: #d4a574;
    color: #0a1628;
}

.btn-gold:hover {
    background-color: #c4956a;
    color: #0a1628;
}

.btn-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Sections */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    margin-bottom: 15px;
}

.section-header p {
    color: #8892a0;
    max-width: 600px;
    margin: 0 auto;
}

/* Features Section */
.features {
    background-color: #f8f9fa;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: #ffffff;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #00d4aa, #00b894);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.feature-card p {
    color: #8892a0;
    margin-bottom: 0;
}

/* Books Section */
.books-section {
    background-color: #0a1628;
    color: #ffffff;
}

.books-section h2 {
    color: #ffffff;
}

.books-section .section-header p {
    color: #b0b8c4;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.book-card {
    background-color: #152238;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 170, 0.2);
}

.book-cover {
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, #243b5c 0%, #152238 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.book-cover img {
    max-width: 80%;
    max-height: 92%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 212, 170, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-cover img:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 212, 170, 0.2);
}

.book-cover .placeholder-cover {
    width: 140px;
    height: 210px;
    background: linear-gradient(135deg, #0a1628, #1a2d4a);
    border: 2px solid #d4a574;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 15px;
}

.placeholder-cover .book-num {
    font-size: 2rem;
    font-weight: 700;
    color: #d4a574;
    margin-bottom: 5px;
}

.placeholder-cover .book-title-small {
    font-size: 0.75rem;
    color: #ffffff;
    line-height: 1.3;
}

.book-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #d4a574;
    color: #0a1628;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.book-info {
    padding: 25px;
}

.book-info h3 {
    color: #ffffff;
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.book-info p {
    color: #b0b8c4;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.book-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.book-meta span {
    color: #00d4aa;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* About Section */
.about-section {
    background-color: #ffffff;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.about-image .placeholder-image {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #0a1628, #1a2d4a);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d4a574;
    font-size: 3rem;
}

.about-text h2 {
    margin-bottom: 20px;
}

.about-text p {
    color: #8892a0;
    margin-bottom: 15px;
}

.credentials {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.credential {
    display: flex;
    align-items: center;
    gap: 10px;
}

.credential-icon {
    width: 50px;
    height: 50px;
    background-color: #f0f7f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00d4aa;
    font-size: 1.25rem;
}

.credential-text {
    font-weight: 600;
    color: #0a1628;
}

/* Testimonials */
.testimonials {
    background-color: #f8f9fa;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.testimonial-quote {
    font-style: italic;
    color: #b0b8c4;
    margin-bottom: 20px;
    position: relative;
    padding-left: 20px;
    border-left: 3px solid #00d4aa;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d4aa, #00b894);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
}

.author-info h4 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.author-info p {
    font-size: 0.85rem;
    color: #8892a0;
    margin-bottom: 0;
}

/* Stats Section */
.stats {
    background: linear-gradient(135deg, #0a1628 0%, #1a2d4a 100%);
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    color: #00d4aa;
    font-size: 3rem;
    margin-bottom: 10px;
}

.stat-item p {
    color: #b0b8c4;
    margin-bottom: 0;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, #00d4aa 0%, #00b894 100%);
    text-align: center;
    padding: 80px 0;
}

.cta h2 {
    color: #0a1628;
    margin-bottom: 15px;
}

.cta p {
    color: #0a1628;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto 30px;
}

.cta .btn-primary,
.cta a.btn-primary {
    background-color: #0a1628;
    color: #ffffff !important;
}

.cta .btn-primary:hover,
.cta a.btn-primary:hover {
    background-color: #152238;
    color: #ffffff !important;
}

/* Contact Section */
.contact-section {
    background-color: #f8f9fa;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    margin-bottom: 20px;
}

.contact-info p {
    color: #b0b8c4;
    margin-bottom: 30px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-icon {
    width: 45px;
    height: 45px;
    background-color: #00d4aa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a1628;
    flex-shrink: 0;
}

.contact-text h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.contact-text p {
    margin-bottom: 0;
    color: #b0b8c4;
}

/* Contact Form */
.contact-form {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #0a1628;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #00d4aa;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
footer {
    background-color: #0a1628;
    color: #ffffff;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo-text {
    font-size: 1.75rem;
    margin-bottom: 15px;
    display: block;
}

.footer-brand p {
    color: #b0b8c4;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: #152238;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: #00d4aa;
    color: #0a1628;
}

.footer-links h4 {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #b0b8c4;
}

.footer-links ul li a:hover {
    color: #00d4aa;
}

.footer-bottom {
    border-top: 1px solid #1a2d4a;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    color: #b0b8c4;
    margin-bottom: 0;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: #b0b8c4;
    font-size: 0.9rem;
}

/* Book Detail Page */
.book-hero {
    background: linear-gradient(135deg, #0a1628 0%, #1a2d4a 100%);
    color: #ffffff;
    padding: 120px 0 80px;
}

.book-hero-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    align-items: start;
}

.book-hero-cover {
    position: sticky;
    top: 100px;
}

.book-hero-cover img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.book-hero-cover .placeholder-cover-large {
    width: 100%;
    height: 450px;
    background: linear-gradient(135deg, #152238, #0a1628);
    border: 3px solid #d4a574;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
}

.placeholder-cover-large .book-num {
    font-size: 4rem;
    font-weight: 700;
    color: #d4a574;
    margin-bottom: 10px;
}

.placeholder-cover-large .book-title-display {
    font-size: 1.25rem;
    color: #ffffff;
    line-height: 1.4;
}

.book-hero-info h1 {
    color: #ffffff;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.book-hero-info .book-subtitle {
    color: #d4a574;
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.book-hero-info .book-description {
    color: #b0b8c4;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.book-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.book-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #00d4aa;
}

.book-pricing {
    background-color: #152238;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.book-pricing .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #00d4aa;
    margin-bottom: 10px;
}

.book-pricing .price-note {
    color: #b0b8c4;
    font-size: 0.9rem;
}

/* Chapter List */
.chapters-section {
    padding: 80px 0;
}

.chapters-list {
    display: grid;
    gap: 15px;
}

.chapter-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.chapter-item:hover {
    background-color: #e8f5f2;
}

.chapter-num {
    width: 50px;
    height: 50px;
    background-color: #0a1628;
    color: #00d4aa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.chapter-title {
    flex: 1;
}

.chapter-title h4 {
    margin-bottom: 5px;
}

.chapter-title p {
    color: #b0b8c4;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Page Header (for inner pages) */
.page-header {
    background: linear-gradient(135deg, #0a1628 0%, #1a2d4a 100%);
    color: #ffffff;
    padding: 120px 0 60px;
    text-align: center;
}

.page-header h1 {
    color: #ffffff;
    margin-bottom: 15px;
}

.page-header p {
    color: #b0b8c4;
    max-width: 600px;
    margin: 0 auto;
}

.breadcrumb {
    margin-bottom: 20px;
}

.breadcrumb a {
    color: #b0b8c4;
}

.breadcrumb span {
    color: #d4a574;
    margin: 0 10px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .book-hero-content {
        grid-template-columns: 250px 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }

    .mobile-menu-toggle {
        display: flex;
    }

    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #0a1628;
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }

    nav ul.active {
        display: flex;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .about-content,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stat-item h3 {
        font-size: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .book-hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .book-hero-cover {
        position: static;
        max-width: 250px;
        margin: 0 auto;
    }

    .book-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    section {
        padding: 60px 0;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .btn-group {
        flex-direction: column;
        width: 100%;
    }

    .btn-group .btn {
        width: 100%;
    }

    .credentials {
        flex-direction: column;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-gold { color: #d4a574; }
.text-teal { color: #00d4aa; }
.bg-dark { background-color: #0a1628; }
.bg-light { background-color: #f8f9fa; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

/* =========================================== */
/* THEME SYSTEM - Professional Dark/Light Mode */
/* =========================================== */

/* Smooth transitions for theme changes */
body,
body * {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* ===================== */
/* DARK THEME (Default)  */
/* ===================== */
body.theme-dark {
    background-color: #0a1628;
    color: #e0e6ed;
}

body.theme-dark h1,
body.theme-dark h2,
body.theme-dark h3,
body.theme-dark h4,
body.theme-dark h5,
body.theme-dark h6 {
    color: #ffffff;
}

body.theme-dark p {
    color: #b0b8c4;
}

body.theme-dark a {
    color: #00d4aa;
}

body.theme-dark a:hover {
    color: #00f4c4;
}

/* Dark - Hero Section */
body.theme-dark .hero {
    background: linear-gradient(135deg, #0a1628 0%, #1a2d4a 100%);
}

body.theme-dark .hero h1 {
    color: #ffffff;
}

body.theme-dark .hero p {
    color: #b0b8c4;
}

body.theme-dark .hero-badge {
    background-color: rgba(212, 165, 116, 0.2);
    color: #d4a574;
    border-color: #d4a574;
}

/* Dark - Page Header */
body.theme-dark .page-header {
    background: linear-gradient(135deg, #0a1628 0%, #152238 100%);
}

body.theme-dark .page-header h1 {
    color: #ffffff;
}

body.theme-dark .page-header p {
    color: #b0b8c4;
}

body.theme-dark .breadcrumb a {
    color: #b0b8c4;
}

body.theme-dark .breadcrumb span {
    color: #8892a0;
}

/* Dark - Sections */
body.theme-dark .features {
    background-color: #0d1f35;
}

body.theme-dark .about-section {
    background-color: #0a1628;
}

body.theme-dark .books-section {
    background-color: #0a1628;
}

body.theme-dark .testimonials {
    background-color: #0d1f35;
}

body.theme-dark .contact-section {
    background-color: #0d1f35;
}

body.theme-dark .section-header h2 {
    color: #ffffff;
}

body.theme-dark .section-header p {
    color: #8892a0;
}

/* Dark - Cards */
body.theme-dark .feature-card {
    background-color: #152238;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

body.theme-dark .feature-card:hover {
    border-color: rgba(0, 212, 170, 0.4);
    box-shadow: 0 10px 30px rgba(0, 212, 170, 0.15);
}

body.theme-dark .feature-card h3 {
    color: #ffffff;
}

body.theme-dark .feature-card p {
    color: #b0b8c4;
}

body.theme-dark .book-card {
    background-color: #152238;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.theme-dark .book-card:hover {
    border-color: rgba(0, 212, 170, 0.4);
    box-shadow: 0 10px 30px rgba(0, 212, 170, 0.2);
}

body.theme-dark .book-info h3 {
    color: #ffffff;
}

body.theme-dark .book-info p {
    color: #b0b8c4;
}

body.theme-dark .testimonial-card {
    background-color: #152238;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.theme-dark .testimonial-quote {
    color: #b0b8c4;
}

body.theme-dark .author-info h4 {
    color: #ffffff;
}

body.theme-dark .author-info p {
    color: #8892a0;
}

/* Dark - About Section */
body.theme-dark .about-text h2,
body.theme-dark .about-text h3 {
    color: #ffffff;
}

body.theme-dark .about-text p {
    color: #b0b8c4;
}

body.theme-dark .credential-icon {
    background-color: rgba(0, 212, 170, 0.15);
    color: #00d4aa;
}

body.theme-dark .credential-text {
    color: #ffffff;
}

/* Dark - Contact Form */
body.theme-dark .contact-form {
    background-color: #152238;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.theme-dark .form-group label {
    color: #ffffff;
}

body.theme-dark .form-group input,
body.theme-dark .form-group textarea,
body.theme-dark .form-group select {
    background-color: #0a1628;
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

body.theme-dark .form-group input::placeholder,
body.theme-dark .form-group textarea::placeholder {
    color: #6b7280;
}

body.theme-dark .form-group input:focus,
body.theme-dark .form-group textarea:focus {
    border-color: #00d4aa;
}

body.theme-dark .contact-info h3 {
    color: #ffffff;
}

body.theme-dark .contact-info p {
    color: #b0b8c4;
}

body.theme-dark .contact-text h4 {
    color: #ffffff;
}

body.theme-dark .contact-text p {
    color: #b0b8c4;
}

/* Dark - Buttons */
body.theme-dark .btn-primary,
body.theme-dark a.btn-primary {
    background-color: #00d4aa;
    color: #0a1628 !important;
}

body.theme-dark .btn-primary:hover,
body.theme-dark a.btn-primary:hover {
    background-color: #00b894;
    color: #0a1628 !important;
}

body.theme-dark .btn-secondary,
body.theme-dark a.btn-secondary {
    color: #ffffff !important;
    border-color: #d4a574;
}

body.theme-dark .btn-secondary:hover,
body.theme-dark a.btn-secondary:hover {
    background-color: #d4a574;
    color: #0a1628 !important;
}

body.theme-dark .btn-gold,
body.theme-dark a.btn-gold {
    background-color: #d4a574;
    color: #0a1628 !important;
}

body.theme-dark .btn-gold:hover,
body.theme-dark a.btn-gold:hover {
    background-color: #c4956a;
    color: #0a1628 !important;
}

/* Dark - Stats Section */
body.theme-dark .stats {
    background: linear-gradient(135deg, #0a1628 0%, #1a2d4a 100%);
}

/* Dark - CTA Section */
body.theme-dark .cta {
    background: linear-gradient(135deg, #00d4aa 0%, #00b894 100%);
}

body.theme-dark .cta h2 {
    color: #0a1628;
}

body.theme-dark .cta p {
    color: #0a1628;
}

body.theme-dark .cta .btn-primary,
body.theme-dark .cta a.btn-primary {
    background-color: #0a1628;
    color: #ffffff !important;
}

body.theme-dark .cta .btn-primary:hover,
body.theme-dark .cta a.btn-primary:hover {
    background-color: #152238;
    color: #ffffff !important;
}

/* Dark - Footer (always dark) */
body.theme-dark footer {
    background-color: #050d18;
}

/* ===================== */
/* LIGHT THEME           */
/* ===================== */
body.theme-light {
    background-color: #f8fafc;
    color: #334155;
}

body.theme-light h1,
body.theme-light h2,
body.theme-light h3,
body.theme-light h4,
body.theme-light h5,
body.theme-light h6 {
    color: #0f172a;
}

body.theme-light p {
    color: #475569;
}

body.theme-light a {
    color: #0891b2;
}

body.theme-light a:hover {
    color: #0e7490;
}

/* Light - Hero Section */
body.theme-light .hero {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

body.theme-light .hero h1 {
    color: #0f172a;
}

body.theme-light .hero h1 span {
    color: #b45309;
}

body.theme-light .hero p {
    color: #475569;
}

body.theme-light .hero-badge {
    background-color: rgba(180, 83, 9, 0.1);
    color: #b45309;
    border-color: #b45309;
}

/* Light - Page Header */
body.theme-light .page-header {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
}

body.theme-light .page-header h1 {
    color: #0f172a;
}

body.theme-light .page-header p {
    color: #475569;
}

body.theme-light .breadcrumb a {
    color: #64748b;
}

body.theme-light .breadcrumb a:hover {
    color: #0891b2;
}

body.theme-light .breadcrumb span {
    color: #94a3b8;
}

/* Light - Sections */
body.theme-light .features {
    background-color: #ffffff;
}

body.theme-light .about-section {
    background-color: #f8fafc;
}

body.theme-light .books-section {
    background-color: #f1f5f9;
}

body.theme-light .testimonials {
    background-color: #ffffff;
}

body.theme-light .contact-section {
    background-color: #f1f5f9;
}

body.theme-light .section-header h2 {
    color: #0f172a;
}

body.theme-light .section-header p {
    color: #64748b;
}

/* Light - Cards */
body.theme-light .feature-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

body.theme-light .feature-card:hover {
    border-color: #0891b2;
    box-shadow: 0 10px 30px rgba(8, 145, 178, 0.1);
}

body.theme-light .feature-card h3 {
    color: #0f172a;
}

body.theme-light .feature-card p {
    color: #64748b;
}

body.theme-light .book-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

body.theme-light .book-card:hover {
    border-color: #0891b2;
    box-shadow: 0 10px 30px rgba(8, 145, 178, 0.1);
}

body.theme-light .book-info {
    background-color: #ffffff;
}

body.theme-light .book-info h3 {
    color: #0f172a;
}

body.theme-light .book-info p {
    color: #64748b;
}

body.theme-light .book-meta span {
    color: #0891b2;
}

body.theme-light .book-cover {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
}

body.theme-light .testimonial-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

body.theme-light .testimonial-quote {
    color: #475569;
    border-left-color: #0891b2;
}

body.theme-light .author-info h4 {
    color: #0f172a;
}

body.theme-light .author-info p {
    color: #64748b;
}

/* Light - About Section */
body.theme-light .about-text h2,
body.theme-light .about-text h3 {
    color: #0f172a;
}

body.theme-light .about-text p {
    color: #475569;
}

body.theme-light .about-image .placeholder-image {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    color: #b45309;
}

body.theme-light .credential-icon {
    background-color: rgba(8, 145, 178, 0.1);
    color: #0891b2;
}

body.theme-light .credential-text {
    color: #0f172a;
}

/* Light - Contact Form */
body.theme-light .contact-form {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

body.theme-light .form-group label {
    color: #0f172a;
}

body.theme-light .form-group input,
body.theme-light .form-group textarea,
body.theme-light .form-group select {
    background-color: #f8fafc;
    border-color: #e2e8f0;
    color: #0f172a;
}

body.theme-light .form-group input::placeholder,
body.theme-light .form-group textarea::placeholder {
    color: #94a3b8;
}

body.theme-light .form-group input:focus,
body.theme-light .form-group textarea:focus {
    border-color: #0891b2;
    background-color: #ffffff;
}

body.theme-light .contact-info h3 {
    color: #0f172a;
}

body.theme-light .contact-info p {
    color: #475569;
}

body.theme-light .contact-text h4 {
    color: #0f172a;
}

body.theme-light .contact-text p {
    color: #64748b;
}

/* Light - Buttons */
body.theme-light .btn-primary,
body.theme-light a.btn-primary {
    background-color: #0891b2;
    color: #ffffff !important;
}

body.theme-light .btn-primary:hover,
body.theme-light a.btn-primary:hover {
    background-color: #0e7490;
    color: #ffffff !important;
    box-shadow: 0 5px 20px rgba(8, 145, 178, 0.3);
}

body.theme-light .btn-secondary,
body.theme-light a.btn-secondary {
    color: #0f172a !important;
    border-color: #b45309;
}

body.theme-light .btn-secondary:hover,
body.theme-light a.btn-secondary:hover {
    background-color: #b45309;
    color: #ffffff !important;
}

body.theme-light .btn-gold,
body.theme-light a.btn-gold {
    background-color: #b45309;
    color: #ffffff !important;
}

body.theme-light .btn-gold:hover,
body.theme-light a.btn-gold:hover {
    background-color: #92400e;
    color: #ffffff !important;
}

/* Light - Stats Section */
body.theme-light .stats {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

body.theme-light .stats h3 {
    color: #0891b2;
}

body.theme-light .stats p {
    color: #cbd5e1;
}

/* Light - CTA Section */
body.theme-light .cta {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
}

body.theme-light .cta h2 {
    color: #ffffff;
}

body.theme-light .cta p {
    color: rgba(255, 255, 255, 0.9);
}

body.theme-light .cta .btn-primary,
body.theme-light .cta a.btn-primary {
    background-color: #ffffff;
    color: #0891b2 !important;
}

body.theme-light .cta .btn-primary:hover,
body.theme-light .cta a.btn-primary:hover {
    background-color: #f1f5f9;
    color: #0e7490 !important;
}

/* Light - Footer (keep dark for contrast) */
body.theme-light footer {
    background-color: #0f172a;
}

body.theme-light .footer-brand p {
    color: #94a3b8;
}

body.theme-light .footer-links h4 {
    color: #ffffff;
}

body.theme-light .footer-links ul li a {
    color: #94a3b8;
}

body.theme-light .footer-links ul li a:hover {
    color: #0891b2;
}

body.theme-light .footer-bottom {
    border-top-color: #1e293b;
}

body.theme-light .footer-bottom p {
    color: #94a3b8;
}

body.theme-light .footer-legal a {
    color: #94a3b8;
}

body.theme-light .social-links a {
    background-color: #1e293b;
    color: #ffffff;
}

body.theme-light .social-links a:hover {
    background-color: #0891b2;
}

/* Light - Calculator Cards (tools page) */
body.theme-light .calculator-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
}

body.theme-light .calculator-header h3 {
    color: #0f172a;
}

body.theme-light .calculator-header p {
    color: #64748b;
}

body.theme-light .result-box {
    background-color: #f1f5f9;
    border-color: #e2e8f0;
}

/* Light - Blog Cards */
body.theme-light .blog-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
}

body.theme-light .blog-card:hover {
    border-color: #0891b2;
}

body.theme-light .blog-card h3 {
    color: #0f172a;
}

body.theme-light .blog-card p {
    color: #64748b;
}

/* Light - Header stays dark for branding */
body.theme-light header {
    background-color: #0f172a;
}

/* Light - Nav elements in dark header */
body.theme-light .nav-search {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

body.theme-light .nav-search svg {
    stroke: #ffffff;
}

body.theme-light .nav-search:hover {
    background: rgba(8, 145, 178, 0.3);
    border-color: #0891b2;
}

body.theme-light .nav-search:hover svg {
    stroke: #0891b2;
}

body.theme-light .theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

body.theme-light .theme-toggle:hover {
    background: rgba(8, 145, 178, 0.3);
    border-color: #0891b2;
}

/* Light - Book Hero Section (book detail pages) */
body.theme-light .book-hero {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
}

body.theme-light .book-hero h1 {
    color: #0f172a;
}

body.theme-light .book-hero .book-subtitle {
    color: #b45309;
}

body.theme-light .book-hero .book-description {
    color: #475569;
}

body.theme-light .book-hero-info h1 {
    color: #0f172a;
}

body.theme-light .book-feature {
    color: #0891b2;
}

body.theme-light .book-pricing {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
}

body.theme-light .book-pricing .price {
    color: #0891b2;
}

body.theme-light .book-pricing .price-note {
    color: #64748b;
}

body.theme-light .book-badge {
    background-color: #b45309;
    color: #ffffff;
}

body.theme-light .book-badge.badge-available {
    background-color: #0891b2;
    color: #ffffff;
}

body.theme-light .book-badge.badge-coming {
    background-color: #b45309;
    color: #ffffff;
}

/* Dark theme badge variants */
body.theme-dark .book-badge.badge-available {
    background-color: #00d4aa;
    color: #0a1628;
}

body.theme-dark .book-badge.badge-coming {
    background-color: #d4a574;
    color: #0a1628;
}

/* Light - Placeholder elements */
body.theme-light .placeholder-cover {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    border-color: #b45309;
}

body.theme-light .placeholder-cover .book-num {
    color: #b45309;
}

body.theme-light .placeholder-cover .book-title-small {
    color: #0f172a;
}

body.theme-light .placeholder-cover-large {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    border-color: #b45309;
}

body.theme-light .placeholder-cover-large .book-num {
    color: #b45309;
}

body.theme-light .placeholder-cover-large .book-title-display {
    color: #0f172a;
}

/* Light - Chapter List (book detail pages) */
body.theme-light .chapters-section {
    background-color: #f8fafc;
}

body.theme-light .chapter-item {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
}

body.theme-light .chapter-item:hover {
    background-color: #f1f5f9;
    border-color: #0891b2;
}

body.theme-light .chapter-num {
    background-color: #0891b2;
    color: #ffffff;
}

body.theme-light .chapter-title h4 {
    color: #0f172a;
}

body.theme-light .chapter-title p {
    color: #64748b;
}

/* Light - Feature Icon */
body.theme-light .feature-icon {
    background: linear-gradient(135deg, #0891b2, #0e7490);
}

/* Light - Author Avatar */
body.theme-light .author-avatar {
    background: linear-gradient(135deg, #0891b2, #0e7490);
}

/* Light - Contact Icon */
body.theme-light .contact-icon {
    background-color: #0891b2;
    color: #ffffff;
}

/* ===================== */
/* DARK THEME ADDITIONS  */
/* ===================== */

/* Dark - Nav elements */
body.theme-dark .nav-search {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

body.theme-dark .nav-search svg {
    stroke: #ffffff;
}

body.theme-dark .nav-search:hover {
    background: rgba(0, 212, 170, 0.2);
    border-color: #00d4aa;
}

body.theme-dark .nav-search:hover svg {
    stroke: #00d4aa;
}

body.theme-dark .theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

body.theme-dark .theme-toggle:hover {
    background: rgba(0, 212, 170, 0.2);
    border-color: #00d4aa;
}

/* Dark - Book Hero Section */
body.theme-dark .book-hero {
    background: linear-gradient(135deg, #0a1628 0%, #1a2d4a 100%);
}

body.theme-dark .book-hero h1 {
    color: #ffffff;
}

body.theme-dark .book-hero .book-subtitle {
    color: #d4a574;
}

body.theme-dark .book-hero .book-description {
    color: #b0b8c4;
}

body.theme-dark .book-feature {
    color: #00d4aa;
}

body.theme-dark .book-pricing {
    background-color: #152238;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.theme-dark .book-pricing .price {
    color: #00d4aa;
}

body.theme-dark .book-pricing .price-note {
    color: #b0b8c4;
}

body.theme-dark .book-badge {
    background-color: #d4a574;
    color: #0a1628;
}

/* Dark - Placeholder elements */
body.theme-dark .placeholder-cover {
    background: linear-gradient(135deg, #0a1628, #1a2d4a);
    border-color: #d4a574;
}

body.theme-dark .placeholder-cover .book-num {
    color: #d4a574;
}

body.theme-dark .placeholder-cover .book-title-small {
    color: #ffffff;
}

body.theme-dark .placeholder-cover-large {
    background: linear-gradient(135deg, #152238, #0a1628);
    border-color: #d4a574;
}

body.theme-dark .placeholder-cover-large .book-num {
    color: #d4a574;
}

body.theme-dark .placeholder-cover-large .book-title-display {
    color: #ffffff;
}

/* Dark - Chapter List */
body.theme-dark .chapters-section {
    background-color: #0a1628;
}

body.theme-dark .chapter-item {
    background-color: #152238;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.theme-dark .chapter-item:hover {
    background-color: #1a2d4a;
    border-color: rgba(0, 212, 170, 0.4);
}

body.theme-dark .chapter-num {
    background-color: #0a1628;
    color: #00d4aa;
}

body.theme-dark .chapter-title h4 {
    color: #ffffff;
}

body.theme-dark .chapter-title p {
    color: #b0b8c4;
}

/* Dark - Feature Icon */
body.theme-dark .feature-icon {
    background: linear-gradient(135deg, #00d4aa, #00b894);
}

/* Dark - Author Avatar */
body.theme-dark .author-avatar {
    background: linear-gradient(135deg, #00d4aa, #00b894);
}

/* Dark - Contact Icon */
body.theme-dark .contact-icon {
    background-color: #00d4aa;
    color: #0a1628;
}

/* ===================== */
/* MOBILE MENU THEMING   */
/* ===================== */

/* Dark - Mobile Menu */
body.theme-dark nav ul {
    background-color: #0a1628;
}

body.theme-dark .mobile-menu-toggle span {
    background-color: #ffffff;
}

/* Light - Mobile Menu (header stays dark) */
body.theme-light nav ul {
    background-color: #0f172a;
}

body.theme-light .mobile-menu-toggle span {
    background-color: #ffffff;
}

/* ============================= */
/* COMPLETE THEME COLOR SUMMARY  */
/* ============================= */
/*
| Element                | DARK THEME          | LIGHT THEME         |
|------------------------|---------------------|---------------------|
| Body Background        | #0a1628 (navy)      | #f8fafc (off-white) |
| Body Text              | #e0e6ed             | #334155             |
| Headings               | #ffffff             | #0f172a             |
| Paragraphs             | #b0b8c4             | #475569             |
| Links                  | #00d4aa (teal)      | #0891b2 (cyan)      |
| Links Hover            | #00f4c4             | #0e7490             |
| Primary Accent         | #00d4aa (teal)      | #0891b2 (cyan)      |
| Secondary Accent       | #d4a574 (gold)      | #b45309 (amber)     |
| Card Background        | #152238             | #ffffff             |
| Card Border            | rgba(255,255,255,0.1) | #e2e8f0           |
| Card Hover Border      | rgba(0,212,170,0.4) | #0891b2             |
| Section Alt BG         | #0d1f35             | #f1f5f9             |
| Form Input BG          | #0a1628             | #f8fafc             |
| Form Input Border      | rgba(255,255,255,0.2) | #e2e8f0           |
| Form Focus Border      | #00d4aa             | #0891b2             |
| Button Primary BG      | #00d4aa             | #0891b2             |
| Button Primary Text    | #0a1628             | #ffffff             |
| Button Secondary       | transparent/#d4a574 | transparent/#b45309 |
| Footer BG              | #050d18             | #0f172a             |
| Muted Text             | #8892a0             | #64748b             |
*/
