﻿/* =========================================
   YOUNGVERSE AI — STUDENT DESIGN SYSTEM
   Shared visual layer for all student pages
========================================= */

:root {
    --yv-primary: #2563eb;
    --yv-primary-dark: #1d4ed8;
    --yv-navy: #101b35;
    --yv-navy-light: #18294b;
    --yv-page: #f4f7fc;
    --yv-surface: #ffffff;
    --yv-text: #17233d;
    --yv-muted: #718096;
    --yv-border: #e7edf5;
    --yv-radius: 16px;
    --yv-shadow: 0 5px 22px rgba(20, 38, 75, .06);
    --yv-shadow-hover: 0 12px 30px rgba(20, 38, 75, .11);
}

/* PAGE FOUNDATION */
body {
    background: var(--yv-page);
    color: var(--yv-text);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

button, a, input, select, textarea {
    -webkit-tap-highlight-color: transparent;
}

button {
    transition: background .2s ease, box-shadow .2s ease;
}

/* SIDEBAR SYSTEM */
.sidebar,
.yv-sidebar {
    background: linear-gradient(180deg, var(--yv-navy), #142344) !important;
    color: #fff;
    border-right: 1px solid rgba(255,255,255,.07);
    box-shadow: 8px 0 28px rgba(15, 23, 42, .07);
}

.sidebar .logo,
.yv-sidebar .yv-logo {
    color: #fff;
}

.sidebar .logo-text,
.yv-sidebar .yv-logo-text {
    color: #fff;
    font-weight: 800;
    letter-spacing: -.4px;
}

.sidebar .logo-text span {
    color: #60a5fa;
}

.sidebar .nav-links a,
.sidebar .menu a,
.yv-sidebar .yv-nav-links a {
    color: #bdc9df;
    border-radius: 10px;
    transition: .2s ease;
}

.sidebar .nav-links a:hover,
.sidebar .menu a:hover,
.yv-sidebar .yv-nav-links a:hover {
    background: rgba(255,255,255,.09);
    color: #fff;
}

.sidebar .nav-links a.active,
.sidebar .menu a.active,
.yv-sidebar .yv-nav-links a.active {
    background: linear-gradient(100deg, #2563eb, #3478ed);
    color: #fff;
    box-shadow: 0 5px 15px rgba(37,99,235,.24);
}

.sidebar .nav-icon,
.sidebar .nav-links i,
.sidebar .menu i,
.yv-sidebar .yv-nav-links i {
    flex-shrink: 0;
}

/* LOGO IMAGE */
.logo-icon img,
.yv-logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* TOPBAR */
.topbar,
header.site-header {
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid var(--yv-border);
    box-shadow: 0 3px 14px rgba(15,23,42,.035);
}

/* PROFILE SPACING */
.profile,
.profile-info,
.profile-label {
    min-width: 0;
}

.profile-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.profile-info strong {
    display: block;
    color: var(--yv-text);
    font-size: 14px;
    font-weight: 750;
    line-height: 1.35;
}

.profile-info span {
    display: block;
    color: var(--yv-muted);
    font-size: 12px;
    line-height: 1.4;
}

.profile-avatar {
    flex-shrink: 0;
}

/* PAGE HEADINGS */
.page-header,
.section-heading {
    color: var(--yv-text);
}

.page-header h1,
.page-header h2,
.section-heading h2,
.section-heading h3,
.section-title {
    color: var(--yv-text);
    letter-spacing: -.45px;
}

/* CARDS */
.card,
.stat-card,
.feature-card,
.note-card,
.test-card,
.paper-card,
.batch-card,
.details-card,
.details-card,
.profile-card,
.bottom-card,
.filter-panel,
.filter-box,
.chat-panel,
.suggestion-panel {
    border: 1px solid var(--yv-border);
    border-radius: var(--yv-radius);
    box-shadow: var(--yv-shadow);
    background: var(--yv-surface);
}

.stat-card,
.feature-card,
.note-card,
.test-card,
.paper-card,
.batch-card {
    transition: transform .2s ease, box-shadow .2s ease;
}

.stat-card:hover,
.feature-card:hover,
.note-card:hover,
.test-card:hover,
.paper-card:hover,
.batch-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--yv-shadow-hover);
}

/* BUTTONS */
.btn,
button.primary,
.join,
.download,
.meeting-btn,
.view-notifications-btn,
.upload-photo-btn {
    border-radius: 10px;
    font-weight: 650;
}

.btn:hover,
.join:hover,
.download:hover,
.meeting-btn:hover,
.view-notifications-btn:hover,
.upload-photo-btn:hover {
    filter: brightness(.97);
}

/* INPUTS */
input,
select,
textarea {
    border-color: var(--yv-border);
    border-radius: 10px;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--yv-primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,.10);
}

/* AI TUTOR */
.chat-panel {
    overflow: hidden;
}

.chat-header {
    border-bottom: 1px solid var(--yv-border);
}

.chat-input-area {
    border-top: 1px solid var(--yv-border);
}

/* BATCH PAGE HEADER */
body > header,
body > header.site-header {
    background: #fff;
    border-bottom: 1px solid var(--yv-border);
}

/* REMOVE UNNECESSARY STUDENT PAGE FOOTERS */
body > footer,
main > footer,
.main > footer,
.main-content > footer {
    display: none !important;
}

/* ACCESSIBILITY */
a:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(59,130,246,.55);
    outline-offset: 3px;
}

/* MOBILE */
@media (max-width: 768px) {
    .topbar {
        gap: 10px;
    }

    .profile-info strong {
        font-size: 13px;
    }

    .profile-info span {
        font-size: 11px;
    }

    .stat-card,
    .feature-card,
    .note-card,
    .test-card,
    .paper-card,
    .batch-card {
        min-width: 0;
    }

    .chat-panel {
        border-radius: 13px;
    }
}

@media (max-width: 380px) {
    .profile-info strong {
        font-size: 12px;
    }

    .profile-info span {
        font-size: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}

/* END YOUNGVERSE STUDENT DESIGN SYSTEM */

/* YOUNGVERSE ORIGINAL LOGO */
.logo-icon img,
.yv-logo-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.yv-sidebar .yv-logo-icon,
.sidebar .logo-icon {
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}


/* YV DASHBOARD MATCHED LOGO SIZE */
.sidebar .logo-icon,
.yv-sidebar .yv-logo-icon {
    width: 45px !important;
    height: 45px !important;
    min-width: 45px !important;
    min-height: 45px !important;
    max-width: 45px !important;
    max-height: 45px !important;
    flex: 0 0 45px !important;
    overflow: hidden;
    border-radius: 13px;
}

.sidebar .logo-icon img,
.yv-sidebar .yv-logo-icon img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    display: block;
}
/* END YV DASHBOARD MATCHED LOGO SIZE */
