/*
   Creator Masterclass - Premium Template
   Theme: Customizable Hotmart Style
*/

:root {
    /* Core Colors - Opsellio logo palette (customizable via product template / JS) */
    --primary-color: #4A90E2;
    --primary-dark: #3A78C9;
    --primary-light: #6BA3EB;
    --secondary-color: #110840;
    --accent-color: #66D9E8;
    --footer-bg: #110840;

    /* Neutral Colors */
    --bg-color: #F8FAFC;
    --surface-color: #FFFFFF;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --border-color: #E2E8F0;

    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
}

/* Dark Mode Support (Optional base, can be toggled) */
[data-theme="dark"] {
    --bg-color: #0F172A;
    --surface-color: #1E293B;
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --border-color: #334155;
    --secondary-color: #F8FAFC; /* Inverted for contrast */
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

/* Utility Classes */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 5rem 0;
}

.text-center {
    text-align: center;
}

.highlight {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: var(--primary-color);
    opacity: 0.2;
    z-index: -1;
    border-radius: 4px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(0,0,0,0.1);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
}

/* Theme Customizer */
.theme-customizer {
    position: fixed;
    top: 20%;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-start;
}

.theme-toggle {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-right: none;
    padding: 0.75rem;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    cursor: pointer;
    box-shadow: -2px 2px 10px rgba(0,0,0,0.05);
    font-size: 1.25rem;
    color: var(--text-main);
}

.theme-panel {
    background: var(--surface-color);
    padding: 1.5rem;
    border-radius: 0 0 0 var(--radius-md);
    box-shadow: -5px 5px 20px rgba(0,0,0,0.1);
    width: 250px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

.theme-customizer.active .theme-panel {
    transform: translateX(0);
}

.color-option {
    margin-bottom: 1rem;
}

.color-option label {
    display: block;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    color: var(--text-muted);
}

.color-option input[type="color"] {
    width: 100%;
    height: 40px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    background: var(--secondary-color);
    color: var(--bg-color);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

/* Header */
.header {
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--primary-color);
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav a:not(.btn) {
    font-weight: 500;
    color: var(--text-muted);
}

.nav a:not(.btn):hover {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
}

/* Hero Section */
.hero {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 5rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
    color: var(--secondary-color);
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 500px;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: rgba(255, 69, 0, 0.1);
    color: var(--primary-color);
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.trust-badge i {
    color: #F59E0B;
}

.hero-media {
    position: relative;
}

.video-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    aspect-ratio: 16/9;
}

.video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-wrapper:hover .video-thumb {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.play-button i {
    font-size: 3rem;
    color: white;
}

.play-button:hover {
    background: var(--primary-color);
    transform: translate(-50%, -50%) scale(1.1);
}

.floating-card {
    position: absolute;
    background: var(--surface-color);
    padding: 1rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 3;
    animation: float 6s ease-in-out infinite;
}

.card-1 {
    top: -20px;
    right: -20px;
}

.card-2 {
    bottom: -20px;
    left: -20px;
    animation-delay: 2s;
}

.floating-card i {
    font-size: 1.5rem;
    color: var(--primary-color);
    background: rgba(255, 69, 0, 0.1);
    padding: 0.5rem;
    border-radius: 50%;
}

.floating-card strong {
    display: block;
    font-size: 1.125rem;
    color: var(--text-main);
}

.floating-card span {
    font-size: 0.875rem;
    color: var(--text-muted);
}

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

.hero-bg-glow {
    position: absolute;
    top: 50%;
    right: 0;
    width: 500px;
    height: 500px;
    background: var(--primary-color);
    filter: blur(150px);
    opacity: 0.1;
    z-index: -1;
    border-radius: 50%;
    transform: translate(30%, -50%);
}

/* Section Headers */
.section-header {
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-muted);
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(255, 69, 0, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.icon-box i {
    font-size: 2rem;
    color: var(--primary-color);
}

.benefit-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.benefit-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Modules Section */
.modules {
    background-color: var(--surface-color);
}

.modules .row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-color);
    transition: all 0.3s ease;
}

.accordion-item.active {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.accordion-header {
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    background: var(--surface-color);
}

.module-number {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.125rem;
    opacity: 0.5;
}

.accordion-header h4 {
    flex: 1;
    font-size: 1.125rem;
    color: var(--text-main);
}

.accordion-header i {
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.accordion-body {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: var(--surface-color);
}

.accordion-item.active .accordion-body {
    padding: 1.25rem;
    padding-top: 0;
    max-height: 200px; /* Adjust based on content */
}

.accordion-body ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.accordion-body li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.accordion-body li i {
    color: #10B981; /* Green for checkmarks */
}

.modules-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.floating-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    padding: 0.75rem 1.25rem;
    border-radius: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--secondary-color);
    box-shadow: var(--shadow-lg);
}

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

/* About Section */
.about-wrapper {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.experience-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 1.5rem;
    border-top-right-radius: var(--radius-md);
}

.experience-badge strong {
    display: block;
    font-size: 2rem;
    line-height: 1;
}

.experience-badge span {
    font-size: 0.875rem;
    opacity: 0.9;
}

.about-content .subtitle {
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.875rem;
    display: block;
    margin-bottom: 0.5rem;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.stats-row {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.stat strong {
    display: block;
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.stat span {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.testimonial-card .stars {
    color: #F59E0B;
    margin-bottom: 1rem;
}

.testimonial-card p {
    color: var(--text-main);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-card .author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-card .author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-card .author strong {
    display: block;
    font-size: 1rem;
    color: var(--secondary-color);
}

.testimonial-card .author span {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Pricing */
.pricing {
    background: linear-gradient(180deg, var(--bg-color) 0%, #eef2ff 100%);
}

.pricing-card {
    background: var(--surface-color);
    max-width: 500px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 1px solid var(--border-color);
    position: relative;
}

.pricing-header {
    background: var(--secondary-color);
    padding: 3rem 2rem;
    text-align: center;
    color: white;
    position: relative;
}

.offer-tag {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    position: absolute;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
}

.pricing-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
}

.pricing-header p {
    opacity: 0.8;
}

.pricing-body {
    padding: 3rem 2rem;
    text-align: center;
}

.price {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.currency {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.amount {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
}

.cents {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.installments {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

.features-list {
    text-align: left;
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-main);
}

.features-list li i {
    color: #10B981;
    font-size: 1.25rem;
}

.guarantee {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* FAQ */
.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--secondary-color);
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    color: var(--text-muted);
}

.faq-item.active .faq-answer {
    padding-bottom: 1.5rem;
    max-height: 200px;
}

/* Footer - #110840 by default; creator custom secondary when saved (see layout --footer-bg) */
.footer {
    background-color: var(--footer-bg, #110840);
    color: #ffffff;
    padding: 3.5rem 0 1.75rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.footer .logo {
    color: #ffffff;
}

.footer .logo span {
    color: var(--accent-color);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.86);
    margin: 1rem 0 1.5rem;
    max-width: 28rem;
    line-height: 1.65;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-links a {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
}

.footer-links,
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer h4 {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: #ffffff;
    letter-spacing: 0.02em;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9375rem;
}

.footer a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.875rem;
}

.footer-bottom p {
    margin: 0;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-cta {
        align-items: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .modules .row {
        grid-template-columns: 1fr;
    }

    .col-image {
        order: -1;
    }

    .about-wrapper {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .nav {
        display: none; /* Mobile menu implementation needed if required */
    }

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