/* Styles extraídos do index.html + ajustes para iframe e responsividade */
/* Reset básico */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: transparent; min-height: 100vh; color: #333; }
.container { margin: 0 auto; background: white; box-shadow: 0 20px 40px rgba(0,0,0,0.1); overflow: hidden; }
.header { background: linear-gradient(135deg, #1a7ac9, #003a74); color: white; padding: 20px; text-align: center; }
.header h1 { font-size: 1.8rem; margin-bottom: 5px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.header p { opacity: 0.9; font-size: 0.95rem; }
.loading { display: flex; justify-content: center; align-items: center; padding: 60px 20px; flex-direction: column; gap: 15px; }
.spinner { width: 40px; height: 40px; border: 4px solid #f3f3f3; border-top: 4px solid #2196F3; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg);} 100% { transform: rotate(360deg);} }
.progress-bar { width: 300px; height: 6px; background: #f0f0f0; border-radius: 3px; overflow: hidden; margin: 10px 0; }
.progress-fill { height: 100%; background: #2196F3; border-radius: 3px; transition: width 0.3s ease; width: 0%; }
.progress-text { font-size: 0.9rem; color: #666; }
.error { background: #ffebee; border: 1px solid #ffcdd2; color: #c62828; padding: 20px; margin: 20px; border-radius: 8px; text-align: center; }
.games-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); gap: 20px; padding: 20px; }
.game-card { background: white; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; border: 1px solid #f0f0f0; display: flex; flex-direction: column; }
.game-card:hover { transform: translateY(-5px); box-shadow: 0 8px 30px rgba(0,0,0,0.15); }
.game-header { padding: 15px 20px; color: white; position: relative; overflow: hidden; text-align: left; }
.game-header::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 0; opacity: 0.1; background-image: url('../logo.svg'); background-repeat: space; background-position: center; background-size: 50px 25px; }
.mega-sena { background: linear-gradient(90deg, #209869, #8FCBB3); }
.lotofacil { background: linear-gradient(90deg, #930089, #C87FC3); }
.quina { background: linear-gradient(90deg, #260085, #927FC1); }
.lotomania { background: linear-gradient(90deg, #F78100, #FABF7F); }
.timemania { background: linear-gradient(90deg, #02c902, #72da72); }
.dupla-sena { background: linear-gradient(90deg, #A61324, #D28891); }
.federal { background: linear-gradient(90deg, #103099, #8797CB); }
.loteca { background: linear-gradient(90deg, #FB1F00, #FC8E7F); }
.dia-de-sorte { background: linear-gradient(90deg, #CB852B, #EEC48B); }
.supersete { background: linear-gradient(90deg, #94bd2f, #d3e66b); }
.maismilionaria { background: linear-gradient(90deg, #0086B7, #7FC2DA); }
.game-name { -webkit-text-stroke-color: #0000008c; -webkit-text-stroke-width: 0.1px; text-shadow: 1px 1px 2px #0000004d; font-size: 1.7rem; font-weight: bold; margin-bottom: 5px; position: relative; letter-spacing: 0.1rem; z-index: 1; }
.game-info { -webkit-text-stroke-color: #0000008c; -webkit-text-stroke-width: 0.1px; text-shadow: 1px 1px 2px #0000004d; font-size: 1.1rem; font-weight: bold; position: relative; z-index: 1; }
.game-content { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.detail-item { text-align: center; }
.numbers-section { margin-bottom: 20px; }
.numbers-title { text-align: center; font-size: 0.9rem; font-weight: 600; color: #666; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.5px; }
.numbers { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 15px; }
.number { width: 2.5rem; height: 2.5rem; border: 2px solid #e9ecef; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 500; color: #495057; font-size: 1.2rem; transition: all 0.3s ease; }
.number:hover { background: #e9ecef; transform: scale(1.1); }
.prizes-section { background: #f8f9fa; border-radius: 8px; padding: 15px; margin-bottom: 15px; }
.prizes-title { font-size: 0.85rem; color: #002263; font-weight: 600; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.5px; }
.prize-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid #e9ecef; }
.prize-item:last-child { border-bottom: none; }
.prize-info { display: flex; flex-direction: column; gap: 2px; }
.prize-faixa { font-weight: 600; color: #333; font-size: 1rem; }
.prize-ganhadores { font-size: 0.9rem; color: #666; font-style: italic; }
.prize-value { font-weight: 600; color: #27ae60; text-align: right; display: flex; align-items: center; justify-content: flex-end; }
.next-draw { background: linear-gradient(135deg, #e3f2fd, #eef7ff); border-radius: 8px; padding: 15px; text-align: center; margin-top: auto; }
.next-draw-title { font-size: 0.85rem; color: #1976d2; font-weight: 600; margin-bottom: 5px; }
.next-draw-value { font-size: 1.5rem; font-weight: bold; color: #0d47a1; }
.accumulated-badge { z-index: 99; position: absolute; top: 10px; right: 10px; background: #002263; color: white; padding: 4px 8px; border-radius: 12px; font-size: 0.7rem; font-weight: bold; }
.hidden { display: none; }
.loteca-table { margin-top: 15px; overflow-x: auto; }
.loteca-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 8px; margin-top: 10px; max-height: 200px; overflow: hidden; transition: max-height 0.3s ease; }
.loteca-results.expanded { max-height: none; }
.loteca-expand-button { display: flex; justify-content: center; margin-top: 15px; }
.expand-btn { background-color: #fff; color: #666; border: 1px solid #666; padding: 10px 20px; border-radius: 20px; cursor: pointer; font-size: 0.85rem; font-weight: 600; transition: all 0.3s ease; display: flex; align-items: center; gap: 8px; }
.expand-btn:hover { color: #666; background-color: #fff; transform: translateY(-1px); box-shadow: 0 4px 8px rgba(0,0,0,0.2); }
.expand-icon { transition: transform 0.3s ease; }
.expand-btn.expanded .expand-icon { transform: rotate(180deg); }
.loteca-match { background: linear-gradient(135deg, #f8f9fa, #ffffff); border: 1px solid #e9ecef; border-radius: 8px; padding: 12px; transition: all 0.3s ease; position: relative; overflow: hidden; }
.loteca-match:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.loteca-match::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.match-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.match-number { color: #666; background: #e9ecef; border-radius: 50%; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: bold; }
.match-day { font-size: 0.7rem; color: #666; background: #e9ecef; padding: 2px 6px; border-radius: 10px; }
.match-content { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.team { flex: 1; font-size: 0.75rem; font-weight: 600; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team-home { text-align: right; padding-right: 8px; }
.team-away { text-align: left; padding-left: 8px; }
.match-score { display: flex; align-items: center; gap: 8px; min-width: 80px; justify-content: center; }
.result-option { width: 24px; height: 24px; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: bold; background: #f1f1f1; color: #666; border: 1px solid #ddd; transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
/* Unifica o destaque para funcionar com 'highlight' e 'active' sem alterar JS */
.result-option.highlight, .result-option.active { background: #0d47a1; color: #fff; border-color: #0d47a1; box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.18); transform: none; }
.federal-table { background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.federal-header { border-top: 1px solid #f0f0f0; border-bottom: 1px solid #f0f0f0; border-width: 2px; color: white; display: grid; grid-template-columns: 80px 1fr 140px; padding: 12px 15px; font-weight: 600; font-size: 0.9rem; }
.federal-serie-header { text-align: left; font-weight: 700; color: #103099; margin: 4px 2px 8px; padding-left: 4px; font-size: 0.95rem; }
.federal-row { display: grid; grid-template-columns: 80px 1fr 140px; padding: 12px 15px; border-bottom: 1px solid #f0f0f0; transition: background-color 0.2s ease; }
.federal-row:last-child { border-bottom: none; }
.federal-row:hover { background-color: #f8f9fa; }
.federal-col-destino { font-weight: 600; color: #333; font-size: 0.85rem; }
.federal-col-bilhete { font-weight: 600; color: #333; font-size: 0.85rem; }
.federal-col-local { font-weight: 500; color: #555; font-size: 0.8rem; margin-top: 2px; }
/* Ajuste da cor do título no cabeçalho para não herdar o verde de .prize-value */
.federal-header .prize-value { color: #444; }
/* Layout detalhado quando houver cidade/lotérica */
.federal-detailed .federal-header { grid-template-columns: 60px 65px 1fr 0.7fr 122px; }
.federal-detailed .federal-row { grid-template-columns: 60px 65px 1fr 0.7fr 122px; }
/* Novas colunas */
.federal-col-loterica { 
    font-weight: 600; color: #333; font-size: 0.85rem; }
.federal-col-cidade { font-weight: 500; color: #444; font-size: 0.85rem; }
.timemania-heart-team-text { text-align: center; padding: 15px; background: #f8f9fa; border-radius: 8px; margin-top: 10px; font-weight: 700; color: #333; font-size: 1rem; }
.maismilionaria-trevos-text { text-align: center; padding: 15px; background: #f8f9fa; border-radius: 8px; margin-top: 10px; font-weight: 700; color: #333; font-size: 1.5rem; display: flex; align-items: center; justify-content: center; gap: 8px; }
/* Super Sete - 7 colunas (índices acima e dígitos abaixo) */
.supersete-indexes { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-bottom: 8px; }
.supersete-index { text-align: center; font-size: 1rem; color: #666; font-weight: 600; }
.supersete-digits { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; justify-items: center; }
/* Últimos resultados */
.last-results { margin-top: 16px; }
.last-results-title { font-weight: 600; margin-bottom: 8px; color: #0d47a1; }
.last-results-grid { display: grid; grid-template-columns: repeat(1, 1fr); gap: 12px; }
.last-result-item { border: 1px solid #e9ecef; border-radius: 8px; padding: 10px; background: #fff; }
.last-result-header { font-size: 0.9rem; color: #495057; margin-bottom: 8px; }

@media (min-width: 768px) {
	.last-results-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
	.last-results-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Próximo Concurso - linhas adicionais */
.next-draw .next-draw-line { display: flex; justify-content: space-between; gap: 12px; font-size: 0.9rem; color: #2f3b4b; margin-top: 4px; }
@media (max-width: 768px) { .container { border-radius: 0; margin: 0; } .games-grid { grid-template-columns: 1fr; padding: 15px; gap: 15px; } .header h1 { font-size: 1.5rem; } .game-content { padding: 15px; } .numbers { gap: 6px; } .number { width: 2.5rem; height: 2.5rem; font-size: 1.2rem; } .loteca-results { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 6px; } .loteca-match { padding: 10px; } .team { font-size: 0.7rem; } .team-home { padding-right: 4px; } .team-away { padding-left: 4px; } .match-number { width: 20px; height: 20px; font-size: 0.7rem; } .score { width: 22px; height: 22px; font-size: 0.75rem; } .result-indicator { width: 24px; height: 24px; font-size: 0.75rem; } .match-score { min-width: 100px; } .federal-header, .federal-row { grid-template-columns: 60px 1fr 110px; padding: 10px 12px; } .federal-detailed .federal-header, .federal-detailed .federal-row { grid-template-columns: 60px 120px 1fr 1fr 110px; } .federal-col-destino { font-size: 0.8rem; } .federal-col-bilhete { font-size: 1rem; padding: 0 8px; } .timemania-heart-team { padding: 12px; } .timemania-heart-team-text { font-size: 1rem; } .maismilionaria-trevos { padding: 12px; } .maismilionaria-trevos-text { font-size: 1.5rem; } .supersete-indexes { gap: 6px; } .supersete-digits { gap: 6px; } }
/* Muito estreito: ocultar colunas intermediárias do layout detalhado */
@media (max-width: 420px) {
	.federal-detailed .federal-col-loterica,
	.federal-detailed .federal-col-cidade { display: none; }
	.federal-detailed .federal-header { grid-template-columns: 60px 1fr 110px; }
	.federal-detailed .federal-row { grid-template-columns: 60px 1fr 110px; }
}
@media (max-width: 480px) { body { padding: 5px; } .header { padding: 15px; } .header h1 { font-size: 1.3rem; } .games-grid { padding: 10px; } .game-content { padding: 12px; } }
