/* ECG Academic Minimal Design - Refined */

:root {
    --primary: #1a365d;
    --secondary: #4a5568;
    --border: #e2e8f0;
    --surface: #f7fafc;
    --text: #1a1a1a;
    --text-light: #718096;
}

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

body {
    font-family: 'BPG Nino', 'Sylfaen', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: #fff;
}

/* Layout */
.container { 
    max-width: 960px; 
    margin: 0 auto; 
    padding: 0 24px; 
}

/* Header */
header {
    border-bottom: 1px solid var(--border);
    padding: 48px 0 32px;
}

h1 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 12px;
    line-height: 1.3;
    font-family: 'BPG Nino', 'Sylfaen', sans-serif;
}

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.meta a {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.meta a:hover { 
    border-bottom-color: var(--primary); 
}

/* Tabs */
.tabs {
    display: flex;
    border-bottom: 2px solid var(--border);
    margin-top: 32px;
    gap: 4px;
}

.tabs button {
    padding: 12px 20px;
    border: none;
    background: none;
    border-bottom: 3px solid transparent;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s;
}

.tabs button:hover { 
    color: var(--primary); 
    background: var(--surface); 
}

.tabs button.active { 
    color: var(--primary); 
    border-bottom-color: var(--primary); 
    font-weight: 600; 
}

/* Content */
.content { 
    padding: 32px 0; 
    display: none; 
}

.content.active { 
    display: block; 
    animation: fade 0.3s; 
}

@keyframes fade { 
    from { opacity: 0; } 
    to { opacity: 1; } 
}

/* Summary Box */
.summary {
    background: var(--surface);
    padding: 24px;
    border-left: 4px solid var(--primary);
    border-radius: 4px;
    margin-bottom: 32px;
}

.summary h3 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    margin-bottom: 8px;
    font-weight: 600;
}

.summary p {
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Metadata Grid */
.metadata {
    display: grid;
    gap: 20px;
    margin-bottom: 32px;
}

.meta-section {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.meta-section:last-child { 
    border: none; 
}

.meta-section h4 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    margin-bottom: 16px;
    font-weight: 600;
}

.meta-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.meta-row:last-child { 
    border: none; 
}

.meta-label {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

.meta-value { 
    color: var(--text); 
}

.meta-value a {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.meta-value a:hover {
    border-bottom-color: var(--primary);
}

/* Bibliography */
.bibliography {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 0.9rem;
}

.bib-item {
    display: flex;
    gap: 12px;
    line-height: 1.6;
}

.bib-number {
    color: var(--text-light);
    font-weight: 600;
    min-width: 28px;
}

/* Edition Container */
.editions {
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.edition {
    padding: 32px 40px;
    border-bottom: 1px solid var(--border);
}

.edition:last-child { 
    border: none; 
}

.edition h3 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
    font-weight: 600;
}

.edition-text {
    font-family: 'BPG Classic Medium', 'BPG Banner', 'Sylfaen', 'Times New Roman', serif;
    font-size: 1.25rem;
    line-height: 2;
    color: #2c2c2c;
}

.edition-line {
    display: flex;
    align-items: baseline;
    margin: 10px 0;
}

.line-number {
    display: inline-block;
    min-width: 2.5em;
    text-align: right;
    color: #999;
    font-size: 0.7em;
    font-weight: 500;
    margin-right: 1.5em;
    font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

.line-content {
    flex: 1;
}

/* Diplomatic Edition */
.diplomatic .edition-text {
    font-family: 'BPG Nino Mtavruli', 'BPG Banner', 'Sylfaen', serif;
    letter-spacing: 1px;
}

/* Text Elements */
.name-element {
    font-weight: 600;
}

.name-element a {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px dotted var(--primary);
}

.name-element a:hover {
    border-bottom-style: solid;
}

.supplied { 
    color: #666; 
}

.expansion { 
    font-style: italic; 
    color: #888; 
}

.word-element {
    cursor: help;
    border-bottom: 1px dotted #ccc;
}

.word-element:hover {
    background: rgba(0,0,0,0.02);
}

/* Bibliography Link Styles for Inscription Pages */
.bib-link {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.2s ease;
}

.bib-link:hover {
    color: #004499;
    text-decoration: underline;
}

/* Images */
.images {
    display: grid;
    gap: 24px;
}

.image-link {
    display: block;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 4px;
    text-decoration: none;
    color: var(--primary);
    transition: all 0.2s;
}

.image-link:hover {
    border-color: var(--primary);
    background: var(--surface);
}

/* Translation/Commentary */
.prose {
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 720px;
}

.prose p {
    margin-bottom: 16px;
}

/* XML Display */
.xml {
    background: #f4f4f4;
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 4px;
    overflow-x: auto;
}

.xml pre {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.85rem;
    color: #333;
    white-space: pre;
    line-height: 1.5;
}

/* Minimalist Academic Navigation */
.navbar {
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    padding: 16px 0;
    margin: 0 0 40px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #0066cc;
}

.nav-separator {
    color: #ccc;
    font-weight: 300;
}

/* Body margin reset */
body {
    margin: 0;
    padding: 0;
}

/* Image Display Styles */
.images {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.images a {
    display: inline-block;
    max-width: 100%;
}

.inscription-image {
    max-width: 100%;
    max-height: 800px;
    height: auto;
    display: block;
    border: 1px solid #e0e0e0;
    border-radius: 2px;
}

.inscription-image:hover {
    border-color: #bbb;
    transition: border-color 0.2s ease;
}

.image-link {
    display: block;
    padding: 12px 20px;
    background-color: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 2px;
    text-decoration: none;
    color: #333;
    text-align: center;
}

.image-link:hover {
    background-color: #f5f5f5;
    color: #0066cc;
}

@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 12px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

.inscription-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.images a {
    display: inline-block;
    margin: 10px;
}

/* Navigation */
.nav {
    display: flex;
    justify-content: space-between;
    padding: 32px 0;
    margin-top: 48px;
    border-top: 2px solid var(--border);
}

.nav a {
    padding: 12px 24px;
    border: 1px solid var(--border);
    border-radius: 4px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s;
}

.nav a:hover:not(.disabled) {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--surface);
}

.nav a.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.nav .center {
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 600;
}

.nav .center:hover {
    background: var(--primary);
    color: white;
}

/* Utilities */
.hidden { 
    display: none !important; 
}

.active { 
    display: block; 
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    header {
        padding: 32px 0 24px;
    }

    h1 { 
        font-size: 1.5rem; 
    }

    .meta {
        flex-direction: column;
        gap: 8px;
    }

    .tabs {
        overflow-x: auto;
    }

    .tabs button {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .meta-row { 
        grid-template-columns: 1fr; 
        gap: 4px; 
    }

    .edition { 
        padding: 24px 20px; 
    }

    .edition-text { 
        font-size: 1.1rem; 
    }

    .nav { 
        flex-direction: column; 
        gap: 12px; 
    }

    .nav a {
        text-align: center;
    }
}

@media (max-width: 480px) {
    h1 { 
        font-size: 1.3rem; 
    }

    .tabs button {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .edition-text { 
        font-size: 1rem; 
    }
}/* Bibliography Page Styles */

.page-description {
    color: #666;
    font-size: 16px;
    margin-bottom: 40px;
}

.bibliography-list {
    max-width: 900px;
    margin: 0 auto;
}

.bib-entry {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid #f0f0f0;
}

.bib-entry:last-child {
    border-bottom: none;
}

.bib-number {
    font-weight: 600;
    color: #666;
    min-width: 40px;
    text-align: right;
    flex-shrink: 0;
}

.bib-content {
    flex: 1;
}

.bib-abbrev {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 15px;
}

.bib-full {
    color: #444;
    line-height: 1.6;
    margin-bottom: 12px;
}

.bib-author {
    font-weight: 500;
}

.bib-title {
    font-style: italic;
}

.bib-place,
.bib-date {
    color: #666;
}

.bib-citations {
    margin-top: 12px;
    padding: 10px 0;
    border-top: 1px solid #f5f5f5;
}

.citations-label {
    color: #666;
    font-size: 14px;
    margin-right: 8px;
}

.citation-link {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s ease;
}

.citation-link:hover {
    color: #004499;
    text-decoration: underline;
}

/* Active nav link */
.nav-link.active {
    color: #0066cc;
    font-weight: 500;
}
/* ===================================
   CLEAN INDEX PAGE STYLES
   =================================== */

/* Index Header - Clean and Simple */
.index-header {
    text-align: center;
    padding: 60px 0 50px;
    border-bottom: none;
}

.index-title-ka {
    font-size: 2.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    line-height: 1.2;
    font-family: 'BPG Nino', 'Sylfaen', sans-serif;
}

.index-title-en {
    font-size: 2rem;
    font-weight: 400;
    color: #2d3748;
    margin-bottom: 20px;
    line-height: 1.3;
}

.index-subtitle {
    font-size: 1.1rem;
    color: #718096;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Map Section */
.map-wrapper {
    margin: 50px 0 60px;
}

/* Recent Inscriptions Section */
.recent-inscriptions {
    padding: 60px 0;
}

.section-heading {
    font-size: 1.75rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 40px;
    color: #1a1a1a;
}

.heading-ka {
    font-weight: 500;
}

.heading-separator {
    margin: 0 12px;
    color: #cbd5e0;
}

.heading-en {
    font-weight: 400;
}

/* Inscription Grid */
.inscription-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

/* Inscription Card */
.inscription-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.inscription-card:hover {
    border-color: #1a365d;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.card-id {
    font-size: 0.85rem;
    font-weight: 600;
    color: #718096;
    letter-spacing: 0.3px;
}

.card-meta-icons {
    display: flex;
    gap: 8px;
    font-size: 0.75rem;
    color: #718096;
}

.meta-icon {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.card-title {
    font-size: 1.05rem;
    font-weight: 500;
    color: #2d3748;
    line-height: 1.4;
    margin: 0;
    flex-grow: 1;
}

/* View All Button */
.view-all {
    text-align: center;
    margin-top: 40px;
}

.btn-view-all {
    display: inline-block;
    padding: 12px 32px;
    background: #1a365d;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-view-all:hover {
    background: #2d3748;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Simple Footer */
.simple-footer {
    background: #f7fafc;
    border-top: 1px solid #e2e8f0;
    padding: 32px 0;
    margin-top: 80px;
    text-align: center;
}

.footer-links {
    margin-bottom: 12px;
}

.footer-links a {
    color: #4a5568;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #1a365d;
}

.footer-separator {
    color: #cbd5e0;
    margin: 0 8px;
}

.footer-copyright {
    color: #718096;
    font-size: 0.85rem;
    margin: 0;
}

/* Responsive - Index Page */
@media (max-width: 768px) {
    .index-title-ka {
        font-size: 1.75rem;
    }
    
    .index-title-en {
        font-size: 1.5rem;
    }
    
    .index-subtitle {
        font-size: 1rem;
    }
    
    .section-heading {
        font-size: 1.5rem;
    }
    
    .inscription-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}
/* ===================================
   BROWSE PAGE STYLES
   =================================== */

/* Browse Header */
.browse-header {
    text-align: center;
    padding: 40px 0 50px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 50px;
}

.browse-title {
    font-size: 2rem;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.title-ka {
    font-weight: 600;
}

.title-separator {
    margin: 0 10px;
    color: #cbd5e0;
    font-weight: 300;
}

.title-en {
    font-weight: 400;
}

.browse-count {
    font-size: 1rem;
    color: #718096;
    margin: 0;
}

/* Browse Grid */
.browse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

/* Browse Card */
.browse-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    min-height: 160px;
}

.browse-card:hover {
    border-color: #1a365d;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.browse-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.browse-card-id {
    font-size: 0.875rem;
    font-weight: 600;
    color: #718096;
    letter-spacing: 0.3px;
}

.browse-card-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1a365d;
    line-height: 1.4;
    margin: 0 0 16px 0;
    flex-grow: 1;
    min-height: 2.8em; /* Reserve space for 2 lines */
}

.browse-card:hover .browse-card-title {
    color: #2d3748;
}

/* Browse Card Meta */
.browse-card-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: #4a5568;
}

.meta-icon {
    font-size: 0.875rem;
    opacity: 0.7;
}

.meta-text {
    line-height: 1.4;
}

/* Responsive - Browse Page */
@media (max-width: 768px) {
    .browse-header {
        padding: 30px 0 40px;
    }
    
    .browse-title {
        font-size: 1.5rem;
    }
    
    .browse-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .browse-card {
        min-height: auto;
    }
    
    .browse-card-title {
        font-size: 1.05rem;
        min-height: auto;
    }
}
/* ===================================
   BROWSE TOOLBAR STYLES - REFINED
   =================================== */

.browse-toolbar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
    align-items: center;
}

.search-input {
    flex: 1;
    min-width: 200px;
    padding: 0.5rem 0.75rem;
    border: 1px solid #cbd5e0;
    border-radius: 3px;
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: #1a365d;
}

.filter-select {
    padding: 0.5rem 0.75rem;
    border: 1px solid #cbd5e0;
    border-radius: 3px;
    background: white;
    font-family: inherit;
    font-size: 0.85rem;
    color: #4a5568;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.filter-select:hover {
    border-color: #718096;
}

.filter-select:focus {
    outline: none;
    border-color: #1a365d;
}

.view-btn {
    padding: 0.5rem 0.75rem;
    border: 1px solid #cbd5e0;
    background: white;
    cursor: pointer;
    font-size: 0.9rem;
    color: #718096;
    transition: all 0.2s ease;
    border-radius: 3px;
}

.view-btn:hover {
    border-color: #718096;
    color: #4a5568;
}

.view-btn.active {
    background: #1a365d;
    color: white;
    border-color: #1a365d;
}

/* List View Variant */
.browse-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ========================================
   PERSONS PAGE STYLES
   ======================================== */

/* Page header */
.page-description {
    color: #666;
    font-size: 1rem;
    margin: 0.5rem 0 0.25rem 0;
    line-height: 1.6;
}

.page-stats {
    color: #888;
    font-size: 0.9rem;
    margin: 0.5rem 0 2rem 0;
}

/* Alphabet selector */
.alphabet-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 4px;
}

.letter-btn {
    min-width: 2.5rem;
    padding: 0.5rem 0.75rem;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 3px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #495057;
}

.letter-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.letter-btn.active {
    background: #0066cc;
    color: white;
    border-color: #0066cc;
}

.letter-btn[data-letter="all"] {
    background: #495057;
    color: white;
    border-color: #495057;
    font-weight: 500;
}

.letter-btn[data-letter="all"]:hover {
    background: #343a40;
    border-color: #343a40;
}

.letter-btn[data-letter="all"].active {
    background: #212529;
    border-color: #212529;
}

/* Persons list */
.persons-list {
    margin-top: 2rem;
}

.person-entry {
    padding: 1.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.person-entry:last-child {
    border-bottom: none;
}

.person-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.person-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #212529;
    margin: 0;
}

.attestation-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #e9ecef;
    color: #495057;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.person-key {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-style: italic;
}

/* Attestations list */
.attestations-list {
    margin-top: 1rem;
    padding-left: 1rem;
    border-left: 3px solid #e9ecef;
}

.attestation-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f3f5;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.75rem;
}

.attestation-item:last-child {
    border-bottom: none;
}

.inscription-link {
    color: #0066cc;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
}

.inscription-link:hover {
    text-decoration: underline;
}

.inscription-title {
    color: #6c757d;
    font-size: 0.9rem;
    max-width: 40%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.attested-text {
    color: #212529;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    background: #f8f9fa;
    border-radius: 3px;
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .alphabet-selector {
        padding: 1rem;
    }
    
    .letter-btn {
        min-width: 2rem;
        padding: 0.4rem 0.6rem;
        font-size: 0.9rem;
    }
    
    .person-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .attestation-item {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .inscription-title {
        max-width: 100%;
    }
}

/* Loading state (optional) */
.person-entry[style*="display: none"] {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.browse-grid.list-view .browse-card {
    border-radius: 0;
    border-bottom: 1px solid #e2e8f0;
    border-left: none;
    border-right: none;
    border-top: none;
}

.browse-grid.list-view .browse-card:first-child {
    border-top: 1px solid #e2e8f0;
    border-radius: 6px 6px 0 0;
}

.browse-grid.list-view .browse-card:last-child {
    border-radius: 0 0 6px 6px;
}

.browse-grid.list-view .browse-card:hover {
    transform: translateX(4px);
}



/* Responsive - Browse Toolbar */
@media (max-width: 768px) {
    .browse-toolbar {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .search-input {
        width: 100%;
        min-width: auto;
    }
    
    .filter-select {
        flex: 1;
        min-width: 80px;
    }
    
    .view-btn {
        flex: 1;
    }
}