/* ═══════════════════════════════════════════════
   SEÇÕES — Estilos específicos de cada seção
   ═══════════════════════════════════════════════ */

/* ──── HERO ──── */
.section-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-black);
    overflow: hidden;
    padding: calc(var(--header-height) + var(--space-2xl)) var(--container-padding) var(--space-2xl);
}

.section-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 15, 15, 0.97), rgba(30, 30, 30, 0.80));
    z-index: 1;
}

/* Decoração geométrica sutil — brilho vermelho TCL */
.section-hero::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(204, 0, 0, 0.10) 0%, transparent 70%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
}

.hero-logo {
    max-width: 280px;
    margin: 0 auto var(--space-xl);
}

@media (min-width: 768px) {
    .hero-logo {
        max-width: 360px;
    }
}

.hero-content h1 {
    color: var(--color-white);
    font-size: var(--font-size-hero);
    margin-bottom: var(--space-md);
}

.hero-content h1 span {
    color: var(--color-primary);
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-xl);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.hero-ctas {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    align-items: center;
    margin-bottom: var(--space-xl);
}

@media (min-width: 640px) {
    .hero-ctas {
        flex-direction: row;
        justify-content: center;
    }
}

.hero-period {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--border-radius-full);
    font-family: var(--font-body);
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.hero-legal {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    font-size: var(--font-size-xs);
    color: rgba(255, 255, 255, 0.35);
    text-align: center;
    max-width: 90%;
}

/* ──── COMO PARTICIPAR ──── */
.section-steps {
    padding: var(--space-section) 0;
    background: var(--color-gray-light);
}

.section-header--red h2 {
    color: var(--color-primary) !important;
}

.step-card {
    text-align: center;
    padding: var(--space-2xl) var(--space-lg);
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.step-card__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--border-radius-full);
    background: var(--color-black);
    color: var(--color-white);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--font-size-base);
    margin-bottom: var(--space-md);
}

.step-card__icon-wrap {
    width: 100px;
    height: 100px;
    margin: 0 auto var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-card__img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.step-card:last-child .step-card__img {
    transform: scale(1.6);
}

.step-card__lucide {
    color: var(--color-primary);
    stroke-width: 1.5;
}

.step-card__icon {
    width: 48px;
    height: 48px;
    color: var(--color-primary);
    margin: 0 auto var(--space-md);
}

.step-card h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--font-size-lg);
    color: var(--color-black);
    margin-bottom: var(--space-sm);
}

.step-card p {
    font-size: var(--font-size-sm);
    color: var(--color-gray-medium);
    max-width: 240px;
    margin: 0 auto;
}

/* ──── PRÊMIOS (legacy) ──── */
.section-prizes {
    padding: var(--space-section) 0;
    background: var(--color-black);
}

.prize-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #111827 0%, #1f2937 100%);
    border-color: #374151;
}

.prize-card .card__image {
    aspect-ratio: 1 / 1;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.prize-card .card__image i {
    width: 64px;
    height: 64px;
    color: var(--color-gray-light);
}

.prize-card .card__body h3 {
    font-family: var(--font-display);
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-xs);
    color: #ffffff;
}

.prize-card .card__body p {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.9);
}

.prize-card .badge {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
}

/* ──── GIRE A ROLETA ──── */
.section-roulette {
    padding: var(--space-section) 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0000 60%, #3d0000 100%);
    color: var(--color-white);
    overflow: hidden;
}

.roulette-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

@media (min-width: 768px) {
    .roulette-layout {
        grid-template-columns: 1fr 1fr;
    }
}

.roulette-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: var(--font-size-3xl);
    color: var(--color-white);
    font-style: italic;
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
}

.roulette-subtitle {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-xl);
}

.roulette-wheel {
    margin-bottom: 0;
}

.roulette-wheel img {
    max-width: 420px;
    width: 100%;
}

.roulette-wheel a {
    display: block;
    cursor: pointer;
}

.roulette-product {
    margin-bottom: var(--space-xl);
}

.roulette-product img {
    width: 130%;
    max-width: none;
}

.roulette-right h3 {
    font-family: var(--font-display);
    font-size: var(--font-size-2xl);
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: var(--space-md);
}

.roulette-right p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-sm);
    line-height: 1.7;
}

/* ──── LOJAS PARTICIPANTES ──── */
.section-stores {
    padding: var(--space-section) 0;
    background: var(--color-bg-alt);
}

.stores-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

@media (min-width: 640px) {
    .stores-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .stores-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.store-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-lg);
    text-align: center;
}

.store-card:hover {
    border-color: var(--color-gray-light);
}

.store-card__logo {
    width: 80px;
    height: 80px;
    border-radius: var(--border-radius-full);
    background: var(--color-gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    overflow: hidden;
}

.store-card__logo i {
    width: 32px;
    height: 32px;
    color: var(--color-gray-medium);
}

.store-card h4 {
    font-family: var(--font-display);
    font-size: var(--font-size-sm);
    font-weight: 500;
    margin-bottom: var(--space-xs);
}

.store-card p {
    font-size: var(--font-size-xs);
    color: var(--color-gray-medium);
}

/* Tabela (fallback) */
.table-responsive {
    overflow-x: auto;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--color-border);
    margin-top: var(--space-lg);
}

.stores-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-sm);
}

.stores-table th {
    background: var(--color-black);
    color: var(--color-white);
    padding: var(--space-md);
    text-align: left;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.stores-table td {
    padding: var(--space-md);
    border-bottom: 1px solid var(--color-border);
    color: var(--color-gray-dark);
    white-space: nowrap;
}

.stores-table tbody tr:nth-child(even) {
    background: var(--color-gray-light);
}

.stores-table tbody tr:hover {
    background: rgba(255, 0, 0, 0.05);
}

/* ──── PRODUTOS PARTICIPANTES ──── */
.section-products {
    padding: var(--space-section) 0;
    background: var(--color-white);
}

.carousel {
    position: relative;
    overflow: hidden;
}

.carousel__viewport {
    overflow: hidden;
    margin: 0 calc(-1 * var(--space-sm));
}

.carousel__track {
    display: flex;
    gap: var(--space-md);
    transition: transform var(--transition-base);
    cursor: grab;
}

.carousel__track:active {
    cursor: grabbing;
}

.carousel__slide {
    flex: 0 0 calc(80% - var(--space-md));
    min-width: 0;
}

@media (min-width: 640px) {
    .carousel__slide {
        flex: 0 0 calc(45% - var(--space-md));
    }
}

@media (min-width: 1024px) {
    .carousel__slide {
        flex: 0 0 calc(25% - var(--space-md));
    }
}

.product-card {
    background: var(--color-white);
    border: none;
    box-shadow: none;
}

.product-card .card__image {
    aspect-ratio: 1 / 1;
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
}

.product-card .card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-card .card__image i {
    width: 48px;
    height: 48px;
    color: var(--color-gray-medium);
}

.product-card__label {
    background: var(--color-primary);
    color: var(--color-white);
    text-align: center;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: var(--font-size-xs);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--border-radius-md);
    margin: 0 var(--space-sm) var(--space-sm);
    line-height: 1.4;
}

.product-card .card__body {
    padding: var(--space-md);
}

.product-card h3 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: var(--font-size-base);
    margin-bottom: var(--space-xs);
}

.product-card .product-category {
    font-family: var(--font-body);
    font-size: var(--font-size-sm);
    color: var(--color-gray-medium);
}

.carousel__nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.carousel__btn {
    width: 44px;
    height: 44px;
    border-radius: var(--border-radius-full);
    background: var(--color-black);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.carousel__btn:hover {
    background: var(--color-primary);
}

.carousel__btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel__dots {
    display: flex;
    gap: var(--space-sm);
}

.carousel__dot {
    width: 8px;
    height: 8px;
    border-radius: var(--border-radius-full);
    background: var(--color-gray-medium);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.carousel__dot.active {
    width: 24px;
    background: var(--color-primary);
}

/* ──── GANHADORES ──── */
.section-winners {
    padding: var(--space-section) 0;
    background: var(--color-bg-alt);
}

.section-winners-red {
    padding: var(--space-section) 0;
    background: var(--color-primary);
    text-align: center;
    color: var(--color-white);
}

.section-winners-red .section-header h2 {
    color: var(--color-white);
}

.section-winners-red .section-header p {
    color: rgba(255, 255, 255, 0.9);
}

.winners-clock {
    color: var(--color-white);
    margin-bottom: var(--space-xl);
    display: flex;
    justify-content: center;
}

.section-winners-red .filter-tabs {
    justify-content: center;
    margin-bottom: var(--space-2xl);
}

.section-winners-red .filter-tab {
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.section-winners-red .filter-tab:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-white);
    border-color: var(--color-white);
}

.section-winners-red .filter-tab.active {
    background: var(--color-black);
    color: var(--color-white);
    border-color: var(--color-black);
}

.winners-empty-state {
    padding: var(--space-xl) 0;
}

.winners-empty-state h3 {
    font-family: var(--font-display);
    font-size: var(--font-size-3xl);
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: var(--space-sm);
}

.winners-empty-state p {
    color: rgba(255, 255, 255, 0.85);
    font-size: var(--font-size-lg);
}

.winners-list {
    margin-top: var(--space-lg);
}

.winner-row {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    margin-bottom: var(--space-sm);
    transition: all var(--transition-fast);
}

.winner-row:hover {
    box-shadow: var(--shadow-md);
}

.winner-row__trophy {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: var(--border-radius-full);
    background: rgba(255, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.winner-row__info {
    flex: 1;
}

.winner-row__name {
    font-family: var(--font-display);
    font-weight: 500;
    color: var(--color-black);
    font-size: var(--font-size-base);
}

.winner-row__prize {
    font-size: var(--font-size-sm);
    color: var(--color-gray-medium);
}

.winner-row__city {
    font-size: var(--font-size-sm);
    color: var(--color-gray-medium);
    text-align: right;
    white-space: nowrap;
}

.winners-empty {
    text-align: center;
    padding: var(--space-3xl);
}

.winners-empty i {
    width: 64px;
    height: 64px;
    color: var(--color-gray-light);
    margin-bottom: var(--space-md);
}

.winners-empty p {
    font-family: var(--font-display);
    font-weight: 500;
    color: var(--color-gray-medium);
    font-size: var(--font-size-lg);
}

/* ──── FAQ ──── */
.section-faq {
    padding: var(--space-section) 0;
    background: var(--color-white);
}

.faq-search {
    max-width: 600px;
    margin: 0 auto var(--space-xl);
}

.faq-search .search-bar {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
}

.faq-search .search-bar i {
    color: var(--color-gray-medium);
    min-width: 20px;
}

.faq-search .search-bar input,
.faq-search .search-bar input[type="text"] {
    color: var(--color-black) !important;
    -webkit-text-fill-color: var(--color-black) !important;
    background: transparent !important;
    border: none !important;
    min-height: auto !important;
    padding: var(--space-sm) !important;
}

.faq-search .search-bar input::placeholder {
    color: var(--color-gray-medium) !important;
    -webkit-text-fill-color: var(--color-gray-medium) !important;
}

.faq-list {
    max-width: 700px;
    margin: 0 auto;
}

.faq-footer {
    text-align: center;
    margin-top: var(--space-2xl);
    padding: var(--space-xl);
    background: var(--color-gray-light);
    border-radius: var(--border-radius-lg);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.faq-footer p {
    margin-bottom: var(--space-md);
    color: var(--color-gray-dark);
}

/* ──── CADASTRO ──── */
.section-register {
    padding: var(--space-section) 0;
    background: var(--color-bg-alt);
}

.register-card {
    background: var(--color-white);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
    padding: var(--space-2xl);
    max-width: 640px;
    margin: 0 auto;
}

.section-register .form-row,
.section-login .form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

@media (min-width: 640px) {
    .section-register .form-row--2,
    .section-login .form-row--2 {
        grid-template-columns: 1fr 1fr;
    }
}

.section-register .form-checkboxes,
.section-login .form-checkboxes {
    margin: var(--space-lg) 0;
}

.section-register .form-submit,
.section-login .form-submit {
    text-align: center;
}

/* ──── LOGIN ──── */
.section-login {
    padding: var(--space-section) 0;
    background: var(--color-bg-alt);
}

.login-card {
    background: var(--color-white);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
    padding: var(--space-2xl);
    max-width: 440px;
    margin: 0 auto;
    text-align: center;
}

.login-card h2 {
    margin-bottom: var(--space-sm);
}

.login-card>p {
    color: var(--color-gray-medium);
    margin-bottom: var(--space-xl);
}

.login-links {
    margin-top: var(--space-lg);
    font-size: var(--font-size-sm);
}

.login-links a {
    color: var(--color-primary);
    font-weight: 500;
}

.login-links a.register-link {
    color: var(--color-primary);
    font-weight: 600;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    color: var(--color-gray-medium);
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

/* ──── SECTION SPACER ──── */
section+section {
    border-top: none;
}

/* ═══ ROLETA ═══ */
.section-roleta {
    background: var(--color-gray-light);
    padding: var(--space-3xl) 0;
    text-align: center;
}

.roleta-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xl);
}

.roleta-canvas-wrapper {
    position: relative;
    width: 400px;
    height: 400px;
    max-width: 90vw;
}

#roleta-canvas {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    cursor: pointer;
    filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.25));
    transition: transform 0.1s ease;
}

#roleta-canvas:hover {
    transform: scale(1.02);
}

#roleta-canvas.spinning {
    cursor: not-allowed;
}

.roleta-spin-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 3px solid #000;
    font-weight: 700;
    font-size: 0.75rem;
    text-align: center;
    cursor: pointer;
    z-index: 10;
    line-height: 1.2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    /* clique vai para o canvas */
}

.roleta-pointer {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: var(--color-primary);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
    z-index: 20;
}

.roleta-slots-info {
    background: white;
    border-radius: var(--card-radius);
    padding: var(--space-lg);
    max-width: 400px;
    text-align: left;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.roleta-slots-info h4 {
    margin-bottom: var(--space-sm);
    color: var(--color-primary);
}

.roleta-slots-info ul {
    list-style: none;
    padding: 0;
}

.roleta-slots-info li {
    padding: var(--space-xs) 0;
    border-bottom: 1px solid var(--color-gray-light);
    font-size: 0.9rem;
}

/* ═══ MODAIS ═══ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.is-open {
    opacity: 1;
    pointer-events: all;
}

.modal-box {
    background: #FFFFFF;
    border-radius: 16px;
    padding: var(--space-2xl) var(--space-xl);
    max-width: 600px;
    width: 90vw;
    text-align: center;
    position: relative;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-overlay.is-open .modal-box {
    transform: scale(1);
}

/* Barra de título estilo macOS (decorativa) */
.modal-box::before {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #FF5F57;
    box-shadow: 20px 0 0 #FEBC2E, 40px 0 0 #28C840;
    margin-bottom: var(--space-lg);
}

.modal-box h2 {
    color: var(--color-secondary);
    margin-bottom: var(--space-md);
    font-size: 1.5rem;
}

.modal-box p {
    color: var(--color-gray-dark);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.modal-ganhou-valor {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin: var(--space-sm) 0;
}

.modal-ganhou-titulo {
    font-size: 1.25rem;
    color: #4A90D9;
    /* azul destacado conforme Figma */
    font-weight: 600;
}

.modal-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Histórico de NFs */
.historico-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 6px;
    font-size: 0.875rem;
}

.historico-table thead th {
    background: var(--color-secondary);
    color: white;
    padding: var(--space-sm) var(--space-md);
    font-weight: 600;
}

.historico-table thead th:first-child {
    border-radius: 8px 0 0 8px;
}

.historico-table thead th:last-child {
    border-radius: 0 8px 8px 0;
}

.historico-table tbody tr td {
    background: white;
    border: 1px solid var(--color-gray-light);
    padding: var(--space-sm) var(--space-md);
    text-align: center;
    color: var(--color-gray-dark);
}

.historico-table tbody tr td:first-child {
    border-radius: 8px 0 0 8px;
}

.historico-table tbody tr td:last-child {
    border-radius: 0 8px 8px 0;
}

.historico-wrapper {
    max-height: 400px;
    overflow-y: auto;
}
