/* $MCINTOSHI Live Chart Futuristic Styles */

/* Chart Container Overrides for Visibility */
#mcintoshi-live-chart {
    min-height: 600px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 10 !important;
}

.live-chart-wrapper {
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.9), rgba(0, 20, 40, 0.8));
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 20px;
    padding: 25px;
    margin: 30px 0;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 0 30px rgba(0, 255, 255, 0.2),
        inset 0 0 20px rgba(0, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    min-height: 550px;
    display: block !important;
}

.live-chart-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.live-chart-wrapper > * {
    position: relative;
    z-index: 2;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.chart-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.title-text {
    font-size: 1.5em;
    font-weight: bold;
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    font-family: 'Exo 2', monospace;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    background: rgba(0, 255, 100, 0.1);
    border: 1px solid rgba(0, 255, 100, 0.3);
    border-radius: 20px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #00ff64;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
    box-shadow: 0 0 10px #00ff64;
}

.status-text {
    color: #00ff64;
    font-size: 0.8em;
    font-weight: bold;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

.chart-controls {
    display: flex;
    gap: 5px;
    background: rgba(0, 0, 0, 0.3);
    padding: 5px;
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.chart-btn {
    padding: 8px 16px;
    background: transparent;
    border: none;
    color: #cccccc;
    font-size: 0.9em;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Exo 2', sans-serif;
}

.chart-btn:hover {
    background: rgba(0, 255, 255, 0.1);
    color: #00ffff;
    transform: translateY(-1px);
}

.chart-btn.active {
    background: linear-gradient(45deg, #00ffff, #0080ff);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.price-display {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(0, 255, 255, 0.03);
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 255, 0.1);
}

.current-price {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.price-label {
    font-size: 0.9em;
    color: #888;
    font-weight: bold;
    letter-spacing: 1px;
}

.price-value {
    font-size: 2.2em;
    font-weight: bold;
    color: #00ffff;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.6);
    font-family: 'Exo 2', monospace;
    line-height: 1;
}

.price-change {
    font-size: 1.1em;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 8px;
    align-self: flex-start;
}

.price-change.positive {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.price-change.negative {
    background: rgba(255, 68, 68, 0.2);
    color: #ff4444;
    border: 1px solid rgba(255, 68, 68, 0.3);
}

.market-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.stat-label {
    font-size: 0.8em;
    color: #888;
    font-weight: bold;
    margin-bottom: 5px;
    text-align: center;
}

.stat-value {
    font-size: 1.2em;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    font-family: 'Exo 2', monospace;
}

.stat-item .stat-value.position-top {
    color: #00ff88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.6);
}

.stat-item .stat-value.position-mid {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

.stat-item .stat-value.position-low {
    color: #ff6b6b;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.6);
}

.chart-container {
    position: relative;
    height: 400px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    border: 2px solid rgba(0, 255, 255, 0.2);
    overflow: hidden;
    margin-bottom: 20px;
}

#price-chart {
    width: 100%;
    height: 100%;
    display: block;
    cursor: crosshair;
}

.chart-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.crosshair {
    position: absolute;
    display: none;
    pointer-events: none;
    z-index: 10;
}

.crosshair::before,
.crosshair::after {
    content: '';
    position: absolute;
    background: rgba(0, 255, 255, 0.8);
}

.crosshair::before {
    width: 1px;
    height: 100vh;
    left: 0;
    top: -50vh;
}

.crosshair::after {
    height: 1px;
    width: 100vw;
    top: 0;
    left: -50vw;
}

.price-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(0, 255, 255, 0.5);
    border-radius: 8px;
    padding: 12px;
    font-size: 0.85em;
    color: white;
    pointer-events: none;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    font-family: 'Orbitron', monospace;
    min-width: 150px;
}

.tooltip-header {
    font-size: 0.75em;
    color: #888;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tooltip-price {
    font-size: 1.1em;
    color: #00ffff;
    font-weight: bold;
    margin-bottom: 5px;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

.tooltip-volume {
    font-size: 1.1em;
    color: #ffd700;
    font-weight: bold;
    margin-bottom: 5px;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.tooltip-meta {
    font-size: 0.8em;
    color: #ccc;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 8px;
    margin-top: 8px;
}

.tooltip-meta div {
    margin-bottom: 2px;
}

.tooltip-time {
    color: #888;
    font-size: 0.75em;
    margin-top: 5px;
}

.timeline-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(255, 215, 0, 0.5);
    border-radius: 8px;
    padding: 10px;
    font-size: 0.8em;
    color: white;
    pointer-events: none;
    z-index: 1001;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    font-family: 'Orbitron', monospace;
    max-width: 200px;
}

.event-tooltip {
    text-align: center;
}

.event-tooltip.pump {
    border-color: rgba(0, 255, 136, 0.5);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

.event-tooltip.dump {
    border-color: rgba(255, 68, 68, 0.5);
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.3);
}

.event-type {
    font-weight: bold;
    font-size: 0.9em;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.event-tooltip.pump .event-type {
    color: #00ff88;
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.5);
}

.event-tooltip.dump .event-type {
    color: #ff4444;
    text-shadow: 0 0 5px rgba(255, 68, 68, 0.5);
}

.event-description {
    color: #ccc;
    font-size: 0.85em;
}

.chart-timeline {
    position: relative;
    height: 40px;
    margin-top: 10px;
    padding: 0 20px;
}

.timeline-markers {
    position: relative;
    height: 100%;
    border-top: 1px solid rgba(0, 255, 255, 0.3);
}

.timeline-marker {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    cursor: pointer;
    z-index: 5;
}

.timeline-marker::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 6px;
    background: rgba(0, 255, 255, 0.6);
}

.marker-time {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7em;
    color: #888;
    white-space: nowrap;
    font-family: 'Orbitron', monospace;
}

.marker-price {
    position: absolute;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6em;
    color: #aaa;
    white-space: nowrap;
    font-family: 'Orbitron', monospace;
}

.timeline-marker.event-marker::before {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    top: -3px;
}

.timeline-marker.event-marker.pump::before {
    background: #00ff88;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.8);
}

.timeline-marker.event-marker.dump::before {
    background: #ff4444;
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.8);
}

.timeline-marker.event-marker:hover::before {
    transform: translateX(-50%) scale(1.5);
    transition: transform 0.2s ease;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .price-display {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .market-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .chart-container {
        height: 300px;
    }
    
    .title-text {
        font-size: 1.3em;
    }
    
    .price-value {
        font-size: 1.8em;
    }
}

@media (max-width: 768px) {
    .chart-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .chart-title {
        justify-content: center;
    }
    
    .market-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .chart-container {
        height: 250px;
    }
    
    .chart-footer {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .price-value {
        font-size: 1.6em;
    }
}

@media (max-width: 480px) {
    .live-chart-wrapper {
        padding: 15px;
        margin: 15px 0;
    }
    
    .price-display {
        padding: 15px;
    }
    
    .chart-container {
        height: 200px;
    }
    
    .title-text {
        font-size: 1.1em;
    }
    
    .price-value {
        font-size: 1.4em;
    }
    
    .market-stats {
        grid-template-columns: 1fr;
    }
    
    .timeline-marker {
        display: none;
    }
    
    .chart-timeline {
        height: 20px;
    }
}

/* Advanced Glow Effects */
.live-chart-wrapper:hover {
    border-color: rgba(0, 255, 255, 0.6);
    box-shadow: 
        0 0 40px rgba(0, 255, 255, 0.3),
        inset 0 0 30px rgba(0, 255, 255, 0.1);
    transition: all 0.3s ease;
}

/* Loading Animation */
@keyframes chart-loading {
    0% { opacity: 0.3; }
    50% { opacity: 0.7; }
    100% { opacity: 0.3; }
}

.chart-loading .chart-container {
    animation: chart-loading 2s infinite;
}

/* Data Update Flash */
@keyframes data-flash {
    0% { background: rgba(0, 255, 255, 0.3); }
    100% { background: transparent; }
}

.data-updated {
    animation: data-flash 0.5s ease-out;
}

/* Volume Bar Animation */
@keyframes volume-pulse {
    0% { opacity: 0.6; }
    50% { opacity: 0.8; }
    100% { opacity: 0.6; }
}

.volume-bars {
    animation: volume-pulse 3s infinite;
}

/* Position Line Animation */
@keyframes position-glow {
    0% { filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.5)); }
    50% { filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.8)); }
    100% { filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.5)); }
}

.position-line {
    animation: position-glow 4s infinite;
}
