/* Divine Temple - Main Stylesheet */
/* Extracted from inline styles for better organization and performance */

:root {
    --bg-primary: #0A0E27;
    --accent-gold: #F59E0B;
    --accent-purple: #8B5CF6;
    --text-primary: #FFFFFF;
    --text-secondary: #A1A1AA;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --background-dark: #0A0E27;
    --background-gradient: #1a1f3a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0A0E27 0%, #1a1f3a 50%, #0A0E27 100%);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

header.sticky {
    background: rgba(10, 14, 39, 0.98);
    backdrop-filter: blur(30px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

header.hidden {
    transform: translateY(-100%);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    display: inline-block;
}

.nav-links a:hover {
    color: var(--accent-gold);
}

.nav-item.active {
    color: var(--accent-gold);
}

.nav-item.active::after {
    width: 100%;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width 0.3s ease;
}

.nav-item:hover::after {
    width: 100%;
}

/* Premium Badge */
.premium-badge {
    font-size: 0.8em;
    margin-right: 0.25rem;
}

.premium-feature {
    color: var(--accent-gold) !important;
    font-weight: 600;
}

/* Dropdown Menus */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.dropdown-arrow {
    font-size: 0.7em;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.5rem;
    background: rgba(10, 14, 39, 0.98);
    backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.75rem 0;
    min-width: 200px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-gold);
    padding-left: 2rem;
}

/* Navigation Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-login {
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    background: transparent;
    border: 1px solid var(--glass-border);
}

.btn-login:hover {
    background: var(--glass-bg);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.btn-login.logged-in {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-avatar {
    font-size: 1.2em;
}

.cta-nav {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-gold));
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.cta-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.6);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--accent-gold);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0A0E27 0%, #1a1f3a 50%, #0A0E27 100%);
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="stars" x="0" y="0" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23F59E0B" opacity="0.3"/><circle cx="75" cy="75" r="0.5" fill="%23A78BFA" opacity="0.4"/></pattern></defs><rect width="100%" height="100%" fill="url(%23stars)"/></svg>') repeat;
    opacity: 0.1;
    animation: starfield 20s linear infinite;
}

@keyframes starfield {
    from { transform: translateY(0); }
    to { transform: translateY(-100px); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    z-index: 2;
    position: relative;
}

.hero-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-purple));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    from { filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.3)); }
    to { filter: drop-shadow(0 0 20px rgba(245, 158, 11, 0.6)); }
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-gold), #FBBF24);
    color: var(--background-dark);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--glass-bg);
    border-color: var(--accent-gold);
    transform: translateY(-3px);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-book {
    max-width: 400px;
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

.hero-book:hover {
    transform: scale(1.05) rotate(5deg);
}

/* Product Showcase Section */
.product-showcase {
    padding: 6rem 0;
    background: linear-gradient(180deg, transparent 0%, rgba(139, 92, 246, 0.1) 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-purple));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.product-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.1), transparent);
    transition: all 0.8s ease;
}

.product-card:hover::before {
    left: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.3);
    border-color: var(--accent-gold);
}

.product-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.product-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--accent-gold);
}

.product-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin: 1rem 0;
}

.product-features {
    list-style: none;
    margin: 1.5rem 0;
    text-align: left;
}

.product-features li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 2rem;
    color: var(--text-secondary);
}

.product-features li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-weight: bold;
}

/* Author Section */
.author-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(10, 14, 39, 0.8) 100%);
}

.author-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
}

.author-image {
    position: relative;
}

.author-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.author-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-purple));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.author-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* Logo Description Section */
.logo-section {
    padding: 6rem 0;
    background: var(--bg-primary);
}

.logo-showcase {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
}

.logo-display {
    text-align: center;
}

.logo-display img {
    max-width: 300px;
    width: 100%;
    filter: drop-shadow(0 10px 30px rgba(245, 158, 11, 0.3));
    animation: logoGlow 4s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    from { filter: drop-shadow(0 10px 30px rgba(245, 158, 11, 0.3)); }
    to { filter: drop-shadow(0 20px 50px rgba(245, 158, 11, 0.6)); }
}

/* Email Capture Section */
.email-capture {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-gold));
    text-align: center;
}

.email-capture h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
}

.email-capture p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Mailchimp Form Styling */
#mc_embed_signup {
    background: transparent !important;
    max-width: 600px;
    margin: 0 auto;
    clear: left;
}

#mc_embed_signup form {
    padding: 0 !important;
    text-align: center;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

#mc_embed_signup input[type="email"] {
    flex: 1;
    min-width: 250px;
    padding: 1rem 1.5rem !important;
    border: none !important;
    border-radius: 50px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    font-size: 1rem !important;
    backdrop-filter: blur(10px);
}

#mc_embed_signup input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
}

#mc_embed_signup input[type="email"]:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15) !important;
}

#mc_embed_signup .response {
    color: white;
    margin: 1rem auto;
    padding: 1rem;
    border-radius: 10px;
    width: 100%;
    max-width: 500px;
}

#mc_embed_signup #mce-success-response {
    background: rgba(34, 197, 94, 0.3);
    border: 1px solid #22c55e;
}

#mc_embed_signup #mce-error-response {
    background: rgba(239, 68, 68, 0.3);
    border: 1px solid #ef4444;
}

/* Footer */
footer {
    background: var(--bg-primary);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-family: 'Playfair Display', serif;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

/* Sacred Mission Section */
.sacred-mission {
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
}

.mission-header {
    text-align: center;
    margin-bottom: 4rem;
}

.mission-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-purple));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.mission-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.mission-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.mission-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    padding: 3rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mission-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.1), transparent);
    transition: all 0.8s ease;
}

.mission-card:hover::before {
    left: 100%;
}

.mission-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(245, 158, 11, 0.3);
    border-color: var(--accent-gold);
}

.mission-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.mission-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
}

.mission-features {
    list-style: none;
    margin: 1.5rem 0;
}

.mission-features li {
    padding: 0.8rem 0;
    position: relative;
    padding-left: 2.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.mission-features li strong {
    color: var(--text-primary);
    font-weight: 600;
}

.mission-features li em {
    color: var(--accent-purple);
    font-style: italic;
}

.core-principles {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(245, 158, 11, 0.15));
    border-left: 5px solid var(--accent-gold);
    border-radius: 20px;
    padding: 3rem;
    margin-top: 3rem;
}

.core-principles h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--accent-gold);
    margin-bottom: 2rem;
    text-align: center;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.principle-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.principle-item strong {
    color: var(--accent-gold);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.5rem;
}

.principle-item br + * {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 14, 39, 0.98);
        backdrop-filter: blur(30px);
        padding: 2rem;
        gap: 1.5rem;
        border-top: 1px solid var(--glass-border);
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-actions {
        display: none;
    }

    .nav-actions.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 14, 39, 0.98);
        backdrop-filter: blur(30px);
        padding: 1rem 2rem 2rem;
        gap: 1rem;
        border-top: 1px solid var(--glass-border);
        margin-top: 0;
    }

    /* Mobile dropdown positioning */
    .dropdown-menu {
        position: relative;
        margin-top: 0.5rem;
        margin-left: 1rem;
        width: calc(100% - 1rem);
    }

    .dropdown-menu.active {
        position: relative;
        opacity: 1;
        visibility: visible;
    }

    .dropdown-arrow {
        margin-left: auto;
    }

    .dropdown-toggle {
        width: 100%;
        justify-content: space-between;
    }

    nav {
        padding: 1rem;
    }

    .mission-cards {
        grid-template-columns: 1fr;
    }

    .mission-card {
        padding: 2rem;
    }

    .principles-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .author-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .logo-showcase {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    #mc_embed_signup form {
        flex-direction: column;
    }

    #mc_embed_signup input[type="email"] {
        width: 100%;
    }
}


/* Screen reader only utility class */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* Skip link - visible on focus */
.skip-link:focus {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 9999;
    padding: 10px 20px;
    background: var(--accent-gold, #FFD700);
    color: var(--bg-dark, #0A0E27);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
