/* Academy Track Guide Styles */

/* Custom scrollbar styles */
.track-stats-scroll::-webkit-scrollbar {
    width: 8px;
}

.track-stats-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.track-stats-scroll::-webkit-scrollbar-thumb {
    background: #7E5CD8;
    border-radius: 4px;
}

.track-stats-scroll::-webkit-scrollbar-thumb:hover {
    background: #6B4BC7;
}

/* Track map container styles */
#track-map-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

/* Track SVG styles */
#track-svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Track overlay styles */
#track-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Corner marker styles */
.corner-marker {
    position: absolute;
    width: 32px;
    height: 32px;
    margin-left: -16px;
    margin-top: -16px;
    background: rgba(255, 255, 255, 0.95);
    border: 3px solid #7E5CD8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    color: #7E5CD8;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.corner-marker:hover {
    transform: scale(1.2);
    background: #7E5CD8;
    color: white;
    box-shadow: 0 4px 12px rgba(126, 92, 216, 0.4);
}

/* Alternative corner marker styles for inline creation */
#track-overlay .corner-marker-inline {
    position: absolute;
    width: 40px;
    height: 40px;
    margin-left: -20px;
    margin-top: -20px;
    background: #7E5CD8;
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

#track-overlay .corner-marker-inline:hover {
    transform: scale(1.25);
}

#track-overlay .corner-marker-inline span {
    font-size: 14px;
    font-weight: bold;
    color: white;
}

/* Corner info popup styles */
.corner-info {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 10px;
    background: rgba(15, 23, 42, 0.95);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    z-index: 1000;
    pointer-events: none;
}

.corner-marker:hover .corner-info {
    opacity: 1;
    visibility: visible;
}

/* Ensure hovered marker is above others */
.corner-marker:hover {
    z-index: 100;
}

/* Arrow for corner info popup */
.corner-info::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(15, 23, 42, 0.95);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .corner-marker {
        width: 28px;
        height: 28px;
        margin-left: -14px;
        margin-top: -14px;
        font-size: 12px;
        border-width: 2px;
    }
    
    .corner-info {
        font-size: 12px;
        padding: 8px 12px;
    }
}

/* Animation for corner markers */
@keyframes cornerPulse {
    0% {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }
    50% {
        box-shadow: 0 2px 16px rgba(126, 92, 216, 0.4);
    }
    100% {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }
}

.corner-marker.active {
    animation: cornerPulse 2s ease-in-out infinite;
    background: #7E5CD8;
    color: white;
}

/* Tab content fade animation */
.tab-pane {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Track guide specific utility classes */
.track-guide-gradient {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.track-guide-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}