@layer reset, base, components, themes, utilities;

@layer components {
    /* ========================================
   SEARCH PAGE — STYLES
   ======================================== */

    /* --- Page Title --- */
    #search h2 {
        font-family: 'Playfair Display', serif;
        font-size: 3rem;
        font-weight: 700;
        color: #111827;
        text-align: center;
        margin-bottom: 24px;
        letter-spacing: -0.02em;
    }

    html.dark-mode #search h2 {
        color: #f9fafb;
    }

    /* --- Search Bar --- */
    .search-bar {
        display: flex;
        gap: 12px;
        max-width: 760px;
        margin: 0 auto;
        margin-bottom: 1rem;
        position: relative;
        z-index: 20;
    }

    /* Wrapper that keeps the autocomplete dropdown anchored to the text input */
    .search-input-wrap {
        flex: 1;
        position: relative;
        min-width: 0;
    }

    .search-input-wrap #search-input {
        width: 100%;
    }

    /* --- Book Filter Dropdown --- */
    .book-filter-select {
        padding: 0 14px;
        height: 51px;
        /* matches #search-input rendered height */
        font-family: 'Inter', sans-serif;
        font-size: 0.85rem;
        font-weight: 500;
        border: 1px solid #e5e7eb;
        border-radius: 16px;
        background: #ffffff;
        color: #374151;
        outline: none;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
        white-space: nowrap;
        max-width: 168px;
        flex-shrink: 0;
        /* custom arrow */
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 12px center;
        padding-right: 32px;
    }

    .book-filter-select:focus {
        border-color: #c5a059;
        box-shadow: 0 10px 15px -3px rgba(197, 160, 89, 0.1), 0 4px 6px -4px rgba(197, 160, 89, 0.1);
    }

    /* Highlight the dropdown when a book is selected */
    .book-filter-select.has-value {
        border-color: #c5a059;
        color: #92400e;
        background-color: #fffbeb;
    }

    html.dark-mode .book-filter-select {
        background-color: #18181b;
        border-color: #27272a;
        color: #d4d4d8;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a1a1aa' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    }

    html.dark-mode .book-filter-select:focus {
        border-color: #c5a059;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    }

    html.dark-mode .book-filter-select.has-value {
        border-color: #c5a059;
        color: #fbbf24;
        background-color: #1c1400;
    }

    /* On very small screens, stack the dropdown below the text input */
    @media (max-width: 520px) {
        .search-bar {
            flex-wrap: wrap;
        }

        .search-input-wrap {
            flex: 1 1 100%;
        }

        .book-filter-select {
            max-width: none;
            flex: 1 1 calc(100% - 124px);
            /* leave room for the Search button */
            height: 48px;
        }
    }

    #search-input {
        flex: 1;
        padding: 14px 20px;
        font-family: 'Inter', sans-serif;
        font-size: 1rem;
        border: 1px solid #e5e7eb;
        border-radius: 16px;
        background: #ffffff;
        color: #1f2937;
        outline: none;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    }

    #search-input:focus {
        border-color: #c5a059;
        box-shadow: 0 10px 15px -3px rgba(197, 160, 89, 0.1), 0 4px 6px -4px rgba(197, 160, 89, 0.1);
        transform: translateY(-1px);
    }

    html.dark-mode #search-input {
        background: #18181b;
        border-color: #27272a;
        color: #f4f4f5;
    }

    html.dark-mode #search-input:focus {
        border-color: #c5a059;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    }

    #search-btn {
        padding: 0 32px;
        font-family: 'Inter', sans-serif;
        font-size: 0.95rem;
        font-weight: 700;
        background: linear-gradient(135deg, #1f2937, #111827);
        color: #ffffff;
        border: none;
        border-radius: 16px;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        white-space: nowrap;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }

    #search-btn:hover {
        background: linear-gradient(135deg, #374151, #1f2937);
        transform: translateY(-1px);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    }

    html.dark-mode #search-btn {
        background: linear-gradient(135deg, #f4f4f5, #e4e4e7);
        color: #09090b;
    }

    /* --- Advanced Filters --- */
    #search-filters.active {
        opacity: 1;
        transform: translateY(0);
    }

    .testament-filter {
        color: #6b7280;
        transition: all 0.2s ease;
    }

    .testament-filter:hover {
        color: #1f2937;
        background-color: #ffffff;
    }

    .testament-filter.active {
        background-color: #ffffff;
        color: #c5a059;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    html.dark-mode .testament-filter {
        color: #a1a1aa;
    }

    html.dark-mode .testament-filter:hover {
        color: #f4f4f5;
        background-color: #27272a;
    }

    html.dark-mode .testament-filter.active {
        background-color: #27272a;
        color: #c5a059;
    }

    .category-chip {
        padding: 6px 14px;
        font-size: 0.75rem;
        font-weight: 600;
        border-radius: 9999px;
        background-color: #f3f4f6;
        color: #6b7280;
        border: 1px solid transparent;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .category-chip:hover {
        background-color: #e5e7eb;
        color: #374151;
    }

    .category-chip.active {
        background-color: #fef3c7;
        color: #d97706;
        border-color: #fcd34d;
        box-shadow: 0 2px 4px rgba(217, 119, 6, 0.1);
    }

    html.dark-mode .category-chip {
        background-color: #18181b;
        color: #a1a1aa;
    }

    html.dark-mode .category-chip:hover {
        background-color: #27272a;
        color: #f4f4f5;
    }

    html.dark-mode .category-chip.active {
        background-color: #451a03;
        color: #fbbf24;
        border-color: #92400e;
    }

    /* --- Search Messages --- */
    .search-message {
        font-family: 'Inter', sans-serif;
        font-size: 0.95rem;
        color: #6b7280;
        text-align: center;
        padding: 40px 0;
    }

    .search-error {
        color: #ef4444;
    }

    /* --- Summary Header --- */
    .search-summary {
        font-family: 'Inter', sans-serif;
        font-size: 1rem;
        font-weight: 500;
        color: #374151;
        margin-bottom: 24px;
        padding-bottom: 16px;
        border-bottom: 1px solid #f3f4f6;
    }

    html.dark-mode .search-summary {
        color: #d1d5db;
        border-bottom-color: #27272a;
    }

    .search-summary strong {
        color: #111827;
    }

    html.dark-mode .search-summary strong {
        color: #ffffff;
    }

    /* --- Result Card --- */
    .result-card {
        padding: 24px;
        margin-bottom: 16px;
        border-radius: 20px;
        background: #ffffff;
        border: 1px solid #f3f4f6;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    a.result-card-link {
        display: block;
        text-decoration: none;
        color: inherit;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    }

    a.result-card-link:hover {
        transform: translateY(-2px) translateX(4px);
        box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.05);
        border-color: #e5e7eb;
    }

    html.dark-mode .result-card {
        background-color: #18181b;
        border-color: #27272a;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    }

    html.dark-mode a.result-card-link:hover {
        background-color: #1c1c1f;
        border-color: #3f3f46;
    }

    /* --- Arrow indicator --- */
    .result-arrow {
        opacity: 0;
        display: inline-block;
        margin-left: 8px;
        transition: all 0.3s ease;
        font-size: 1.1em;
    }

    a.result-card-link:hover .result-arrow {
        opacity: 1;
        transform: translateX(4px);
        color: #c5a059;
    }

    /* --- Reference --- */
    .result-reference {
        font-family: 'Playfair Display', serif;
        font-weight: 700;
        font-size: 1.1rem;
        color: #111827;
        margin: 0;
    }

    html.dark-mode .result-reference {
        color: #f9fafb;
    }

    /* --- Verse Text --- */
    .result-text {
        font-family: 'Inter', sans-serif;
        font-size: 0.95rem;
        line-height: 1.7;
        color: #4b5563;
        margin: 12px 0 0 0;
    }

    html.dark-mode .result-text {
        color: #a1a1aa;
    }

    /* --- Highlight Mark --- */
    .result-text mark {
        background-color: #fef9c3;
        color: #854d0e;
        padding: 2px 4px;
        border-radius: 4px;
        font-weight: 600;
    }

    html.dark-mode .result-text mark {
        background-color: #422006;
        color: #fef08a;
    }

    /* --- Category Tag --- */
    .category-tag {
        font-size: 0.65rem;
        font-weight: 800;
        text-transform: uppercase;
        padding: 4px 10px;
        border-radius: 9999px;
        letter-spacing: 0.05em;
        white-space: nowrap;
    }

    /* =========================================
   EMPTY STATE — no search results
   ========================================= */

    @keyframes empty-fade-in {
        from {
            opacity: 0;
            transform: translateY(16px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes empty-float {

        0%,
        100% {
            transform: translateY(0);
        }

        50% {
            transform: translateY(-8px);
        }
    }

    .empty-state {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 64px 24px 48px;
        animation: empty-fade-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
    }

    .empty-state-glow {
        background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.08) 0%, transparent 68%);
        border-radius: 50%;
        padding: 20px;
    }

    html.dark-mode .empty-state-glow {
        background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.14) 0%, transparent 68%);
    }

    .empty-state-icon {
        animation: empty-float 5s ease-in-out infinite;
        color: #1e293b;
    }

    html.dark-mode .empty-state-icon {
        color: #94a3b8;
    }

    /* Magnifying-glass lens fill — adapted per theme */
    .search-empty-circle {
        fill: rgba(238, 242, 255, 0.9);
    }

    html.dark-mode .search-empty-circle {
        fill: rgba(30, 27, 75, 0.7);
    }

    .empty-state h3 {
        font-family: 'Playfair Display', serif;
        font-size: 1.5rem;
        font-weight: 700;
        color: #1e293b;
        margin: 4px 0 10px;
    }

    html.dark-mode .empty-state h3 {
        color: #f1f5f9;
    }

    .empty-state>p {
        font-family: 'Inter', sans-serif;
        font-size: 0.875rem;
        line-height: 1.65;
        color: #64748b;
        max-width: 320px;
        margin: 0 0 24px;
    }

    html.dark-mode .empty-state>p {
        color: #94a3b8;
    }

    .empty-state-label {
        font-family: 'Inter', sans-serif;
        font-size: 0.65rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: #94a3b8;
        margin-bottom: 12px;
    }

    .empty-suggestion-btn {
        padding: 8px 18px;
        font-family: 'Inter', sans-serif;
        font-size: 0.78rem;
        font-weight: 600;
        border-radius: 9999px;
        border: 1px solid #e2e8f0;
        background: #ffffff;
        color: #475569;
        cursor: pointer;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    }

    .empty-suggestion-btn:hover {
        border-color: #818cf8;
        color: #4f46e5;
        background: #eef2ff;
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(79, 70, 229, 0.12);
    }

    html.dark-mode .empty-suggestion-btn {
        background: #1c1c1f;
        border-color: #3f3f46;
        color: #a1a1aa;
    }

    html.dark-mode .empty-suggestion-btn:hover {
        border-color: #818cf8;
        color: #a5b4fc;
        background: #1e1b4b;
        box-shadow: 0 6px 16px rgba(99, 102, 241, 0.15);
    }

    /* ── Search skeleton loader ──────────────────────────────────────── */
    .search-skeleton-label {
        font-family: 'Inter', sans-serif;
        font-size: 0.8rem;
        font-weight: 600;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: #9ca3af;
        text-align: center;
        padding: 12px 0 20px;
    }

    html.dark-mode .search-skeleton-label {
        color: #4b5563;
    }

    @keyframes skeleton-shimmer {
        0% {
            background-position: -400px 0;
        }

        100% {
            background-position: 400px 0;
        }
    }

    .skeleton-card {
        pointer-events: auto;
        user-select: none;
        border-left: 4px solid #e5e7eb !important;
        cursor: progress;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .skeleton-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    }

    .skeleton-card:hover .skeleton-line {
        animation-duration: 0.8s;
        filter: brightness(0.95);
    }

    html.dark-mode .skeleton-card:hover .skeleton-line {
        filter: brightness(1.2);
    }

    html.dark-mode .skeleton-card {
        border-left-color: #27272a !important;
    }

    .skeleton-line {
        background: linear-gradient(90deg,
                #f3f4f6 25%,
                #e9eaec 50%,
                #f3f4f6 75%);
        background-size: 800px 100%;
        animation: skeleton-shimmer 1.4s infinite linear;
    }

    html.dark-mode .skeleton-line {
        background: linear-gradient(90deg,
                #27272a 25%,
                #323235 50%,
                #27272a 75%);
        background-size: 800px 100%;
        animation: skeleton-shimmer 1.4s infinite linear;
    }

    /* ── Active-filter indicator bar ─────────────────────────────────── */
    #active-filter-bar {
        margin-bottom: 16px;
        animation: empty-fade-in 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
    }

    .active-filter-summary {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px 16px;
        background: #fefce8;
        border: 1px solid #fde68a;
        border-radius: 12px;
        font-family: 'Inter', sans-serif;
    }

    html.dark-mode .active-filter-summary {
        background: #1c1400;
        border-color: #92400e;
    }

    .active-filter-label {
        font-size: 0.72rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.07em;
        color: #92400e;
        white-space: nowrap;
    }

    html.dark-mode .active-filter-label {
        color: #fbbf24;
    }

    .active-filter-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        flex: 1;
    }

    .active-filter-tag {
        display: inline-flex;
        align-items: center;
        padding: 2px 10px;
        font-size: 0.72rem;
        font-weight: 600;
        border-radius: 9999px;
        background: #fef3c7;
        color: #b45309;
        border: 1px solid #fcd34d;
    }

    html.dark-mode .active-filter-tag {
        background: #451a03;
        color: #fbbf24;
        border-color: #92400e;
    }

    /* ── Reset-filters button (compact — used in indicator bar) ──────── */
    .reset-filters-btn {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        margin-left: auto;
        padding: 4px 12px;
        font-family: 'Inter', sans-serif;
        font-size: 0.72rem;
        font-weight: 700;
        border-radius: 9999px;
        border: 1px solid #fca5a5;
        background: #fee2e2;
        color: #b91c1c;
        cursor: pointer;
        white-space: nowrap;
        transition: all 0.2s ease;
    }

    .reset-filters-btn:hover {
        background: #fecaca;
        border-color: #f87171;
        transform: translateY(-1px);
        box-shadow: 0 3px 8px rgba(185, 28, 28, 0.12);
    }

    html.dark-mode .reset-filters-btn {
        background: #450a0a;
        border-color: #7f1d1d;
        color: #fca5a5;
    }

    html.dark-mode .reset-filters-btn:hover {
        background: #5c1111;
        border-color: #b91c1c;
    }

    /* ── Reset-filters button (large — used inside empty state) ──────── */
    .reset-filters-btn--large {
        padding: 10px 24px;
        font-size: 0.85rem;
        border-radius: 12px;
        margin: 0;
        box-shadow: 0 2px 6px rgba(185, 28, 28, 0.12);
    }

    .reset-filters-btn--large:hover {
        box-shadow: 0 6px 16px rgba(185, 28, 28, 0.18);
    }

    /* ── Empty-state filter CTA block ────────────────────────────────── */
    .empty-state-filter-cta {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-bottom: 28px;
        padding: 20px 28px;
        background: #fff7ed;
        border: 1px solid #fed7aa;
        border-radius: 16px;
        max-width: 360px;
        width: 100%;
        animation: empty-fade-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
    }

    html.dark-mode .empty-state-filter-cta {
        background: #1c0f00;
        border-color: #7c2d12;
    }

    .empty-state-filter-msg {
        font-family: 'Inter', sans-serif;
        font-size: 0.85rem;
        font-weight: 500;
        color: #9a3412;
        margin: 0 !important;
        text-align: center;
    }

    html.dark-mode .empty-state-filter-msg {
        color: #fdba74;
    }

    /* =========================================
   TAILWIND DECOUPLING — SEMANTIC CLASSES
   ========================================= */

    /* --- Layout --- */
    .search-main {
        max-width: 56rem;
        margin: 0 auto;
        padding: 3rem 1rem;
        min-height: 100vh;
    }

    @media (min-width: 640px) {
        .search-main {
            padding-left: 1.5rem;
            padding-right: 1.5rem;
        }
    }

    @media (min-width: 768px) {
        .search-main {
            padding-top: 5rem;
            padding-bottom: 5rem;
        }
    }

    /* --- Autocomplete Dropdown --- */
    .search-autocomplete-dropdown {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        margin-top: 0.5rem;
        background-color: #ffffff;
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        border-radius: 0.5rem;
        z-index: 50;
        max-height: 16rem;
        overflow-y: auto;
    }

    html.dark-mode .search-autocomplete-dropdown {
        background-color: #1e293b;
        border-color: #334155;
    }

    .search-autocomplete-header {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
        font-weight: 700;
        color: #9ca3af;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        position: sticky;
        top: 0;
        background-color: #ffffff;
    }

    html.dark-mode .search-autocomplete-header {
        background-color: #1e293b;
        color: #64748b;
    }

    .search-autocomplete-item {
        display: block;
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
        color: #374151;
        transition: all 0.2s ease;
        border-left: 2px solid transparent;
        text-decoration: none;
    }

    .search-autocomplete-item:hover {
        background-color: #f3f4f6;
        color: var(--color-indigo-600, #4f46e5);
        border-left-color: var(--color-indigo-500, #6366f1);
    }

    html.dark-mode .search-autocomplete-item {
        color: #d1d5db;
    }

    html.dark-mode .search-autocomplete-item:hover {
        background-color: #334155;
        color: #818cf8;
    }

    .search-autocomplete-item.apocrypha:hover {
        color: var(--color-violet-600, #7c3aed);
        border-left-color: var(--color-violet-500, #8b5cf6);
    }

    html.dark-mode .search-autocomplete-item.apocrypha:hover {
        color: #a78bfa;
    }

    .search-autocomplete-item-title {
        font-weight: 500;
    }

    .search-autocomplete-item-badge {
        margin-left: 0.5rem;
        font-size: 10px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: var(--color-violet-400, #a78bfa);
    }

    /* --- Filter Section --- */
    .search-filters-hidden {
        opacity: 0;
        transform: translateY(1rem);
        transition: all 0.5s ease;
    }

    .search-filters-active {
        opacity: 1;
        transform: translateY(0);
    }

    .search-filters-container {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
        background-color: #ffffff;
        border-radius: 1rem;
        border: 1px solid #f3f4f6;
        box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    }

    @media (min-width: 768px) {
        .search-filters-container {
            flex-direction: row;
            align-items: center;
        }
    }

    html.dark-mode .search-filters-container {
        background-color: rgba(30, 41, 59, 0.5);
        border-color: rgba(51, 65, 85, 0.5);
    }

    .search-filter-group-title {
        font-size: 10px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: #94a3b8;
        display: block;
        margin-bottom: 0.75rem;
    }

    .search-filter-testament-wrapper {
        display: flex;
        background-color: #f3f4f6;
        padding: 0.25rem;
        border-radius: 0.75rem;
        width: fit-content;
    }

    html.dark-mode .search-filter-testament-wrapper {
        background-color: rgba(15, 23, 42, 0.5);
    }

    .search-filter-testament-btn {
        padding: 0.5rem 1.25rem;
        font-size: 0.75rem;
        font-weight: 700;
        border-radius: 0.5rem;
        transition: all 0.2s ease;
        border: none;
        cursor: pointer;
        background: transparent;
    }

    .search-filter-divider {
        height: 1px;
        background-color: #f3f4f6;
    }

    @media (min-width: 768px) {
        .search-filter-divider {
            height: 3rem;
            width: 1px;
        }
    }

    html.dark-mode .search-filter-divider {
        background-color: rgba(51, 65, 85, 0.5);
    }

    .search-filter-group {
        flex: 1;
    }

    .search-filter-categories-wrapper {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    /* --- Results Utilities --- */
    .result-card-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 0.25rem;
    }

    .search-limit-message {
        text-align: center;
        padding: 1.5rem 0;
        color: #9ca3af;
        font-size: 0.75rem;
        font-style: italic;
        letter-spacing: 0.025em;
    }

    /* =========================================
   PAGINATOR
   ========================================= */

    .paginator {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 2rem 0 1rem;
        flex-wrap: wrap;
    }

    .paginator-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 2.25rem;
        height: 2.25rem;
        padding: 0 0.5rem;
        font-family: 'Inter', sans-serif;
        font-size: 0.85rem;
        font-weight: 600;
        border-radius: 10px;
        border: 1px solid #e5e7eb;
        background: #ffffff;
        color: #374151;
        cursor: pointer;
        transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    }

    .paginator-btn:hover:not(:disabled) {
        background: #f3f4f6;
        border-color: #d1d5db;
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
    }

    .paginator-btn--active {
        background: #1f2937;
        color: #ffffff;
        border-color: #1f2937;
        box-shadow: 0 2px 6px rgba(31, 41, 55, 0.25);
    }

    .paginator-btn--active:hover:not(:disabled) {
        background: #374151;
        border-color: #374151;
    }

    .paginator-btn--nav {
        color: #6b7280;
    }

    .paginator-btn:disabled {
        opacity: 0.35;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

    .paginator-ellipsis {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 2.25rem;
        height: 2.25rem;
        font-family: 'Inter', sans-serif;
        font-size: 0.85rem;
        color: #9ca3af;
        letter-spacing: 0.05em;
    }

    html.dark-mode .paginator-btn {
        background: #18181b;
        border-color: #3f3f46;
        color: #d4d4d8;
        box-shadow: none;
    }

    html.dark-mode .paginator-btn:hover:not(:disabled) {
        background: #27272a;
        border-color: #52525b;
    }

    html.dark-mode .paginator-btn--active {
        background: #c5a059;
        color: #09090b;
        border-color: #c5a059;
        box-shadow: 0 2px 8px rgba(197, 160, 89, 0.3);
    }

    html.dark-mode .paginator-btn--active:hover:not(:disabled) {
        background: #d4b475;
        border-color: #d4b475;
    }

    html.dark-mode .paginator-ellipsis {
        color: #52525b;
    }

}