/* Lotérica Jogos V2 - CSS */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&display=swap');

* {
    font-family: 'Montserrat', sans-serif;
}

/* Botão de Resultado */
.loterica-btn-resultado {
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.loterica-btn-resultado:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Modal Overlay */
.loterica-overlay-v2 {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 99998;
    animation: fadeIn 0.3s;
}

.loterica-overlay-v2.active {
    display: block;
}

/* Modal */
.loterica-modal-v2 {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 15px;
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
    overflow: hidden;
    z-index: 99999;
    box-shadow: 0 15px 50px rgba(0,0,0,0.5);
    animation: slideIn 0.4s;
}

.loterica-modal-v2.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Header Modal */
.loterica-modal-header-v2 {
    padding: 25px 30px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 15px 15px 0 0;
}

.loterica-modal-header-v2 h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    text-transform: uppercase;
}

.loterica-modal-close-v2 {
    background: none;
    border: none;
    color: #fff;
    font-size: 35px;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.3s;
}

.loterica-modal-close-v2:hover {
    transform: rotate(90deg);
}

/* Modal Body */
.loterica-modal-body-v2 {
    padding: 30px;
    max-height: calc(90vh - 150px);
    overflow-y: auto;
}

/* Múltiplos Resultados */
.loterica-resultado-item {
    margin-bottom: 20px;
}

.loterica-resultado-divisor {
    height: 2px;
    background: linear-gradient(to right, transparent, #ddd, transparent);
    margin: 30px 0;
}

/* Data do Sorteio */
.loterica-data-sorteio {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    margin-bottom: 20px;
    padding: 10px;
    background: #f8f8f8;
    border-radius: 8px;
}

/* Números em Bolinhas */
.loterica-numeros-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 25px 0;
}

.loterica-numero-bola-v2 {
    background: #fff;
    color: #333;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    transition: transform 0.2s;
}

.loterica-numero-bola-v2:hover {
    transform: scale(1.15);
}

/* Super Sete - 2 linhas */
.loterica-supersete-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    max-width: 500px;
    margin: 20px auto;
}

/* Dupla Sena */
.loterica-sorteio-section {
    margin: 2px 0;
    padding: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
}

.loterica-sorteio-section:first-of-type {
    margin-top: 8px;
}

.loterica-sorteio-section:last-of-type {
    margin-bottom: 8px;
}

.loterica-sorteio-title {
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Federal - Tabela */
.loterica-federal-table {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.loterica-federal-table thead {
    background: rgba(0,0,0,0.1);
}

.loterica-federal-table th,
.loterica-federal-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #ddd;
    color: #333;
}

.loterica-federal-table th {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
}

.loterica-federal-table td {
    font-size: 16px;
    font-weight: 600;
}

.loterica-federal-table tr:last-child td {
    border-bottom: none;
}

/* Resultado Loteca */
.loterica-loteca-resultado {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    color: #333;
    font-size: 16px;
    line-height: 2.2;
    font-weight: 600;
    white-space: pre-line;
    text-align: center;
    word-break: break-word;
}

.loterica-loteca-resultado br {
    content: "";
    display: block;
    margin: 5px 0;
}

/* Informação Extra (Time, Mês, Trevos) */
.loterica-info-extra {
    text-align: center;
    margin: 25px 0;
    padding: 20px;
    background: rgba(255,255,255,0.95);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.loterica-info-label {
    font-size: 12px;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    text-align: center;
    display: block;
}

.loterica-info-value {
    font-size: 22px;
    font-weight: 800;
    color: #333;
    text-align: center !important;
    width: 100%;
    display: block;
    margin: 0 auto;
}

/* Trevos (Milionária) */
.loterica-trevos {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

.loterica-trevo {
    background: #FFD700;
    color: #000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
    box-shadow: 0 3px 10px rgba(255,215,0,0.5);
}

/* Status */
.loterica-status-v2 {
    text-align: center;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid rgba(255,255,255,0.2);
}

.loterica-status-badge-v2 {
    display: inline-block;
    padding: 12px 35px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.status-acumulou {
    background: #fff;
    color: #000;
    animation: pulse 2s infinite;
}

.status-premiado {
    background: #FFD700;
    color: #000;
    box-shadow: 0 0 20px rgba(255,215,0,0.7);
}

.status-ganhadores {
    background: #fff;
    color: #000;
}

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

/* Responsividade */
@media (max-width: 768px) {
    .loterica-modal-v2 {
        width: 98%;
        max-height: 95vh;
    }
    
    .loterica-modal-header-v2 h2 {
        font-size: 22px;
    }
    
    .loterica-modal-body-v2 {
        padding: 20px;
    }
    
    .loterica-numero-bola-v2 {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .loterica-supersete-grid {
        grid-template-columns: repeat(7, 1fr);
        gap: 5px;
    }
    
    .loterica-federal-table {
        font-size: 14px;
    }
    
    .loterica-federal-table th,
    .loterica-federal-table td {
        padding: 10px 5px;
    }
}

@media (max-width: 480px) {
    .loterica-numero-bola-v2 {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
    
    .loterica-status-badge-v2 {
        font-size: 20px;
        padding: 10px 25px;
    }
}

/* Scrollbar */
.loterica-modal-body-v2::-webkit-scrollbar {
    width: 8px;
}

.loterica-modal-body-v2::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.loterica-modal-body-v2::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.loterica-modal-body-v2::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ============================================
   LISTA DE JOGOS
   ============================================ */

.loterica-lista-jogos {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px 0;
    max-width: 1400px;
    margin: 0 auto;
}

.loterica-jogo-item {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.loterica-jogo-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

/* Header com Logo/Título */
.loterica-jogo-header {
    padding: 30px 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    flex-shrink: 0;
}

.loterica-jogo-logo {
    max-width: 150px;
    width: 100%;
    height: auto;
    max-height: 90px;
    object-fit: contain;
    display: block;
}

.loterica-jogo-titulo {
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 0.5px;
    text-align: center;
}

/* Body com Informações */
.loterica-jogo-body {
    padding: 30px;
    background: #fff;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    gap: 30px;
}

.loterica-jogo-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    flex: 1;
}

.loterica-info-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.loterica-info-label {
    font-size: 10px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    line-height: 1.4;
}

.loterica-info-value {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;
    color: #333;
}

/* Botões de Ação */
.loterica-jogo-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
    width: 260px;
}

.loterica-btn-boloes {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
    color: #fff;
    border: none;
    padding: 16px 24px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    white-space: nowrap;
    text-align: center;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

.loterica-btn-boloes:hover {
    background: linear-gradient(135deg, #FB8C00 0%, #EF6C00 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4);
}

.loterica-btn-resultado-single {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    color: #fff;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 8px;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    line-height: 1.5;
    text-align: center;
    gap: 8px;
}

.loterica-btn-resultado-single:hover {
    opacity: 0.92;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.loterica-arrow {
    font-size: 16px;
    flex-shrink: 0;
}

/* Responsivo - Desktop pequeno */
@media (max-width: 1200px) {
    .loterica-jogo-body {
        padding: 25px;
        gap: 25px;
    }
    
    .loterica-jogo-info {
        gap: 25px;
    }
    
    .loterica-jogo-actions {
        width: 240px;
    }
    
    .loterica-info-value {
        font-size: 20px;
    }
}

/* Responsivo - Tablet */
@media (max-width: 1024px) {
    .loterica-lista-jogos {
        gap: 15px;
        padding: 15px;
    }
    
    .loterica-jogo-item {
        flex-direction: column;
    }
    
    .loterica-jogo-header {
        width: 100%;
        padding: 25px;
    }
    
    .loterica-jogo-body {
        flex-direction: column;
        gap: 25px;
        padding: 25px;
    }
    
    .loterica-jogo-info {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        width: 100%;
    }
    
    .loterica-info-value {
        font-size: 20px;
    }
    
    .loterica-jogo-actions {
        width: 100%;
    }
}

/* Responsivo - Mobile */
@media (max-width: 768px) {
    .loterica-lista-jogos {
        gap: 12px;
        padding: 12px;
    }
    
    .loterica-jogo-item {
        flex-direction: column;
        border-radius: 12px;
    }
    
    .loterica-jogo-header {
        width: 100%;
        padding: 20px;
    }
    
    .loterica-jogo-logo {
        max-height: 70px;
        max-width: 130px;
    }
    
    .loterica-jogo-titulo {
        font-size: 20px;
    }
    
    .loterica-jogo-body {
        padding: 20px;
        flex-direction: column;
        gap: 20px;
    }
    
    .loterica-jogo-info {
        display: flex;
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    
    .loterica-info-row {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        padding: 16px 0;
        border-bottom: 1px solid #f0f0f0;
        gap: 15px;
    }
    
    .loterica-info-row:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .loterica-info-row:first-child {
        padding-top: 0;
    }
    
    .loterica-info-label {
        text-align: left;
        font-size: 9px;
        flex: 0 0 auto;
        max-width: 45%;
    }
    
    .loterica-info-value {
        font-size: 18px;
        text-align: right;
        flex: 1;
        min-width: 0;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .loterica-jogo-actions {
        width: 100%;
        gap: 10px;
    }
    
    .loterica-btn-boloes {
        padding: 14px 20px;
        font-size: 12px;
    }
    
    .loterica-btn-resultado-single {
        font-size: 10px;
        padding: 14px 20px;
        flex-wrap: wrap;
    }
    
    .loterica-arrow {
        font-size: 14px;
    }
}

/* ============================================
   BOLÕES
   ============================================ */

.loterica-boloes-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.loterica-boloes-header {
    text-align: center;
    padding: 40px 30px;
    border-radius: 15px 15px 0 0;
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.loterica-boloes-header h2 {
    margin: 0 0 10px 0;
    font-size: 32px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.loterica-boloes-header p {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    opacity: 0.95;
}

.loterica-boloes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.loterica-bolao-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.loterica-bolao-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.loterica-bolao-imagem {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: #f0f0f0;
    position: relative;
    cursor: pointer;
}

.loterica-bolao-imagem-clickable {
    cursor: zoom-in;
}

.loterica-bolao-zoom-hint {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.loterica-bolao-imagem-clickable:hover .loterica-bolao-zoom-hint {
    opacity: 1;
}

.loterica-bolao-imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.loterica-bolao-card:hover .loterica-bolao-imagem img {
    transform: scale(1.05);
}

.loterica-bolao-conteudo {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 25px;
}

/* Responsivo - Tablet */
@media (max-width: 1024px) {
    .loterica-boloes-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }
    
    .loterica-bolao-imagem {
        height: 250px;
    }
}

/* Botão WhatsApp */
.loterica-btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    background: linear-gradient(135deg, #25D366 0%, #20c75a 100%);
    color: white;
    padding: 14px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(37, 211, 102, 0.25);
    width: 100%;
    overflow: hidden;
    border: none;
}

.loterica-btn-whatsapp:hover {
    background: linear-gradient(135deg, #20c75a 0%, #1ab350 100%);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.35);
}

.loterica-btn-whatsapp svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.loterica-btn-whatsapp-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    flex: 1;
}

.loterica-btn-whatsapp-text strong {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.2px;
}

.loterica-btn-whatsapp-text small {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 5px;
    font-family: 'Courier New', Consolas, monospace;
    letter-spacing: 0.5px;
    display: inline-block;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.loterica-btn-whatsapp:hover .loterica-btn-whatsapp-text small {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* Lightbox Modal */
.loterica-lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.loterica-lightbox-content {
    margin: auto;
    display: block;
    width: auto;
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.loterica-lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 50px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    line-height: 1;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.5);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loterica-lightbox-close:hover,
.loterica-lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.8);
}

/* Responsivo - Mobile */
@media (max-width: 768px) {
    .loterica-boloes-wrapper {
        padding: 0 15px;
        margin: 30px auto;
    }
    
    .loterica-boloes-header {
        padding: 30px 20px;
        border-radius: 10px 10px 0 0;
    }
    
    .loterica-boloes-header h2 {
        font-size: 24px;
    }
    
    .loterica-boloes-header p {
        font-size: 14px;
    }
    
    .loterica-btn-whatsapp {
        width: 100%;
        justify-content: center;
    }
    
    .loterica-lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 40px;
        width: 50px;
        height: 50px;
    }
    
    .loterica-lightbox-content {
        max-width: 95%;
        max-height: 85vh;
    }
    
    .loterica-boloes-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 20px;
    }
    
    .loterica-bolao-imagem {
        height: 200px;
    }
    
    .loterica-bolao-codigo {
        padding: 20px;
    }
    
    .loterica-bolao-codigo-label {
        font-size: 12px;
        padding: 8px 16px;
    }
    
    .loterica-bolao-codigo-texto {
        font-size: 13px;
        padding: 15px;
    }
}

