
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --bg: #080b12;
    --surface: #101520;
    --surface-light: #151c29;
    --border: #252e3e;
    --text: #f1f5fb;
    --muted: #8d9aaf;
    --accent: #67e8c0;
    --blue: #78a9ff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    min-height: 100vh;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
select {
    font: inherit;
}

.navbar {
    min-height: 76px;
    padding: 0 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    border-bottom: 1px solid #1b2230;
    background: rgba(8, 11, 18, 0.96);
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 700;
    white-space: nowrap;
}

.brand-icon {
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    background: var(--accent);
    color: #07120f;
    border-radius: 10px;
    font-size: 20px;
}

.accent {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    color: var(--muted);
    font-size: 14px;
}

.nav-links a:hover,
.back-link:hover {
    color: var(--accent);
}

.nav-status {
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 8px 13px;
    color: #b7c5d7;
    font-size: 12px;
}

.status-dot,
.meta-dot {
    width: 7px;
    height: 7px;
    background: var(--accent);
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.hero {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 100px 20px 70px;
    border-bottom: 1px solid #1b2230;
    background:
        radial-gradient(ellipse at 50% 10%,
        rgba(46, 111, 105, 0.20), transparent 55%),
        linear-gradient(180deg, #0b111b, var(--bg));
}

.hero-label,
.eyebrow,
.detail-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}

.hero h1 {
    position: relative;
    z-index: 1;
    margin: 26px 0 18px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.1;
    letter-spacing: -2.5px;
}

.gradient-text {
    color: var(--accent);
}

.hero-description {
    position: relative;
    z-index: 1;
    max-width: 650px;
    margin: 0 auto 30px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.9;
}

.primary-button,
.secondary-button,
.filter-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    border-radius: 9px;
    padding: 13px 20px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s ease;
}

.primary-button {
    background: var(--accent);
    color: #071510;
    border: 1px solid var(--accent);
}

.primary-button:hover {
    background: #a0f5dc;
    transform: translateY(-2px);
}

.hero-stats {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 35px;
    margin-top: 58px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.stat strong {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 26px;
}

.stat span {
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 1.2px;
}

.stat-divider {
    height: 35px;
    width: 1px;
    background: var(--border);
}

.hero-decoration {
    position: absolute;
    width: 250px;
    height: 250px;
    border: 1px solid rgba(103, 232, 192, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.decoration-one {
    top: -100px;
    left: -100px;
}

.decoration-two {
    right: -100px;
    bottom: -120px;
}

.library-section {
    max-width: 1400px;
    padding: 75px 7%;
    margin: auto;
    scroll-margin-top: 20px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.eyebrow {
    margin-bottom: 10px;
    font-size: 10px;
}

.section-heading h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(27px, 3vw, 36px);
    letter-spacing: -1px;
}

.section-heading p {
    color: var(--muted);
    font-size: 14px;
    margin-top: 5px;
}

.result-count {
    color: var(--muted);
    border: 1px solid var(--border);
    padding: 7px 13px;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
}

.filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 0 15px;
}

.search-icon {
    font-size: 26px;
    color: var(--muted);
}

.search-box input {
    width: 100%;
    min-width: 0;
    height: 47px;
    color: var(--text);
    background: transparent;
    border: none;
    outline: none;
    font-size: 13px;
}

.search-box input::placeholder {
    color: #667388;
}

.category-select {
    width: 190px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 9px;
    padding: 0 12px;
    outline: none;
}

.filter-button {
    background: var(--surface-light);
    color: var(--text);
    border: 1px solid var(--border);
}

.filter-button:hover,
.secondary-button:hover {
    border-color: var(--accent);
}

.clear-button {
    display: flex;
    align-items: center;
    color: var(--muted);
    font-size: 13px;
}

.architecture-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.architecture-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 25px;
    background: linear-gradient(145deg, #121925, #0e131d);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: border-color 0.25s, transform 0.25s;
}

.architecture-card:hover {
    border-color: rgba(103, 232, 192, 0.6);
    transform: translateY(-5px);
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 12px;
}

.card-icon,
.detail-icon {
    display: grid;
    place-items: center;
    width: 49px;
    height: 49px;
    color: var(--accent);
    background: rgba(103, 232, 192, 0.09);
    border: 1px solid rgba(103, 232, 192, 0.19);
    border-radius: 12px;
    font-family: monospace;
    font-size: 17px;
    font-weight: 700;
}

.difficulty {
    border-radius: 5px;
    padding: 5px 9px;
    font-size: 10px;
    font-weight: 600;
    border: 1px solid var(--border);
    color: #b5c1d3;
}

.difficulty-beginner {
    color: #7fe0b6;
    border-color: #285442;
}

.difficulty-intermediate {
    color: #f0ca79;
    border-color: #67552d;
}

.difficulty-advanced {
    color: #f39caa;
    border-color: #633640;
}

.card-category {
    color: var(--blue);
    font-size: 11px;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 8px;
}

.architecture-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 21px;
    line-height: 1.4;
    margin-bottom: 11px;
    overflow-wrap: anywhere;
}

.card-description {
    min-height: 74px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 22px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: #8290a5;
    font-size: 10px;
    border-top: 1px solid #232c3a;
    padding-top: 16px;
    margin-top: auto;
}

.card-meta > span:first-child {
    display: flex;
    align-items: center;
    gap: 7px;
}

.meta-dot {
    width: 5px;
    height: 5px;
}

.open-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    margin-top: 18px;
    background: #192433;
    border: 1px solid #157fff;
    border-radius: 8px;
    color: #dce8f5;
    font-size: 13px;
    font-weight: 600;
    transition: 0.2s ease;
}

.open-button:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #071510;
}

.empty-state {
    text-align: center;
    padding: 65px 20px;
    border: 1px dashed var(--border);
    border-radius: 14px;
}

.empty-icon {
    font-family: monospace;
    color: var(--accent);
    font-size: 35px;
    margin-bottom: 12px;
}

.empty-state h3 {
    font-family: 'Space Grotesk', sans-serif;
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 23px;
}

.add-guide-note {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 35px;
    padding: 22px;
    border: 1px solid var(--border);
    background: #0e141e;
    border-radius: 12px;
}

.note-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 9px;
    background: rgba(103, 232, 192, 0.1);
    color: var(--accent);
    font-size: 23px;
}

.add-guide-note strong {
    font-size: 13px;
}

.add-guide-note p {
    color: var(--muted);
    font-size: 12px;
    margin-top: 4px;
}

.add-guide-note > a {
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    margin-left: auto;
}

.detail-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 55px 25px 90px;
    min-height: 65vh;
}

.back-link {
    display: inline-block;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 30px;
}

.detail-panel {
    padding: clamp(25px, 5vw, 55px);
    background:
        radial-gradient(ellipse at 100% 0%,
        rgba(103, 232, 192, 0.09), transparent 45%),
        var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
}

.detail-label {
    margin-bottom: 22px;
}

.detail-icon {
    width: 60px;
    height: 60px;
    font-size: 21px;
    margin-bottom: 25px;
}

.category-pill {
    display: inline-block;
    color: var(--blue);
    background: rgba(120, 169, 255, 0.09);
    border: 1px solid rgba(120, 169, 255, 0.2);
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 11px;
    margin-bottom: 18px;
}

.detail-panel h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.2;
    letter-spacing: -1.5px;
    overflow-wrap: anywhere;
}

.detail-description {
    max-width: 700px;
    color: var(--muted);
    line-height: 1.9;
    margin-top: 18px;
}

.detail-information {
    display: flex;
    flex-wrap: wrap;
    gap: 35px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin: 32px 0;
    padding: 23px 0;
}

.detail-information > div {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.info-label {
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 1px;
}

.detail-information strong {
    font-size: 13px;
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.secondary-button {
    color: var(--text);
    border: 1px solid var(--border);
    background: transparent;
}

.detail-footnote {
    margin-top: 20px;
    color: #8491a4;
    font-size: 12px;
}

.footer {
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid #1b2230;
    background: #090d14;
}

.footer-brand {
    display: block;
    font-size: 20px;
}

.footer p {
    color: var(--muted);
    font-size: 12px;
    margin-top: 8px;
}

.footer .copyright {
    margin-top: 18px;
    color: #637085;
    font-size: 11px;
}

@media (max-width: 1000px) {
    .architecture-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .navbar {
        padding: 0 4%;
    }

    .library-section {
        padding-left: 4%;
        padding-right: 4%;
    }
}

@media (max-width: 680px) {
    .navbar {
        flex-wrap: wrap;
        padding: 15px 5%;
        gap: 14px;
    }

    .nav-links {
        order: 3;
        width: 100%;
        justify-content: space-between;
        gap: 12px;
    }

    .nav-status {
        font-size: 10px;
    }

    .hero {
        padding: 70px 20px 50px;
    }

    .hero h1 {
        letter-spacing: -1.5px;
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-stats {
        gap: 16px;
        margin-top: 40px;
    }

    .stat strong {
        font-size: 21px;
    }

    .stat span {
        font-size: 8px;
        letter-spacing: 0.5px;
    }

    .library-section {
        padding: 50px 5%;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
    }

    .filter-bar {
        flex-wrap: wrap;
    }

    .search-box {
        flex-basis: 100%;
    }

    .category-select {
        flex: 1;
        width: auto;
        min-height: 45px;
    }

    .architecture-grid {
        grid-template-columns: 1fr;
    }

    .card-description {
        min-height: 0;
    }

    .add-guide-note {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .add-guide-note > a {
        margin-left: 54px;
    }

    .detail-information {
        gap: 20px;
    }
}
