/*
╔══════════════════════════════════════════════════════════════════════════════╗
║                     CWZERO PATHS & GUIDES CSS                              ║
║                                                                              ║
║  Styles for Learning Paths and Quick Guides pages.                           ║
║  Uses existing CSS variables from cwzero.css.                              ║
╚══════════════════════════════════════════════════════════════════════════════╝
*/


/* ═══════════════════════════════════════════════════════════════════════════════
   SHARED: Hero Stats
   ═══════════════════════════════════════════════════════════════════════════════ */

.paths-hero__stats,
.guides-hero__stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.paths-hero__stat,
.guides-hero__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--bg-medium);
    border: 1px solid var(--border-medium);
    border-radius: 12px;
    min-width: 100px;
}

.paths-hero__stat-value,
.guides-hero__stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent-primary);
    line-height: 1;
}

.paths-hero__stat-label,
.guides-hero__stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}


/* ═══════════════════════════════════════════════════════════════════════════════
   SHARED: Category Filter
   ═══════════════════════════════════════════════════════════════════════════════ */

.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.category-filter__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-medium);
    border-radius: 999px;
    background: var(--bg-medium);
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-normal, 0.3s ease);
}

.category-filter__btn:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
    background: var(--bg-hover);
}

.category-filter__btn.active {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.filter-icon {
    font-size: 1rem;
}

.filter-text {
    font-size: 0.85rem;
}


/* ═══════════════════════════════════════════════════════════════════════════════
   SHARED: Search Box
   ═══════════════════════════════════════════════════════════════════════════════ */

.paths-search,
.guides-search {
    position: relative;
    max-width: 500px;
    margin: 0 auto 2rem;
}

.paths-search__input-wrapper,
.guides-search__input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.paths-search__icon,
.guides-search__icon {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    pointer-events: none;
}

.paths-search__input,
.guides-search__input {
    width: 100%;
    padding: 0.85rem 2.5rem 0.85rem 3rem;
    background: var(--bg-medium);
    border: 1px solid var(--border-medium);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    transition: border-color var(--transition-normal, 0.3s ease);
}

.paths-search__input:focus,
.guides-search__input:focus {
    border-color: var(--accent-primary);
}

.paths-search__clear,
.guides-search__clear {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 0.25rem;
}

.paths-search__clear:hover,
.guides-search__clear:hover {
    color: var(--text-primary);
}

.paths-search__results,
.guides-search__results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--bg-medium);
    border: 1px solid var(--border-medium);
    border-radius: 12px;
    margin-top: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.paths-search__results:empty,
.guides-search__results:empty {
    display: none;
}


/* ═══════════════════════════════════════════════════════════════════════════════
   PATHS: Grid & Cards
   ═══════════════════════════════════════════════════════════════════════════════ */

.paths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.path-card-link {
    text-decoration: none;
    color: inherit;
}

.path-card {
    position: relative;
    background: var(--gradient-card, linear-gradient(145deg, var(--bg-medium) 0%, var(--bg-dark) 100%));
    border: 1px solid var(--border-medium);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all var(--transition-normal, 0.3s ease);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.path-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--path-color, var(--accent-primary));
    opacity: 0.7;
    transition: opacity var(--transition-normal, 0.3s ease);
}

.path-card:hover {
    border-color: var(--path-color, var(--accent-primary));
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.path-card:hover::before {
    opacity: 1;
}

.path-card__icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.path-card__title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.path-card__description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.path-card__meta {
    margin-bottom: 0.75rem;
}

.path-card__difficulty-range {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.difficulty-range-arrow {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.path-card__stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.path-card__stat {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.path-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.path-card__tag {
    padding: 0.2rem 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle, rgba(255,255,255,0.05));
    border-radius: 999px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.path-card__footer {
    border-top: 1px solid var(--border-subtle, rgba(255,255,255,0.05));
    padding-top: 0.75rem;
    margin-top: auto;
}

.path-card__action {
    color: var(--accent-primary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition-fast, 0.15s ease);
}

.path-card-link:hover .path-card__action {
    color: var(--text-bright);
}


/* ═══════════════════════════════════════════════════════════════════════════════
   PATHS: Detail Page Hero
   ═══════════════════════════════════════════════════════════════════════════════ */

.path-detail-hero__icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.path-detail-hero__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.path-detail-hero__stat {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.path-detail-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
}

.section-title {
    text-align: center;
    font-size: 1.5rem;
    color: var(--text-bright);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
}


/* ═══════════════════════════════════════════════════════════════════════════════
   PATHS: Timeline
   ═══════════════════════════════════════════════════════════════════════════════ */

.path-timeline {
    position: relative;
    padding-left: 2rem;
}

.path-timeline::before {
    content: '';
    position: absolute;
    left: 1.25rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-medium);
}

/* Step */
.path-step,
.path-step-link {
    text-decoration: none;
    color: inherit;
}

.path-step {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
    margin-left: 1rem;
    background: var(--gradient-card, linear-gradient(145deg, var(--bg-medium) 0%, var(--bg-dark) 100%));
    border: 1px solid var(--border-medium);
    border-radius: 12px;
    transition: all var(--transition-normal, 0.3s ease);
}

.path-step-link:hover .path-step,
.path-step-link:focus .path-step {
    border-color: var(--accent-primary);
    transform: translateX(4px);
}

.path-step--coming-soon {
    opacity: 0.6;
}

.path-step--unavailable {
    opacity: 0.4;
}

.path-step__number {
    position: absolute;
    left: -2.5rem;
    top: 1.25rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-primary);
    z-index: 1;
}

.path-step__connector {
    display: none;
}

.path-step__content {
    flex: 1;
    min-width: 0;
}

.path-step__header {
    margin-bottom: 0.4rem;
}

.path-step__title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 0.3rem;
}

.path-step__description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.4rem;
}

.path-step__meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.path-step__action {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.path-step__go {
    color: var(--accent-primary);
    font-size: 0.85rem;
    font-weight: 500;
}

.path-step__soon {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-style: italic;
}


/* Milestone */
.path-milestone {
    position: relative;
    margin-bottom: 1.5rem;
    margin-left: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(0, 255, 136, 0.05);
    border: 1px dashed var(--accent-primary);
    border-radius: 12px;
}

.path-milestone__icon {
    position: absolute;
    left: -2.5rem;
    top: 1rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    font-size: 0.9rem;
    z-index: 1;
}

.path-milestone__connector {
    display: none;
}

.path-milestone__title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 0.25rem;
}

.path-milestone__description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}


/* ═══════════════════════════════════════════════════════════════════════════════
   GUIDES: Grid & Cards
   ═══════════════════════════════════════════════════════════════════════════════ */

.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.guide-card-link {
    text-decoration: none;
    color: inherit;
}

.guide-card {
    background: var(--gradient-card, linear-gradient(145deg, var(--bg-medium) 0%, var(--bg-dark) 100%));
    border: 1px solid var(--border-medium);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all var(--transition-normal, 0.3s ease);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.guide-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.guide-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.guide-card__category {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.guide-card__title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.guide-card__description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.guide-card__meta {
    margin-bottom: 0.75rem;
}

.read-time-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.7rem;
    background: rgba(0, 255, 136, 0.08);
    border: 1px solid rgba(0, 255, 136, 0.15);
    border-radius: 999px;
    font-size: 0.8rem;
    color: var(--accent-primary);
}

.guide-card__footer {
    border-top: 1px solid var(--border-subtle, rgba(255,255,255,0.05));
    padding-top: 0.75rem;
    margin-top: auto;
}

.guide-card__action {
    color: var(--accent-primary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition-fast, 0.15s ease);
}

.guide-card-link:hover .guide-card__action {
    color: var(--text-bright);
}


/* ═══════════════════════════════════════════════════════════════════════════════
   GUIDES: Content Page
   ═══════════════════════════════════════════════════════════════════════════════ */

.guide-content {
    max-width: 750px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
}

.guide-content__breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.guide-content__breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast, 0.15s ease);
}

.guide-content__breadcrumb a:hover {
    color: var(--accent-primary);
}

.guide-content__header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-medium);
}

.guide-content__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.guide-content__title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-bright);
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.guide-content__problem {
    padding: 1rem 1.25rem;
    background: rgba(255, 170, 0, 0.08);
    border-left: 3px solid var(--accent-warning);
    border-radius: 0 8px 8px 0;
    margin-bottom: 2rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.guide-content__steps {
    counter-reset: guide-step;
}

.guide-step {
    counter-increment: guide-step;
    position: relative;
    padding: 1.25rem;
    margin-bottom: 1rem;
    background: var(--bg-medium);
    border: 1px solid var(--border-medium);
    border-radius: 12px;
}

.guide-step__title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 0.5rem;
}

.guide-step__title::before {
    content: "Step " counter(guide-step) ": ";
    color: var(--accent-primary);
}

.guide-step p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.guide-step pre {
    background: var(--bg-dark);
    border: 1px solid var(--border-medium);
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
    margin: 0.75rem 0;
}

.guide-step code {
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.85rem;
    color: var(--text-code, #00ff88);
}

.guide-step p code {
    background: var(--bg-dark);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85em;
}

.guide-content__learn-more {
    margin-top: 2.5rem;
    padding: 1.25rem;
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.15);
    border-radius: 12px;
    text-align: center;
}

.guide-content__learn-more p {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.guide-content__learn-more a {
    color: var(--accent-primary);
    font-weight: 500;
    text-decoration: none;
}

.guide-content__learn-more a:hover {
    text-decoration: underline;
}


/* ═══════════════════════════════════════════════════════════════════════════════
   GLOSSARY: Hero Stats
   ═══════════════════════════════════════════════════════════════════════════════ */

.glossary-hero__stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.glossary-hero__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--bg-medium);
    border: 1px solid var(--border-medium);
    border-radius: 12px;
    min-width: 100px;
}

.glossary-hero__stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent-primary);
    line-height: 1;
}

.glossary-hero__stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}


/* ═══════════════════════════════════════════════════════════════════════════════
   GLOSSARY: Search Box
   ═══════════════════════════════════════════════════════════════════════════════ */

.glossary-search {
    position: relative;
    max-width: 500px;
    margin: 0 auto 2rem;
}

.glossary-search__input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.glossary-search__icon {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    pointer-events: none;
}

.glossary-search__input {
    width: 100%;
    padding: 0.85rem 2.5rem 0.85rem 3rem;
    background: var(--bg-medium);
    border: 1px solid var(--border-medium);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    transition: border-color var(--transition-normal, 0.3s ease);
}

.glossary-search__input:focus {
    border-color: var(--accent-primary);
}

.glossary-search__clear {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 0.25rem;
}

.glossary-search__clear:hover {
    color: var(--text-primary);
}

.glossary-search__results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--bg-medium);
    border: 1px solid var(--border-medium);
    border-radius: 12px;
    margin-top: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.glossary-search__results:empty {
    display: none;
}


/* ═══════════════════════════════════════════════════════════════════════════════
   GLOSSARY: Alphabet Navigation
   ═══════════════════════════════════════════════════════════════════════════════ */

.alphabet-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
    margin-bottom: 1.5rem;
}

.alphabet-nav__letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border: 1px solid var(--border-medium);
    border-radius: 8px;
    background: var(--bg-medium);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: default;
    transition: all var(--transition-normal, 0.3s ease);
    font-family: inherit;
}

.alphabet-nav__letter--active {
    cursor: pointer;
    color: var(--text-secondary);
}

.alphabet-nav__letter--active:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(0, 255, 136, 0.05);
}

.alphabet-nav__letter--selected {
    background: rgba(0, 255, 136, 0.15);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.alphabet-nav__letter--disabled {
    opacity: 0.3;
}


/* ═══════════════════════════════════════════════════════════════════════════════
   GLOSSARY: Grid & Cards
   ═══════════════════════════════════════════════════════════════════════════════ */

.glossary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.glossary-card {
    background: var(--gradient-card, linear-gradient(145deg, var(--bg-medium) 0%, var(--bg-dark) 100%));
    border: 1px solid var(--border-medium);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all var(--transition-normal, 0.3s ease);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.glossary-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.glossary-card--expanded {
    border-color: var(--accent-primary);
    background: rgba(0, 255, 136, 0.03);
}

.glossary-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.glossary-card__category {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.glossary-card__related-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 0.15rem 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 999px;
}

.glossary-card__title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.glossary-card__definition {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.glossary-card__footer {
    border-top: 1px solid var(--border-subtle, rgba(255,255,255,0.05));
    padding-top: 0.75rem;
    margin-top: auto;
}

.glossary-card__action {
    color: var(--accent-primary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition-fast, 0.15s ease);
}

.glossary-card:hover .glossary-card__action {
    color: var(--text-bright);
}


/* ═══════════════════════════════════════════════════════════════════════════════
   GLOSSARY: Detail (Expanded Inline View)
   ═══════════════════════════════════════════════════════════════════════════════ */

.glossary-detail {
    grid-column: 1 / -1;
    background: var(--gradient-card, linear-gradient(145deg, var(--bg-medium) 0%, var(--bg-dark) 100%));
    border: 1px solid var(--accent-primary);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
}

.glossary-detail__category {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.glossary-detail__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.glossary-detail__definition {
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.glossary-detail__related {
    margin-bottom: 1.25rem;
}

.glossary-detail__related-title,
.glossary-detail__tutorials-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.glossary-detail__related-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.glossary-detail__related-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    background: rgba(0, 255, 136, 0.08);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 999px;
    color: var(--accent-primary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-normal, 0.3s ease);
    font-family: inherit;
}

.glossary-detail__related-pill:hover {
    background: rgba(0, 255, 136, 0.15);
    border-color: var(--accent-primary);
}

.glossary-detail__tutorials {
    margin-bottom: 1.25rem;
}

.glossary-detail__tutorial-link {
    display: inline-block;
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 0.9rem;
    margin-right: 1.5rem;
    margin-bottom: 0.5rem;
    transition: color var(--transition-fast, 0.15s ease);
}

.glossary-detail__tutorial-link:hover {
    color: var(--text-bright);
    text-decoration: underline;
}

.glossary-detail__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-medium);
    border-radius: 8px;
    color: var(--text-muted);
    padding: 0.4rem 0.75rem;
    cursor: pointer;
    font-size: 0.8rem;
    font-family: inherit;
    transition: all var(--transition-normal, 0.3s ease);
}

.glossary-detail__close:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
}

.no-content {
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    padding: 3rem 1rem;
    grid-column: 1 / -1;
}


/* ═══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .paths-hero__stats,
    .guides-hero__stats,
    .glossary-hero__stats {
        gap: 1rem;
    }

    .paths-hero__stat,
    .guides-hero__stat,
    .glossary-hero__stat {
        padding: 0.75rem 1rem;
        min-width: 80px;
    }

    .paths-hero__stat-value,
    .guides-hero__stat-value,
    .glossary-hero__stat-value {
        font-size: 1.4rem;
    }

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

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

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

    .alphabet-nav {
        gap: 0.25rem;
    }

    .alphabet-nav__letter {
        width: 1.9rem;
        height: 1.9rem;
        font-size: 0.75rem;
    }

    .glossary-detail {
        padding: 1.25rem;
    }

    .glossary-detail__title {
        font-size: 1.25rem;
    }

    .path-detail-hero__meta {
        gap: 0.75rem;
    }

    .path-timeline {
        padding-left: 1.5rem;
    }

    .path-timeline::before {
        left: 0.75rem;
    }

    .path-step__number,
    .path-milestone__icon {
        left: -2rem;
        width: 1.6rem;
        height: 1.6rem;
        font-size: 0.7rem;
    }

    .path-step {
        margin-left: 0.5rem;
        padding: 1rem;
    }

    .path-milestone {
        margin-left: 0.5rem;
    }

    .guide-content__title {
        font-size: 1.5rem;
    }

    .category-filter {
        gap: 0.35rem;
    }

    .category-filter__btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .paths-hero__stats,
    .guides-hero__stats,
    .glossary-hero__stats {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .paths-hero__stat,
    .guides-hero__stat,
    .glossary-hero__stat {
        width: 100%;
        flex-direction: row;
        justify-content: center;
        gap: 0.75rem;
        padding: 0.6rem 1rem;
    }
}
