/* Quest Map Styles - Extracted for browser caching */

/* Hide MapLibre attribution */
.maplibregl-ctrl-attrib,
.maplibregl-ctrl-logo,
.maplibregl-ctrl-bottom-left,
.maplibregl-ctrl-bottom-right {
    display: none !important;
}

/* Fullscreen Map Container */
.quest-map-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0a0a1a;
    z-index: 100;
}

.quest-map {
    width: 100%;
    height: 100%;
}

/* Header Overlay - Full Width */
.quest-map-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 110;
    pointer-events: auto;
}

/* Quest Info Card - Full Width Bar */
.quest-info-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 0;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(233, 30, 140, 0.3);
    width: 100%;
    box-sizing: border-box;
}

.quest-info-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e91e8c;
    flex-shrink: 0;
}

.quest-info-details {
    flex: 1;
    min-width: 0;
}

.quest-info-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quest-type-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    font-size: 11px;
    flex-shrink: 0;
}

.quest-type-badge.aura {
    background: rgba(233, 30, 140, 0.9);
    color: #fff;
    box-shadow: 0 2px 6px rgba(233, 30, 140, 0.4);
}

.quest-type-badge.honeycomb {
    background: rgba(243, 156, 18, 0.9);
    color: #fff;
    box-shadow: 0 2px 6px rgba(243, 156, 18, 0.4);
}

.quest-info-name {
    font-family: 'Fredoka', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.quest-info-description {
    font-family: 'Fredoka', sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    margin: 0;
}

/* Prize/Goal Section */
.quest-prize {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding-left: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: opacity 0.2s;
}

.quest-prize:hover {
    opacity: 0.8;
}

.quest-prize-stamp {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e91e8c;
}

.quest-prize-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.quest-prize-label {
    font-family: 'Fredoka', sans-serif;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quest-prize-count {
    font-family: 'Fredoka', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.quest-prize-count span {
    color: #e91e8c;
}

/* Honeycomb Prize - Multiple stamps */
.quest-prize.honeycomb-prize {
    gap: 10px;
}

.quest-prize-stamps {
    display: flex;
    align-items: center;
    gap: -8px;
}

.quest-prize-stamp-multi {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f39c12;
    margin-left: -8px;
    transition: transform 0.2s;
}

.quest-prize-stamp-multi:first-child {
    margin-left: 0;
}

.quest-prize-stamp-multi:hover {
    transform: scale(1.2);
    z-index: 10;
}

/* Honeycomb Key */
.honeycomb-key {
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(243, 156, 18, 0.3);
    overflow: hidden;
    min-width: 180px;
}

.honeycomb-key-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Fredoka', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

.honeycomb-key-header i:first-child {
    color: #f39c12;
}

.honeycomb-key-toggle {
    margin-left: auto;
    transition: transform 0.3s;
    font-size: 12px;
}

.honeycomb-key.collapsed .honeycomb-key-toggle {
    transform: rotate(-90deg);
}

.honeycomb-key-items {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.honeycomb-key.collapsed .honeycomb-key-items {
    display: none;
}

.honeycomb-key-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.honeycomb-key-stamp {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f39c12;
    flex-shrink: 0;
}

.honeycomb-key-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.honeycomb-key-name {
    font-family: 'Fredoka', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.honeycomb-key-rewards {
    display: flex;
    align-items: center;
    gap: 10px;
}

.honeycomb-key-klout, .honeycomb-key-aura {
    font-family: 'Fredoka', sans-serif;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.honeycomb-key-klout {
    color: #ffd700;
}

.honeycomb-key-klout i {
    font-size: 10px;
}

.honeycomb-key-aura {
    color: #e91e8c;
}

.honeycomb-key-aura i {
    font-size: 10px;
}

/* Stamp Info Modal */
.stamp-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.stamp-modal-overlay.active {
    display: flex;
}

.stamp-modal-card {
    position: relative;
    width: 100%;
    max-width: 320px;
    aspect-ratio: 9 / 16;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.stamp-modal-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    filter: blur(20px);
    transform: scale(1.2);
}

.stamp-modal-card .stamp-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(26, 26, 46, 0.7) 0%, rgba(26, 26, 46, 0.85) 50%, rgba(26, 26, 46, 0.95) 100%);
}

.stamp-modal-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
    font-family: 'Fredoka', sans-serif;
}

.stamp-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.stamp-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.stamp-modal-subheading {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.stamp-modal-heading {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 30px 0;
}

.stamp-modal-image {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
}

.stamp-modal-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin-bottom: 24px;
    max-height: 80px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.stamp-modal-rewards {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.stamp-modal-reward {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 16px;
    text-align: center;
    flex: 1;
}

.stamp-modal-reward-value {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.stamp-modal-reward-value.klout {
    color: #ffd700;
}

.stamp-modal-reward-value.aura {
    color: #e91e8c;
}

.stamp-modal-reward-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stamp-modal-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: #fff;
    color: #e91e8c;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    margin-top: auto;
}

.stamp-modal-cta:hover {
    color: #9b1b6e;
    text-decoration: none;
}

/* 2D/3D Toggle Button */
.quest-view-toggle {
    position: absolute;
    top: 100px;
    right: 12px;
    z-index: 105;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(10, 10, 26, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 8px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    font-family: 'Fredoka', sans-serif;
}

.quest-view-toggle:hover {
    background: rgba(10, 10, 26, 0.95);
    transform: scale(1.02);
}

.quest-view-toggle i {
    font-size: 16px;
    color: #fff;
}

.quest-view-toggle span {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

.quest-view-toggle.active {
    background: rgba(233, 30, 140, 0.2);
    border-color: rgba(233, 30, 140, 0.4);
}

.quest-view-toggle.active i {
    color: #e91e8c;
}

.quest-view-toggle.active span {
    color: #e91e8c;
}

/* Map Rewards Overlay */
.quest-rewards-overlay {
    position: absolute;
    bottom: 90px;
    left: 12px;
    z-index: 105;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.quest-reward-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(10, 10, 26, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 8px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.quest-reward-badge:hover {
    background: rgba(10, 10, 26, 0.95);
    transform: scale(1.02);
}

.quest-reward-badge i {
    font-size: 14px;
}

.quest-reward-badge.klout i {
    color: #ffd700;
}

.quest-reward-badge.aura i {
    color: #e91e8c;
}

.quest-reward-badge span {
    font-family: 'Fredoka', sans-serif;
    font-size: 12px;
    color: #fff;
    font-weight: 500;
}

.quest-reward-badge .reward-value {
    font-weight: 700;
}

.quest-reward-badge.klout .reward-value {
    color: #ffd700;
}

.quest-reward-badge.aura .reward-value {
    color: #e91e8c;
}

/* Info Modals */
.info-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.info-modal-overlay.active {
    display: flex;
}

.info-modal-card {
    position: relative;
    width: 100%;
    max-width: 340px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 24px;
    padding: 30px;
    text-align: center;
    font-family: 'Fredoka', sans-serif;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.info-modal-card.klout {
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.info-modal-card.aura {
    border: 2px solid rgba(233, 30, 140, 0.3);
}

.info-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.info-modal-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
}

.info-modal-card.klout .info-modal-icon {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
}

.info-modal-card.aura .info-modal-icon {
    background: rgba(233, 30, 140, 0.2);
    color: #e91e8c;
}

.info-modal-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px 0;
}

.info-modal-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.info-modal-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #e91e8c, #9b1b6e);
    color: #fff;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.info-modal-cta:hover {
    color: #fff;
    text-decoration: none;
}

/* Bottom Bar - Full Width */
.quest-bottom-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 110;
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(233, 30, 140, 0.3);
    padding: 12px 16px;
}

.quest-bottom-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.quest-lang-switcher {
    display: flex;
    align-items: center;
}

/* Language switcher in quest map context */
.quest-lang-switcher .nav-lang-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.quest-lang-switcher .nav-lang-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.quest-lang-switcher .nav-lang-menu {
    bottom: calc(100% + 8px);
    top: auto;
}

.quest-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 32px;
    background: linear-gradient(135deg, #e91e8c, #9b1b6e);
    border: none;
    border-radius: 50px;
    color: #fff;
    font-family: 'Fredoka', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.quest-cta-btn:hover {
    color: #fff;
    text-decoration: none;
}

/* Stamp Markers - Simple static dots */
.stamp-marker {
    width: 12px;
    height: 12px;
    background: #e91e8c;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    opacity: 1 !important;
}

.stamp-marker.collected {
    background: #2ecc71;
}

/* Stamp Image Markers - For honeycomb quests with multiple stamp types */
.stamp-image-marker {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    opacity: 1 !important;
}

.stamp-image-marker.collected {
    opacity: 0.5 !important;
    filter: grayscale(100%);
}

/* MapLibre marker override */
.maplibregl-marker {
    opacity: 1 !important;
}

/* Center Marker with Avatar - No animations */
.quest-center-marker {
    position: relative;
    width: 60px;
    height: 60px;
    opacity: 1 !important;
}

.quest-marker-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #e91e8c;
    box-shadow: 0 0 15px rgba(233, 30, 140, 0.4);
    opacity: 1 !important;
}

.quest-marker-avatar {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    opacity: 1 !important;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .quest-map-header {
        padding: 0;
    }
    
    .quest-info-card {
        width: 100%;
        max-width: none;
        border-radius: 0;
        padding: 8px 12px;
    }
    
    .quest-info-avatar {
        width: 32px;
        height: 32px;
    }
    
    .quest-info-name-row {
        gap: 6px;
    }
    
    .quest-type-badge {
        width: 18px;
        height: 18px;
        font-size: 9px;
        border-radius: 5px;
    }
    
    .quest-info-name {
        font-size: 13px;
    }
    
    .quest-info-description {
        font-size: 11px;
        -webkit-line-clamp: 1;
    }
    
    .quest-prize {
        gap: 6px;
        padding-left: 8px;
    }
    
    .quest-prize-stamp {
        width: 28px;
        height: 28px;
    }
    
    .quest-prize-label {
        font-size: 8px;
    }
    
    .quest-prize-count {
        font-size: 12px;
    }
    
    .quest-prize-stamp-multi {
        width: 24px;
        height: 24px;
        margin-left: -6px;
    }
    
    .honeycomb-key {
        min-width: 160px;
    }
    
    .honeycomb-key-header {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .honeycomb-key-items {
        padding: 6px;
        gap: 6px;
        max-height: 150px;
    }
    
    .honeycomb-key-item {
        padding: 5px 6px;
        gap: 8px;
    }
    
    .honeycomb-key-stamp {
        width: 26px;
        height: 26px;
    }
    
    .honeycomb-key-name {
        font-size: 11px;
    }
    
    .honeycomb-key-klout, .honeycomb-key-aura {
        font-size: 10px;
    }
    
    .quest-bottom-bar {
        padding: 10px 12px;
    }
    
    .quest-bottom-content {
        flex-direction: row;
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .quest-cta-btn {
        padding: 10px 24px;
        font-size: 14px;
        flex: 1;
        min-width: 0;
    }
    
    .quest-lang-switcher {
        flex-shrink: 0;
    }
    
    .quest-lang-switcher .nav-lang-btn {
        padding: 0.4rem 0.75rem !important;
    }
    
    .quest-view-toggle {
        top: 80px;
        right: 8px;
        padding: 6px 10px;
        gap: 6px;
    }
    
    .quest-view-toggle i {
        font-size: 14px;
    }
    
    .quest-view-toggle span {
        font-size: 12px;
    }
    
    .quest-rewards-overlay {
        bottom: 75px;
        left: 8px;
        gap: 4px;
    }
    
    .quest-reward-badge {
        padding: 6px 10px;
        gap: 5px;
    }
    
    .quest-reward-badge i {
        font-size: 12px;
    }
    
    .quest-reward-badge span {
        font-size: 11px;
    }
    
    .stamp-image-marker {
        width: 18px;
        height: 18px;
    }
}
