/* Games Page Specific Styles */

.login-required {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    margin-top: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-message {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    margin: 2rem;
}

.login-message h2 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.login-message p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.login-btn, .register-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    margin: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 600;
}

.login-btn {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: white;
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.4);
}

.register-btn {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
    box-shadow: 0 5px 20px rgba(78, 205, 196, 0.4);
}

.login-btn:hover, .register-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #333;
    font-weight: 600;
}

.logout-btn {
    background: #ff4757;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: #ff3742;
    transform: translateY(-2px);
}

.games-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6rem 2rem 4rem;
    text-align: center;
    margin-top: 80px;
}

.games-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.games-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.games-section {
    padding: 4rem 2rem;
    background: #f8f9fa;
    min-height: 100vh;
}

.games-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: white;
    color: #333;
    border: 2px solid #ddd;
    padding: 1rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    border-color: #ff6b35;
    color: #ff6b35;
}

.tab-btn.active {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: white;
    border-color: #ff6b35;
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.4);
}

.game-tab {
    display: none;
}

.game-tab.active {
    display: block;
}

.game-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.game-card h2 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 2rem;
    text-align: center;
}

.game-card p {
    color: #666;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.input-section {
    margin-bottom: 3rem;
}

.input-section h3 {
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    gap: 0.5rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.number-input {
    width: 50px;
    height: 50px;
    border: 2px solid #ddd;
    border-radius: 10px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.number-input:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.number-input.filled {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
    border-color: #4ecdc4;
}

.milhares-numbers {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.number-selector {
    width: 60px;
    height: 60px;
    border: 3px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.number-selector:hover {
    border-color: #ff6b35;
    transform: scale(1.1);
}

.number-selector.selected {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: white;
    border-color: #ff6b35;
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

.selected-count {
    text-align: center;
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.input-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.clear-btn, .random-btn, .generate-btn, .select-all-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-btn {
    background: #ff4757;
    color: white;
    box-shadow: 0 3px 15px rgba(255, 71, 87, 0.4);
}

.random-btn, .select-all-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 3px 15px rgba(102, 126, 234, 0.4);
}

.generate-btn {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
    box-shadow: 0 5px 20px rgba(78, 205, 196, 0.4);
}

.generate-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

.clear-btn:hover, .random-btn:hover, .generate-btn:hover, .select-all-btn:hover {
    transform: translateY(-3px);
}

.results-section {
    border-top: 2px solid #eee;
    padding-top: 2rem;
}

.results-section h3 {
    color: #333;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.5rem;
}

.ternos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.terno-item {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 1rem;
    border-radius: 15px;
    text-align: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.terno-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.milhares-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.milhar-item {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: white;
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    font-weight: bold;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
    transition: all 0.3s ease;
}

.milhar-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.results-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.export-btn, .print-btn {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 15px rgba(78, 205, 196, 0.4);
}

.export-btn:hover, .print-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(78, 205, 196, 0.6);
}

.conferidores-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.conferidor-section {
    margin-top: 1rem;
}

.sorteio-input {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.sorteio-input input {
    flex: 1;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    min-width: 200px;
}

.sorteio-input input:focus {
    outline: none;
    border-color: #ff6b35;
}

.conferir-btn {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 15px rgba(255, 107, 53, 0.4);
    white-space: nowrap;
}

.conferir-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.6);
}

.seus-ternos textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    font-family: monospace;
    resize: vertical;
}

.seus-ternos textarea:focus {
    outline: none;
    border-color: #ff6b35;
}

.conferidor-results {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    margin-top: 2rem;
}

.resultado-item {
    padding: 1rem;
    margin: 0.5rem 0;
    border-radius: 10px;
    font-weight: bold;
}

.resultado-item.acertou {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.resultado-item.nao-acertou {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.estatisticas {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1rem;
    text-align: center;
}

.estatisticas h4 {
    color: #333;
    margin-bottom: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.stat-item {
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
}

.stat-item.acertos {
    background: #d4edda;
    color: #155724;
}

.stat-item.erros {
    background: #f8d7da;
    color: #721c24;
}

.stat-item .number {
    font-size: 2rem;
    font-weight: bold;
    display: block;
}

.stat-item .label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Modal Updates */
#authModal .modal-content {
    max-width: 400px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .games-hero h1 {
        font-size: 2rem;
    }
    
    .game-card {
        padding: 2rem 1rem;
    }
    
    .numbers-grid {
        grid-template-columns: repeat(auto-fill, minmax(45px, 1fr));
    }
    
    .number-input {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .milhares-numbers {
        gap: 0.5rem;
    }
    
    .number-selector {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .input-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .input-controls button {
        width: 200px;
    }
    
    .conferidores-container {
        grid-template-columns: 1fr;
    }
    
    .sorteio-input {
        flex-direction: column;
    }
    
    .sorteio-input input {
        min-width: auto;
    }
    
    .user-info {
        display: none;
    }
    
    .games-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-btn {
        width: 200px;
    }
}
