/* ==========================================================================
   Learning Hub Page Styles
   ========================================================================== */

/* Dashboard Showcase Section */
.dashboard-showcase {
    padding: var(--space-4xl) 0;
    background: rgba(0, 0, 0, 0.3);
}

/* Dashboard Frame */
.dashboard-frame {
    background: #0a0a0f;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.5), 0 0 60px rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.dashboard-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dashboard-dots .dot.red { background: #ff5f56; }
.dashboard-dots .dot.yellow { background: #ffbd2e; }
.dashboard-dots .dot.green { background: #27ca40; }

.dashboard-url {
    flex: 1;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
}

.dashboard-body {
    display: flex;
    min-height: 450px;
}

/* Sidebar */
.mock-sidebar {
    width: 64px;
    background: rgba(255, 255, 255, 0.02);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    padding: var(--space-md) 0;
}

.sidebar-logo {
    padding: var(--space-md);
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-lg);
}

.sidebar-logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.logo-circle {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    border-radius: 8px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 var(--space-sm);
}

.nav-item {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-item svg {
    width: 22px;
    height: 22px;
    stroke: rgba(255, 255, 255, 0.4);
    transition: stroke 0.2s ease;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.nav-item:hover svg {
    stroke: rgba(255, 255, 255, 0.7);
}

.nav-item.active {
    background: rgba(124, 58, 237, 0.2);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
}

.nav-item.active svg {
    stroke: #a78bfa;
}

.sidebar-bottom {
    margin-top: auto;
    padding: 0 var(--space-sm);
}

/* Main Content */
.mock-main {
    flex: 1;
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.welcome-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.main-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-top: 4px;
}

.header-search {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px 16px;
}

.header-search svg {
    width: 18px;
    height: 18px;
    stroke: rgba(255, 255, 255, 0.4);
}

.header-search span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Stats Row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.stat-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    transition: all 0.2s ease;
}

.stat-box:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon svg {
    width: 22px;
    height: 22px;
}

.stat-icon.blue {
    background: rgba(59, 130, 246, 0.15);
}
.stat-icon.blue svg { stroke: #3b82f6; }

.stat-icon.purple {
    background: rgba(139, 92, 246, 0.15);
}
.stat-icon.purple svg { stroke: #8b5cf6; }

.stat-icon.green {
    background: rgba(34, 197, 94, 0.15);
}
.stat-icon.green svg { stroke: #22c55e; }

.stat-icon.orange {
    background: rgba(249, 115, 22, 0.15);
}
.stat-icon.orange svg { stroke: #f97316; }

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Learning Path */
.learning-path-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: var(--space-xl);
}

.learning-path-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: var(--space-lg);
}

.learning-path {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
}

.path-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.step-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.path-step.completed .step-dot {
    background: #22c55e;
    border-color: #22c55e;
}

.path-step.active .step-dot {
    background: #7c3aed;
    border-color: #7c3aed;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.5);
}

.path-step span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.path-step.completed span,
.path-step.active span {
    color: rgba(255, 255, 255, 0.9);
}

.path-line {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 var(--space-md);
    margin-bottom: 24px;
    border-radius: 2px;
}

.path-line.completed {
    background: linear-gradient(90deg, #22c55e, #7c3aed);
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: var(--space-sm);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #7c3aed);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Right Panel */
.mock-panel {
    width: 260px;
    background: rgba(255, 255, 255, 0.02);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.panel-section h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    margin-bottom: var(--space-md);
}

.vision-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    margin-bottom: var(--space-sm);
}

.vision-icon {
    font-size: 1.25rem;
}

.vision-info {
    display: flex;
    flex-direction: column;
}

.vision-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.vision-date {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.add-goal-btn {
    width: 100%;
    padding: var(--space-md);
    background: rgba(124, 58, 237, 0.1);
    border: 1px dashed rgba(124, 58, 237, 0.3);
    border-radius: 10px;
    color: #a78bfa;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: var(--space-sm);
}

.add-goal-btn:hover {
    background: rgba(124, 58, 237, 0.15);
    border-color: rgba(124, 58, 237, 0.5);
}

.community-avatars {
    display: flex;
    margin-bottom: var(--space-sm);
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border: 2px solid #0a0a0f;
    margin-left: -10px;
}

.avatar:first-child {
    margin-left: 0;
}

.avatar:nth-child(2) {
    background: linear-gradient(135deg, #22c55e, #10b981);
}

.avatar:nth-child(3) {
    background: linear-gradient(135deg, #f97316, #f59e0b);
}

.avatar.more {
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
}

.community-text {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Feature Preview Styles */

/* Library Preview */
.library-preview {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.library-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.card-thumb {
    width: 50px;
    height: 50px;
    border-radius: 10px;
}

.card-thumb.ai {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
}

.card-thumb.ml {
    background: linear-gradient(135deg, #22c55e, #10b981);
}

.card-thumb.dl {
    background: linear-gradient(135deg, #f97316, #f59e0b);
}

.card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.card-meta {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.card-progress {
    width: 60px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.card-progress::after {
    content: '';
    display: block;
    height: 100%;
    width: var(--progress);
    background: linear-gradient(90deg, #22c55e, #7c3aed);
    border-radius: 3px;
}

/* Vision Preview */
.vision-preview {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.goal-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.goal-check {
    width: 32px;
    height: 32px;
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.goal-progress {
    width: 40px;
    height: 40px;
    position: relative;
}

.goal-progress svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.goal-progress span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.65rem;
    font-weight: 600;
    color: #a78bfa;
}

.goal-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.goal-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.goal-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.goal-date {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.goal-item.completed {
    opacity: 0.7;
}

.goal-item.active {
    border-color: rgba(124, 58, 237, 0.3);
    background: rgba(124, 58, 237, 0.05);
}

/* Journal Preview */
.journal-preview {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.journal-entry {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.entry-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-sm);
    background: rgba(124, 58, 237, 0.1);
    border-radius: 8px;
    min-width: 50px;
}

.entry-date .day {
    font-size: 1.25rem;
    font-weight: 700;
    color: #a78bfa;
}

.entry-date .month {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

.entry-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.entry-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.entry-text {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
}

.entry-tags {
    display: flex;
    gap: 6px;
    margin-top: 4px;
}

.entry-tags .tag {
    font-size: 0.65rem;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.6);
}

.entry-mood {
    font-size: 1.25rem;
}

/* Community Preview */
.community-preview {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.chat-message {
    display: flex;
    gap: var(--space-sm);
}

.chat-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
}

.chat-avatar.blue {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
}

.chat-avatar.purple {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
}

.chat-avatar.green {
    background: linear-gradient(135deg, #22c55e, #4ade80);
}

.chat-bubble {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: var(--space-sm) var(--space-md);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chat-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}

.chat-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

.online-indicator {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: rgba(34, 197, 94, 0.1);
    border-radius: 10px;
    margin-top: var(--space-sm);
}

.online-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.online-indicator span {
    font-size: 0.8rem;
    color: #22c55e;
}

/* Responsive */
@media (max-width: 1200px) {
    .dashboard-body {
        flex-direction: column;
    }

    .mock-sidebar {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding: var(--space-sm) var(--space-md);
    }

    .sidebar-logo {
        margin-bottom: 0;
    }

    .sidebar-nav {
        flex-direction: row;
        padding: 0;
    }

    .sidebar-bottom {
        margin-top: 0;
        padding: 0;
    }

    .mock-panel {
        width: 100%;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        flex-direction: row;
    }

    .panel-section {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-item {
        width: 40px;
        height: 40px;
    }

    .nav-item svg {
        width: 18px;
        height: 18px;
    }

    .mock-panel {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .mock-sidebar {
        overflow-x: auto;
    }

    .stats-row {
        grid-template-columns: 1fr;
    }

    .learning-path {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-md);
    }

    .path-line {
        display: none;
    }
}
