/* ============================================
   EXEMPELMENING.SE – Neo-Brutalism Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

/* --- CSS Custom Properties --- */
:root {
    /* Colors */
    --black: #000000;
    --white: #FFFFFF;
    --orange: #FF6B00;
    --orange-light: #FF8A33;
    --yellow: #FFD600;
    --yellow-light: #FFEA70;
    --red: #E53935;
    --navy: #1A1A2E;
    --gray-light: #F5F5F0;
    --gray-mid: #E0E0E0;
    --gray-dark: #666666;

    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;

    /* Brutalism */
    --border-width: 3px;
    --border: 3px solid var(--black);
    --border-thick: 4px solid var(--black);
    --shadow: 4px 4px 0px var(--black);
    --shadow-lg: 6px 6px 0px var(--black);
    --shadow-hover: 2px 2px 0px var(--black);
    --radius: 10px;
    --radius-sm: 6px;
    --radius-lg: 14px;
    --radius-pill: 50px;

    /* Container */
    --container-max: 1200px;
    --container-narrow: 800px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--gray-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

ul,
ol {
    list-style: none;
}

/* --- Container --- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
}

h3 {
    font-size: clamp(1.3rem, 2vw, 1.8rem);
}

h4 {
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
}

/* ============================================
   COMPONENTS
   ============================================ */

/* --- Navbar --- */
.navbar {
    background: var(--white);
    border-bottom: var(--border);
    padding: var(--space-md) 0;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}

.navbar--scrolled {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
}

.navbar__logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    text-transform: uppercase;
    white-space: nowrap;
}

.navbar__logo-icon {
    width: 36px;
    height: 36px;
    background: var(--orange);
    border: var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.navbar__actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex: 1;
    max-width: 650px;
    justify-content: flex-end;
}

.navbar__search {
    flex: 1;
    max-width: 400px;
    display: flex;
    gap: 0;
}

.navbar__search input {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    font-family: var(--font-body);
    font-size: 0.9rem;
    border: var(--border);
    border-right: none;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    outline: none;
    background: var(--white);
    transition: box-shadow 0.2s;
}

.navbar__search input:focus {
    box-shadow: inset 0 0 0 2px var(--orange);
}

.navbar__search button {
    padding: var(--space-sm) var(--space-md);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    background: var(--black);
    color: var(--white);
    border: var(--border);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    cursor: pointer;
    transition: background 0.15s;
}

.navbar__search button:hover {
    background: var(--orange);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    border: var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: var(--shadow);
    text-decoration: none;
}

.btn:hover {
    transform: translate(2px, 2px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.btn:active {
    transform: translate(4px, 4px);
    box-shadow: none;
}

.btn--primary {
    background: var(--orange);
    color: var(--white);
}

.btn--dark {
    background: var(--black);
    color: var(--white);
}

.btn--outline {
    background: var(--white);
    color: var(--black);
}

.btn--yellow {
    background: var(--yellow);
    color: var(--black);
}

.btn--lg {
    padding: var(--space-md) var(--space-xl);
    font-size: 1.15rem;
}

.btn--sm {
    padding: 6px 12px;
    font-size: 0.8rem;
    box-shadow: 2px 2px 0px var(--black);
}

.btn--sm:hover {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0px var(--black);
}

/* --- Cards --- */
.card {
    background: var(--white);
    border: var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.15s, box-shadow 0.15s;
}

.card:hover {
    transform: translate(2px, 2px) scale(1.01);
    box-shadow: var(--shadow-hover);
}

.card--no-hover:hover {
    transform: none;
    box-shadow: var(--shadow);
}

.card__body {
    padding: var(--space-lg);
}

.card__header {
    padding: var(--space-md) var(--space-lg);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card__header--orange {
    background: var(--orange);
    color: var(--white);
    border-bottom: var(--border);
}

.card__header--yellow {
    background: var(--yellow);
    color: var(--black);
    border-bottom: var(--border);
}

.card__header--navy {
    background: var(--navy);
    color: var(--white);
    border-bottom: var(--border);
}

/* --- Tags / Pills --- */
.tag {
    display: inline-flex;
    align-items: center;
    padding: var(--space-xs) var(--space-md);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    border: 2px solid var(--black);
    border-radius: var(--radius-pill);
    background: var(--white);
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    text-decoration: none;
}

.tag:hover {
    background: var(--yellow);
    transform: scale(1.05);
}

.tag--filled {
    background: var(--black);
    color: var(--white);
}

.tag--filled:hover {
    background: var(--orange);
    border-color: var(--orange);
}

.tag--orange {
    background: var(--orange);
    color: var(--white);
    border-color: var(--orange);
}

.tag--red {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}

/* --- Badge --- */
.badge {
    display: inline-block;
    padding: 3px 12px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-radius: 4px;
}

.badge--orange {
    background: var(--orange);
    color: var(--white);
}

.badge--red {
    background: var(--red);
    color: var(--white);
}

.badge--yellow {
    background: var(--yellow);
    color: var(--black);
}

.badge--navy {
    background: var(--navy);
    color: var(--white);
}

/* ============================================
   HERO SECTION (Startsida)
   ============================================ */
.hero {
    background: var(--orange);
    border: var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-3xl) var(--space-2xl);
    margin: var(--space-xl) 0;
    position: relative;
    overflow: hidden;
}

.hero__quote {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 8rem;
    font-family: var(--font-heading);
    color: rgba(255, 255, 255, 0.2);
    line-height: 1;
    pointer-events: none;
}

.hero h1 {
    color: var(--white);
    margin-bottom: var(--space-sm);
    max-width: 600px;
}

.hero h1 span {
    background: var(--yellow);
    color: var(--black);
    padding: 2px 10px;
    display: inline;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.hero__subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: var(--space-xl);
    max-width: 450px;
}

/* Hero Search */
.hero-search {
    display: flex;
    max-width: 550px;
    background: var(--white);
    border: var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-search__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 var(--space-md);
    font-size: 1.3rem;
    color: var(--gray-dark);
}

.hero-search input {
    flex: 1;
    padding: var(--space-md);
    font-family: var(--font-body);
    font-size: 1.05rem;
    border: none;
    outline: none;
    background: transparent;
}

.hero-search button {
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    background: var(--black);
    color: var(--white);
    border: none;
    border-left: var(--border);
    cursor: pointer;
    transition: background 0.15s;
}

.hero-search button:hover {
    background: var(--navy);
}

/* ============================================
   CATEGORY TAGS
   ============================================ */
.category-bar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
    padding: var(--space-lg) 0;
}

/* ============================================
   FEATURED WORDS (Kort-sektion)
   ============================================ */
.featured-section {
    padding: var(--space-xl) 0;
}

.featured-section__title {
    margin-bottom: var(--space-lg);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.featured-card {
    display: flex;
    flex-direction: column;
}

.featured-card__top {
    padding: var(--space-xl) var(--space-lg);
    border-bottom: var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    position: relative;
    border-radius: var(--radius) var(--radius) 0 0;
}

.featured-card__top--yellow {
    background: var(--yellow);
    color: var(--black);
}

.featured-card__top--orange {
    background: var(--orange);
    color: var(--white);
}

.featured-card__top--navy {
    background: var(--navy);
    color: var(--white);
}

.featured-card__word {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.8rem;
    text-transform: uppercase;
}

.featured-card__star {
    position: absolute;
    bottom: 10px;
    right: 14px;
    font-size: 2.2rem;
    opacity: 0.9;
}

.featured-card__bottom {
    padding: var(--space-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.featured-card__sentence {
    font-size: 0.95rem;
    line-height: 1.5;
    flex: 1;
    margin-bottom: var(--space-md);
    font-style: italic;
}

.featured-card__sentence strong {
    background: var(--yellow);
    padding: 1px 4px;
    font-style: normal;
}

.featured-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.featured-card__label {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray-dark);
}

.featured-card__arrow {
    width: 32px;
    height: 32px;
    background: var(--black);
    color: var(--white);
    border: 2px solid var(--black);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}

.featured-card__arrow:hover {
    background: var(--orange);
    transform: scale(1.1);
}

/* ============================================
   POPULAR SEARCHES
   ============================================ */
.popular-section {
    padding: var(--space-xl) 0 var(--space-2xl);
}

.popular-section__title {
    margin-bottom: var(--space-lg);
}

.popular-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

/* ============================================
   STATS BANNER
   ============================================ */
.stats-banner {
    background: var(--yellow);
    border: var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    margin: var(--space-xl) 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.stats-banner__text h2 {
    margin-bottom: var(--space-md);
}

.stats-banner__text p {
    font-size: 1rem;
    margin-bottom: var(--space-lg);
    max-width: 350px;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.stat-box {
    background: var(--white);
    border: var(--border);
    border-radius: var(--radius);
    padding: var(--space-md);
    text-align: center;
}

.stat-box__number {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 2rem;
    color: var(--orange);
}

.stat-box__label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-dark);
    margin-top: 2px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--white);
    border-top: var(--border);
    padding: var(--space-2xl) 0 var(--space-lg);
    margin-top: var(--space-2xl);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer__logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.4rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.footer__logo-icon {
    width: 32px;
    height: 32px;
    background: var(--orange);
    border: 2px solid var(--black);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.footer__desc {
    font-size: 0.85rem;
    color: var(--gray-dark);
    max-width: 300px;
    line-height: 1.6;
}

.footer__heading {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
    color: var(--orange);
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer__links a {
    font-size: 0.9rem;
    color: var(--gray-dark);
    transition: color 0.15s;
}

.footer__links a:hover {
    color: var(--orange);
}

.footer__bottom {
    border-top: 1px solid var(--gray-mid);
    padding-top: var(--space-lg);
    text-align: center;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-dark);
}

/* ============================================
   WORD PAGE (ord.php)
   ============================================ */
.word-page {
    padding: var(--space-xl) 0;
}

.word-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: var(--space-xl);
    align-items: start;
}

/* Word Header */
.word-header {
    background: var(--white);
    border: var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: var(--space-2xl) var(--space-xl);
    margin-bottom: var(--space-xl);
}

.word-header__word {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.word-header__audio {
    width: 44px;
    height: 44px;
    background: var(--yellow);
    border: var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 3px 3px 0px var(--black);
    flex-shrink: 0;
}

.word-header__audio:hover {
    transform: translate(1px, 1px);
    box-shadow: 2px 2px 0px var(--black);
}

.word-header__pos {
    margin-bottom: var(--space-md);
}

.word-header__definition {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--black);
}

.word-header__definition ol {
    padding-left: 20px;
    list-style: decimal;
}

.word-header__definition li {
    margin-bottom: var(--space-sm);
}

/* Inflection Section (collapsible) */
.inflection-section {
    margin-bottom: var(--space-xl);
}

.inflection-toggle {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: var(--white);
    color: var(--black);
    border: var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.inflection-toggle:hover {
    background: var(--yellow-light);
    transform: translate(1px, 1px);
    box-shadow: var(--shadow-hover);
}

.inflection-toggle__arrow {
    margin-left: auto;
    font-size: 1rem;
}

.inflection-table-wrap {
    margin-top: var(--space-md);
    overflow-x: auto;
    border: var(--border);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}

.inflection-table-wrap table {
    border-collapse: collapse;
    width: 100%;
    font-size: 0.9rem;
    border: none;
}

.inflection-table-wrap th,
.inflection-table-wrap td {
    border: 1px solid var(--gray-mid);
    padding: var(--space-sm) var(--space-md);
    text-align: left;
}

.inflection-table-wrap th {
    background: var(--navy);
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.inflection-table-wrap tr:first-child th {
    background: var(--orange);
    text-align: center;
    font-size: 0.85rem;
}

.inflection-table-wrap td {
    background: var(--white);
    font-weight: 500;
}

.inflection-table-wrap tr:nth-child(even) td {
    background: var(--gray-light);
}

/* Form Tabs */
.form-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 2px dashed var(--gray-mid);
}

.form-tab {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    border: 2px solid var(--black);
    border-radius: var(--radius-pill);
    background: var(--white);
    color: var(--black);
    cursor: pointer;
    transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
    box-shadow: 2px 2px 0px var(--black);
}

.form-tab:hover {
    background: var(--yellow-light);
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0px var(--black);
}

.form-tab--active {
    background: var(--orange);
    color: var(--white);
    border-color: var(--black);
    box-shadow: 2px 2px 0px var(--black);
}

.form-tab--active:hover {
    background: var(--orange-light);
    transform: none;
    box-shadow: 2px 2px 0px var(--black);
}

/* Example Sentences Section */
.examples-section {
    margin-bottom: var(--space-xl);
}

.examples-section__title {
    margin-bottom: var(--space-lg);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    color: var(--black);
    padding-bottom: var(--space-sm);
    border-bottom: var(--border);
}

.example-card {
    background: var(--white);
    border: var(--border);
    border-left: 5px solid var(--orange);
    border-radius: var(--radius);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
    display: flex;
    gap: var(--space-md);
    transition: transform 0.1s, box-shadow 0.1s;
    box-shadow: 3px 3px 0px var(--black);
}

.example-card:hover {
    transform: translate(1px, 1px);
    box-shadow: 2px 2px 0px var(--black);
}

.example-card__quote-icon {
    font-size: 1.8rem;
    color: var(--orange);
    line-height: 1;
    flex-shrink: 0;
    font-family: var(--font-heading);
    font-weight: 700;
}

.example-card__content {
    flex: 1;
}

.example-card__text {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: var(--space-sm);
}

.example-card__text mark {
    background: var(--yellow);
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: 600;
}

.example-card__source {
    font-size: 0.75rem;
    color: var(--gray-dark);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

/* Synonyms Card */
.synonyms-card .card__body {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.synonym-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    border: 2px solid var(--black);
    border-radius: var(--radius-pill);
    background: var(--white);
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    text-decoration: none;
    color: var(--black);
}

.synonym-tag:hover {
    background: var(--yellow);
    transform: scale(1.05);
}

/* Daily word sidebar card */
.daily-word-card .featured-word {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.4rem;
    text-transform: uppercase;
    margin-bottom: var(--space-sm);
}

.daily-word-card .featured-def {
    font-size: 0.9rem;
    color: var(--gray-dark);
    margin-bottom: var(--space-md);
    line-height: 1.5;
}

.stat-box {
    text-align: center;
    padding: var(--space-md);
    background: var(--white);
    border: var(--border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
}

.stat-box__icon {
    font-size: 2rem;
    color: var(--navy);
    margin-bottom: var(--space-xxs);
}

/* ============================================
   SKELETON LOADERS
   ============================================ */
.skeleton {
    background: linear-gradient(90deg, var(--gray-mid) 25%, #ececec 50%, var(--gray-mid) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

.skeleton--text {
    height: 16px;
    margin-bottom: var(--space-sm);
}

.skeleton--title {
    height: 40px;
    width: 60%;
    margin-bottom: var(--space-md);
}

.skeleton--card {
    height: 80px;
    margin-bottom: var(--space-md);
    border-radius: var(--radius);
}

.skeleton--tag {
    height: 32px;
    width: 80px;
    display: inline-block;
    border-radius: var(--radius-pill);
    margin: 3px;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ============================================
   LOADING STATE
   ============================================ */
.loading-message {
    text-align: center;
    padding: var(--space-2xl);
    color: var(--gray-dark);
    font-style: italic;
}

/* ============================================
   ERROR STATE
   ============================================ */
.error-message {
    background: #FFF3F3;
    border: 2px solid var(--red);
    border-radius: var(--radius);
    padding: var(--space-lg);
    color: var(--red);
    font-weight: 500;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 900px) {
    .word-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .sidebar>* {
        flex: 1;
        min-width: 260px;
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }

    .stats-banner {
        grid-template-columns: 1fr;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
}

@media (max-width: 600px) {
    .hero {
        padding: var(--space-2xl) var(--space-lg);
    }

    .hero__quote {
        font-size: 4rem;
        right: 15px;
    }

    .hero-search {
        flex-direction: column;
    }

    .hero-search button {
        border-left: none;
        border-top: var(--border);
    }

    .navbar .container {
        flex-wrap: wrap;
    }

    .navbar__search {
        order: 3;
        max-width: 100%;
        flex-basis: 100%;
    }

    .category-bar {
        justify-content: flex-start;
    }

    .sidebar {
        flex-direction: column;
    }

    .word-header__word {
        font-size: 2.5rem;
    }
}