/* trail-map.css - Styles for the Typing Trails map component */

/* Container */
.trail-map-container {
    background: #1a2332;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.trail-map-svg {
    display: block;
    width: 100%;
    height: auto;
}

/* Base map */
.land {
    fill: #2d3748;
    stroke: none;
}

.boundary {
    fill: none;
    stroke: #4a5568;
    stroke-width: 0.5;
    stroke-linejoin: round;
}

/* Route lines */
.route-line {
    fill: none;
    stroke: #f6ad55;
    stroke-width: 2;
    stroke-dasharray: 8 4;
    stroke-linecap: round;
    opacity: 0.5;
}

.route-line.has-progress {
    opacity: 0.3;
}

.route-completed {
    fill: none;
    stroke: #48bb78;
    stroke-width: 2.5;
    stroke-linecap: round;
    opacity: 0.8;
}

/* Side quest connectors */
.sidequest-connector {
    stroke: #9f7aea;
    stroke-width: 1.5;
    stroke-dasharray: 4 3;
    stroke-linecap: round;
}

.sidequest-connector.sq-locked {
    display: none;
}

.sidequest-connector.available {
    display: inline;
    opacity: 0.7;
}

.sidequest-connector.sq-completed {
    display: inline;
    stroke: #48bb78;
    opacity: 0.5;
}

/* Stop markers - base */
.stop-marker .marker-bg {
    fill: #4a5568;
    stroke: none;
}

.stop-marker .marker-ring {
    fill: none;
    stroke: #718096;
    stroke-width: 2;
}

.stop-marker .stop-number {
    fill: #a0aec0;
    font-family: system-ui, -apple-system, sans-serif;
    font-weight: 700;
    font-size: 9px;
    pointer-events: none;
}

/* Stop marker states */
.stop-marker.completed .marker-bg {
    fill: #276749;
}

.stop-marker.completed .marker-ring {
    stroke: #48bb78;
}

.stop-marker.completed .stop-number {
    fill: #c6f6d5;
}

.stop-marker.current .marker-bg {
    fill: #2b6cb0;
}

.stop-marker.current .marker-ring {
    stroke: #4299e1;
    stroke-width: 2.5;
    animation: pulse-ring 2s ease-in-out infinite;
}

.stop-marker.current .stop-number {
    fill: #bee3f8;
}

.stop-marker.next .marker-bg {
    fill: #2d3748;
}

.stop-marker.next .marker-ring {
    stroke: #e2e8f0;
    stroke-width: 2;
}

.stop-marker.next .stop-number {
    fill: #e2e8f0;
}

.stop-marker.locked .marker-bg {
    fill: #2d3748;
    opacity: 0.5;
}

.stop-marker.locked .marker-ring {
    stroke: #4a5568;
    opacity: 0.5;
}

.stop-marker.locked .stop-number {
    fill: #4a5568;
}

/* Stop marker hover */
.stop-marker:hover .marker-ring,
.stop-marker.highlighted .marker-ring {
    stroke-width: 3;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.3));
}

/* Side quest markers */
.sidequest-marker .sq-diamond {
    fill: #4a5568;
    stroke: #718096;
    stroke-width: 1.5;
}

.sidequest-marker.sq-locked {
    display: none;
}

.sidequest-marker.available .sq-diamond {
    fill: #744210;
    stroke: #ecc94b;
    stroke-width: 2;
    animation: pulse-diamond 2s ease-in-out infinite;
}

.sidequest-marker.sq-completed .sq-diamond {
    fill: #276749;
    stroke: #48bb78;
    stroke-width: 1.5;
}

.sidequest-marker:hover .sq-diamond,
.sidequest-marker.highlighted .sq-diamond {
    stroke-width: 2.5;
    filter: drop-shadow(0 0 4px rgba(236, 201, 75, 0.4));
}

/* Avatar */
.avatar-group {
    cursor: pointer;
}

.avatar-group:hover .avatar-glow {
    opacity: 0.5;
}

.avatar-glow {
    fill: #4299e1;
    opacity: 0.3;
    animation: avatar-pulse 3s ease-in-out infinite;
    transform-box: fill-box;
    transform-origin: center;
}

.avatar-emoji {
    pointer-events: none;
}

/* Labels / tooltips */
.stop-label {
    fill: #e2e8f0;
    font-family: system-ui, -apple-system, sans-serif;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    paint-order: stroke;
    stroke: #1a2332;
    stroke-width: 3px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.stop-label.visible {
    opacity: 1;
}

.sq-label {
    fill: #ecc94b;
}

/* Animations */
@keyframes pulse-ring {
    0%, 100% {
        stroke-opacity: 1;
    }
    50% {
        stroke-opacity: 0.5;
        stroke-width: 4;
    }
}

@keyframes pulse-diamond {
    0%, 100% {
        stroke-opacity: 1;
    }
    50% {
        stroke-opacity: 0.6;
        filter: drop-shadow(0 0 6px rgba(236, 201, 75, 0.6));
    }
}

@keyframes avatar-pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.15;
        transform: scale(1.3);
    }
}
