/* Trading Results Page Styles */

/* Hero Section */
.trading-results-hero {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, rgba(0, 196, 154, 0.05) 0%, rgba(255, 255, 255, 1) 50%, rgba(255, 215, 0, 0.05) 100%);
    overflow: hidden;
    position: relative;
}

.trading-results-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23000" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.trading-results-hero-content {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.trading-results-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.trading-results-description {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
}

.trading-results-cta {
    background: var(--gradient-accent);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.3);
}

.trading-results-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(255, 215, 0, 0.4);
    color: white;
    text-decoration: none;
}

/* Trading Results Section */
.trading-results-section {
    padding: 5rem 0;
    background: var(--background-color);
}

.trading-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 80rem;
    margin: 0 auto;
}

/* Trading Result Card */
.trading-result-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
}

.trading-result-card:hover {
    transform: translateY(-0.25rem);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.trading-result-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--neutral-light);
}

.trading-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.trading-result-card:hover .trading-result-image img {
    transform: scale(1.05);
}

.trading-result-profit {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: 0 4px 12px rgba(0, 196, 154, 0.3);
}

.trading-result-content {
    padding: 1.5rem;
}

.trading-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.trading-result-pair {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    font-family: var(--heading-font);
}

.trading-result-date {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.trading-result-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trading-result-meta::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: 600;
}

/* Stats Section */
.trading-stats-section {
    padding: 5rem 0;
    background: var(--neutral-light);
}

.trading-stats-content {
    max-width: 64rem;
    margin: 0 auto;
    text-align: center;
}

.trading-stats-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 3rem;
    font-family: var(--heading-font);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem 1rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-0.25rem);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.stat-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-family: var(--heading-font);
}

.stat-label {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* CTA Section */
.trading-cta-section {
    padding: 5rem 0;
    background: var(--background-color);
}

.trading-cta-card {
    max-width: 64rem;
    margin: 0 auto;
    background: var(--gradient-primary);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 196, 154, 0.3);
}

.trading-cta-content {
    padding: 3rem 2rem;
    text-align: center;
    color: white;
}

.trading-cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: var(--heading-font);
}

.trading-cta-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
}

.trading-cta-btn {
    background: var(--gradient-accent);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.3);
    font-size: 1.125rem;
}

.trading-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(255, 215, 0, 0.4);
    color: white;
    text-decoration: none;
}

/* Loading State */
.loading {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.spinner {
    width: 2rem;
    height: 2rem;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.empty-state p {
    font-size: 1rem;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .trading-results-hero {
        padding: 6rem 0 3rem;
    }
    
    .trading-results-title {
        font-size: 2.5rem;
    }
    
    .trading-results-description {
        font-size: 1.125rem;
    }
    
    .trading-results-section {
        padding: 3rem 0;
    }
    
    .trading-results-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .trading-stats-section {
        padding: 3rem 0;
    }
    
    .trading-stats-title {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stat-value {
        font-size: 2.5rem;
    }
    
    .trading-cta-section {
        padding: 3rem 0;
    }
    
    .trading-cta-content {
        padding: 2rem 1.5rem;
    }
    
    .trading-cta-title {
        font-size: 2rem;
    }
    
    .trading-cta-description {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .trading-results-hero {
        padding: 5rem 0 2rem;
    }
    
    .trading-results-title {
        font-size: 2rem;
    }
    
    .trading-results-grid {
        gap: 1rem;
    }
    
    .trading-result-content {
        padding: 1.25rem;
    }
    
    .trading-cta-content {
        padding: 1.5rem 1rem;
    }
    
    .trading-cta-title {
        font-size: 1.75rem;
    }
}
