/* ============================================
   DEL REY WEB - CSS LIMPO E ORGANIZADO
   ============================================ */

:root {
    --bg-primary: #0a0e27;
    --bg-secondary: #1a1f3a;
    --text-primary: #ffffff;
    --text-secondary: #b0b8c4;
    --primary-color: #3b82f6;
    --secondary-color: #8b5cf6;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --border-color: #2a2f36;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    padding-top: 80px;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.header-content h1 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.header-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-lang, .btn-profile {
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
}

/* ============================================
   CONTAINER E TELAS
   ============================================ */
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.screen {
    display: none;
}

.screen.active {
    display: block;
}

/* ============================================
   SELEÇÃO DE SISTEMA
   ============================================ */
.system-list, .market-list, .timeframe-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.system-btn, .market-btn, .timeframe-btn {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
}

.system-btn:hover, .market-btn:hover, .timeframe-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.system-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.system-name, .market-name, .timeframe-name {
    display: block;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.market-desc, .timeframe-desc {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ============================================
   TELA DE ANÁLISE
   ============================================ */
.analysis-container {
    text-align: center;
    padding: 3rem 1rem;
}

.analysis-message {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.analysis-progress {
    width: 100%;
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
}

.analysis-progress::after {
    content: '';
    display: block;
    width: 70%;
    height: 100%;
    background: var(--primary-color);
    animation: progress 2s infinite;
}

@keyframes progress {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(400%); }
}

/* ============================================
   TELA DE RESULTADO
   ============================================ */
.result-container {
    padding: 2rem 1rem;
}

.result-content {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.result-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.result-info {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    text-align: center;
}

.result-entry {
    background: rgba(59, 130, 246, 0.1);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 1rem;
    margin: 1rem 0;
}

.result-entry-label {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.result-entry-time {
    font-size: 1.5rem;
    font-weight: 700;
}

.result-chart {
    margin: 1.5rem 0;
    text-align: center;
}

.result-chart img {
    max-width: 100%;
    border-radius: 12px;
    border: 2px solid var(--border-color);
}

.result-broker {
    margin-top: 1.5rem;
    text-align: center;
}

.btn-broker {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-broker:hover {
    transform: translateY(-2px);
}

.result-martingale {
    margin-top: 1rem;
    font-style: italic;
    color: var(--text-secondary);
    text-align: center;
}

/* ============================================
   SEM OPORTUNIDADE
   ============================================ */
.no-opportunity-container {
    text-align: center;
    padding: 3rem 1rem;
}

.no-opportunity-container h2 {
    margin-bottom: 1rem;
}

.no-opportunity-container p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

/* ============================================
   RESPONSIVO
   ============================================ */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .system-btn, .market-btn, .timeframe-btn {
        padding: 1rem;
    }
}
