﻿/* Agent Profile Page Styles */

/* Agent Avatar Card Container - Baseball Card Style */
.agent-avatar-card {
    perspective: 1000px;
}

/* Agent Avatar Styles - Vertical Rectangular Baseball Card */
.agent-avatar {
    width: 160px;
    height: 220px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.6), 0 4px 15px rgba(0, 0, 0, 0.5);
    border: 3px solid var(--neon-green);
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .agent-avatar:hover {
        transform: translateY(-5px);
        box-shadow: 0 0 30px rgba(0, 255, 0, 0.8), 0 8px 20px rgba(0, 0, 0, 0.6);
    }

    .agent-avatar.placeholder {
        background: linear-gradient(135deg, var(--gray-dark) 0%, rgba(0, 0, 0, 0.8) 100%);
        border: 3px solid var(--neon-green);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--neon-green);
        font-weight: bold;
        font-size: 4rem;
        text-shadow: 0 0 10px var(--neon-green);
        box-shadow: 0 0 20px rgba(0, 255, 0, 0.6), 0 4px 15px rgba(0, 0, 0, 0.5);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

        .agent-avatar.placeholder:hover {
            transform: translateY(-5px);
            box-shadow: 0 0 30px rgba(0, 255, 0, 0.8), 0 8px 20px rgba(0, 0, 0, 0.6);
        }

/* Agent Description */
.agent-description {
    color: var(--foreground);
    line-height: 1.6;
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* Performance Charts Container */
.pnl-charts-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1rem;
}

.chart-section {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.1);
}

.chart-title {
    color: var(--neon-green);
    text-shadow: 0 0 3px var(--neon-green);
    font-size: 1.1rem;
    margin: 0 0 1rem 0;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Chart Metrics */
.chart-metrics {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(0, 255, 0, 0.05);
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: 6px;
}

.metric-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.metric-label {
    font-size: 0.85rem;
    color: var(--neon-green);
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.metric-value {
    font-size: 1.1rem;
    font-weight: bold;
    font-family: var(--font);
    text-shadow: 0 0 2px currentColor;
}

/* No Chart Data Placeholder */
.no-chart-data {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    border: 1px dashed rgba(0, 255, 0, 0.3);
    border-radius: 6px;
    margin-top: 1rem;
}

.no-data-content {
    text-align: center;
    color: var(--neon-green);
    opacity: 0.7;
}

.no-data-text {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 2px var(--neon-green);
}

.no-data-subtitle {
    display: block;
    font-size: 0.8rem;
    opacity: 0.6;
}

/* Trading Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(0, 255, 0, 0.05);
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: 6px;
    box-shadow: 0 0 5px rgba(0, 255, 0, 0.1);
}

    .stat-item .crypto-label {
        display: block;
        margin-bottom: 0.5rem;
        color: var(--neon-green);
        opacity: 0.8;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        font-size: 0.85rem;
    }

    .stat-item p {
        font-size: 1.4rem;
        font-weight: bold;
        color: var(--neon-green);
        text-shadow: 0 0 3px var(--neon-green);
        margin: 0;
        font-family: var(--font);
    }

/* Copy Button Enhancement for Profile URL */
.agent-profile-page .copy-button.copied {
    background: var(--neon-green);
    color: var(--gray-dark);
    box-shadow: 0 0 8px var(--neon-green);
    animation: copy-success 0.3s ease;
}

@keyframes copy-success {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* Responsive Design for Charts */
@media (max-width: 1200px) {
    .pnl-charts-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .chart-section {
        padding: 1rem;
    }

    .chart-metrics {
        flex-direction: column;
        gap: 1rem;
    }

    .metric-item {
        flex-direction: row;
        gap: 0.5rem;
    }
}

@media (max-width: 768px) {
    .agent-avatar {
        width: 120px;
        height: 165px;
    }

        .agent-avatar.placeholder {
            font-size: 3rem;
        }

    .header-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .chart-metrics {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.75rem;
    }

    .metric-item {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }

    .chart-title {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .agent-avatar {
        width: 100px;
        height: 138px;
    }

        .agent-avatar.placeholder {
            font-size: 2.5rem;
        }

    .chart-section {
        padding: 0.75rem;
    }

    .metric-value {
        font-size: 1rem;
    }

    .metric-label {
        font-size: 0.8rem;
    }
}

/* Agent Profile Page Container Adjustments */
.agent-profile-page.cyberpunk-container {
    max-width: 1400px;
    margin: 20px auto;
    padding: 2rem;
}

/* Enhanced Header Info Section */
.agent-profile-page .header-container {
    align-items: flex-start;
    margin-bottom: 2rem;
}

    .agent-profile-page .header-container > div:nth-child(2) {
        flex-grow: 1;
        min-width: 0; /* Allow text to wrap properly */
    }

/* Profile URL Section Styling */
.agent-profile-page .wallet-address-display {
    background: rgba(0, 255, 0, 0.05);
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: 6px;
    padding: 0.75rem;
    max-width: fit-content;
}

    .agent-profile-page .wallet-address-display .wallet-address {
        word-break: break-all;
        max-width: 400px;
    }

/* PnL Color Classes Enhancement */
.agent-profile-page .price-up {
    color: var(--neon-green);
    text-shadow: 0 0 3px var(--neon-green);
}

.agent-profile-page .price-down {
    color: var(--neon-red);
    text-shadow: 0 0 3px var(--neon-red);
}

.agent-profile-page .price-neutral {
    color: var(--foreground);
    opacity: 0.8;
}
