/*
 * FILE: user-guide.css
 * PURPOSE: Styling for the User Guide Modal component (Panel version)
 *
 * KEY RESPONSIBILITIES:
 *  - Style the guide modal carousel
 *  - Handle responsive design
 *  - Integrate with Metronic theme
 *
 * DESIGN PHILOSOPHY:
 *  - Trust-building aesthetic: professional, empowering
 *  - Rich illustrations take center stage
 *  - Clear navigation with progress indication
 *
 * LAST UPDATED: December 24, 2025 by /go Agent
 * CHANGE SUMMARY: Initial creation for User Guiding System
 */

/* ═══════════════════════════════════════════════════════════════════════════
   VARIABLES
   ═══════════════════════════════════════════════════════════════════════════ */
.sp-user-guide {
    --guide-modal-width: 580px;
    --guide-modal-max-height: 85vh;
    --guide-illustration-height: 220px;
    --guide-border-radius: 12px;
    --guide-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Colors - Professional admin palette */
    --guide-bg: var(--bs-card-bg, #ffffff);
    --guide-text: var(--bs-gray-900, #181c32);
    --guide-text-muted: var(--bs-gray-600, #7e8299);
    --guide-primary: var(--bs-primary, #009ef7);
    --guide-primary-hover: var(--bs-primary-active, #0095e8);
    --guide-success: var(--bs-success, #50cd89);
    --guide-success-hover: var(--bs-success-active, #47be7d);
    --guide-backdrop: rgba(0, 0, 0, 0.4);
    --guide-border: var(--bs-gray-200, #eff2f5);
    --guide-illustration-bg: linear-gradient(135deg, var(--bs-light-primary, #f1faff) 0%, var(--bs-white, #fff) 100%);
}

/* Dark mode - Metronic dark theme */
[data-bs-theme="dark"] .sp-user-guide {
    --guide-bg: var(--bs-card-bg, #1e1e2d);
    --guide-text: var(--bs-gray-100, #f5f8fa);
    --guide-text-muted: var(--bs-gray-500, #a1a5b7);
    --guide-border: var(--bs-gray-800, #323248);
    --guide-backdrop: rgba(0, 0, 0, 0.6);
    --guide-illustration-bg: linear-gradient(135deg, #1b1b29 0%, #2b2b40 100%);
}

/* ═══════════════════════════════════════════════════════════════════════════
   BACKDROP
   ═══════════════════════════════════════════════════════════════════════════ */
.sp-user-guide__backdrop {
    position: fixed;
    inset: 0;
    background: var(--guide-backdrop);
    backdrop-filter: blur(3px);
    z-index: 1050;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CONTAINER
   ═══════════════════════════════════════════════════════════════════════════ */
.sp-user-guide__container {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 1055;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════════════════════════════════════ */
.sp-user-guide__modal {
    position: relative;
    width: 100%;
    max-width: var(--guide-modal-width);
    max-height: var(--guide-modal-max-height);
    background: var(--guide-bg);
    border-radius: var(--guide-border-radius);
    box-shadow: var(--guide-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Close Button */
.sp-user-guide__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--guide-bg);
    border: 1px solid var(--guide-border);
    border-radius: 6px;
    color: var(--guide-text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
    z-index: 10;
}

.sp-user-guide__close:hover {
    background: var(--guide-border);
    color: var(--guide-text);
}

/* ═══════════════════════════════════════════════════════════════════════════
   CAROUSEL
   ═══════════════════════════════════════════════════════════════════════════ */
.sp-user-guide__carousel {
    position: relative;
    flex: 1;
    overflow: hidden;
}

/* Card */
.sp-user-guide__card {
    display: flex;
    flex-direction: column;
}

/* Illustration - FontAwesome/Keenicons with decorative background */
.sp-user-guide__illustration {
    width: 100%;
    height: var(--guide-illustration-height);
    background: var(--guide-illustration-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.sp-user-guide__illustration i {
    font-size: 5rem;
    color: var(--guide-primary);
    opacity: 0.85;
}

.sp-user-guide__illustration img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Content */
.sp-user-guide__content {
    padding: 1.5rem 2rem;
}

.sp-user-guide__title {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--guide-text);
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

.sp-user-guide__body {
    font-size: 0.9375rem;
    color: var(--guide-text-muted);
    line-height: 1.65;
}

.sp-user-guide__body p {
    margin: 0 0 0.75rem 0;
}

.sp-user-guide__body p:last-child {
    margin-bottom: 0;
}

.sp-user-guide__body strong {
    color: var(--guide-text);
    font-weight: 600;
}

.sp-user-guide__body ul {
    margin: 0.75rem 0;
    padding-left: 1.25rem;
}

.sp-user-guide__body li {
    margin-bottom: 0.5rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */
.sp-user-guide__footer {
    padding: 1rem 2rem 1.5rem;
    border-top: 1px solid var(--guide-border);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Progress Dots */
.sp-user-guide__progress {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.sp-user-guide__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--guide-border);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sp-user-guide__dot:hover {
    background: var(--guide-text-muted);
}

.sp-user-guide__dot--active {
    background: var(--guide-primary);
    transform: scale(1.2);
}

/* Preferences */
.sp-user-guide__preferences {
    display: flex;
    justify-content: center;
}

.sp-user-guide__checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

/* Navigation */
.sp-user-guide__nav {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HELP TRIGGER (Floating Button)
   ═══════════════════════════════════════════════════════════════════════════ */
.sp-user-guide__help-trigger {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--guide-primary);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 158, 247, 0.35);
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 100;
}

.sp-user-guide__help-trigger:hover {
    background: var(--guide-primary-hover);
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(0, 158, 247, 0.45);
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .sp-user-guide__modal {
        max-width: 100%;
        margin: 0.5rem;
    }
    
    .sp-user-guide__illustration {
        height: 160px;
    }
    
    .sp-user-guide__content {
        padding: 1rem 1.5rem;
    }
    
    .sp-user-guide__title {
        font-size: 1.2rem;
    }
    
    .sp-user-guide__footer {
        padding: 1rem 1.5rem;
    }
    
    .sp-user-guide__nav {
        flex-wrap: wrap;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════════ */
@keyframes guideSlideIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sp-user-guide__card {
    animation: guideSlideIn 0.25s ease-out;
}

/* Subtle pulse for help trigger */
@keyframes guidePulseSoft {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(0, 158, 247, 0.35);
    }
    50% {
        box-shadow: 0 4px 18px rgba(0, 158, 247, 0.5);
    }
}

.sp-user-guide__help-trigger {
    animation: guidePulseSoft 3s ease-in-out infinite;
}

.sp-user-guide__help-trigger:hover {
    animation: none;
}

