/* ==========================================================================
   Onboarding Guide Modal Styles
   Interactive tutorial for new users
   ========================================================================== */

/* Modal Content */
.onboarding-guide-modal {
    background: var(--bg-primary, #0d0f1a);
    border: 1px solid rgba(130, 64, 255, 0.2);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    max-height: 85vh;
}

/* Background effects */
.guide-bg-effects {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.guide-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
}

.guide-orb-1 {
    width: 300px;
    height: 300px;
    background: #8240FF;
    top: -80px;
    right: -60px;
    animation: guideOrbFloat 8s ease-in-out infinite;
}

.guide-orb-2 {
    width: 250px;
    height: 250px;
    background: #D2B8FF;
    bottom: -60px;
    left: -40px;
    animation: guideOrbFloat 10s ease-in-out infinite reverse;
}

@keyframes guideOrbFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -20px); }
}

/* Header & Progress */
.guide-header {
    position: relative;
    z-index: 1;
    padding: 16px 20px 8px;
    flex-direction: column;
    gap: 8px;
}

.guide-progress-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.guide-progress-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
}

.guide-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #8240FF, #D2B8FF);
    border-radius: 4px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.guide-step-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
}

.step-dot.active {
    background: #8240FF;
    box-shadow: 0 0 8px rgba(130, 64, 255, 0.5);
    transform: scale(1.2);
}

.step-dot.completed {
    background: #D2B8FF;
}

.guide-skip-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.guide-skip-btn:hover {
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.05);
}

/* Body */
.guide-body {
    position: relative;
    z-index: 1;
    padding: 10px 24px 16px;
    overflow-y: auto;
}

/* Steps */
.guide-step {
    display: none;
    animation: guideStepIn 0.4s ease;
}

.guide-step.active {
    display: block;
}

@keyframes guideStepIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Step icon */
.guide-step-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(130, 64, 255, 0.2), rgba(210, 184, 255, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.6rem;
    color: #D2B8FF;
    border: 1px solid rgba(130, 64, 255, 0.2);
}

.guide-icon-premium {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 180, 0, 0.1));
    color: #FFD700;
    border-color: rgba(255, 215, 0, 0.2);
}

.guide-icon-create {
    background: linear-gradient(135deg, rgba(0, 200, 150, 0.15), rgba(0, 230, 180, 0.1));
    color: #00E6B4;
    border-color: rgba(0, 200, 150, 0.2);
}

/* Typography */
.guide-step-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: 4px;
}

.guide-step-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    margin-bottom: 4px;
}

.guide-step-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    text-align: center;
    margin-bottom: 16px;
}

.guide-section-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

/* Highlight box */
.guide-highlight-box {
    background: linear-gradient(135deg, rgba(130, 64, 255, 0.12), rgba(210, 184, 255, 0.08));
    border: 1px solid rgba(130, 64, 255, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    color: #ffffff;
}

.guide-highlight-box i {
    font-size: 1.2rem;
    color: #D2B8FF;
    flex-shrink: 0;
}

.guide-highlight-upgrade {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(255, 180, 0, 0.05));
    border-color: rgba(255, 215, 0, 0.2);
}

.guide-highlight-upgrade i {
    color: #FFD700;
}

/* Costs grid */
.guide-costs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.guide-cost-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.guide-cost-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(130, 64, 255, 0.15);
}

.guide-cost-item i {
    font-size: 1rem;
    color: #D2B8FF;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.cost-label {
    flex: 1;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.75);
}

.cost-pts {
    font-size: 0.78rem;
    font-weight: 600;
    color: #D2B8FF;
    background: rgba(130, 64, 255, 0.12);
    padding: 2px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

/* Lists */
.guide-list {
    list-style: none;
    padding: 0;
    margin: 0 0 8px 0;
}

.guide-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
}

.guide-list li i {
    font-size: 0.85rem;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.guide-list-check li i {
    color: #4ade80;
}

.guide-list-limit li i {
    color: #f87171;
}

.guide-list-premium li i {
    color: #D2B8FF;
}

/* Pricing cards */
.guide-pricing-cards {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.guide-pricing-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    position: relative;
    transition: all 0.2s ease;
}

.guide-pricing-card:hover {
    border-color: rgba(130, 64, 255, 0.2);
}

.guide-pricing-best {
    border-color: rgba(130, 64, 255, 0.4);
    background: rgba(130, 64, 255, 0.08);
}

.pricing-duration {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.pricing-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
}

.pricing-per {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
}

.pricing-badge {
    font-size: 0.65rem;
    font-weight: 600;
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 2px;
}

.pricing-badge-best {
    position: absolute;
    top: -8px;
    font-size: 0.6rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(90deg, #8240FF, #D2B8FF);
    padding: 2px 8px;
    border-radius: 6px;
}

/* Character creation steps */
.guide-char-steps {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.guide-char-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    transition: all 0.2s ease;
}

.guide-char-step:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 200, 150, 0.15);
}

.char-step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 200, 150, 0.2), rgba(0, 230, 180, 0.1));
    color: #00E6B4;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Tip box */
.guide-tip-box {
    background: rgba(255, 215, 0, 0.06);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.guide-tip-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #FFD700;
    display: block;
    margin-bottom: 4px;
}

.guide-tip-box p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
}

/* CTA Buttons */
.guide-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.guide-cta-premium {
    background: linear-gradient(90deg, #8240FF, #D2B8FF);
    color: #ffffff;
    width: 100%;
}

.guide-cta-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(130, 64, 255, 0.3);
    color: #ffffff;
}

.guide-cta-group {
    display: flex;
    gap: 10px;
}

.guide-cta-create {
    flex: 1;
    background: linear-gradient(90deg, #00C896, #00E6B4);
    color: #ffffff;
}

.guide-cta-create:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 200, 150, 0.3);
    color: #ffffff;
}

.guide-cta-browse {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.guide-cta-browse:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Footer / Navigation */
.guide-footer {
    position: relative;
    z-index: 1;
    padding: 12px 24px 16px;
    display: flex;
    justify-content: space-between;
}

.guide-nav-btn {
    padding: 8px 20px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.guide-back-btn {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.guide-back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.guide-next-btn {
    background: linear-gradient(90deg, #8240FF, #D2B8FF);
    color: #ffffff;
}

.guide-next-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(130, 64, 255, 0.3);
}

/* Mobile responsive */
@media (max-width: 576px) {
    .onboarding-guide-modal {
        margin: 8px;
        border-radius: 16px;
    }

    .guide-body {
        padding: 8px 16px 12px;
    }

    .guide-costs-grid {
        grid-template-columns: 1fr;
    }

    .guide-pricing-cards {
        flex-direction: column;
    }

    .guide-cta-group {
        flex-direction: column;
    }

    .guide-step-title {
        font-size: 1.2rem;
    }

    .guide-step-icon {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }
}
