/* ============================================
   MMA TOWER - SMART GUIDANCE SYSTEM
   Class names match js/smart-guidance.js
   ============================================ */

/* ============================================
   WELCOME MODAL OVERLAY
   ============================================ */

.guidance-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 15, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.guidance-overlay.guidance-visible {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   WELCOME MODAL
   ============================================ */

.guidance-welcome-modal {
    position: relative;
    max-width: 520px;
    width: 100%;
    background: linear-gradient(165deg, 
        rgba(30, 30, 45, 0.98) 0%, 
        rgba(15, 23, 42, 0.99) 100%
    );
    border: 1px solid rgba(197, 160, 40, 0.35);
    border-radius: 20px;
    padding: 36px 32px;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(197, 160, 40, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.guidance-visible .guidance-welcome-modal {
    transform: translateY(0) scale(1);
}

/* Gold accent line at top */
.guidance-welcome-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #c5a028 25%, 
        #d4af37 50%, 
        #c5a028 75%, 
        transparent 100%
    );
    border-radius: 0 0 3px 3px;
}

/* Close button */
.guidance-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.guidance-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Header section */
.guidance-welcome-header {
    text-align: center;
    margin-bottom: 28px;
}

.guidance-welcome-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 14px;
    border: 1px solid rgba(197, 160, 40, 0.3);
    background: rgba(197, 160, 40, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.guidance-welcome-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #f4d160 0%, #c5a028 50%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 8px;
    line-height: 1.2;
}

.guidance-welcome-subtitle {
    font-size: 14px;
    color: rgba(250, 248, 245, 0.6);
    margin: 0;
    line-height: 1.5;
}

/* ============================================
   STEPS LIST
   ============================================ */

.guidance-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.guidance-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(197, 160, 40, 0.04);
    border: 1px solid rgba(197, 160, 40, 0.12);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.guidance-step:hover {
    background: rgba(197, 160, 40, 0.08);
    border-color: rgba(197, 160, 40, 0.2);
}

.guidance-step-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(197, 160, 40, 0.1);
    border: 1px solid rgba(197, 160, 40, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.guidance-step-content {
    flex: 1;
    min-width: 0;
}

.guidance-step-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: rgba(250, 248, 245, 0.95);
    margin: 0 0 4px;
}

.guidance-step-desc {
    font-size: 13px;
    color: rgba(250, 248, 245, 0.55);
    margin: 0;
    line-height: 1.4;
}

/* ============================================
   TIP BOX
   ============================================ */

.guidance-tip {
    padding: 12px 16px;
    background: rgba(197, 160, 40, 0.06);
    border: 1px solid rgba(197, 160, 40, 0.15);
    border-radius: 10px;
    font-size: 13px;
    color: #c5a028;
    text-align: center;
    margin-bottom: 24px;
    line-height: 1.5;
}

/* ============================================
   START BUTTON
   ============================================ */

.guidance-start-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #c5a028 0%, #d4af37 50%, #c5a028 100%);
    border: none;
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #0a0a0f;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 20px rgba(197, 160, 40, 0.3);
}

.guidance-start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(197, 160, 40, 0.4);
}

.guidance-start-btn:active {
    transform: translateY(0);
}

/* ============================================
   QUICK NAVIGATION SECTION
   ============================================ */

.guidance-quick-nav {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(197, 160, 40, 0.15);
}

.guidance-quick-nav-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(250, 248, 245, 0.4);
    text-align: center;
    margin: 0 0 12px;
}

.guidance-quick-nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.guidance-quick-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(197, 160, 40, 0.06);
    border: 1px solid rgba(197, 160, 40, 0.15);
    border-radius: 8px;
    text-decoration: none;
    font-size: 12px;
    color: rgba(250, 248, 245, 0.7);
    transition: all 0.2s ease;
}

.guidance-quick-link:hover {
    background: rgba(197, 160, 40, 0.12);
    border-color: rgba(197, 160, 40, 0.3);
    color: #c5a028;
    transform: translateY(-1px);
}

.guidance-quick-link span {
    white-space: nowrap;
}

.guidance-icon-fallback-sm {
    display: inline-block;
    width: 14px;
    height: 14px;
    background: #c5a028;
    border-radius: 50%;
}

/* ============================================
   DON'T SHOW AGAIN CHECKBOX (REMOVED)
   ============================================ */

.guidance-dont-show {
    display: none; /* Hidden - we don't need this anymore */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 12px;
    color: rgba(250, 248, 245, 0.4);
    cursor: pointer;
    transition: color 0.2s ease;
}

.guidance-dont-show:hover {
    color: rgba(250, 248, 245, 0.6);
}

.guidance-dont-show input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: #c5a028;
    cursor: pointer;
}

/* ============================================
   FLOATING HELP BUTTON
   ============================================ */

.guidance-help-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9000;
}

.guidance-help-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c5a028 0%, #a68a1f 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 4px 20px rgba(197, 160, 40, 0.4),
        0 0 0 4px rgba(197, 160, 40, 0.1);
    transition: all 0.3s ease;
    color: #0a0a0f;
    font-size: 22px;
    font-weight: 700;
}

.guidance-help-btn:hover {
    transform: scale(1.08);
    box-shadow: 
        0 6px 30px rgba(197, 160, 40, 0.5),
        0 0 0 6px rgba(197, 160, 40, 0.15);
}

.guidance-help-btn-active {
    background: linear-gradient(135deg, #d4af37 0%, #c5a028 100%);
}

/* ============================================
   HELP PANEL
   ============================================ */

.guidance-help-panel {
    position: absolute;
    bottom: 64px;
    right: 0;
    width: 260px;
    background: linear-gradient(165deg, 
        rgba(30, 30, 45, 0.98) 0%, 
        rgba(15, 23, 42, 0.99) 100%
    );
    border: 1px solid rgba(197, 160, 40, 0.25);
    border-radius: 16px;
    padding: 0;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(197, 160, 40, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.guidance-help-panel.guidance-panel-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.guidance-help-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(197, 160, 40, 0.15);
    background: rgba(197, 160, 40, 0.05);
}

.guidance-help-panel-header h3 {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #c5a028;
}

.guidance-help-panel-header button {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.guidance-help-panel-header button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.guidance-help-panel-content {
    padding: 8px;
}

.guidance-help-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: rgba(250, 248, 245, 0.8);
    font-size: 13px;
    transition: all 0.2s ease;
    background: transparent;
    border: none;
    width: 100%;
    cursor: pointer;
    text-align: left;
}

.guidance-help-link:hover {
    background: rgba(197, 160, 40, 0.1);
    color: #c5a028;
}

.guidance-help-link-icon {
    font-size: 16px;
    width: 24px;
    text-align: center;
}

.guidance-help-divider {
    height: 1px;
    background: rgba(197, 160, 40, 0.12);
    margin: 8px 12px;
}

.guidance-help-replay {
    color: rgba(250, 248, 245, 0.5);
    font-size: 12px;
}

.guidance-help-replay:hover {
    color: #c5a028;
}

/* ============================================
   CONTEXTUAL HINTS
   ============================================ */

.guidance-hint {
    position: absolute;
    z-index: 9500;
    max-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.3s ease;
}

.guidance-hint.guidance-hint-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.guidance-hint-content {
    background: linear-gradient(165deg, 
        rgba(30, 30, 45, 0.98) 0%, 
        rgba(15, 23, 42, 0.99) 100%
    );
    border: 1px solid rgba(197, 160, 40, 0.3);
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(197, 160, 40, 0.1);
}

.guidance-hint-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.guidance-hint-icon {
    color: #c5a028;
}

.guidance-hint-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #c5a028;
}

.guidance-hint-message {
    font-size: 12px;
    color: rgba(250, 248, 245, 0.7);
    margin: 0 0 12px;
    line-height: 1.5;
}

.guidance-hint-action {
    padding: 8px 14px;
    background: rgba(197, 160, 40, 0.15);
    border: 1px solid rgba(197, 160, 40, 0.3);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    color: #c5a028;
    cursor: pointer;
    transition: all 0.2s ease;
}

.guidance-hint-action:hover {
    background: rgba(197, 160, 40, 0.25);
}

/* Hint pointer arrow */
.guidance-hint-pointer {
    position: absolute;
    width: 12px;
    height: 12px;
    background: rgba(30, 30, 45, 0.98);
    border: 1px solid rgba(197, 160, 40, 0.3);
    transform: rotate(45deg);
}

/* Position variants */
.guidance-hint-top .guidance-hint-pointer {
    bottom: -7px;
    left: 50%;
    margin-left: -6px;
    border-top: none;
    border-left: none;
}

.guidance-hint-bottom .guidance-hint-pointer {
    top: -7px;
    left: 50%;
    margin-left: -6px;
    border-bottom: none;
    border-right: none;
}

.guidance-hint-left .guidance-hint-pointer {
    right: -7px;
    top: 50%;
    margin-top: -6px;
    border-left: none;
    border-bottom: none;
}

.guidance-hint-right .guidance-hint-pointer {
    left: -7px;
    top: 50%;
    margin-top: -6px;
    border-right: none;
    border-top: none;
}

/* ============================================
   PROGRESS NUDGE TOAST
   ============================================ */

.guidance-nudge {
    position: fixed;
    bottom: 90px;
    right: 24px;
    max-width: 360px;
    background: linear-gradient(165deg, 
        rgba(30, 30, 45, 0.98) 0%, 
        rgba(15, 23, 42, 0.99) 100%
    );
    border: 1px solid rgba(197, 160, 40, 0.25);
    border-radius: 14px;
    padding: 16px;
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(197, 160, 40, 0.1);
    z-index: 8900;
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.guidance-nudge.guidance-nudge-visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.guidance-nudge-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 24px;
}

.guidance-nudge-message {
    font-size: 13px;
    color: rgba(250, 248, 245, 0.85);
    line-height: 1.5;
}

.guidance-nudge-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: linear-gradient(135deg, #c5a028 0%, #a68a1f 100%);
    border-radius: 8px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    color: #0a0a0f;
    align-self: flex-start;
    transition: all 0.2s ease;
}

.guidance-nudge-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(197, 160, 40, 0.3);
}

.guidance-nudge-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.4);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.guidance-nudge-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   ICON FALLBACK
   ============================================ */

.guidance-icon-fallback {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: #c5a028;
    border-radius: 50%;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 600px) {
    .guidance-welcome-modal {
        max-width: 100%;
        padding: 28px 20px;
        margin: 16px;
        border-radius: 16px;
    }
    
    .guidance-welcome-title {
        font-size: 20px;
    }
    
    .guidance-step {
        padding: 12px;
    }
    
    .guidance-help-float {
        bottom: 16px;
        right: 16px;
    }
    
    .guidance-help-btn {
        width: 46px;
        height: 46px;
    }
    
    .guidance-help-panel {
        right: -8px;
        width: 240px;
    }
    
    .guidance-nudge {
        right: 16px;
        left: 16px;
        max-width: none;
        bottom: 80px;
    }
    
    .guidance-hint {
        max-width: 240px;
    }
}

/* ============================================
   ANIMATION KEYFRAMES
   ============================================ */

@keyframes guidance-pulse {
    0%, 100% {
        box-shadow: 
            0 4px 20px rgba(197, 160, 40, 0.4),
            0 0 0 4px rgba(197, 160, 40, 0.1);
    }
    50% {
        box-shadow: 
            0 4px 20px rgba(197, 160, 40, 0.5),
            0 0 0 8px rgba(197, 160, 40, 0.05);
    }
}

.guidance-help-btn {
    animation: guidance-pulse 3s ease-in-out infinite;
}

.guidance-help-btn:hover {
    animation: none;
}
