/* ===========================
   GOLD TRADINGVIEW CHART STYLES
   =========================== */

.gold-chart-container {
    background: linear-gradient(145deg, #1a1a1a 0%, #0f0f0f 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px;
    margin: 40px 0;
    transition: all 0.3s ease;
}

.gold-chart-container:hover {
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

/* Header */
.gold-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.chart-title {
    font-family: 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.5px;
}

.chart-fullscreen-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    color: #3b82f6;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.chart-fullscreen-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
    transform: translateY(-2px);
}

.chart-fullscreen-btn svg {
    width: 18px;
    height: 18px;
}

/* Chart Widget Wrapper */
.tradingview-widget-wrapper {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: #000000;
}

.tradingview-widget {
    width: 100%;
    height: 100%;
}

/* Popup Modal */
.gold-chart-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
}

.gold-chart-popup.active {
    display: block;
}

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
}

.popup-content {
    position: relative;
    width: 95vw;
    height: 95vh !important;
    margin: 2.5vh auto;
    background: #000000;
    /* border: 1px solid rgba(59, 130, 246, 0.3); */
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8);
}

.popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 0 !important;
}

.popup-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #ef4444;
}

.tradingview-widget-popup {
    width: 100%;
    height: 100%;
    padding-top: 75px;
}

/* Hide TradingView Copyright */
.tradingview-widget-copyright {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .gold-chart-container {
        padding: 15px 7px;
    }
    
    .chart-title {
        font-size: 18px;
    }
    
    .gold-chart-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .chart-fullscreen-btn {
        width: 100%;
        justify-content: center;
    }
    
    .popup-content {
        width: 100vw;
        height: 95vh !important;
        margin: 0;
        border-radius: 0;
    }
}