/* ============================================
   Ingredient Encyclopedia v2 Styles
   ============================================ */

/* ── Page Layout ── */
.enc-page {
    padding: 2rem 1rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.enc-page__inner {
    width: 100%;
}

/* ── Hero ── */
.enc-hero {
    text-align: center;
    padding: 2rem 0 1.5rem;
}

.enc-hero__title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold, #d4a853);
    margin: 0 0 0.5rem;
}

.enc-hero__subtitle {
    font-size: 1.1rem;
    color: var(--text-muted, #a89a8c);
    margin: 0;
    font-style: italic;
}

/* ── Controls ── */
.enc-controls {
    margin-bottom: 2rem;
}

.enc-search {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.enc-search__input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border, #3a3228);
    border-radius: 8px;
    background: var(--card-bg, #2a2420);
    color: var(--text, #f5e6d3);
    font-size: 0.95rem;
}

.enc-search__input::placeholder {
    color: var(--text-muted, #7a6e62);
}

.enc-search__input:focus {
    outline: none;
    border-color: var(--gold, #d4a853);
    box-shadow: 0 0 0 2px rgba(212, 168, 83, 0.2);
}

.enc-search__btn {
    padding: 0.75rem 1.5rem;
    background: var(--gold, #d4a853);
    color: var(--bg-dark, #1a1612);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.enc-search__btn:hover {
    background: var(--gold-light, #e8c06a);
}

/* ── Filter Pills ── */
.enc-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.enc-filter-pill {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid var(--border, #3a3228);
    color: var(--text-muted, #a89a8c);
    background: transparent;
    transition: all 0.2s;
    white-space: nowrap;
}

.enc-filter-pill:hover {
    border-color: var(--gold, #d4a853);
    color: var(--gold, #d4a853);
}

.enc-filter-pill--active {
    background: var(--gold, #d4a853);
    color: var(--bg-dark, #1a1612);
    border-color: var(--gold, #d4a853);
    font-weight: 600;
}

/* ── Card Grid ── */
.enc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* ── Ingredient Card ── */
.enc-card {
    display: flex;
    flex-direction: column;
    background: var(--card-bg, #2a2420);
    border: 1px solid var(--border, #3a3228);
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    color: var(--text, #f5e6d3);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    gap: 0.75rem;
}

.enc-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border-color: var(--gold, #d4a853);
}

.enc-card__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.enc-card__emoji {
    font-size: 2rem;
    line-height: 1;
}

.enc-card__title-wrap {
    display: flex;
    flex-direction: column;
}

.enc-card__name {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    color: var(--text, #f5e6d3);
}

.enc-card__native {
    font-size: 0.8rem;
    color: var(--text-muted, #a89a8c);
    font-style: italic;
}

.enc-card__hook {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--gold-light, #e8c06a);
    margin: 0;
    line-height: 1.5;
    flex: 1;
}

.enc-card__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.enc-card__origin {
    font-size: 0.8rem;
    color: var(--text-muted, #a89a8c);
}

.enc-card__footer {
    border-top: 1px solid var(--border, #3a3228);
    padding-top: 0.75rem;
    margin-top: auto;
}

.enc-card__recipes {
    font-size: 0.8rem;
    color: var(--gold, #d4a853);
    font-weight: 600;
}

/* ── Story Category Badges ── */
.enc-story-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.enc-story-badge--lg {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
}

.enc-story-badge--cultural_icon {
    background: rgba(212, 168, 83, 0.2);
    color: #d4a853;
}

.enc-story-badge--controversial {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

.enc-story-badge--historical {
    background: rgba(142, 108, 68, 0.3);
    color: #c9a96e;
}

.enc-story-badge--luxury {
    background: rgba(155, 89, 182, 0.2);
    color: #bb8fce;
}

.enc-story-badge--survival {
    background: rgba(39, 174, 96, 0.2);
    color: #27ae60;
}

.enc-story-badge--transformation {
    background: rgba(52, 152, 219, 0.2);
    color: #5dade2;
}

.enc-story-badge--sacred {
    background: rgba(243, 156, 18, 0.2);
    color: #f39c12;
}

/* ── Empty State ── */
.enc-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted, #a89a8c);
}

.enc-empty__link {
    color: var(--gold, #d4a853);
    text-decoration: none;
    font-weight: 600;
}

.enc-empty__link:hover {
    text-decoration: underline;
}


/* ============================================
   Detail Page
   ============================================ */

.enc-detail {
    padding: 1.5rem 1rem 4rem;
    max-width: 900px;
    margin: 0 auto;
}

.enc-detail__inner {
    width: 100%;
}

/* ── Breadcrumb ── */
.enc-breadcrumb {
    font-size: 0.85rem;
    color: var(--text-muted, #a89a8c);
    margin-bottom: 1.5rem;
}

.enc-breadcrumb a {
    color: var(--gold, #d4a853);
    text-decoration: none;
}

.enc-breadcrumb a:hover {
    text-decoration: underline;
}

.enc-breadcrumb__sep {
    margin: 0 0.5rem;
    opacity: 0.5;
}

/* ── Detail Hero ── */
.enc-detail-hero {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 3rem;
    background: var(--card-bg, #2a2420);
    border: 1px solid var(--border, #3a3228);
    border-radius: 16px;
    padding: 2rem;
}

.enc-detail-hero__content {
    flex: 1;
}

.enc-detail-hero__emoji {
    font-size: 3.5rem;
    line-height: 1;
    display: block;
    margin-bottom: 0.75rem;
}

.enc-detail-hero__name {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold, #d4a853);
    margin: 0 0 0.75rem;
}

.enc-detail-hero__native-names {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.enc-detail-hero__native {
    font-size: 0.9rem;
    color: var(--text-muted, #a89a8c);
    background: var(--bg-dark, #1a1612);
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
}

.enc-detail-hero__pronunciation {
    color: var(--gold-light, #e8c06a);
    margin-left: 0.25rem;
}

.enc-detail-hero__hook {
    font-size: 1.15rem;
    font-style: italic;
    color: var(--gold-light, #e8c06a);
    margin: 1rem 0;
    line-height: 1.6;
}

.enc-detail-hero__meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 1rem;
}

.enc-detail-hero__origin,
.enc-detail-hero__date {
    font-size: 0.9rem;
    color: var(--text-muted, #a89a8c);
}

.enc-detail-hero__image-wrap {
    width: 280px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
}

.enc-detail-hero__image {
    width: 100%;
    height: auto;
    display: block;
}

/* ── Sections ── */
.enc-section {
    margin-bottom: 2.5rem;
}

.enc-section__title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold, #d4a853);
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border, #3a3228);
}

/* ── The Story ── */
.enc-story-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text, #f5e6d3);
}

/* ── Cultural Significance Cards ── */
.enc-culture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.enc-culture-card {
    background: var(--card-bg, #2a2420);
    border: 1px solid var(--border, #3a3228);
    border-radius: 10px;
    padding: 1.25rem;
    border-left: 3px solid var(--gold, #d4a853);
}

.enc-culture-card__title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gold, #d4a853);
    margin: 0 0 0.5rem;
}

.enc-culture-card__text {
    font-size: 0.9rem;
    color: var(--text, #f5e6d3);
    line-height: 1.6;
    margin: 0 0 0.5rem;
}

.enc-culture-card__traditions {
    font-size: 0.85rem;
    color: var(--text-muted, #a89a8c);
    margin: 0;
    line-height: 1.5;
}

/* ── Controversy ── */
.enc-section--controversy {
    background: rgba(231, 76, 60, 0.05);
    border: 1px solid rgba(231, 76, 60, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
}

.enc-section__title--controversy {
    color: #e74c3c;
    border-bottom-color: rgba(231, 76, 60, 0.3);
}

.enc-controversy {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text, #f5e6d3);
}

/* ── Culinary Profile ── */
.enc-profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}

.enc-profile-item {
    background: var(--card-bg, #2a2420);
    border: 1px solid var(--border, #3a3228);
    border-radius: 10px;
    padding: 1rem;
}

.enc-profile-item__label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gold, #d4a853);
    margin: 0 0 0.5rem;
    font-weight: 600;
}

.enc-profile-item__value {
    font-size: 0.95rem;
    color: var(--text, #f5e6d3);
    margin: 0;
    line-height: 1.5;
}

.enc-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.enc-tag {
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.8rem;
    background: var(--bg-dark, #1a1612);
    color: var(--text, #f5e6d3);
    border: 1px solid var(--border, #3a3228);
}

/* ── Notable Dishes ── */
.enc-dishes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.enc-dish-card {
    background: var(--card-bg, #2a2420);
    border: 1px solid var(--border, #3a3228);
    border-radius: 10px;
    padding: 1.25rem;
}

.enc-dish-card__name {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text, #f5e6d3);
    margin: 0 0 0.25rem;
}

.enc-dish-card__origin {
    font-size: 0.8rem;
    color: var(--gold, #d4a853);
    display: block;
    margin-bottom: 0.5rem;
}

.enc-dish-card__desc {
    font-size: 0.85rem;
    color: var(--text-muted, #a89a8c);
    margin: 0;
    line-height: 1.5;
}

/* ── Fun Facts ── */
.enc-facts-list {
    list-style: none;
    counter-reset: fact-counter;
    padding: 0;
    margin: 0;
}

.enc-facts-list__item {
    counter-increment: fact-counter;
    position: relative;
    padding: 1rem 1rem 1rem 3.5rem;
    margin-bottom: 0.75rem;
    background: var(--card-bg, #2a2420);
    border: 1px solid var(--border, #3a3228);
    border-radius: 10px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text, #f5e6d3);
}

.enc-facts-list__item::before {
    content: counter(fact-counter);
    position: absolute;
    left: 1rem;
    top: 1rem;
    width: 1.75rem;
    height: 1.75rem;
    background: var(--gold, #d4a853);
    color: var(--bg-dark, #1a1612);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

/* ── Related Ingredients ── */
.enc-related {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.enc-related__item {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    background: var(--card-bg, #2a2420);
    border: 1px solid var(--border, #3a3228);
    color: var(--text, #f5e6d3);
}

/* ── Back Link ── */
.enc-back {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border, #3a3228);
}

.enc-back__link {
    color: var(--gold, #d4a853);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.enc-back__link:hover {
    text-decoration: underline;
}


/* ── Essence Detail: Hero with Image ── */
.essence-hero {
    display: flex;
    gap: 2rem;
    align-items: center;
    max-width: 900px;
    margin: 0 auto 2rem;
    padding: 2rem;
    background: var(--warm-surface, #241e18);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.essence-hero__image {
    width: 200px;
    height: 200px;
    flex-shrink: 0;
    border-radius: var(--radius);
    overflow: hidden;
}

.essence-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.essence-hero__emoji { font-size: 3rem; line-height: 1; display: block; margin-bottom: 0.5rem; }
.essence-hero__name { font-family: var(--font-display); font-size: 2.2rem; color: var(--accent-gold); margin: 0 0 0.25rem; }
.essence-hero__scientific { color: var(--text-muted); font-size: 0.95rem; margin: 0 0 0.5rem; }
.essence-hero__meta { color: var(--text-secondary); font-size: 0.9rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }

.essence-hero__type-badge {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(212, 168, 83, 0.15);
    color: var(--accent-gold);
}

/* ── Essence Sections ── */
.essence-section {
    max-width: 900px;
    margin: 0 auto 2rem;
}

.essence-section__title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--accent-gold);
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.essence-section__subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 0.5rem;
}

.essence-section__text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-primary);
}

/* ── Nutrition Grid ── */
.nutrition-grid {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.nutrition-card {
    flex: 1;
    min-width: 100px;
    background: var(--warm-surface, #241e18);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem;
    text-align: center;
}

.nutrition-card__value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 0.25rem;
}

.nutrition-card__label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nutrition-source {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
}

/* ── Timeline ── */
.timeline { display: flex; flex-direction: column; gap: 0.75rem; }
.timeline__entry { display: flex; gap: 1rem; align-items: baseline; }
.timeline__year { color: var(--accent-gold); font-weight: 600; min-width: 80px; font-size: 0.9rem; }
.timeline__event { color: var(--text-primary); font-size: 0.95rem; line-height: 1.5; }

/* ── Techniques Grid ── */
.techniques-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }

.technique-card {
    background: var(--warm-surface, #241e18);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem;
}

.technique-card__name { font-family: var(--font-display); font-size: 1.05rem; color: var(--text-primary); margin: 0 0 0.5rem; }
.technique-card__desc { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; margin: 0 0 0.5rem; }
.technique-card__meta { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.technique-card__time, .technique-card__temp { font-size: 0.75rem; color: var(--text-muted); background: var(--warm-bg); padding: 0.15rem 0.5rem; border-radius: 4px; }
.technique-card__suitability { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; padding: 0.15rem 0.5rem; border-radius: 4px; }
.technique-card__suitability--ideal { background: rgba(39, 174, 96, 0.2); color: #27ae60; }
.technique-card__suitability--good { background: rgba(212, 168, 83, 0.2); color: #d4a853; }
.technique-card__suitability--possible { background: rgba(149, 165, 166, 0.2); color: #95a5a6; }
.technique-card__suitability--not_recommended { background: rgba(231, 76, 60, 0.15); color: #e74c3c; }

/* ── Varieties Grid ── */
.varieties-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.75rem; }

.variety-card {
    background: var(--warm-surface, #241e18);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
}

.variety-card__name { font-size: 0.95rem; font-weight: 600; color: var(--text-primary); margin: 0 0 0.25rem; }
.variety-card__use { font-size: 0.8rem; color: var(--text-secondary); margin: 0; }

/* ── Geography ── */
.geography { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.geography__icon { font-size: 1.5rem; }
.geography__label { font-size: 1.1rem; font-weight: 600; color: var(--text-primary); }
.geography__subtitle { font-size: 0.85rem; color: var(--text-muted); }

.cuisine-usage { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.cuisine-usage__item { display: flex; align-items: center; gap: 0.4rem; background: var(--warm-surface); padding: 0.4rem 0.8rem; border-radius: 20px; border: 1px solid var(--border); }
.cuisine-usage__flag { font-size: 1rem; }
.cuisine-usage__name { font-size: 0.85rem; color: var(--text-primary); }
.cuisine-usage__count { font-size: 0.75rem; color: var(--text-muted); }

/* ── Dish Grid ── */
.dish-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }

.dish-card {
    background: var(--warm-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, border-color 0.2s;
}

.dish-card:hover { transform: translateY(-2px); border-color: var(--accent-gold); }
.dish-card__image { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.dish-card__image img { width: 100%; height: 100%; object-fit: cover; }
.dish-card__cuisine-badge { position: absolute; bottom: 0.5rem; left: 0.5rem; background: rgba(0,0,0,0.7); padding: 0.2rem 0.5rem; border-radius: 4px; font-size: 0.7rem; color: #fff; }
.dish-card__body { padding: 0.75rem; }
.dish-card__cuisine-name { font-size: 0.75rem; color: var(--text-muted, #6b5e50); margin: 0.15rem 0 0; }
.dish-card__name { font-size: 0.85rem; font-weight: 500; margin: 0; }

/* ── Related Ingredients (Categorized) ── */
.related-category__title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 1rem 0 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.hierarchy__ingredients {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hierarchy__ingredient-card {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    background: var(--warm-surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.85rem;
    transition: border-color 0.2s;
}

.hierarchy__ingredient-card:hover { border-color: var(--accent-gold); }
.hierarchy__ingredient-emoji { font-size: 1rem; }

/* ── Breadcrumb ── */
.breadcrumb {
    max-width: 900px;
    margin: 1rem auto 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.breadcrumb a { color: var(--accent-gold); }
.breadcrumb a:hover { text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .essence-hero { flex-direction: column; padding: 1.5rem; }
    .essence-hero__image { width: 100%; height: 180px; }
    .essence-hero__name { font-size: 1.6rem; }
    .nutrition-grid { gap: 0.5rem; }
    .nutrition-card { min-width: 80px; padding: 0.75rem 0.5rem; }
    .nutrition-card__value { font-size: 1.2rem; }
    .dish-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

/* ── Responsive (existing) ── */
@media (max-width: 768px) {
    .enc-hero__title {
        font-size: 1.75rem;
    }

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

    .enc-detail-hero {
        flex-direction: column;
    }

    .enc-detail-hero__image-wrap {
        width: 100%;
        max-width: 400px;
    }

    .enc-detail-hero__name {
        font-size: 1.75rem;
    }

    .enc-culture-grid,
    .enc-profile-grid,
    .enc-dishes-grid {
        grid-template-columns: 1fr;
    }

    .enc-filters {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
    }
}

/* ── Mobile: small phones under 480px ── */
@media (max-width: 480px) {
    .enc-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .nutrition-grid {
        flex-direction: column;
    }

    .nutrition-card {
        min-width: unset;
        width: 100%;
    }
}

/* ── Pagination ── */
.enc-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.enc-pagination__link {
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--text-muted, #a89a8c);
    border: 1px solid var(--border, #3a3228);
    transition: all 0.2s;
}

.enc-pagination__link:hover {
    border-color: var(--gold, #d4a853);
    color: var(--gold, #d4a853);
}

.enc-pagination__current {
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    background: var(--gold, #d4a853);
    color: var(--bg-dark, #1a1612);
}

.enc-pagination__ellipsis {
    padding: 0.5rem 0.25rem;
    color: var(--text-muted, #a89a8c);
}
