/* ===========================
   SORTEIOS PAGE - TEMA CLARO
   Mesma largura da home
   =========================== */

/* Container principal */
.s-page-full {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
    width: 100%;
}

/* ===========================
   HEADER / ABAS DOS SORTEIOS
   =========================== */

.s-filter-card {
    width: 100%;
    margin: 0 0 1.5rem;
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    color: #111827;
}

.s-filter-header {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.s-filter-title {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.s-filter-title::before {
    content: "⚡";
}

.s-filter-subtitle {
    font-size: 0.9rem;
    color: #6b7280;
}

/* Abas */
.s-filter-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    background: #f3f4f6;
    border-radius: 999px;
    padding: 4px;
    gap: 4px;
}

.s-tab {
    flex: 1;
    text-align: center;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 999px;
    text-decoration: none;
    color: #4b5563;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.s-tab:hover {
    background: #e5e7eb;
}

.s-tab.active {
    background: var(--btn-primary, #16a34a);
    color: #ffffff;
}

/* ===========================
   LISTA DE SORTEIOS
   =========================== */

.s-list-grid {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Card principal (destaque) – imagem grande em cima */
.s-card-min.is-destaque .s-card-inner {
    flex-direction: column;
}

.s-card-min.is-destaque .s-card-img {
    width: 100%;
    height: 280px;
}

@media (min-width: 600px) {
    .s-card-min.is-destaque .s-card-img {
        height: 350px;
    }
}

/* Card normal (não destaque) – estilo lista igual home */
.s-card-min {
    width: 100%;
}

.s-card-inner {
    width: 100%;
    background: #ffffff;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: row;
    align-items: stretch;
    transition: all 0.2s ease;
    min-height: 150px; /* altura mínima do card */
}
.s-card-inner:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Imagem padrão (não destaque) */
.s-card-img {
    width: 260px;
    max-width: 260px;
    /* em vez de height fixa, usa 100% */
    height: 100%;
    min-height: 150px;   /* garante que nunca fique menor que 150 */
    background: #f3f4f6;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.s-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Conteúdo */
.s-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1rem 1.25rem;
}

.s-card-body {
    flex: 1;
}

.s-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #1f2937;
}

.s-card-subtitle {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.s-card-price {
    font-size: 0.9rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

.s-card-price strong {
    color: var(--btn-primary, #16a34a);
    font-size: 1rem;
}

/* Badges */
.s-badge-destaque {
    display: inline-block;
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--btn-primary, #16a34a) 15%, white);
    color: var(--btn-primary, #16a34a);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.s-badge-gratuito {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.s-badge-concluido {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #fff;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Footer do card */
.s-card-footer {
    margin-top: 0.75rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.75rem;
}

/* Botões */
.s-btn {
    border: none;
    border-radius: 999px;
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
}

/* Botão primário (verde) */
.s-btn-primary {
    background: var(--btn-primary, #16a34a);
    color: #ffffff;
}

.s-btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* Botão secundário (laranja) */
.s-btn-secondary {
    background: #f97316;
    color: #ffffff;
}

.s-btn-secondary:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* Botão Instagram */
.s-btn-instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #ffffff;
}

.s-btn-instagram:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* Botão ganhadores */
.s-btn-ganhadores {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
}

.s-btn-ganhadores:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* Animação pulse */
.s-btn-pulse {
    animation: s-btn-pulse 1.5s infinite;
}

@keyframes s-btn-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.5);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 0 0 8px rgba(249, 115, 22, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(249, 115, 22, 0);
    }
}

/* Preço grátis */
.s-price-free {
    color: #e1306c;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Mensagem vazia */
.s-empty {
    width: 100%;
    padding: 2rem;
    text-align: center;
    font-size: 0.95rem;
    color: #6b7280;
    background: #f9fafb;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
}

/* ===========================
   RESPONSIVO FINAL  (<700px)
   =========================== */
@media (max-width: 700px) {

    /* --- CARD DESTAQUE CONTINUA EM COLUNA --- */
    .s-card-min.is-destaque .s-card-inner {
        flex-direction: column;
    }

    .s-card-min.is-destaque .s-card-img {
        width: 100%;
        height: 210px;
    }

    /* --- OUTROS CARDS: SEMPRE EM LINHA IGUAL A HOME --- */
    .s-card-min:not(.is-destaque) .s-card-inner {
        flex-direction: row;
        gap: 0.6rem;
        min-height: 130px;
        align-items: center;
    }

    .s-card-min:not(.is-destaque) .s-card-img {
        width: 120px;
        height: 120px;
        border-radius: 10px;
        overflow: hidden;
        flex-shrink: 0;
    }

    .s-card-min:not(.is-destaque) .s-card-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* --- TEXTO / CONTEÚDO --- */
    .s-card-min:not(.is-destaque) .s-card-content {
        padding: 0.3rem 0.6rem;
    }

    .s-card-min:not(.is-destaque) .s-card-title {
        font-size: 1rem;
        line-height: 1.2;
        margin-bottom: 0.2rem;
    }

    .s-card-min:not(.is-destaque) .s-card-subtitle {
        font-size: 0.75rem;
        margin-bottom: 0.4rem;
    }

    .s-card-min:not(.is-destaque) .s-card-price {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }

    /* --- BOTÃO --- */
    .s-card-min:not(.is-destaque) .s-card-footer {
        margin-top: 0.2rem;
    }

    .s-card-min:not(.is-destaque) .s-btn {
        padding: 0.45rem 1rem;
        font-size: 0.8rem;
    }
}
