/* style.css - ESTILOS PRINCIPAIS DO SISTEMA */

/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Fixo */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    padding: 8px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-imagem {
    height: 50px;
    width: auto;
    transition: all 0.3s ease;
}

.site-header.scrolled .logo-imagem {
    height: 40px;
}

.logo-texto h1 {
    font-size: 1.4rem;
    margin: 0;
    color: #1a1a1a;
    font-weight: 700;
}

.logo-texto p {
    font-size: 0.8rem;
    margin: 0;
    color: #666;
}

/* Menu Principal */
.menu-principal ul {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.menu-principal a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 8px 0;
    position: relative;
}

.menu-principal a:hover,
.menu-principal a.ativo {
    color: #ff6b00;
}

.menu-principal a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff6b00;
    transition: width 0.3s ease;
}

.menu-principal a:hover::after,
.menu-principal a.ativo::after {
    width: 100%;
}

.menu-mobile {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 4px;
    padding: 5px;
}

.menu-mobile span {
    width: 25px;
    height: 3px;
    background: #333;
    transition: all 0.3s ease;
}

.menu-mobile.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-mobile.active span:nth-child(2) {
    opacity: 0;
}

.menu-mobile.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Seção Sorteio */
.sorteio-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    margin-top: 80px;
}

.sorteio-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

.sorteio-titulo {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: #ffd700;
    font-weight: 700;
}

.sorteio-descricao {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.6;
}

.ganhador-box {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
    border: 1px solid rgba(255, 215, 0, 0.2);
    backdrop-filter: blur(10px);
}

.trofeu {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.ganhador-box h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #ffd700;
}

.ganhador-nome {
    font-size: 1.4rem;
    margin: 15px 0;
    color: white;
    font-weight: 600;
}

.ganhador-informacao {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.ganhador-informacao p {
    margin: 0;
    font-size: 1rem;
}

.contagem-regressiva {
    margin-top: 25px;
}

.contagem-regressiva p {
    margin-bottom: 10px;
    font-size: 1rem;
}

.contagem-regressiva-temporizador {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffd700;
    font-family: 'Montserrat', monospace;
    letter-spacing: 1px;
}

.botao-participar {
    background: linear-gradient(135deg, #ff6b00, #ff8c00);
    color: white;
    border: none;
    padding: 14px 35px;
    font-size: 1rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.botao-participar:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.4);
}

/* Seções Gerais */
.artigos-section {
    padding: 80px 0;
    background: white;
}

.section-titulo {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: #1a1a1a;
    font-weight: 700;
}

.section-titulo-branco {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: white;
    font-weight: 700;
}

/* Filtros de Artigos */
.filtros-artigos {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filtro-botao {
    padding: 10px 20px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filtro-botao:hover,
.filtro-botao.ativo {
    background: #ff6b00;
    color: white;
    border-color: #ff6b00;
}

/* Grade de Artigos */
.grade-artigos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.cartao-artigo {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.cartao-artigo:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.cartao-imagem {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.cartao-imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cartao-artigo:hover .cartao-imagem img {
    transform: scale(1.05);
}

.cartao-conteudo {
    padding: 20px;
}

.cartao-conteudo h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #1a1a1a;
    font-weight: 600;
    line-height: 1.4;
}

.cartao-conteudo p {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.85rem;
    line-height: 1.5;
}

.cartao-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 15px;
}

.botao-leia-artigo {
    display: inline-block;
    background: #ff6b00;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.botao-leia-artigo:hover {
    background: #ff8c00;
    transform: translateY(-2px);
}

/* Seção Resultados */
.resultados-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.resultados-unificado {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    max-width: 900px;
    margin: 0 auto;
}

.resultados-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.resultados-header h3 {
    font-size: 1.5rem;
    color: #1a1a1a;
    font-weight: 700;
    margin: 0;
}

.resultados-content-single {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.ganhadores-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
}

.ganhadores-lista {
    max-height: 400px;
    overflow-y: auto;
}

.lista-ganhadores {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ganhador-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.3s ease;
}

.ganhador-item:hover {
    background-color: white;
    border-radius: 8px;
}

.ganhador-item.destaque-hoje {
    background: linear-gradient(135deg, #fff3e0, #ffffff);
    border-left: 4px solid #ff6b00;
    border-radius: 8px;
}

.ganhador-item:last-child {
    border-bottom: none;
}

.ganhador-informacao-pequena {
    flex: 1;
}

.ganhador-informacao-pequena strong {
    display: block;
    color: #1a1a1a;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.ganhador-item.destaque-hoje .ganhador-informacao-pequena strong {
    color: #ff6b00;
}

.ganhador-data {
    color: #666;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.emblema-hoje {
    background: #ff6b00;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

.ganhador-whatsapp {
    color: #ff6b00;
    font-size: 0.85rem;
    font-weight: 600;
}

.sem-ganhadores {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.sem-ganhadores p:first-child {
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.sem-ganhadores p:last-child {
    font-size: 0.9rem;
    opacity: 0.8;
}

.regras-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
}

.regras-lista {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.regra-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.regra-item:hover {
    transform: translateX(5px);
}

.regra-icone {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.regra-texto {
    flex: 1;
}

.regra-texto strong {
    display: block;
    color: #1a1a1a;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.regra-texto p {
    color: #666;
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
}

/* Formulário de Contato */
.formulario-contato {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    color: white;
    padding: 80px 0;
}

.form-contato {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255,255,255,0.05);
    padding: 40px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.form-grupo {
    margin-bottom: 20px;
}

.form-grupo input,
.form-grupo textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Open Sans', sans-serif;
}

.form-grupo input::placeholder,
.form-grupo textarea::placeholder {
    color: rgba(255,255,255,0.6);
}

.form-grupo input:focus,
.form-grupo textarea:focus {
    outline: none;
    border-color: #ffd700;
    background: rgba(255,255,255,0.1);
}

.form-grupo textarea {
    height: 120px;
    resize: vertical;
}

.botao-enviar-contato {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #1a1a1a;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.botao-enviar-contato:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,215,0,0.3);
}

.mensagem-contato {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.mensagem-sucesso {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid #4caf50;
    color: #4caf50;
}

.mensagem-erro {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid #f44336;
    color: #f44336;
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 40px 0;
    background: #1a1a1a;
    color: white;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.footer-info h3 {
    color: #ffd700;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.footer-contato h4 {
    color: #ffd700;
    margin-bottom: 10px;
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #333;
    width: 100%;
    color: #888;
}

/* Popup */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.popup-conteudo {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 100%;
    position: relative;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.fechar-popup {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-header {
    text-align: center;
    margin-bottom: 25px;
}

.popup-logo {
    height: 40px;
    margin-bottom: 15px;
}

.popup-header h2 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.popup-header p {
    color: #666;
    font-size: 0.9rem;
}

.form-sorteio .form-grupo {
    margin-bottom: 15px;
}

.form-sorteio input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Open Sans', sans-serif;
    color: #333;
    background: white;
}

.form-sorteio input::placeholder {
    color: #999;
}

.form-sorteio input:focus {
    outline: none;
    border-color: #ff6b00;
    background: #fffaf0;
}

.botao-enviar {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #ff6b00, #ff8c00);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.botao-enviar:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(255, 107, 0, 0.4);
}

.popup-rodape {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.info-seguro {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 8px;
}

.info-premios {
    font-size: 0.85rem;
    color: #ff6b00;
    font-weight: 600;
}

/* Loading Overlay */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: white;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #ff6b00;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Popup de Confirmação */
.popup-confirmacao {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.popup-confirmacao-conteudo {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 450px;
    width: 100%;
    position: relative;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    text-align: center;
}

.popup-confirmacao-icone {
    font-size: 3rem;
    margin-bottom: 20px;
}

.popup-confirmacao h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.popup-confirmacao p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

.botao-confirmar {
    background: linear-gradient(135deg, #ff6b00, #ff8c00);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.botao-confirmar:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.4);
}

/* Paginação */
.paginacao {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.pagina-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    color: #666;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pagina-link:hover {
    border-color: #ff6b00;
    color: #ff6b00;
    transform: translateY(-2px);
}

.pagina-link.ativa {
    background: linear-gradient(135deg, #ff6b00, #ff8c00);
    border-color: #ff6b00;
    color: white;
    box-shadow: 0 3px 10px rgba(255, 107, 0, 0.3);
}

.pagina-link.pontos {
    background: none;
    border: none;
    cursor: default;
}

.pagina-link.pontos:hover {
    transform: none;
}

/* Scrollbar personalizada */
.ganhadores-lista::-webkit-scrollbar {
    width: 6px;
}

.ganhadores-lista::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.ganhadores-lista::-webkit-scrollbar-thumb {
    background: #ff6b00;
    border-radius: 3px;
}

.ganhadores-lista::-webkit-scrollbar-thumb:hover {
    background: #e55a00;
}

/* Responsividade */
@media (max-width: 1200px) {
    .grade-artigos {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .sorteio-titulo {
        font-size: 1.8rem;
    }
    
    .sorteio-descricao {
        font-size: 1rem;
    }
    
    .ganhador-nome {
        font-size: 1.2rem;
    }
    
    .contagem-regressiva-temporizador {
        font-size: 1.3rem;
    }
    
    .botao-participar {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    
    .menu-principal {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    .menu-principal.active {
        display: flex;
    }
    
    .menu-principal ul {
        flex-direction: column;
        gap: 15px;
    }
    
    .menu-mobile {
        display: flex;
    }

    .section-titulo {
        font-size: 1.8rem;
    }

    .popup-conteudo {
        padding: 25px 20px;
    }

    .popup-header h2 {
        font-size: 1.2rem;
    }

    /* Responsividade Resultados */
    .resultados-unificado {
        padding: 25px 20px;
    }
    
    .resultados-header h3 {
        font-size: 1.3rem;
    }
    
    .ganhadores-container,
    .regras-container {
        padding: 20px;
    }
    
    .regras-lista {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .ganhador-item {
        padding: 10px 12px;
    }
    
    .regra-item {
        padding: 12px;
    }

    .grade-artigos {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .sorteio-section {
        padding: 100px 0 60px;
    }
    
    .sorteio-titulo {
        font-size: 1.6rem;
    }
    
    .logo-container {
        gap: 10px;
    }
    
    .logo-imagem {
        height: 40px;
    }
    
    .logo-texto h1 {
        font-size: 1.1rem;
    }
    
    .logo-texto p {
        font-size: 0.7rem;
    }

    .ganhador-box {
        padding: 20px;
    }

    .filtros-artigos {
        gap: 10px;
    }

    .filtro-botao {
        padding: 8px 15px;
        font-size: 0.8rem;
    }

    /* Responsividade Resultados Mobile */
    .resultados-unificado {
        padding: 20px 15px;
    }
    
    .ganhador-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .ganhador-whatsapp {
        align-self: flex-end;
    }
    
    .regra-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .regra-icone {
        font-size: 1.8rem;
    }

    .grade-artigos {
        grid-template-columns: 1fr;
    }
}