/* =========================================================
   FUTUREVERSE — NOTES HUB
   notes.css
   ========================================================= */


/* =========================================================
   01. ROOT VARIABLES
   ========================================================= */

:root {
    --bg-main: #070914;
    --bg-secondary: #0b0f1d;
    --bg-card: rgba(17, 22, 40, 0.78);

    --text-primary: #f5f7ff;
    --text-secondary: #a7aec4;
    --text-muted: #6f7892;

    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.16);

    --accent: #7c5cff;
    --accent-light: #9c86ff;
    --accent-soft: rgba(124, 92, 255, 0.14);

    --shadow-card:
        0 20px 60px rgba(0, 0, 0, 0.28);

    --shadow-glow:
        0 0 45px rgba(124, 92, 255, 0.16);

    --radius-large: 24px;
    --radius-medium: 18px;
    --radius-small: 12px;

    --header-height: 72px;
}


/* =========================================================
   02. RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;

    font-family:
        Inter,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    color: var(--text-primary);

    background:
        radial-gradient(
            circle at 15% 5%,
            rgba(124, 92, 255, 0.13),
            transparent 28%
        ),
        radial-gradient(
            circle at 90% 15%,
            rgba(60, 130, 255, 0.08),
            transparent 25%
        ),
        var(--bg-main);

    overflow-x: hidden;
}

button,
input {
    font: inherit;
}

button {
    border: none;
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}


/* =========================================================
   03. MAIN PAGE
   ========================================================= */

.notes-page {
    min-height: 100vh;
    position: relative;
}


/* =========================================================
   04. HEADER
   ========================================================= */

.notes-header {
    height: var(--header-height);

    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 18px;

    position: sticky;
    top: 0;
    z-index: 100;

    background:
        rgba(7, 9, 20, 0.82);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    border-bottom:
        1px solid var(--border);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;

    background:
        linear-gradient(
            135deg,
            #7c5cff,
            #4e8cff
        );

    box-shadow:
        0 8px 25px rgba(124, 92, 255, 0.28);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-text h1 {
    font-size: 15px;
    line-height: 1.1;
    font-weight: 750;
}

.brand-text span {
    margin-top: 3px;

    color: var(--text-muted);

    font-size: 9px;
    letter-spacing: 0.4px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-menu-btn,
.header-icon-btn {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    color: var(--text-secondary);

    background:
        rgba(255, 255, 255, 0.04);

    border:
        1px solid var(--border);

    transition:
        0.25s ease;
}

.mobile-menu-btn:hover,
.header-icon-btn:hover {
    color: var(--text-primary);

    background:
        rgba(255, 255, 255, 0.08);

    border-color:
        var(--border-hover);
}

.mobile-menu-btn {
    font-size: 17px;
}

.header-icon-btn {
    font-size: 23px;
    line-height: 1;
    padding: 0;
}

.profile-btn {
    width: 38px;
    height: 38px;

    padding: 2px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #7c5cff,
            #4e8cff
        );

    box-shadow:
        0 6px 20px rgba(124, 92, 255, 0.2);
}

.profile-btn span {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #11162a;

    color: #ffffff;

    font-size: 12px;
    font-weight: 700;
}


/* =========================================================
   05. MAIN CONTENT
   ========================================================= */

.notes-main {
    width: min(1180px, calc(100% - 32px));

    margin: 0 auto;

    padding:
        30px 0
        60px;
}


/* =========================================================
   06. HERO
   ========================================================= */

.notes-hero {
    position: relative;

    min-height: 260px;

    display: flex;
    align-items: center;

    padding: 30px;

    overflow: hidden;

    border-radius: var(--radius-large);

    background:
        linear-gradient(
            135deg,
            rgba(124, 92, 255, 0.16),
            rgba(40, 52, 100, 0.08)
        );

    border:
        1px solid var(--border);

    box-shadow:
        var(--shadow-card);
}

.notes-hero::before {
    content: "";

    position: absolute;

    width: 320px;
    height: 320px;

    right: -130px;
    top: -150px;

    border-radius: 50%;

    background:
        rgba(124, 92, 255, 0.14);

    filter: blur(20px);
}

.hero-content {
    position: relative;
    z-index: 2;

    max-width: 650px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 7px 11px;

    border-radius: 999px;

    color: var(--accent-light);

    background:
        var(--accent-soft);

    border:
        1px solid rgba(124, 92, 255, 0.2);

    font-size: 9px;
    font-weight: 750;
    letter-spacing: 1.1px;
}

.hero-badge span {
    font-size: 11px;
}

.hero-content h2 {
    margin-top: 17px;

    font-size: clamp(32px, 7vw, 58px);

    line-height: 0.98;

    letter-spacing: -2px;

    font-weight: 800;
}

.hero-content h2 span {
    display: block;

    background:
        linear-gradient(
            90deg,
            #9d86ff,
            #62a0ff
        );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}

.hero-content p {
    max-width: 540px;

    margin-top: 17px;

    color: var(--text-secondary);

    font-size: 13px;
    line-height: 1.7;
}


/* =========================================================
   07. HERO VISUAL
   ========================================================= */

.hero-visual {
    display: none;

    position: absolute;

    width: 300px;
    height: 300px;

    right: 25px;
    top: 50%;

    transform: translateY(-50%);
}

.hero-book {
    position: absolute;

    left: 50%;
    top: 50%;

    transform:
        translate(-50%, -50%);

    width: 95px;
    height: 95px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 28px;

    font-size: 42px;

    background:
        rgba(20, 26, 48, 0.85);

    border:
        1px solid rgba(255, 255, 255, 0.12);

    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.3),
        var(--shadow-glow);

    backdrop-filter: blur(15px);
}

.floating-orbit {
    position: absolute;

    left: 50%;
    top: 50%;

    border-radius: 50%;

    border:
        1px solid rgba(124, 92, 255, 0.2);

    transform:
        translate(-50%, -50%)
        rotate(-20deg);
}

.orbit-one {
    width: 190px;
    height: 80px;
}

.orbit-two {
    width: 230px;
    height: 105px;

    transform:
        translate(-50%, -50%)
        rotate(25deg);
}

.floating-icon {
    position: absolute;

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background:
        rgba(20, 26, 48, 0.9);

    border:
        1px solid var(--border);

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.25);

    font-size: 18px;
}

.icon-one {
    top: 28px;
    left: 35px;
}

.icon-two {
    bottom: 28px;
    left: 52px;
}

.icon-three {
    right: 25px;
    top: 110px;
}


/* =========================================================
   08. SEARCH
   ========================================================= */

.notes-search-section {
    margin-top: 20px;
}

.search-box {
    width: 100%;
    height: 56px;

    display: flex;
    align-items: center;

    padding: 0 15px;

    border-radius: 16px;

    background:
        rgba(15, 19, 35, 0.85);

    border:
        1px solid var(--border);

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.16);

    transition:
        0.25s ease;
}

.search-box:focus-within {
    border-color:
        rgba(124, 92, 255, 0.55);

    box-shadow:
        0 0 0 4px rgba(124, 92, 255, 0.08);
}

.search-icon {
    margin-right: 11px;

    color: var(--text-muted);

    font-size: 23px;
}

.search-box input {
    width: 100%;

    border: none;
    outline: none;

    background: transparent;

    color: var(--text-primary);

    font-size: 13px;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.clear-search {
    width: 28px;
    height: 28px;

    display: none;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 8px;

    color: var(--text-muted);

    background:
        rgba(255, 255, 255, 0.05);

    font-size: 18px;
}


/* =========================================================
   09. TOOLBAR
   ========================================================= */

.notes-toolbar {
    margin-top: 35px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;
}

.section-label {
    color: var(--accent-light);

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 1.5px;
}

.notes-toolbar h3 {
    margin-top: 6px;

    font-size: 25px;

    letter-spacing: -0.6px;
}

.notes-total {
    display: flex;
    flex-direction: column;

    align-items: flex-end;
}

.notes-total strong {
    font-size: 23px;

    background:
        linear-gradient(
            90deg,
            #9d86ff,
            #62a0ff
        );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}

.notes-total span {
    margin-top: 1px;

    color: var(--text-muted);

    font-size: 9px;
}


/* =========================================================
   10. CATEGORY FILTER
   ========================================================= */

.category-filter {
    margin-top: 18px;

    display: flex;
    gap: 8px;

    overflow-x: auto;

    padding-bottom: 3px;

    scrollbar-width: none;
}

.category-filter::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    flex-shrink: 0;

    padding: 9px 13px;

    border-radius: 999px;

    color: var(--text-secondary);

    background:
        rgba(255, 255, 255, 0.035);

    border:
        1px solid var(--border);

    font-size: 10px;
    font-weight: 650;

    transition:
        0.25s ease;
}

.filter-btn:hover {
    color: var(--text-primary);

    background:
        rgba(255, 255, 255, 0.07);
}

.filter-btn.active {
    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            rgba(124, 92, 255, 0.9),
            rgba(78, 140, 255, 0.9)
        );

    border-color:
        transparent;

    box-shadow:
        0 8px 22px rgba(124, 92, 255, 0.2);
}


/* =========================================================
   11. SUBJECT GRID
   ========================================================= */

.subjects-grid {
    margin-top: 20px;

    display: grid;

    grid-template-columns: 1fr;

    gap: 15px;
}


/* =========================================================
   12. SUBJECT CARD
   ========================================================= */

.subject-card {
    position: relative;

    min-height: 235px;

    display: flex;
    flex-direction: column;

    padding: 20px;

    overflow: hidden;

    border-radius: var(--radius-medium);

    background:
        linear-gradient(
            145deg,
            rgba(18, 23, 42, 0.92),
            rgba(11, 15, 29, 0.92)
        );

    border:
        1px solid var(--border);

    box-shadow:
        var(--shadow-card);

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.subject-card::before {
    content: "";

    position: absolute;

    width: 150px;
    height: 150px;

    right: -80px;
    top: -80px;

    border-radius: 50%;

    background:
        rgba(124, 92, 255, 0.08);

    filter: blur(5px);

    transition:
        0.35s ease;
}

.subject-card:hover {
    transform:
        translateY(-5px);

    border-color:
        var(--border-hover);

    box-shadow:
        0 25px 65px rgba(0, 0, 0, 0.35);
}

.subject-card:hover::before {
    transform:
        scale(1.5);
}

.card-top {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.subject-icon {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 16px;

    background:
        rgba(255, 255, 255, 0.055);

    border:
        1px solid var(--border);

    font-size: 25px;

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.15);
}

.subject-count {
    padding: 6px 9px;

    border-radius: 999px;

    color: var(--text-muted);

    background:
        rgba(255, 255, 255, 0.035);

    border:
        1px solid var(--border);

    font-size: 9px;
    font-weight: 700;
}

.card-content {
    position: relative;
    z-index: 2;

    margin-top: 25px;
}

.card-content h4 {
    font-size: 20px;

    letter-spacing: -0.4px;

    font-weight: 750;
}

.card-content p {
    max-width: 330px;

    margin-top: 8px;

    color: var(--text-secondary);

    font-size: 11px;

    line-height: 1.65;
}


/* =========================================================
   13. EXPLORE BUTTON
   ========================================================= */

.explore-btn {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0;
    margin: 0;

    background: none;
    border: none;

    color: var(--text-primary);

    font-size: 16px;
    font-weight: 600;

    cursor: pointer;
}

.explore-btn span {
    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 9px;

    background: rgba(255, 255, 255, 0.055);

    border: 1px solid var(--border);

    font-size: 16px;
    line-height: 1;

    margin: 0;

    transform: none;

    transition: 0.25s ease;
}

.explore-btn:hover span {
    transform:
        translateX(4px);

    background:
        rgba(124, 92, 255, 0.18);

    border-color:
        rgba(124, 92, 255, 0.3);
}


/* =========================================================
   14. SUBJECT-SPECIFIC ACCENTS
   ========================================================= */

.chemistry-card:hover {
    border-color:
        rgba(76, 220, 170, 0.28);
}

.biology-card:hover {
    border-color:
        rgba(72, 220, 145, 0.28);
}

.physics-card:hover {
    border-color:
        rgba(92, 160, 255, 0.32);
}

.computer-card:hover {
    border-color:
        rgba(80, 190, 255, 0.3);
}

.ai-card:hover {
    border-color:
        rgba(160, 110, 255, 0.35);
}

.space-card {
    background:
        linear-gradient(
            145deg,
            rgba(25, 23, 54, 0.95),
            rgba(9, 14, 29, 0.96)
        );
}

.space-card:hover {
    border-color:
        rgba(124, 92, 255, 0.42);

    box-shadow:
        0 25px 70px rgba(85, 65, 180, 0.18);
}

.space-glow {
    position: absolute;

    width: 180px;
    height: 180px;

    right: -90px;
    bottom: -100px;

    border-radius: 50%;

    background:
        rgba(105, 75, 255, 0.16);

    filter: blur(35px);
}


/* =========================================================
   15. NO RESULTS
   ========================================================= */

.no-results {
    margin-top: 25px;

    padding: 45px 20px;

    text-align: center;

    border-radius: var(--radius-medium);

    background:
        rgba(255, 255, 255, 0.025);

    border:
        1px solid var(--border);
}

.no-results-icon {
    font-size: 32px;
}

.no-results h3 {
    margin-top: 12px;

    font-size: 18px;
}

.no-results p {
    margin-top: 7px;

    color: var(--text-muted);

    font-size: 11px;
}


/* =========================================================
   16. FREE BANNER
   ========================================================= */

.free-banner {
    position: relative;

    margin-top: 25px;

    display: flex;
    align-items: center;
    gap: 15px;

    padding: 18px;

    overflow: hidden;

    border-radius: var(--radius-medium);

    background:
        linear-gradient(
            135deg,
            rgba(124, 92, 255, 0.13),
            rgba(78, 140, 255, 0.06)
        );

    border:
        1px solid rgba(124, 92, 255, 0.16);
}

.free-banner-icon {
    width: 42px;
    height: 42px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    color: var(--accent-light);

    background:
        var(--accent-soft);

    font-size: 18px;
}

.free-banner-content {
    min-width: 0;
}

.free-banner-content span {
    color: var(--accent-light);

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 1.1px;
}

.free-banner-content h3 {
    margin-top: 4px;

    font-size: 14px;
}

.free-banner-content p {
    margin-top: 3px;

    color: var(--text-secondary);

    font-size: 9px;
    line-height: 1.5;
}

.free-banner-badge {
    margin-left: auto;

    flex-shrink: 0;

    padding: 7px 10px;

    border-radius: 999px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #7c5cff,
            #4e8cff
        );

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 0.7px;
}


/* =========================================================
   17. FOOTER
   ========================================================= */

.notes-footer {
    width: min(1180px, calc(100% - 32px));

    margin: 0 auto;

    padding:
        20px 0
        35px;

    display: flex;
    flex-direction: column;
    gap: 8px;

    border-top:
        1px solid var(--border);

    color: var(--text-muted);

    font-size: 9px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.footer-brand strong {
    color: var(--text-secondary);

    font-size: 11px;
}

.footer-info {
    font-size: 8px;
}


/* =========================================================
   18. MOBILE OVERLAY
   ========================================================= */

.mobile-overlay {
    position: fixed;

    inset: 0;

    z-index: 150;

    background:
        rgba(0, 0, 0, 0.55);

    backdrop-filter: blur(4px);
}


/* =========================================================
   19. TABLET
   ========================================================= */

@media (min-width: 600px) {

    .notes-header {
        padding: 0 28px;
    }

    .notes-main {
        width: min(1180px, calc(100% - 48px));

        padding-top: 40px;
    }

    .notes-hero {
        min-height: 300px;

        padding: 40px;
    }

    .subjects-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 18px;
    }

    .subject-card {
        min-height: 250px;
    }

    .hero-visual {
        display: block;
    }

    .notes-footer {
        width: min(1180px, calc(100% - 48px));

        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}


/* =========================================================
   20. DESKTOP
   ========================================================= */

@media (min-width: 900px) {

    :root {
        --header-height: 78px;
    }

    .notes-header {
        padding: 0 40px;
    }

    .mobile-menu-btn {
        display: none;
    }

    .notes-main {
        padding-top: 48px;
    }

    .notes-hero {
        min-height: 330px;

        padding: 50px;
    }

    .hero-content h2 {
        font-size: 58px;
    }

    .hero-content p {
        font-size: 14px;
    }

    .subjects-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 20px;
    }

    .subject-card {
        min-height: 270px;

        padding: 23px;
    }

    .card-content h4 {
        font-size: 21px;
    }

    .card-content p {
        font-size: 12px;
    }

    .free-banner {
        padding: 22px;
    }
}


/* =========================================================
   21. LARGE DESKTOP
   ========================================================= */

@media (min-width: 1200px) {

    .notes-main {
        padding-top: 55px;
    }

    .notes-hero {
        min-height: 360px;
    }

    .hero-visual {
        width: 360px;
        height: 360px;

        right: 55px;
    }

    .hero-book {
        width: 110px;
        height: 110px;

        font-size: 48px;
    }
}


/* =========================================================
   22. ACCESSIBILITY
   ========================================================= */

button:focus-visible,
input:focus-visible {
    outline:
        2px solid var(--accent-light);

    outline-offset:
        3px;
}


/* =========================================================
   23. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}