/* ========= HOME PAGE - TEMA CLARO ========= */
/* Usa as cores do banco via variáveis CSS definidas no layout_public_top.php */
.home-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
}

/* Hero Section */
.home-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.home-hero-left {
    flex: 1;
}

.home-chip {
    display: inline-block;
    background: color-mix(in srgb, var(--btn-primary) 15%, white);
    color: var(--btn-primary);
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.home-hero-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.home-hero-sub {
    color: #6b7280;
    font-size: 0.9rem;
}

.home-hero-link {
    color: var(--btn-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.home-hero-link:hover {
    text-decoration: underline;
}

/* ========= CARD PRINCIPAL (DESTAQUE) ========= */
.destaque-card {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
    border: 1px solid #e5e7eb;
}

.destaque-carousel {
    position: relative;
    width: 100%;
    height: 280px;
    background: #f3f4f6;
    overflow: hidden;
}

@media (min-width: 600px) {
    .destaque-carousel {
        height: 350px;
    }
}

.destaque-carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #f3f4f6;
}

.destaque-carousel-item {
    display: none;
    width: 100%;
    height: 100%;
}

.destaque-carousel-item.active {
    display: block;
}

.destaque-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 10;
}

.destaque-carousel-btn.prev { left: 10px; }
.destaque-carousel-btn.next { right: 10px; }

.destaque-carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.destaque-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
}

.destaque-carousel-dot.active {
    background: #fff;
}

.destaque-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--btn-primary);
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 10;
}

.destaque-badge-gratuito {
    background: linear-gradient(135deg, #10b981, #059669);
}

.destaque-body {
    padding: 1.25rem;
}

.destaque-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.destaque-subtitle {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.destaque-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.destaque-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.destaque-price-label {
    color: #6b7280;
    font-size: 0.85rem;
}

.destaque-price-value {
    background: color-mix(in srgb, var(--btn-primary) 15%, white);
    color: var(--btn-primary);
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
}

.destaque-price-free {
    background: #dcfce7;
    color: #16a34a;
}

.btn-participar {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--btn-primary);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
    transition: transform 0.2s, filter 0.2s;
}

.btn-participar:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.btn-participar-instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

/* Promoções */
.destaque-promo {
    background: #f9fafb;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-top: 1rem;
}

.destaque-promo-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
}

.destaque-promo-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.promo-badge {
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s;
}

.promo-badge:hover {
    border-color: var(--btn-primary);
    color: var(--btn-primary);
}

.promo-badge-primary {
    background: var(--btn-primary);
    color: #fff;
    border-color: var(--btn-primary);
}

.promo-badge-primary:hover {
    filter: brightness(1.1);
    color: #fff;
}

/* ========= SEÇÃO OUTROS SORTEIOS ========= */
.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    margin: 2rem 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title i {
    color: var(--btn-primary);
}

/* Container: 1 card por linha */
.sorteios-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Card com altura fixa 150px */
.sorteio-card-mini {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.10);
    border: 1px solid #e5e7eb;
    min-height: 150px;   /* ALTURA FIXA DO CARD */
}

/* Imagem à esquerda – altura 150px */
.sorteio-card-img {
    flex: 0 0 260px;     /* largura da faixa de imagem no desktop */
    max-width: 260px;
    height: 150px;       /* ALTURA DA IMAGEM */
    background: #f3f4f6;
    position: relative;
    overflow: hidden;
}

.sorteio-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sorteio-card-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--btn-primary);
    color: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
}

/* Corpo do card */
.sorteio-card-body {
    padding: 1rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sorteio-card-title {
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.sorteio-card-subtitle {
    color: #6b7280;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    max-width: 420px;
}

.sorteio-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.sorteio-card-price {
    font-weight: 700;
    color: #16a34a;
    font-size: 0.9rem;
}

.btn-card {
    background: var(--btn-primary);
    color: #fff;
    padding: 0.55rem 1.4rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
}

.btn-card:hover {
    filter: brightness(1.1);
}

/* ========= SEÇÃO GANHADORES ========= */
.ganhadores-section {
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
}

.ganhadores-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.ganhadores-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.ganhadores-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
}

.ganhadores-subtitle {
    font-size: 0.85rem;
    color: #6b7280;
}

.ganhador-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 0.75rem;
    margin-bottom: 0.5rem;
}

.ganhador-avatar {
    width: 45px;
    height: 45px;
    background: var(--btn-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
}

.ganhador-info {
    flex: 1;
}

.ganhador-nome {
    font-weight: 700;
    color: #1f2937;
    font-size: 0.95rem;
}

.ganhador-premio {
    color: #16a34a;
    font-size: 0.85rem;
    font-weight: 600;
}

.ganhador-detalhes {
    color: #6b7280;
    font-size: 0.75rem;
    display: flex;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.ganhador-numero {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    padding: 0.4rem 0.6rem;
    border-radius: 0.5rem;
    font-family: monospace;
    font-weight: 700;
    font-size: 0.9rem;
}

/* ========= COMPARTILHAR ========= */
.share-section {
    background: #f9fafb;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.share-text {
    color: #374151;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.share-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.share-btn-wa {
    background: #25d366;
    color: #fff;
}

.share-btn-ig {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743);
    color: #fff;
}

.share-btn-fb {
    background: #1877f2;
    color: #fff;
}

/* Alert */
.alert-info {
    background: #fef3c7;
    border: 1px solid #fde68a;
    color: #92400e;
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}

/* ========= RESPONSIVO ========= */
@media (max-width: 600px) {
    .home-hero {
        flex-direction: column;
        text-align: center;
    }

    .destaque-price-row {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-participar {
        justify-content: center;
    }

    .ganhador-card {
        flex-direction: column;
        text-align: center;
    }

    .ganhador-detalhes {
        justify-content: center;
    }

    /* Ajuste dos cards em telas pequenas:
       mantém altura 150 e a imagem "dentro" do card */
    .sorteio-card-mini {
        min-height: 150px;
    }

    .sorteio-card-img {
        flex: 0 0 150px;
        max-width: 150px;
        height: 150px;
    }

    .sorteio-card-body {
        padding: 0.9rem 0.9rem;
    }

    .sorteio-card-title {
        font-size: 0.95rem;
    }

    .sorteio-card-subtitle {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }

    .btn-card {
        padding: 0.45rem 1.2rem;
        font-size: 0.8rem;
    }
}
/* ==============================
   AJUSTE PROMOÇÕES (100 / 250)
   ============================== */

/* garante flex (já tem, mas reforçamos) */
.destaque-promo-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* telas pequenas: 2 botões lado a lado */
@media (max-width: 600px) {
    .destaque-promo-badges {
        justify-content: space-between;
    }

    .promo-badge {
        display: flex;                      /* vira "pílula" flex */
        align-items: center;
        justify-content: center;
        text-align: center;
        flex: 1 1 calc(50% - 0.5rem);       /* cada um ocupa ~50% */
        white-space: nowrap;                /* não quebra em duas linhas */
    }
}
