/* Product Detail Page Styles */

:root {
    --bg-primary: #0a0a0a;
    --text-primary: #ffffff;
    --text-secondary: #c0c0c0;
    --accent-color: #feaf50;
    --border-subtle: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.12);
    --content-max-width: 1280px;
}

/* Clean Reset */
html, body {
    overflow-x: hidden;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.6;
}

/* Add padding for fixed header */
body {
    padding-top: 80px;
}

/* Seção 1: Manifesto do Conteúdo (Hero) */
.product-manifesto-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, 
        rgba(10, 10, 10, 0.9) 0%, 
        rgba(20, 20, 20, 0.8) 50%, 
        rgba(10, 10, 10, 0.9) 100%
    );
    position: relative;
    overflow: hidden;
}

.product-manifesto-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, 
        rgba(254, 175, 80, 0.1) 0%, 
        transparent 60%
    );
    pointer-events: none;
}

.product-manifesto-inner {
    z-index: 2;
    position: relative;
    max-width: 800px;
    padding: 0 24px;
}

.product-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(254, 175, 80, 0.1);
    border: 1px solid rgba(254, 175, 80, 0.3);
    border-radius: 24px;
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-manifesto-section h1 {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--text-primary);
}

.product-slogan {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.product-author {
    font-size: 1.1rem;
    color: var(--accent-color);
    margin-bottom: 3rem;
    font-style: italic;
}

.product-cta-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--accent-color) 0%, #e69a3f 100%);
    color: var(--bg-primary);
    text-decoration: none;
    border-radius: 32px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.product-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(254, 175, 80, 0.4);
    color: var(--bg-primary);
    text-decoration: none;
}

/* Seção 2: Conversa com o Curador */
.product-curator-section {
    padding: 8rem 0;
    background: linear-gradient(135deg, 
        rgba(15, 15, 15, 0.95) 0%, 
        rgba(5, 5, 5, 0.9) 100%
    );
}

.product-curator-inner {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.product-curator-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    align-items: start;
}

.curators-images {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 300px;
}

/* When there are two instructors, show them side by side */
.curators-images:has(.curator-image:nth-child(2)) {
    flex-direction: row;
    gap: 1rem;
    width: 320px;
}

.curators-images:has(.curator-image:nth-child(2)) .curator-image {
    width: 150px;
    height: 150px;
}

.curator-image {
    width: 300px;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    position: relative;
}

.curator-image img {
    width: 100%;
    flex-grow: 1;
    object-fit: cover;
}

.curator-placeholder {
    width: 100%;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 4rem;
}

.curator-name {
    background: linear-gradient(135deg, var(--accent-color) 0%, #e69a3f 100%);
    color: var(--bg-primary);
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    border-radius: 0 0 20px 20px;
    margin-top: auto;
}

/* Adjust name styling for dual instructor layout */
.curators-images:has(.curator-image:nth-child(2)) .curator-name {
    font-size: 0.7rem;
    padding: 0.4rem 0.5rem;
}

.curator-badge {
    background: linear-gradient(135deg, var(--accent-color) 0%, #e69a3f 100%);
    color: var(--bg-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 4px 12px rgba(254, 175, 80, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: fit-content;
}

.curator-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(254, 175, 80, 0.4);
}

.badge-icon {
    transition: transform 0.3s ease;
}

.curator-badge.expanded .badge-icon {
    transform: rotate(180deg);
}

.instructor-bio {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.instructor-bio h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 2rem;
}

.instructor-section {
    margin-bottom: 2.5rem;
}

.instructor-section:last-child {
    margin-bottom: 0;
}

.instructor-section h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff !important;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(254, 175, 80, 0.08);
    border: 1px solid rgba(254, 175, 80, 0.2);
    border-radius: 8px;
    display: inline-block;
    min-height: auto;
    line-height: 1.4;
    overflow: visible;
}

.instructor-section h5 i {
    color: var(--accent-color);
    margin-right: 0.5rem;
}

.bio-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bio-list li {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.bio-list li::before {
    content: '•';
    color: var(--accent-color);
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

.curator-letter h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.curator-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.curator-content p {
    margin-bottom: 1.5rem;
}

/* Seção 3: Habilidades */
.product-skills-section {
    padding: 8rem 0;
    background: var(--bg-primary);
}

.product-skills-inner {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.product-skills-section h2 {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--text-primary);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.skill-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-4px);
    border-color: rgba(254, 175, 80, 0.3);
}

.skill-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #e69a3f 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.skill-icon i {
    color: var(--bg-primary);
    font-size: 1.2rem;
}

.skill-content h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.skill-content p {
    color: var(--text-secondary);
    margin: 0;
}

/* Seção 4: Público-Alvo */
.product-audience-section {
    padding: 8rem 0;
    background: linear-gradient(135deg, 
        rgba(15, 15, 15, 0.95) 0%, 
        rgba(5, 5, 5, 0.9) 100%
    );
}

.product-audience-inner {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.product-audience-section h2 {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--text-primary);
}

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

.audience-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.audience-item:hover {
    transform: translateY(-4px);
    border-color: rgba(254, 175, 80, 0.3);
}

.audience-icon {
    width: 48px;
    height: 48px;
    background: rgba(254, 175, 80, 0.1);
    border: 1px solid rgba(254, 175, 80, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.audience-icon i {
    color: var(--accent-color);
    font-size: 1.5rem;
}

.audience-content h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.audience-content p {
    color: var(--text-secondary);
    margin: 0;
}

/* Seção 5: Módulos */
.product-modules-section {
    padding: 8rem 0;
    background: var(--bg-primary);
}

.product-modules-inner {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.product-modules-section h2 {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--text-primary);
}

.modules-grid {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1rem 0 2rem 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(254, 175, 80, 0.3) transparent;
}

.modules-grid::-webkit-scrollbar {
    height: 6px;
}

.modules-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.modules-grid::-webkit-scrollbar-thumb {
    background: rgba(254, 175, 80, 0.3);
    border-radius: 3px;
}

.modules-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(254, 175, 80, 0.5);
}

.module-box {
    padding: 2.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    transition: all 0.3s ease;
    min-width: 350px;
    max-width: 350px;
    flex-shrink: 0;
}

.module-box:hover {
    transform: translateY(-6px);
    border-color: rgba(254, 175, 80, 0.3);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.module-box h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.module-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.module-box li {
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.module-box li::before {
    content: '•';
    color: var(--accent-color);
    position: absolute;
    left: 0;
    top: 0;
}

/* Module topics visibility */
.topic-hidden {
    display: none;
}

.topic-visible {
    display: block;
}

/* See more button */
.see-more-btn {
    background: transparent;
    border: 1px solid rgba(254, 175, 80, 0.3);
    color: var(--accent-color);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    width: fit-content;
}

.see-more-btn:hover {
    background: rgba(254, 175, 80, 0.1);
    border-color: rgba(254, 175, 80, 0.5);
}

.see-more-icon {
    transition: transform 0.3s ease;
}

.see-more-btn.expanded .see-more-icon {
    transform: rotate(180deg);
}

/* Seção 6: Convite à Ação */
.product-action-section {
    padding: 8rem 0;
    background: linear-gradient(135deg, 
        rgba(15, 15, 15, 0.95) 0%, 
        rgba(5, 5, 5, 0.9) 100%
    );
}

.product-action-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.product-action-section h2 {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--text-primary);
}

.action-boxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* When only one purchase box is present, center it */
.action-boxes:has(.purchase-box:only-child) {
    grid-template-columns: 1fr;
    justify-items: center;
}

.action-boxes:has(.purchase-box:only-child) .purchase-box {
    max-width: 500px;
    width: 100%;
}

/* Fallback for browsers that don't support :has() */
.action-boxes.single-box {
    grid-template-columns: 1fr;
    justify-items: center;
}

.action-boxes.single-box .purchase-box {
    max-width: 500px;
    width: 100%;
}

.purchase-box {
    padding: 3rem;
    border-radius: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.purchase-box.primary {
    background: linear-gradient(135deg, 
        rgba(254, 175, 80, 0.1) 0%, 
        rgba(254, 175, 80, 0.05) 100%
    );
    border: 2px solid rgba(254, 175, 80, 0.3);
}

.purchase-box.secondary {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.purchase-box h2 {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-subtle);
}

.purchase-box h2 span {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--accent-color);
    text-transform: none;
    letter-spacing: normal;
}

.purchase-box h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.price-info {
    margin-bottom: 2rem;
}

.price-original {
    font-size: 1.2rem;
    color: var(--text-secondary);
    text-decoration: line-through;
    margin-bottom: 0.5rem;
}

.price-current {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.price-installments {
    font-size: 1rem;
    color: var(--text-secondary);
}

.purchase-btn {
    display: inline-block;
    width: 100%;
    padding: 1.2rem 2rem;
    background: linear-gradient(135deg, var(--accent-color) 0%, #e69a3f 100%);
    color: var(--bg-primary);
    text-decoration: none;
    border-radius: 16px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.purchase-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(254, 175, 80, 0.4);
    color: var(--bg-primary);
    text-decoration: none;
}

.fullpass-benefits {
    margin: 2rem 0;
    text-align: left;
}

.fullpass-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fullpass-benefits li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.fullpass-benefits i {
    color: var(--accent-color);
    width: 16px;
}

.fullpass-btn {
    display: inline-block;
    width: 100%;
    padding: 1.2rem 2rem;
    background: transparent;
    color: var(--accent-color);
    text-decoration: none;
    border: 2px solid var(--accent-color);
    border-radius: 16px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.fullpass-btn:hover {
    background: var(--accent-color);
    color: var(--bg-primary);
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .product-manifesto-section h1 {
        font-size: 2.5rem;
    }
    
    .product-slogan {
        font-size: 1.3rem;
    }
    
    .product-curator-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .curators-images {
        margin: 0 auto;
        width: auto;
        justify-content: center;
    }
    
    /* Keep side-by-side layout on mobile for dual instructors */
    .curators-images:has(.curator-image:nth-child(2)) {
        width: 320px;
    }
    
    .curators-images:has(.curator-image:nth-child(2)) .curator-image {
        width: 150px;
        height: 150px;
    }
    
    .action-boxes {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .skills-grid,
    .audience-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .module-box {
        min-width: 280px;
        max-width: 280px;
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .product-manifesto-section h1 {
        font-size: 2rem;
    }
    
    .product-slogan {
        font-size: 1.1rem;
    }
    
    .purchase-box {
        padding: 2rem;
    }
    
    .module-box {
        min-width: 260px;
        max-width: 260px;
        padding: 1.5rem;
    }
}