/* CSS para nova versão da página de sorteios realizados */

/* Background do body */
body {
    background-color: rgb(22, 28, 36) !important;
}

/* Container principal do conteúdo */
.container.margin_60 {
    max-width: 700px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 20px !important;
    background: #212B36 !important;
}

/* Sorteios em coluna (um abaixo do outro) */
.box_container {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    margin-bottom: 20px;
}

/* Títulos das seções */
.section-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.section-title-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.section-title-container svg {
    color: #fbbf24 !important;
    stroke: #fbbf24 !important;
    margin-right: 0;
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0;
}

.section-title-container h2 {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    margin: 0;
    text-align: left;
}

.section-title-container h2 span {
    color: #fbbf24 !important;
}

.section-description {
    color: #9ca3af;
    font-size: 0.875rem;
    margin: 0 0 1.5rem 0;
    text-align: left;
}

/* Cards dos sorteios realizados - layout horizontal */
.rifa_sorteada_container {
    display: flex;
    flex-direction: row;
    background: #212B36;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    height: 110px;
}

.rifa_sorteada_container:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    text-decoration: none;
}

/* Imagem lateral esquerda */
.rifa_sorteada_img {
    width: 90px;
    height: 110px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.rifa_sorteada_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

/* Conteúdo ao lado da imagem */
.rifa_sorteada_content {
    flex: 1;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Título do sorteio */
.rifa_sorteada_title {
    color: #ffffff;
    font-size: .9rem;
    font-weight: 600;
    margin: 0 0 4px 0;
    text-align: left;
    text-transform: uppercase;
    font-family: 'Montserrat', Arial, sans-serif;
    line-height: 1.2;
}

/* Ganhador */
.rifa_sorteada_ganhador {
    color: #9ca3af;
    font-size: 0.75rem;
    font-weight: 400;
    margin: 0 0 6px 0;
    text-align: left;
    font-family: 'Montserrat', Arial, sans-serif;
}

.rifa_sorteada_ganhador strong {
    color: #ffffff;
    font-weight: 600;
}

/* Badge "Sorteado" */
.badge_sorteado {
    display: inline-block;
    color: #fff;
    background: rgba(121, 167, 10, 0.85);
    border: 1.5px solid #79A70A;
    padding: 0.12rem 0.5rem;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    text-transform: none;
    width: fit-content;
}

.rifa_sorteada_container .badge_sorteado {
    color: #fff !important;
    background: rgba(121, 167, 10, 0.85) !important;
    border: 1.5px solid #79A70A !important;
}

body.dark .badge_sorteado,
body.index-page.dark .badge_sorteado,
.dark .badge_sorteado {
    background: rgba(121, 167, 10, 0.7) !important;
    border: 1.5px solid #79A70A !important;
    color: #fff !important;
}

body.dark .rifa_sorteada_container .badge_sorteado,
body.index-page.dark .rifa_sorteada_container .badge_sorteado,
.dark .rifa_sorteada_container .badge_sorteado {
    background: rgba(121, 167, 10, 0.7) !important;
    border: 1.5px solid #79A70A !important;
    color: #fff !important;
}

/* Responsividade para mobile */
@media (max-width: 768px) {
    .container.margin_60 {
        max-width: 100%;
        padding: 15px;
    }
    
    .rifa_sorteada_img {
        width: 80px;
    }
    
    .rifa_sorteada_content {
        padding: 10px;
    }
    
    .rifa_sorteada_title {
        font-size: 0.9rem;
    }
}

/* Responsividade para telas menores */
@media (max-width: 480px) {
    .section-description {
        font-size: 0.8rem;
    }
    
    .rifa_sorteada_title {
        font-size: 0.85rem;
    }
}

/* ===== TEMA LIGHT - PÁGINA DE SORTEADOS ===== */

/* Background do body - tema light */
body.light {
    background-color: #f9f9f9 !important;
}

/* Container principal - tema light */
body.light .container.margin_60 {
    background: #ffffff !important;
}

/* Títulos das seções - tema light */
body.light .section-title-container h2 {
    color: #1f2937;
}

body.light .section-description {
    color: #6b7280;
}

/* Cards dos sorteios realizados - tema light */
body.light .rifa_sorteada_container {
    background: #ffffff;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

body.light .rifa_sorteada_container:hover {
    box-shadow: 0 4px 6px 0 rgba(0, 0, 0, 0.15);
}

/* Título do sorteio realizado - tema light */
body.light .rifa_sorteada_title {
    color: #1f2937;
}

/* Ganhador - tema light */
body.light .rifa_sorteada_ganhador {
    color: #6b7280;
}

body.light .rifa_sorteada_ganhador strong {
    color: #1f2937;
}
