/* Chart Section Styles */
.chart {
    position: relative;
    min-height: 100vh;
    background: transparent;
    padding: 5rem 0;
    margin-bottom: 0;
    width: 100%;
    overflow: hidden;
}

.chart .section-title {
    text-align: right;
    padding-right: 3rem;
    margin-bottom: 2rem;
}

.chart-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.chart-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.chart-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    position: relative;
}

.chart-wrapper {
    background: linear-gradient(135deg, rgba(26, 36, 66, 0.3), rgba(15, 22, 40, 0.3));
    border: 3px solid var(--accent-cyan);
    border-radius: 30px;
    padding: 2rem;
    max-width: 900px;
    width: 90%;
    box-shadow: 0 20px 60px var(--accent-glow);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.chart-glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 60%);
    opacity: 0.1;
    transform: translate(-50%, -50%);
    animation: pulse 4s infinite;
    pointer-events: none;
}

.chart-header {
    text-align: center;
    margin-bottom: 2rem;
}

.chart-subtitle {
    font-family: 'Bungee', cursive;
    font-size: 1.5rem;
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.chart-icon {
    stroke: var(--accent-cyan);
    filter: drop-shadow(0 0 10px var(--accent-cyan));
    animation: float 3s ease-in-out infinite;
}

.live-indicator {
    stroke: #00ff00;
    fill: none;
    filter: drop-shadow(0 0 10px #00ff00);
    animation: pulse-live 2s infinite;
}

.live-indicator circle:nth-child(1) {
    fill: #00ff00;
}

.live-indicator circle:nth-child(2),
.live-indicator circle:nth-child(3) {
    opacity: 0.5;
    animation: ripple 2s infinite;
}

.live-indicator circle:nth-child(3) {
    animation-delay: 0.5s;
}

@keyframes pulse-live {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

@keyframes ripple {
    0% {
        opacity: 0.8;
        transform: scale(0.8);
    }
    100% {
        opacity: 0;
        transform: scale(1.2);
    }
}

/* DexScreener Embed Styles */
#dexscreener-embed {
    position: relative;
    width: 100%;
    padding-bottom: 50%;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid rgba(95, 205, 228, 0.3);
    box-shadow: 
        0 0 30px rgba(95, 205, 228, 0.2),
        inset 0 0 20px rgba(95, 205, 228, 0.1);
    opacity: 0.6;
    transition: opacity 0.3s;
}

#dexscreener-embed:hover {
    opacity: 1;
}

#dexscreener-embed iframe {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border: 0;
    border-radius: 20px;
}

/* Chart wrapper animation */
.chart-wrapper::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--accent-cyan), var(--primary-blue), var(--accent-cyan), var(--primary-blue));
    border-radius: 30px;
    opacity: 0.5;
    z-index: -1;
    background-size: 400% 400%;
    animation: gradient-border 15s ease infinite;
}

@keyframes gradient-border {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Responsive */
@media (max-width: 1400px) {
    #dexscreener-embed {
        padding-bottom: 55%;
    }
}

@media (max-width: 992px) {
    #dexscreener-embed {
        padding-bottom: 65%;
    }
    
    .chart-wrapper {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    #dexscreener-embed {
        padding-bottom: 75%;
    }
    
    .chart-wrapper {
        padding: 1rem;
    }
    
    .chart-subtitle {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    #dexscreener-embed {
        padding-bottom: 125%;
    }
    
    .chart-wrapper {
        width: 95%;
        padding: 1rem 0.5rem;
    }
    
    .chart-subtitle {
        font-size: 1rem;
        gap: 0.5rem;
    }
    
    .chart .section-title {
        font-size: 2rem;
        padding-right: 1rem;
    }
}