/* SEO Growth Chart Styles */

.seo-chart-container {
    background: var(--light-gray);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--box-shadow);
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}

.seo-chart-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-pink), var(--accent-orange), var(--success-green));
}

.chart-header {
    margin-bottom: 15px;
}

.chart-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin: 0 0 5px 0;
}

.chart-subtitle {
    font-size: 0.9rem;
    color: var(--medium-gray);
    margin: 0;
}

#seo-growth-chart {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#seo-growth-chart canvas {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .seo-chart-container {
        padding: 15px;
        margin: 15px 0;
    }
    
    .chart-title {
        font-size: 1rem;
    }
    
    .chart-subtitle {
        font-size: 0.8rem;
    }
    
    #seo-growth-chart {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .seo-chart-container {
        padding: 12px;
        margin: 12px 0;
    }
    
    #seo-growth-chart {
        height: 160px;
    }
}

/* Loading state */
.chart-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: var(--medium-gray);
    font-size: 0.9rem;
}

.chart-loading::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid var(--medium-gray);
    border-top: 2px solid var(--primary-pink);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hero section integration */
.hero .seo-chart-container {
    margin-top: 30px;
    background: rgba(248, 248, 251, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 107, 107, 0.2);
}

/* Animation entrance */
.seo-chart-container {
    opacity: 0;
    transform: translateY(20px);
    animation: chartFadeIn 0.8s ease-out forwards;
}

@keyframes chartFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Intersection Observer trigger */
.seo-chart-container.animate {
    animation-delay: 0.2s;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .seo-chart-container {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .chart-loading::before {
        animation: none;
    }
}