/* Reset e configurações básicas */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f0f0f0;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */

.header {
    background: linear-gradient(135deg, #2e8b57, #228b22);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
    border-radius: 50%;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Main Content */

.main {
    padding: 20px 0;
}

/* Banner Section */

.banner-section {
    margin-bottom: 30px;
}

.banner-container {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.banner-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
}

.sorteio-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #2e8b57;
}

.sorteio-icon {
    font-size: 24px;
}

#data-sorteio {
    color: #ff6b35;
    font-weight: 700;
}

/* Seção Especial do Dia do Sorteio */

.dia-sorteio-section {
    margin-bottom: 30px;
}

.dia-sorteio-container {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.dia-sorteio-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 215, 0, 0.1) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.dia-sorteio-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.dia-sorteio-title {
    font-size: 32px;
    font-weight: 800;
    color: #ffd700;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 0 0 10px #ffd700;
    }
    to {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 0 0 20px #ffd700, 0 0 30px #ffd700;
    }
}

.title-icon {
    font-size: 36px;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.countdown-container {
    position: relative;
    margin-bottom: 30px;
    border-radius: 15px;
    overflow: hidden;
}

.countdown-bg {
    position: relative;
}

.countdown-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
}

.countdown-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.countdown-display {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 215, 0, 0.5);
    border-radius: 15px;
    padding: 15px 10px;
    min-width: 80px;
    text-align: center;
    animation: pulse-countdown 2s infinite;
}

@keyframes pulse-countdown {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.countdown-number {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.countdown-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.countdown-separator {
    font-size: 32px;
    font-weight: 800;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%,
    50% {
        opacity: 1;
    }
    51%,
    100% {
        opacity: 0.3;
    }
}

.sorteio-details {
    text-align: center;
}

.sorteio-details p {
    margin: 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.premio-destaque {
    font-size: 20px !important;
    color: #ffd700 !important;
    font-weight: 800 !important;
    animation: glow-text 2s ease-in-out infinite alternate;
}

@keyframes glow-text {
    from {
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8), 0 0 10px #ffd700;
    }
    to {
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8), 0 0 20px #ffd700, 0 0 30px #ffd700;
    }
}

.excitement-text {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.excitement-text p {
    margin: 10px 0;
    font-size: 18px;
    font-weight: 600;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Seção de Compra */

.compra-section {
    margin-bottom: 30px;
}

.compra-container {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.compra-title {
    font-size: 20px;
    color: #666;
    margin-bottom: 30px;
    font-weight: 500;
}

.opcoes-compra {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.fileira-opcoes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.opcao-item {
    background: linear-gradient(135deg, #2e8b57, #228b22);
    border-radius: 10px;
    padding: 15px 10px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    opacity: 0.6;
    transform: scale(0.95);
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

.opcao-item:hover {
    transform: translateY(-5px) scale(1);
    box-shadow: 0 10px 25px rgba(46, 139, 87, 0.3);
    opacity: 1;
}

.opcao-item.selected {
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    transform: scale(1.05);
    opacity: 1;
    box-shadow: 0 15px 30px rgba(255, 107, 53, 0.4);
}

.opcao-item.active {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
    transform: scale(1.1);
    opacity: 1;
    box-shadow: 0 15px 30px rgba(255, 215, 0, 0.5);
    border: 3px solid #ff6b35;
}

.valor-tag {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px 8px;
    border-radius: 12px;
    backdrop-filter: blur(5px);
}

.opcao-item.active .valor-tag {
    background: rgba(0, 0, 0, 0.3);
    color: #333;
}

.bilhetes-info {
    font-size: 24px;
    font-weight: 700;
    margin: 10px 0;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-selecionar {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    width: auto;
    min-width: 85px;
    white-space: nowrap;
}

.btn-selecionar:hover {
    background: rgba(255, 255, 255, 0.3);
}

.opcao-item.active .btn-selecionar {
    background: rgba(0, 0, 0, 0.2);
    color: #333;
    border-color: rgba(0, 0, 0, 0.3);
}

/* Responsividade para mobile */

@media (max-width: 768px) {
    .fileira-opcoes {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .opcao-item {
        padding: 12px 8px;
        min-height: 110px;
    }
    .valor-tag {
        font-size: 10px;
        padding: 3px 6px;
        top: 6px;
        right: 6px;
    }
    .bilhetes-info {
        font-size: 20px;
        margin: 8px 0;
    }
    .btn-selecionar {
        font-size: 9px;
        padding: 6px 8px;
        min-width: 70px;
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .fileira-opcoes {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .opcao-item {
        padding: 10px 6px;
        min-height: 100px;
        border-radius: 8px;
    }
    .valor-tag {
        font-size: 9px;
        padding: 2px 5px;
        top: 5px;
        right: 5px;
        border-radius: 8px;
    }
    .bilhetes-info {
        font-size: 18px;
        margin: 6px 0;
    }
    .btn-selecionar {
        font-size: 8px;
        padding: 5px 6px;
        min-width: 60px;
        border-radius: 10px;
    }
}

@media (max-width: 360px) {
    .fileira-opcoes {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .opcao-item {
        padding: 8px 4px;
        min-height: 90px;
    }
    .btn-selecionar {
        font-size: 7px;
        padding: 4px 5px;
        min-width: 50px;
    }
}

/* Sistema de Navegação */

.navegacao-opcoes {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    border: 2px solid rgba(46, 139, 87, 0.3);
}

.btn-navegacao {
    width: 60px;
    height: 60px;
    border: 3px solid #2e8b57;
    background: white;
    color: #2e8b57;
    font-size: 28px;
    font-weight: 700;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-navegacao:hover {
    background: #2e8b57;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(46, 139, 87, 0.3);
}

.btn-navegacao:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.opcao-atual {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    border-radius: 15px;
    padding: 20px 30px;
    text-align: center;
    min-width: 200px;
    border: 3px solid #ff6b35;
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
}

.opcao-display {
    color: #333;
}

.valor-atual {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 5px;
}

.bilhetes-atual {
    font-size: 16px;
    font-weight: 600;
    opacity: 0.8;
}

/* Botão Participar */

.btn-participar {
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    border: none;
    color: white;
    padding: 20px 40px;
    font-size: 20px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 auto;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.3);
}

.btn-participar:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.btn-participar:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.participar-icon {
    font-size: 24px;
}

/* Info Section */

.info-section {
    margin-bottom: 30px;
}

.info-container {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.info-container h3 {
    color: #2e8b57;
    font-size: 18px;
    margin-bottom: 15px;
}

.info-container p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.regulamentacao {
    font-size: 14px;
    color: #666;
}

.link-regulamento {
    color: #2e8b57;
    text-decoration: none;
    font-weight: 600;
}

.link-regulamento:hover {
    text-decoration: underline;
}

.disclaimer {
    font-style: italic;
    color: #888;
    font-size: 13px;
}

/* Bilhetes Section */

.bilhetes-section {
    margin-bottom: 50px;
}

.bilhetes-container {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.bilhetes-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    color: #333;
    margin-bottom: 30px;
    justify-content: center;
}

.bilhetes-icon {
    font-size: 28px;
}

.bilhetes-lista {
    display: grid;
    gap: 15px;
}

.bilhete-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.bilhete-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.bilhete-valor {
    font-size: 20px;
    font-weight: 700;
    color: #2e8b57;
}

.bilhete-numero {
    background: #333;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

.bilhete-status {
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

.bilhete-status.disponivel {
    background: #28a745;
    color: white;
}

.bilhete-status.comprado {
    background: #ffc107;
    color: #333;
}

.comprador-nome {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

/* Footer */

.footer {
    background: #333;
    color: white;
    padding: 40px 0;
    text-align: center;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.social-btn {
    transition: transform 0.3s ease;
}

.social-btn:hover {
    transform: scale(1.1);
}

.social-btn img {
    height: 50px;
    width: auto;
}

.footer-text {
    margin-bottom: 30px;
    font-size: 12px;
    color: #ccc;
    line-height: 1.5;
}

.footer-logo img {
    height: 80px;
    width: auto;
    border-radius: 50%;
}

/* Animações */

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.btn-participar.pulse {
    animation: pulse 2s infinite;
}

/* Responsividade */

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    .opcoes-compra {
        grid-template-columns: repeat(2, 1fr);
    }
    .compra-title {
        font-size: 18px;
    }
    .btn-participar {
        padding: 15px 30px;
        font-size: 18px;
    }
    .quantidade-selector {
        gap: 10px;
    }
    #quantidade {
        width: 150px;
    }
    .bilhete-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .opcoes-compra {
        grid-template-columns: 1fr;
    }
    .banner-container {
        padding: 15px;
    }
    .compra-container {
        padding: 20px;
    }
    .social-buttons {
        flex-direction: column;
        align-items: center;
    }
}