/* TokBrain Dark Theme - TikTok/Instagram Inspired */

:root {
    /* Brand Colors */
    --primary: #FF2D95;
    --accent: #00F2EA;
    --secondary: #833AB4;
    --background: #121212;
    --text: #F5F5F5;
    --text-muted: #B0B0B0;
    --surface: #1E1E1E;
    --surface-alt: #2A2A2A;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #FF2D95 0%, #00F2EA 100%);
    --gradient-secondary: linear-gradient(135deg, #833AB4 0%, #FF2D95 100%);
    --gradient-accent: linear-gradient(135deg, #00F2EA 0%, #FF2D95 100%);
}

/* Global Styles */
* {
    box-sizing: border-box;
}

body.dark-theme {
    background-color: var(--background);
    color: var(--text);
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 60px 0 0 0; /* Further reduced top padding for fixed header */
    padding-inline: clamp(1rem, 2vw, 2rem);
    overflow-x: hidden;
}

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

/* Navigation */
.navbar-dark {
    background: rgba(18, 18, 18, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0;
    transition: all 0.3s ease;
    transform: translateY(0);
}

.navbar {
    background: rgba(18, 18, 18, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-dark.navbar-hidden {
    transform: translateY(-100%);
}

.navbar-dark.navbar-visible {
    transform: translateY(0);
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 1.5rem;
}

.brand-logo {
    width: 40px;
    height: 40px;
    margin-right: 12px;
}

.brand-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 8px 16px;
    border-radius: 8px;
}

.nav-link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.btn-gradient-nav {
    background: var(--gradient-primary);
    padding: 10px 20px !important;
    border-radius: 25px;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.btn-gradient-nav:hover {
    transform: translateY(-2px);
    color: white !important;
}

/* Hero Section */
.hero-dark {
    min-height: 100vh;
    background: var(--background);
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(255, 45, 149, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(0, 242, 234, 0.1) 0%, transparent 50%);
    z-index: -1;
}

.hero-content {
    z-index: 2;
    position: relative;
}

.logo-container {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

/* Logo removed */

.brand-title {
    font-size: 4rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    line-height: 1.1;
}

.hero-tagline {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-weight: 300;
    line-height: 1.4;
}

.btn-gradient {
    background: var(--gradient-primary);
    color: white;
    padding: 18px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 45, 149, 0.3);
}

.btn-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 45, 149, 0.4);
    color: white;
}

/* Hero Visual */
.hero-visual-dark {
    position: relative;
    height: 500px;
}

.floating-elements {
    position: relative;
    height: 100%;
}

.floating-card {
    position: absolute;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(1) {
    top: 20%;
    right: 20%;
    animation-delay: 0s;
}

.floating-card:nth-child(2) {
    top: 50%;
    right: 10%;
    animation-delay: 2s;
}

.floating-card:nth-child(3) {
    bottom: 20%;
    right: 30%;
    animation-delay: 4s;
}

.floating-card i {
    font-size: 1.5rem;
    color: var(--primary);
}

.floating-card span {
    font-weight: 600;
    color: var(--text);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Quote Section */
.quote-section {
    padding: 40px 0 50px;
    background: var(--surface);
    position: relative;
}

.quote-header {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 30px;
    line-height: 1.2;
}

.quote-text {
    font-size: 1.3rem;
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* Carousel Section */
.carousel-section {
    padding: 60px 0;
    background: var(--background);
    overflow: hidden;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 60px;
}

.viral-carousel {
    overflow: hidden;
    padding: 20px 0;
}

.carousel-track {
    display: flex;
    gap: 30px;
    animation: scroll 20s linear infinite;
}

.viral-card {
    min-width: 250px;
    background: var(--surface);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.viral-card:hover {
    transform: translateY(-10px);
}

.video-thumbnail {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 15px;
    aspect-ratio: 9/16;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 45, 149, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.video-info h4 {
    color: var(--text);
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.stats {
    display: flex;
    gap: 15px;
}

.stats span {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.stats i {
    color: var(--primary);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Main content areas - general spacing fixes */
main {
    min-height: calc(100vh - 120px); /* Account for header and footer */
    padding: 10px 0;
}

/* Page content containers */
.page-content,
.generator-container,
.hook-generator-container,
.sales-container,
.pricing-container,
.quiz-container {
    padding: 40px 0;
    margin-top: 0;
}

/* Form containers and content boxes */
.form-container,
.results-container,
.content-box {
    margin-top: 20px;
}

/* Ensure text content has proper spacing from header */
h1, h2, h3 {
    margin-top: 0;
    padding-top: 10px;
}

/* Homepage sections */
.hero-section,
.hero-dark {
    padding: 30px 0 40px 0; /* Comfortable spacing from header */
}

.quote-section,
.stats-section,
.viral-videos-section,
.niche-what-section,
.final-cta-section {
    padding: 60px 0;
}

/* Quiz Section */
.quiz-section {
    padding: 40px 0;
    background: var(--surface);
}

.quiz-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
}

.quiz-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-weight: 300;
}

.btn-outline-gradient {
    border: 2px solid transparent;
    background: linear-gradient(var(--surface), var(--surface)) padding-box, 
                var(--gradient-primary) border-box;
    color: var(--primary);
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-outline-gradient:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-2px);
}

/* Niche Section */
.niche-section {
    padding: 40px 0 60px;
    background: var(--surface);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.niche-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
}

.niche-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 60px;
    font-weight: 300;
}

.niche-carousel-container {
    overflow: hidden;
    padding: 20px 0;
}

.niche-carousel {
    position: relative;
}

.niche-track {
    display: flex;
    gap: 40px;
    animation: nicheScroll 30s linear infinite;
    width: max-content;
}

.niche-card {
    min-width: 220px;
    background: var(--background);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.niche-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.niche-card:hover::before {
    opacity: 0.1;
}

.niche-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 45, 149, 0.3);
    box-shadow: 0 20px 40px rgba(255, 45, 149, 0.2);
}

.niche-icon {
    position: relative;
    z-index: 2;
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: transform 0.3s ease;
}

.niche-card:hover .niche-icon {
    transform: scale(1.1);
}

.niche-icon i {
    font-size: 2rem;
    color: white;
}

.niche-card h4 {
    position: relative;
    z-index: 2;
    color: var(--text);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.niche-card p {
    position: relative;
    z-index: 2;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    transition: color 0.3s ease;
}

.niche-card:hover h4,
.niche-card:hover p {
    color: var(--text);
}

@keyframes nicheScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Pause animation on hover */
.niche-carousel:hover .niche-track {
    animation-play-state: paused;
}

/* Niche image styling */
.niche-image {
    background: transparent !important;
    padding: 0;
    overflow: hidden;
}

.niche-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Large niche card styling - Instagram post dimensions */
.fitness-large,
.food-large,
.comedy-large,
.gaming-large,
.business-large,
.lifestyle-large,
.fashion-large,
.beauty-large,
.parenting-large {
    min-width: 300px;
    height: auto;
    padding: 0;
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
}

.niche-image-large {
    width: 300px;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
    transition: transform 0.3s ease;
}

.niche-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 20px;
}

.food-large .niche-image-large img {
    object-position: center 15%;
}

.gaming-large .niche-image-large img {
    object-position: center 30%;
}

.business-large .niche-image-large img {
    object-position: center 25%;
}

.lifestyle-large .niche-image-large img {
    object-position: center 25%;
}

.fashion-large .niche-image-large img {
    object-position: center 25%;
}

.beauty-large .niche-image-large img {
    object-position: center 15%;
}

.parenting-large .niche-image-large img {
    object-position: center 30%;
}

.fitness-large:hover .niche-image-large,
.food-large:hover .niche-image-large,
.comedy-large:hover .niche-image-large,
.gaming-large:hover .niche-image-large,
.business-large:hover .niche-image-large,
.lifestyle-large:hover .niche-image-large,
.fashion-large:hover .niche-image-large,
.beauty-large:hover .niche-image-large,
.parenting-large:hover .niche-image-large {
    transform: scale(1.05);
}

.fitness-large .niche-content,
.food-large .niche-content,
.comedy-large .niche-content,
.gaming-large .niche-content,
.business-large .niche-content,
.lifestyle-large .niche-content,
.fashion-large .niche-content,
.beauty-large .niche-content,
.parenting-large .niche-content {
    padding: 0 10px;
    text-align: center;
}

.fitness-large .niche-content h4,
.food-large .niche-content h4,
.comedy-large .niche-content h4,
.gaming-large .niche-content h4,
.business-large .niche-content h4,
.lifestyle-large .niche-content h4,
.fashion-large .niche-content h4,
.beauty-large .niche-content h4,
.parenting-large .niche-content h4 {
    color: var(--text);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.fitness-large .niche-content p,
.food-large .niche-content p,
.comedy-large .niche-content p,
.gaming-large .niche-content p,
.business-large .niche-content p,
.lifestyle-large .niche-content p,
.fashion-large .niche-content p,
.beauty-large .niche-content p,
.parenting-large .niche-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.fitness-large:hover .niche-content h4,
.fitness-large:hover .niche-content p,
.food-large:hover .niche-content h4,
.food-large:hover .niche-content p,
.comedy-large:hover .niche-content h4,
.comedy-large:hover .niche-content p,
.gaming-large:hover .niche-content h4,
.gaming-large:hover .niche-content p,
.business-large:hover .niche-content h4,
.business-large:hover .niche-content p,
.lifestyle-large:hover .niche-content h4,
.lifestyle-large:hover .niche-content p,
.fashion-large:hover .niche-content h4,
.fashion-large:hover .niche-content p,
.beauty-large:hover .niche-content h4,
.beauty-large:hover .niche-content p,
.parenting-large:hover .niche-content h4,
.parenting-large:hover .niche-content p {
    color: var(--primary);
}

/* Final CTA */
.final-cta {
    padding: 60px 0;
    background: var(--background);
    position: relative;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(131, 58, 180, 0.1) 0%, transparent 70%);
    z-index: -1;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 50px;
    line-height: 1.3;
}

.btn-gradient-large {
    background: var(--gradient-primary);
    color: white;
    padding: 20px 50px;
    border: none;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 15px 40px rgba(255, 45, 149, 0.3);
}

.btn-gradient-large:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 60px rgba(255, 45, 149, 0.4);
    color: white;
}

/* Footer */
.footer-dark {
    background: #000000;
    padding: 40px 0; /* Reduced footer padding */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto; /* Push footer to bottom */
}

.footer-brand {
    display: flex;
    align-items: center;
}

.footer-logo {
    width: 50px;
    height: 50px;
    margin-right: 15px;
}

.footer-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--text);
}

.social-icons {
    margin-top: 15px;
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: var(--surface);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-2px);
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--accent);
    text-decoration: none;
}

.footer-divider {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-legal {
    margin-top: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .brand-title {
        font-size: 2.5rem;
    }
    
    .hero-tagline {
        font-size: 1.2rem;
    }
    
    .quote-header {
        font-size: 2rem;
    }
    
    .quote-text {
        font-size: 1.1rem;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
    
    .carousel-track {
        gap: 20px;
    }
    
    .viral-card {
        min-width: 200px;
    }
    
    .floating-card {
        position: static;
        margin: 10px 0;
    }
    
    .navbar-nav {
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
    }
}

/* Utility Classes */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.min-vh-100 {
    min-height: 100vh;
}

.bg-gradient {
    background: var(--gradient-primary);
}

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1050;
    max-width: 400px;
}

.alert {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
    border-radius: 10px;
    backdrop-filter: blur(20px);
}

.alert-danger {
    border-color: rgba(255, 45, 149, 0.3);
    background: rgba(255, 45, 149, 0.1);
}

.alert-warning {
    border-color: rgba(255, 193, 7, 0.3);
    background: rgba(255, 193, 7, 0.1);
}

.alert-success {
    border-color: rgba(0, 242, 234, 0.3);
    background: rgba(0, 242, 234, 0.1);
}