/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #f9fafb;
    background-color: #000000;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Carrossel */
.carousel-container {
    position: relative;
    max-width: 80rem;
    margin: 0 auto;
}

.carousel-wrapper {
    overflow: hidden;
    border-radius: 0.5rem;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
}

.image-card {
    background-color: #1f2937;
    border: 1px solid #374151;
    border-radius: 0.5rem;
    padding: 0.25rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.carousel-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 0.5rem;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 1px solid #4b5563;
    background-color: #1f2937;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background-color: #374151;
    color: #fbbf24;
}

.carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.carousel-btn-prev {
    left: -3rem;
}

.carousel-btn-next {
    right: -3rem;
}

.carousel-description {
    padding: 1.5rem;
    text-align: center;
    background-color: #111827;
    border-radius: 0 0 0.5rem 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-left: 1px solid #374151;
    border-right: 1px solid #374151;
    border-bottom: 1px solid #374151;
}

.main-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 0.5rem;
}

.sub-title {
    font-size: 1.125rem;
    color: #d1d5db;
}

/* Seção de Compra */
.purchase-section {
    background-color: #111827;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 48rem;
    margin: 0 auto 3rem;
    border: 1px solid #374151;
}

.price-info {
    text-align: center;
    margin-bottom: 1.5rem;
}

.price-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: #d1d5db;
}

.price-highlight {
    color: #10b981;
    font-weight: 700;
    font-size: 1.875rem;
}

/* Barra de Progresso */
.progress-section {
    margin-bottom: 1.5rem;
}

.progress-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-align: center;
    color: #d1d5db;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: #1f2937;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid #374151;
}

.progress-bar {
    flex: 1;
    height: 1rem;
    background-color: #4b5563;
    border-radius: 9999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #dc2626;
    transition: width 0.3s ease;
}

.progress-percentage {
    font-size: 1.25rem;
    font-weight: 700;
    color: #10b981;
}

.progress-text {
    font-size: 0.875rem;
    color: #9ca3af;
    text-align: center;
    margin-top: 0.25rem;
}

/* Seleção de Cotas */
.quota-selection {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border: 1px solid #374151;
    border-radius: 0.5rem;
    background-color: #1f2937;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.selection-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #f9fafb;
}

.quota-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
    width: 100%;
    max-width: 28rem;
}

.quota-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    background-color: #059669;
    color: #ffffff;
    font-weight: 700;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.quota-btn:hover {
    background-color: #047857;
    transform: translateY(-1px);
}

.quota-btn.popular {
    position: relative;
}

.popular-badge {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    background-color: #fbbf24;
    color: #000000;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    transform: rotate(6deg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

/* Controles de Quantidade */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.quantity-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background-color: #374151;
    color: #f9fafb;
    border: 1px solid #4b5563;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.quantity-btn:hover:not(:disabled) {
    background-color: #4b5563;
}

.quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity-input {
    width: 6rem;
    height: 2.5rem;
    text-align: center;
    font-weight: 700;
    font-size: 1.125rem;
    background-color: #374151;
    color: #f9fafb;
    border: 1px solid #4b5563;
    border-radius: 0.375rem;
    outline: none;
}

/* Resumo do Pedido */
.order-summary {
    text-align: center;
    margin-top: 1rem;
}

.quota-count {
    font-size: 1.125rem;
    font-weight: 500;
    color: #d1d5db;
    margin-bottom: 0.25rem;
}

.quota-count span {
    font-weight: 700;
    color: #fbbf24;
}

.total-price {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 0.25rem;
}

.total-price span {
    color: #10b981;
}

/* Botão de Compra */
.purchase-button-container {
    text-align: center;
    margin-top: 2rem;
}

.purchase-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    max-width: 28rem;
    padding: 0.75rem 1rem;
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(to right, #10b981, #047857);
    color: #ffffff;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.purchase-btn:hover {
    background: linear-gradient(to right, #059669, #065f46);
    transform: scale(1.05);
}

/* Botão Regulamento */
.regulation-container {
    text-align: center;
    margin-top: 1rem;
}

.regulation-btn {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 0.875rem;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.3s ease;
}

.regulation-btn:hover {
    color: #d1d5db;
}

/* Seção de Ganhadores */
.winners-section {
    margin-bottom: 3rem;
}

.winners-card {
    border-radius: 0.5rem;
    border: 1px solid #374151;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 32rem;
    margin: 2rem auto 0;
    background-color: #111827;
    color: #f9fafb;
}

.winners-header {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.winners-title {
    font-weight: 600;
    text-align: center;
    font-size: 1.5rem;
}

.winners-content {
    padding: 1.5rem;
    padding-top: 0;
}

.winner-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    border: 1px solid #374151;
    border-radius: 0.375rem;
    background-color: #1f2937;
    margin-bottom: 1rem;
}

.winner-item:last-child {
    margin-bottom: 0;
}

.winner-number {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.check-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: #10b981;
}

.number {
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    color: #d1d5db;
}

.winner-prize {
    font-size: 0.875rem;
    font-weight: 500;
    text-align: right;
    color: #d1d5db;
}

/* Footer */
.footer {
    background: linear-gradient(to right, #111827, #000000);
    color: #d1d5db;
    padding: 2rem 1rem;
    border-top: 1px solid #1f2937;
}

.footer-content {
    container: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.footer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-icon {
    width: 2rem;
    height: 2rem;
    color: #fbbf24;
    margin-bottom: 0.5rem;
}

.footer-title {
    font-weight: 700;
    font-size: 1.125rem;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.footer-text {
    font-size: 0.875rem;
}

.footer-copyright {
    margin-top: 2rem;
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background-color: #111827;
    margin: 5% auto;
    padding: 0;
    border: 1px solid #374151;
    border-radius: 0.5rem;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #374151;
}

.modal-header h2 {
    color: #f9fafb;
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #f9fafb;
}

.modal-body {
    padding: 1.5rem;
    color: #d1d5db;
    line-height: 1.6;
}

.modal-body h3 {
    color: #f9fafb;
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.modal-body h3:first-child {
    margin-top: 0;
}

.modal-body p {
    margin-bottom: 1rem;
}

/* Responsividade */
@media (max-width: 768px) {
    .main-title {
        font-size: 1.5rem;
    }
    
    .sub-title {
        font-size: 1rem;
    }
    
    .purchase-section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .quota-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .carousel-btn-prev {
        left: -2rem;
    }
    
    .carousel-btn-next {
        right: -2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
}

@media (max-width: 480px) {
    .carousel-btn-prev,
    .carousel-btn-next {
        display: none;
    }
    
    .quota-buttons {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 0.5rem;
    }
    
    .purchase-section {
        padding: 1rem;
    }
}

