/* ========================================
   ArbiInvest - Welcome Screen стили
   ======================================== */

/* Welcome Screen */
.welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.5s ease-out;
}

.welcome-container {
    max-width: 800px;
    width: 90%;
    padding: 3rem;
    text-align: center;
}

.welcome-header {
    margin-bottom: 3rem;
    animation: slideDown 0.8s ease-out;
}

.logo-container {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    background: rgba(99, 102, 241, 0.1);
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.logo-icon {
    width: 48px;
    height: 48px;
    color: #6366f1;
    animation: pulse 2s ease-in-out infinite;
}

.logo-text {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

/* Typing Animation Container */
.typing-container {
    min-height: 200px;
    margin: 2rem 0;
    text-align: left;
    padding: 2rem;
    background: rgba(26, 26, 26, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.typing-text {
    color: #e3e3e3;
    font-size: 1.125rem;
    line-height: 1.8;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.typing-text p {
    margin-bottom: 1rem;
}

.typing-paragraph {
    margin-bottom: 1rem;
    animation: fadeIn 0.3s ease-out;
}

.cursor {
    display: inline-block;
    color: #6366f1;
    font-weight: bold;
    animation: blink 1s infinite;
    margin-left: 2px;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Enter Button */
.enter-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.enter-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.enter-button:hover::before {
    left: 100%;
}

.enter-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.4);
}

.enter-button:active {
    transform: translateY(-1px);
}

.enter-button svg {
    transition: transform 0.3s ease;
}

.enter-button:hover svg {
    transform: translateX(5px);
}

/* App Container */
.app {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in;
    min-height: 100vh;
    background: #0f0f0f;
}

/* Header Styles */
.header {
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left .logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #e3e3e3;
    font-size: 1.25rem;
    font-weight: 600;
}

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

.nav-link {
    padding: 0.5rem 1rem;
    color: #a0a0a0;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.nav-link:hover {
    color: #e3e3e3;
    background: rgba(99, 102, 241, 0.1);
}

.nav-link.active {
    color: #6366f1;
    background: rgba(99, 102, 241, 0.15);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Connection Status */
.connection-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(26, 26, 26, 0.8);
    border-radius: 8px;
    border: 1px solid #2a2a2a;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6b6b6b;
    animation: pulse 2s infinite;
}

.status-dot.connected {
    background: #10b981;
}

.status-dot.error {
    background: #ef4444;
}

.status-text {
    color: #a0a0a0;
    font-size: 0.875rem;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 64px);
    padding: 2rem 0;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Sections */
.section {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.section.active {
    display: block;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #e3e3e3;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.1);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.stat-label {
    color: #a0a0a0;
    font-size: 0.875rem;
}

.stat-badge {
    padding: 0.25rem 0.5rem;
    background: rgba(99, 102, 241, 0.2);
    color: #6366f1;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.stat-badge.positive {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.stat-value {
    font-size: 1.875rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.stat-subvalue {
    color: #6b6b6b;
    font-size: 0.875rem;
}

/* Chart Container */
.chart-container {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.chart-header h3 {
    color: #e3e3e3;
    font-size: 1.25rem;
    font-weight: 600;
}

.chart-controls {
    display: flex;
    gap: 0.5rem;
}

.chart-btn {
    padding: 0.375rem 0.75rem;
    background: transparent;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    color: #a0a0a0;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chart-btn:hover {
    border-color: #6366f1;
    color: #6366f1;
}

.chart-btn.active {
    background: rgba(99, 102, 241, 0.2);
    border-color: #6366f1;
    color: #6366f1;
}

.chart-area {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b6b6b;
}

/* Footer */
.footer {
    background: rgba(21, 22, 24, 0.95);
    border-top: 1px solid rgba(99, 102, 241, 0.1);
    margin-top: 4rem;
    padding: 3rem 0 2rem;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: #e3e3e3;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.footer-section p {
    color: #6b6b6b;
    line-height: 1.6;
}

.footer-link {
    display: block;
    color: #a0a0a0;
    text-decoration: none;
    padding: 0.25rem 0;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #6366f1;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(99, 102, 241, 0.1);
    color: #6b6b6b;
}

.footer-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6b6b6b;
}

.status-indicator.online {
    background: #10b981;
    animation: pulse 2s infinite;
}

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

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 currentColor;
    }
    50% {
        opacity: 0.8;
        box-shadow: 0 0 0 8px transparent;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .welcome-container {
        padding: 2rem 1rem;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .typing-text {
        font-size: 1rem;
    }
    
    .header-nav {
        display: none;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}