/* 
   ONBOARDING.CSS — Industrial Precision Aesthetic
   High-end welcome experience for Exonoor Platform
*/

.onboarding-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(10, 15, 20, 0.45);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.onboarding-overlay.show {
    display: flex;
    opacity: 1;
}

.onboarding-container {
    width: 90vw;
    height: 85vh;
    max-width: 1400px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px; /* Industrial Sharpness */
    overflow: hidden;
    display: flex;
    box-shadow: 
        0 40px 80px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.03);
    transform: scale(0.98) translateY(10px);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.onboarding-overlay.show .onboarding-container {
    transform: scale(1) translateY(0);
}

/* ── Sidebar ── */
.onboarding-sidebar {
    width: 280px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 40px 0;
    z-index: 10;
}

.onboarding-brand {
    padding: 0 32px 48px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.onboarding-brand img {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 0 8px rgba(255, 71, 87, 0.3));
}

.onboarding-brand span {
    font-weight: 900;
    font-size: 16px;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.onboarding-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 12px;
}

.ob-nav-item {
    background: transparent;
    border: none;
    padding: 12px 16px;
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ob-nav-item i {
    font-size: 16px;
    opacity: 0.6;
}

.ob-nav-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
}

.ob-nav-item.active {
    background: var(--bg-secondary);
    color: var(--accent);
    box-shadow: inset 0 0 0 1px var(--border);
}

.ob-nav-item.active i {
    opacity: 1;
    color: var(--accent);
}

.ob-nav-item.completed i::before {
    content: '\F272';
    color: var(--success);
    opacity: 1;
}

/* ── Content Area ── */
.onboarding-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    background: var(--bg-primary);
    overflow: hidden;
    border-left: 1px solid var(--border);
}

/* THE ALIGNED GRID - Industrial Design */
.onboarding-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background-size: 20px 20px;
    background-image:
        linear-gradient(to right, var(--grid-color) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-color) 1px, transparent 1px);
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}

.onboarding-content::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 100% 0%, rgba(255, 71, 87, 0.05) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.onboarding-body {
    flex: 1;
    padding: 40px 60px;
    overflow-y: auto;
    position: relative;
    z-index: 2;
}

.onboarding-section {
    display: none;
    animation: obFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.onboarding-section.active {
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.ob-title {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 1.1;
    margin-bottom: 12px;
    color: var(--text-primary);
    max-width: 800px;
}

.ob-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.5;
    margin-bottom: 24px;
}

/* ── Micro Carousel ── */
.ob-carousel {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.ob-feature-card {
    flex: 1;
    background: rgba(22, 32, 43, 0.4);
    border: 1px solid var(--border);
    backdrop-filter: blur(8px);
    border-radius: 8px;
    padding: 16px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: default;
}

.ob-feature-card:hover {
    transform: translateY(-4px);
    background: rgba(22, 32, 43, 0.6);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.ob-feature-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 71, 87, 0.1);
    color: var(--accent);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 12px;
}

.ob-feature-card h4 {
    font-size: 11px;
    font-weight: 900;
    margin-bottom: 4px;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ob-feature-card p {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ── Visual Media Area ── */
.ob-visual {
    width: 100%;
    flex: 1;
    min-height: 200px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.ob-visual img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ── Footer / Actions ── */
.onboarding-footer {
    padding: 40px 80px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.ob-progress-dots {
    display: flex;
    gap: 6px;
}

.ob-dot {
    width: 32px;
    height: 2px;
    background: var(--border);
    transition: all 0.4s;
}

.ob-dot.active {
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

.ob-actions {
    display: flex;
    gap: 16px;
}

.ob-btn-next {
    padding: 14px 40px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 900;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ob-btn-next:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 71, 87, 0.4);
}

.ob-btn-skip {
    padding: 14px 28px;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-weight: 800;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s;
}

.ob-btn-skip:hover {
    border-color: var(--text-secondary);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

/* Light Mode Adjustments */
[data-theme='light'] .onboarding-overlay {
    background: rgba(240, 242, 245, 0.6);
}

[data-theme='light'] .onboarding-container {
    background: #fff;
    box-shadow: 0 40px 100px rgba(15, 23, 42, 0.15);
}

[data-theme='light'] .onboarding-sidebar {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme='light'] .onboarding-footer {
    background: rgba(0, 0, 0, 0.01);
}

[data-theme='light'] .ob-feature-card {
    background: rgba(255, 255, 255, 0.8);
}
