/* ========================================
   AI TRADING BOT LIVE ACTIVITY SECTION
   Real-time Market Simulation
   ======================================== */

.trading-bot-section {
    padding: 2rem 0;
    position: relative;
}

.trading-activity-container {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 58, 138, 0.8) 100%);
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 2rem;
    padding: 3rem 2.5rem;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.trading-activity-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #10B981, transparent);
    animation: scanline 3s linear infinite;
}

@keyframes scanline {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 2rem;
    margin-bottom: 1.5rem;
}

.live-pulse {
    width: 0.75rem;
    height: 0.75rem;
    background: #10B981;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.live-text {
    font-size: 0.85rem;
    color: #10B981;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.bot-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.bot-stat-card {
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.bot-stat-card:hover {
    transform: translateY(-5px);
    border-color: #60A5FA;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.bot-stat-label {
    font-size: 0.85rem;
    color: rgba(148, 163, 184, 0.7);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.bot-stat-value {
    font-size: 1.75rem;
    font-weight: 900;
    font-family: 'Orbitron', sans-serif;
    color: #FFFFFF;
}

.bot-stat-value.profit {
    color: #10B981;
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}

.bot-stat-value.gold {
    color: #FFD700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.bot-stat-change {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #10B981;
    font-weight: 600;
    margin-top: 0.25rem;
}

.bot-stat-change.negative {
    color: #EF4444;
}

.trading-feed-container {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 1.5rem;
    padding: 2rem;
    max-height: 500px;
    overflow: hidden;
    position: relative;
}

.trading-feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.trading-feed-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #FFFFFF;
    font-family: 'Orbitron', sans-serif;
}

.current-time {
    font-size: 0.9rem;
    color: rgba(148, 163, 184, 0.7);
    font-weight: 600;
    font-family: 'Orbitron', sans-serif;
}

.trading-feed {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 380px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.trading-feed::-webkit-scrollbar {
    width: 6px;
}

.trading-feed::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
    border-radius: 10px;
}

.trading-feed::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.5);
    border-radius: 10px;
}

.trading-feed::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.7);
}

.trade-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-left: 3px solid #10B981;
    border-radius: 0.75rem;
    opacity: 0;
    animation: slideIn 0.5s ease forwards;
    transition: all 0.3s ease;
}

.trade-item:hover {
    background: rgba(15, 23, 42, 0.8);
    border-color: #60A5FA;
    transform: translateX(5px);
}

.trade-item.sell {
    border-left-color: #EF4444;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.trade-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 0.5rem;
    flex-shrink: 0;
}

.trade-item.sell .trade-icon {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
}

.trade-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    color: #10B981;
}

.trade-item.sell .trade-icon svg {
    color: #EF4444;
}

.trade-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.trade-pair {
    font-size: 0.95rem;
    font-weight: 700;
    color: #FFFFFF;
}

.trade-time {
    font-size: 0.75rem;
    color: rgba(148, 163, 184, 0.6);
    font-family: 'Orbitron', sans-serif;
}

.trade-amount {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.trade-value {
    font-size: 1rem;
    font-weight: 700;
    color: #FFFFFF;
    font-family: 'Orbitron', sans-serif;
}

.trade-profit {
    font-size: 0.8rem;
    font-weight: 600;
    color: #10B981;
}

.trade-item.sell .trade-profit {
    color: #EF4444;
}

.performance-chart {
    margin-top: 2rem;
    padding: 2rem;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 1.5rem;
}

.chart-header {
    margin-bottom: 1.5rem;
}

.chart-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #FFFFFF;
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 0.5rem;
}

.chart-subtitle {
    font-size: 0.9rem;
    color: rgba(148, 163, 184, 0.7);
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.5rem;
    height: 200px;
    padding: 1rem 0;
}

.chart-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.bar-fill {
    width: 100%;
    background: linear-gradient(180deg, #10B981 0%, #059669 100%);
    border-radius: 0.5rem 0.5rem 0 0;
    position: relative;
    transition: all 0.5s ease;
    animation: barGrow 1s ease forwards;
}

@keyframes barGrow {
    from {
        height: 0;
    }
}

.bar-value {
    position: absolute;
    top: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    font-weight: 700;
    color: #10B981;
    white-space: nowrap;
}

.bar-label {
    font-size: 0.75rem;
    color: rgba(148, 163, 184, 0.7);
    font-weight: 600;
}

.bot-notice {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 1rem;
    text-align: center;
}

.bot-notice p {
    font-size: 0.95rem;
    color: rgba(148, 163, 184, 0.9);
    line-height: 1.6;
}

.bot-notice strong {
    color: #FFD700;
    font-weight: 700;
}

/* Trading Pairs Ticker */
.trading-pairs-ticker {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 1rem;
    overflow: hidden;
}

.ticker-wrapper {
    overflow: hidden;
    position: relative;
}

.ticker-content {
    display: flex;
    gap: 2rem;
    animation: ticker 30s linear infinite;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 0.5rem;
    white-space: nowrap;
}

.ticker-pair {
    font-size: 0.9rem;
    font-weight: 700;
    color: #FFFFFF;
}

.ticker-price {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(148, 163, 184, 0.9);
    font-family: 'Orbitron', sans-serif;
}

.ticker-change {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.ticker-change.positive {
    background: rgba(16, 185, 129, 0.2);
    color: #10B981;
}

.ticker-change.negative {
    background: rgba(239, 68, 68, 0.2);
    color: #EF4444;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .bot-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .trading-activity-container {
        padding: 2rem 1.5rem;
    }

    .bot-stats-grid {
        grid-template-columns: 1fr;
    }

    .bot-stat-value {
        font-size: 1.5rem;
    }

    .trading-feed-container {
        padding: 1.5rem;
    }

    .trade-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .trade-amount {
        width: 100%;
        align-items: flex-start;
    }

    .chart-bars {
        height: 150px;
    }
}

@media (max-width: 640px) {
    .trading-feed-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .ticker-content {
        animation: ticker 20s linear infinite;
    }

    .ticker-item {
        padding: 0.5rem 1rem;
    }
}