/* Estilos específicos para páginas de jogos */

/* Game Page Layout */
.game-page {
    padding: 20px 15px;
    max-width: 800px;
    margin: 0 auto;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    color: var(--text);
    transform: translateX(-5px);
}

.game-header {
    text-align: center;
    margin-bottom: 30px;
}

.game-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    margin-bottom: 8px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.game-description {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Signal Generator Card */
.signal-card {
    background: var(--dark-card);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(236, 52, 25, 0.15);
    position: relative;
    overflow: hidden;
}

.signal-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(236, 52, 25, 0.03), transparent 30%);
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

.signal-content {
    position: relative;
    z-index: 2;
}

/* Signal Display */
.signal-display {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    padding: 25px 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    border: 1px dashed rgba(236, 52, 25, 0.2);
}

.signal-placeholder {
    text-align: center;
    color: var(--text-muted);
}

.signal-placeholder i {
    font-size: 3.5rem;
    margin-bottom: 12px;
    opacity: 0.5;
    color: var(--primary);
}

.signal-placeholder p {
    font-size: 1rem;
}

/* Signal Result */
.signal-result {
    display: none;
    text-align: center;
    animation: fadeInUp 0.5s ease;
    width: 100%;
}

.signal-result.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.signal-label {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.signal-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    padding: 18px 30px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 20px currentColor; }
    50% { box-shadow: 0 0 35px currentColor; }
}

/* Cores dos sinais */
.signal-blue {
    background: linear-gradient(135deg, #0066ff 0%, #00ccff 100%);
    color: white;
}

.signal-red {
    background: linear-gradient(135deg, #EC3419 0%, #ff5733 100%);
    color: white;
}

.signal-yellow {
    background: linear-gradient(135deg, #ffcc00 0%, #ff9900 100%);
    color: #1a1a1a;
}

.signal-green {
    background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 100%);
    color: white;
}

.signal-black {
    background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.signal-multiplier {
    background: var(--gradient-primary);
    color: white;
}

/* Aviator specific */
.aviator-signal {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.aviator-main {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 10px;
}

.aviator-tip {
    font-size: 1rem;
    color: var(--primary);
    padding: 10px 18px;
    background: rgba(236, 52, 25, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(236, 52, 25, 0.3);
}

/* Roleta specific */
.roleta-signal {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    width: 100%;
}

.roleta-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.roleta-item {
    padding: 14px 22px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Action Buttons Container */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Generate Button */
.btn-generate {
    width: 100%;
    padding: 18px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    background: var(--gradient-primary);
    border: none;
    border-radius: 12px;
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-generate::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-generate:hover::before {
    left: 100%;
}

.btn-generate:hover {
    transform: scale(1.02);
    box-shadow: 0 0 35px rgba(236, 52, 25, 0.5);
}

.btn-generate:active {
    transform: scale(0.98);
}

.btn-generate.loading {
    pointer-events: none;
}

.btn-generate.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* Entry Button */
.btn-entry {
    width: 100%;
    padding: 18px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 100%);
    border: none;
    border-radius: 12px;
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-entry::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-entry:hover::before {
    left: 100%;
}

.btn-entry:hover {
    transform: scale(1.02);
    box-shadow: 0 0 35px rgba(27, 94, 32, 0.5);
}

.btn-entry:active {
    transform: scale(0.98);
}

/* Confidence indicator */
.confidence {
    margin-top: 18px;
    text-align: center;
}

.confidence-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.confidence-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    max-width: 250px;
    margin: 0 auto;
}

.confidence-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.confidence-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    color: var(--primary);
    margin-top: 8px;
}

/* Live Chart Section */
.live-chart-section {
    margin-top: 25px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(236, 52, 25, 0.15);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.chart-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.chart-title i {
    font-size: 0.85rem;
}

.chart-live {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #4ade80;
}

.chart-live-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.live-chart {
    height: 80px;
    display: flex;
    align-items: flex-end;
    gap: 6px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(236, 52, 25, 0.2);
    position: relative;
}

.live-chart::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(236, 52, 25, 0.3), transparent);
}

.chart-bar-live {
    flex: 1;
    background: linear-gradient(180deg, var(--primary) 0%, rgba(236, 52, 25, 0.3) 100%);
    border-radius: 3px 3px 0 0;
    transition: height 0.5s ease;
    min-width: 12px;
    position: relative;
}

.chart-bar-live::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    border-radius: 3px 3px 0 0;
    box-shadow: 0 0 10px var(--primary);
}

.chart-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 10px;
}

.chart-stat {
    text-align: center;
}

.chart-stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    color: var(--primary);
    display: block;
}

.chart-stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Tips Section */
.tips-section {
    margin-top: 25px;
    padding: 18px;
    background: rgba(236, 52, 25, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(236, 52, 25, 0.1);
}

.tips-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.95rem;
    color: var(--primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tips-list {
    list-style: none;
}

.tips-list li {
    padding: 6px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tips-list li i {
    color: var(--primary);
    font-size: 0.75rem;
}

/* Game Footer - Centralizado */
.game-footer {
    text-align: center;
    padding: 20px 15px;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid rgba(236, 52, 25, 0.15);
    margin-top: 30px;
}

.game-footer p {
    margin: 0;
    text-align: center;
}

/* Responsive */
@media (max-width: 480px) {
    .game-page {
        padding: 15px 12px;
    }
    
    .game-title {
        font-size: 1.5rem;
    }
    
    .game-description {
        font-size: 0.9rem;
    }
    
    .signal-card {
        padding: 20px 15px;
    }
    
    .signal-display {
        min-height: 150px;
        padding: 20px 12px;
    }
    
    .signal-placeholder i {
        font-size: 2.8rem;
    }
    
    .signal-placeholder p {
        font-size: 0.9rem;
    }
    
    .signal-value {
        font-size: 1.3rem;
        padding: 14px 20px;
    }
    
    .aviator-main {
        font-size: 2rem;
    }
    
    .aviator-tip {
        font-size: 0.9rem;
        padding: 8px 14px;
    }
    
    .roleta-item {
        padding: 12px 18px;
        font-size: 0.9rem;
    }
    
    .btn-generate {
        font-size: 1rem;
        padding: 16px;
    }
    
    .tips-section {
        padding: 15px;
    }
    
    .tips-list li {
        font-size: 0.85rem;
    }
}