/* ============================================
   Rijksmuseum Collection Explorer
   Design based on Google Stitch wireframes
   ============================================ */

/* CSS Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Variables - Artistic Museum Design */
:root {
    /* Colors - Warm museum palette inspired by Dutch Masters */
    --primary: #2c1810;
    --primary-gold: #c4a962;
    --primary-blue: #1e3a5f;
    --accent-burgundy: #8b2f39;
    --accent-teal: #3d6b6b;
    --text-primary: #2c1810;
    --text-secondary: #5a4a3a;
    --text-tertiary: #8b7355;
    
    /* Backgrounds - Museum gallery aesthetic */
    --bg-primary: #fdfbf7;
    --bg-secondary: #f8f4ed;
    --bg-tertiary: #f0e8db;
    --bg-accent: #e8dfd5;
    --bg-canvas: #fffef9;
    
    /* Borders - Subtle golden/warm tones */
    --border-light: #e8dfd5;
    --border-medium: #d4c4b0;
    --border-gold: #c4a962;
    
    /* Buttons */
    --btn-primary: #2c1810;
    --btn-primary-hover: #1a0f0a;
    --btn-secondary: #c4a962;
    --btn-secondary-hover: #b39852;
    
    /* Shadows - Gallery frame aesthetic */
    --shadow-sm: 0 1px 3px rgba(44, 24, 16, 0.08);
    --shadow-md: 0 4px 12px rgba(44, 24, 16, 0.12);
    --shadow-lg: 0 8px 24px rgba(44, 24, 16, 0.16);
    --shadow-frame: inset 0 0 0 1px rgba(196, 169, 98, 0.3), 0 2px 8px rgba(44, 24, 16, 0.1);
    --shadow-hover: 0 12px 32px rgba(44, 24, 16, 0.2);
    --shadow-artistic: 0 20px 40px rgba(44, 24, 16, 0.15), 0 5px 15px rgba(44, 24, 16, 0.05);
    
    /* Artistic Textures */
    --texture-paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-8: 3rem;
    --space-10: 4rem;
    --space-12: 5rem;
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.375rem;
    --text-2xl: 1.75rem;
    --text-3xl: 2.25rem;
    --text-4xl: 3rem;
    --text-5xl: 3.75rem;
    
    /* Layout */
    --nav-height: 70px;
    --max-width: 1400px;
    --content-width: 1200px;
    
    /* Border radius - Softer, more elegant */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition: 200ms ease;
}

/* Base Styles */
html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    background-image: var(--texture-paper);
}

h1, h2, h3, h4, .logo, .welcome-eyebrow {
    font-family: var(--font-serif);
    letter-spacing: -0.01em;
}

/* ============================================
   Navigation
   ============================================ */

.top-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(253, 251, 247, 0.95);
    border-bottom: 1px solid var(--border-gold);
    box-shadow: 0 4px 20px rgba(44, 24, 16, 0.08);
    backdrop-filter: blur(15px);
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.02em;
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-gold);
}

.nav-link {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    padding: var(--space-2) var(--space-4);
    border-bottom: 2px solid transparent;
    cursor: pointer;
    position: relative;
    z-index: 11001;
    pointer-events: auto;
}

.nav-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary-gold);
}

.nav-link:hover {
    color: var(--primary);
    border-bottom-color: var(--primary-gold);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-6);
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-left, .nav-center, .nav-right {
    display: flex;
    align-items: center;
    gap: var(--space-5);
}

.nav-center {
    flex: 1;
    justify-content: center;
    position: relative;
    z-index: 1001;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.02em;
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-gold);
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    padding: var(--space-4) 0;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 999;
}

.mobile-menu.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.mobile-nav-link {
    display: block;
    padding: var(--space-3) var(--space-5);
    color: var(--text-primary);
    text-decoration: none;
    font-size: var(--text-base);
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
    border-left: 3px solid transparent;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: var(--bg-secondary);
    color: var(--primary-gold);
    border-left-color: var(--primary-gold);
}

.nav-btn-primary {
    padding: var(--space-3) var(--space-5);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-blue) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 300ms ease;
    box-shadow: 0 2px 8px rgba(44, 24, 16, 0.2);
}

.nav-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(44, 24, 16, 0.3);
}

/* ============================================
   Hero Section
   ============================================ */

.app-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.hero-section {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-accent) 100%);
    padding: var(--space-4) var(--space-6) var(--space-6);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(196, 169, 98, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: var(--text-5xl);
    font-weight: 700;
    color: var(--primary);
    line-height: 1.1;
    margin-bottom: var(--space-5);
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-burgundy) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-6);
}

/* Search Bar */
.search-container, .search-bar {
    margin-bottom: var(--space-3);
}

.search-input-field {
    width: 100%;
    padding: var(--space-4) var(--space-5);
    background: var(--bg-canvas);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-xl);
    font-size: var(--text-lg);
    color: var(--primary);
    outline: none;
    transition: all 300ms ease;
    margin-bottom: var(--space-4);
}

.search-input-field::placeholder {
    color: var(--text-tertiary);
    font-weight: 400;
}

.search-input-field:focus {
    border-color: var(--primary-gold);
    box-shadow: 0 4px 20px rgba(196, 169, 98, 0.25), 0 0 0 3px rgba(196, 169, 98, 0.1);
}

.search-buttons {
    display: flex;
    gap: var(--space-3);
    align-items: center;
}

.search-box, .search-bar {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    background: var(--bg-canvas);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: var(--space-4) var(--space-5);
    transition: all 300ms ease;
    box-shadow: var(--shadow-md);
}

.search-box:focus-within, .search-bar:focus-within {
    border-color: var(--primary-gold);
    box-shadow: 0 4px 20px rgba(196, 169, 98, 0.25), 0 0 0 3px rgba(196, 169, 98, 0.1);
    transform: translateY(-2px);
}

.search-icon {
    color: var(--text-tertiary);
    flex-shrink: 0;
}

/* ============================================
   FULL-WIDTH SEARCH BAR (NEW)
   ============================================ */

.fullwidth-search-wrapper {
    width: 100%;
    background: linear-gradient(135deg, var(--bg-warm) 0%, var(--bg-canvas) 100%);
    padding: var(--space-5) var(--space-6);
    margin-bottom: var(--space-4);
    border-bottom: 1px solid var(--border-light);
}

.fullwidth-search-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-title-centered {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    color: var(--primary);
    margin-bottom: var(--space-2);
    font-weight: 700;
}

.hero-subtitle-centered {
    font-size: var(--text-base);
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
}

.search-bar-fullwidth {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    max-width: 700px;
    margin: 0 auto;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon-left {
    position: absolute;
    left: var(--space-4);
    color: var(--text-tertiary);
    pointer-events: none;
    z-index: 1;
}

.search-bar-fullwidth .search-input-field {
    width: 100%;
    padding: var(--space-4) var(--space-5);
    padding-left: calc(var(--space-4) + 30px);
    padding-right: calc(var(--space-4) + 36px);
    background: white;
    border: 1px solid var(--border-medium);
    border-radius: 2px;
    font-size: var(--text-lg);
    font-family: var(--font-serif);
    color: var(--primary);
    outline: none;
    transition: all 300ms ease;
    margin-bottom: 0;
    box-shadow: var(--shadow-sm);
}

.search-bar-fullwidth .search-input-field:focus {
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 4px rgba(196, 169, 98, 0.1);
}

.search-bar-fullwidth .search-input-field::placeholder {
    color: var(--text-tertiary);
}

.search-bar-fullwidth .search-input-field:focus {
    border-color: var(--primary-gold);
    box-shadow: 0 4px 20px rgba(196, 169, 98, 0.25), 0 0 0 3px rgba(196, 169, 98, 0.1);
}

.clear-input-btn {
    position: absolute;
    right: var(--space-3);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
    color: var(--text-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 200ms ease;
    z-index: 2;
}

.clear-input-btn:hover {
    background: var(--bg-subtle);
    color: var(--primary);
}

.search-bar-fullwidth .search-btn-primary {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    background: var(--primary);
    color: white;
    border: 1px solid var(--primary);
    border-radius: 2px;
    font-size: var(--text-base);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 300ms ease;
    white-space: nowrap;
    box-shadow: var(--shadow-md);
}

.search-bar-fullwidth .search-btn-primary:hover {
    background: transparent;
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.search-bar-fullwidth .search-btn-primary:hover .search-icon {
    color: var(--primary);
}

.search-bar-fullwidth .search-btn-primary .search-icon {
    color: white;
}

/* Sidebar title styling */
.sidebar-title {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-3);
    border-bottom: 3px solid var(--primary-gold);
    letter-spacing: -0.01em;
}

/* Responsive for full-width search */
@media (max-width: 768px) {
    .fullwidth-search-wrapper {
        padding: var(--space-6) var(--space-4);
    }
    
    .hero-title-centered {
        font-size: var(--text-2xl);
    }
    
    .search-bar-fullwidth {
        flex-direction: column;
    }
    
    .search-bar-fullwidth .search-btn-primary {
        width: 100%;
        justify-content: center;
    }
    
    .search-btn-text {
        display: inline;
    }
}

@media (max-width: 480px) {
    .hero-title-centered {
        font-size: var(--text-xl);
    }
    
    .hero-subtitle-centered {
        font-size: var(--text-sm);
    }
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: var(--text-lg);
    color: var(--primary);
    background: transparent;
    font-weight: 400;
}

.search-input::placeholder {
    color: var(--text-tertiary);
    font-weight: 400;
}

.search-btn-secondary {
    padding: var(--space-3) var(--space-5);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-full);
    font-size: var(--text-base);
    font-weight: 600;
    cursor: pointer;
    transition: all 300ms ease;
    letter-spacing: 0.02em;
}

.search-btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--text-tertiary);
    transform: translateY(-1px);
}

.search-btn-secondary.hidden {
    display: none;
}

.clear-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    border-radius: var(--radius-full);
    color: var(--text-tertiary);
    cursor: pointer;
    transition: var(--transition);
}

.clear-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.clear-btn.hidden {
    display: none;
}

.search-btn-primary, .search-btn {
    padding: var(--space-3) var(--space-6);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-blue) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-size: var(--text-base);
    font-weight: 600;
    cursor: pointer;
    transition: all 300ms ease;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    box-shadow: 0 4px 12px rgba(44, 24, 16, 0.2);
    letter-spacing: 0.02em;
}

.search-btn-primary .search-icon {
    color: white;
    flex-shrink: 0;
}

.search-btn {
    padding: var(--space-3);
}

.search-btn-primary:hover, .search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(44, 24, 16, 0.3);
}

/* Featured Artists / Suggestions */
.search-suggestions, .featured-artists {
    margin-top: var(--space-4);
}

.featured-artists h3 {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--space-3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.suggestion-label {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    font-weight: 500;
    margin-right: var(--space-2);
}

.search-suggestions, .artist-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    align-items: center;
}

.suggestion-chip, .artist-chip {
    padding: var(--space-2) var(--space-4);
    background: var(--bg-canvas);
    border: 1px solid var(--border-medium);
    border-radius: 2px;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.suggestion-chip:hover, .artist-chip:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Hero Artwork */
.hero-artwork {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-artwork-image {
    position: relative;
    width: 100%;
    padding-top: 125%; /* 4:5 ratio for portrait artwork */
    background: var(--bg-accent);
}

.artwork-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: var(--text-tertiary);
    opacity: 0.2;
}

.hero-artwork img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   Filters Section
   ============================================ */

.filters-section {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-light);
    padding: var(--space-5) var(--space-6);
}

.filters-container {
    max-width: var(--content-width);
    margin: 0 auto;
}

.filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-4);
}

.filters-title {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.toggle-filters-btn {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: transparent;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.toggle-filters-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary-blue);
}

.toggle-icon {
    transition: transform var(--transition);
}

.toggle-filters-btn.active .toggle-icon {
    transform: rotate(180deg);
}

/* Filter Panel */
.filters-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.filters-panel.expanded {
    max-height: 600px;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
    padding: var(--space-4);
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(196, 169, 98, 0.15);
    border-radius: 2px;
}

.filter-label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    margin-bottom: var(--space-1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-label::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--primary-gold);
    border-radius: 50%;
}

.filter-input, .filter-select {
    padding: 12px 16px;
    border: 1px solid var(--border-medium);
    border-radius: 2px;
    font-size: 0.9rem;
    font-family: var(--font-serif);
    color: var(--text-primary);
    background: #fff;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.02);
}

.filter-input:focus, .filter-select:focus {
    outline: none;
    border-color: var(--primary-gold);
    background: #fffef9;
    box-shadow: 0 4px 12px rgba(196, 169, 98, 0.1);
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.filter-chip {
    padding: 8px 16px;
    background: #fff;
    border: 1px solid var(--border-medium);
    border-radius: 2px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-chip:hover {
    border-color: var(--primary-gold);
    background: #fffef9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.filter-chip.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fffef9;
    box-shadow: 0 4px 12px rgba(44, 24, 16, 0.2);
}

/* Active Filters */
.active-filters {
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-light);
    margin-top: var(--space-4);
}

.active-filters.hidden {
    display: none;
}

.active-filters-content {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.active-filters-label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-primary);
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.filter-tag {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-3);
    background: var(--primary-blue);
    color: white;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 500;
}

.filter-tag-close {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: var(--radius-full);
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.filter-tag-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.clear-all-filters {
    padding: var(--space-1) var(--space-3);
    background: transparent;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    font-size: var(--text-xs);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.clear-all-filters:hover {
    background: var(--bg-tertiary);
}

/* Source Filters */
.source-filters {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.source-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: var(--surface-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.source-checkbox:hover {
    background: var(--surface-primary);
    border-color: var(--border-medium);
}

.source-checkbox input[type="checkbox"],
.source-checkbox input[type="radio"] {
    display: none;
}

/* Faceted Search Styling */
.faceted-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Searchable dropdown */
.searchable-dropdown {
    position: relative;
    width: 100%;
}

.dropdown-search {
    width: 100%;
    padding: 10px 12px;
    font-size: 13px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: var(--surface-secondary);
    color: var(--text-primary);
    transition: all 0.2s ease;
    cursor: pointer;
}

.dropdown-search:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.dropdown-search::placeholder {
    color: var(--text-tertiary);
}

.dropdown-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 250px;
    overflow-y: auto;
    background: white;
    border: 1px solid var(--border-medium);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    margin-top: 4px;
}

.searchable-dropdown.open .dropdown-list {
    display: block;
}

.dropdown-option {
    padding: 10px 12px;
    font-size: 13px;
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.15s ease;
}

.dropdown-option:hover {
    background: var(--surface-secondary);
}

.dropdown-option.selected {
    background: var(--primary);
    color: white;
    font-weight: 500;
}

.dropdown-option.hidden {
    display: none;
}

/* Facet search input (removed - was for museums) */
.facet-search {
    margin-bottom: 10px;
}

.facet-search-input {
    width: 100%;
    padding: 8px 12px;
    font-size: 13px;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    background: var(--surface-secondary);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.facet-search-input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.facet-search-input::placeholder {
    color: var(--text-tertiary);
}

/* Facet items container */
.facet-items-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 400px;
    overflow-y: auto;
}

.facet-item.hidden {
    display: none;
}

/* Facet action buttons */
.facet-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
}

.facet-action-btn {
    flex: 1;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--surface-secondary);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.facet-action-btn:hover {
    background: var(--surface-primary);
    border-color: var(--primary);
    color: var(--primary);
}

.facet-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: var(--surface-secondary);
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.facet-item:hover {
    background: var(--surface-primary);
    border-color: var(--border-medium);
    transform: translateX(2px);
}

.facet-item:has(input:checked) {
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f0fa 100%);
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.15);
}

.facet-item:has(input:checked)::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary);
    border-radius: 8px 0 0 8px;
}

/* Hide native checkbox */
.facet-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Custom checkbox - square for multi-select */
.facet-checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-medium);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    background: white;
}

.facet-item:has(input:checked) .facet-checkbox-custom {
    border-color: var(--primary);
    background: var(--primary);
}

.facet-item:has(input:checked) .facet-checkbox-custom::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
}

/* Facet icon - Hidden for cleaner look */
.facet-icon {
    display: none !important;
}

/* Facet label */
.facet-label {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-left: 4px;
}

.facet-item:has(input:checked) .facet-label {
    color: var(--primary);
    font-weight: 600;
}

/* Facet count badge */
.facet-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-tertiary);
    background: var(--bg-tertiary);
    padding: 2px 8px;
    border-radius: 12px;
    min-width: 24px;
    text-align: center;
    transition: all 0.2s ease;
}

.facet-count::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: transparent;
    opacity: 0;
    transition: opacity 0.2s ease, background 0.2s ease;
}

.facet-count[data-health="up"]::before,
.facet-count[data-health="down"]::before,
.facet-count[data-health="checking"]::before {
    opacity: 1;
}

.facet-count[data-health="up"]::before {
    background: var(--accent-teal);
}

.facet-count[data-health="down"]::before {
    background: var(--accent-burgundy);
}

.facet-count[data-health="checking"]::before {
    background: var(--primary-gold);
}

.facet-item:has(input:checked) .facet-count {
    background: var(--primary);
    color: white;
}

.facet-count.has-results {
    background: #e8f5e9;
    color: #2e7d32;
}

.facet-count.no-results {
    background: #ffebee;
    color: #c62828;
}

.facet-count.loading {
    background: #fff3e0;
    color: #e65100;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Source info box */
.source-info {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 12px;
    background: linear-gradient(135deg, #f5f5f5 0%, #eeeeee 100%);
    border-radius: 8px;
    border-left: 3px solid var(--primary);
}

.source-info-icon {
    font-size: 14px;
    line-height: 1;
}

.source-info-text {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Legacy support */
.source-label {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-primary);
    flex: 1;
}

.source-badge {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: white;
    font-size: 11px;
    font-weight: bold;
}

.filters-actions {
    display: flex;
    justify-content: flex-end;
}

.btn-secondary {
    padding: var(--space-2) var(--space-4);
    background: transparent;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
}

/* ============================================
   Progress Indicator
   ============================================ */

.search-progress {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-light);
    padding: var(--space-4) var(--space-6);
}

.search-progress.hidden {
    display: none;
}

.progress-wrapper {
    max-width: var(--content-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.progress-info {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.progress-counter {
    font-weight: 600;
    color: var(--text-primary);
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary-blue);
    transition: width 0.3s ease;
}

.stop-search-btn {
    padding: var(--space-2) var(--space-4);
    background: #dc3545;
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.stop-search-btn:hover {
    background: #c82333;
}

/* ============================================
   Results Section
   ============================================ */

.results-section {
    padding: var(--space-8) var(--space-6);
    background: var(--bg-secondary);
}

.results-container {
    max-width: var(--content-width);
    margin: 0 auto;
}

.results-header {
    margin-bottom: var(--space-6);
}

.results-header.hidden {
    display: none;
}

.results-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.results-title {
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--text-primary);
}

.search-term-display {
    color: var(--text-secondary);
    font-weight: 400;
}

.results-controls {
    display: flex;
    gap: var(--space-2);
}

/* States */
.loading-state, .error-state, .empty-state {
    padding: var(--space-12) var(--space-4);
    text-align: center;
}

.loading-state.hidden, .error-state.hidden, .empty-state.hidden {
    display: none;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--space-4);
}

.spinner {
    width: 100%;
    height: 100%;
    border: 3px solid var(--border-light);
    border-top-color: var(--primary-blue);
    border-radius: var(--radius-full);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text, .error-title, .empty-title {
    font-size: var(--text-xl);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.error-text, .empty-text {
    font-size: var(--text-base);
    color: var(--text-secondary);
}

.error-icon, .empty-icon {
    margin-bottom: var(--space-4);
    opacity: 0.5;
}

/* Results Grid Container with Toolbar */
.results-grid-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Grid Toolbar */
.grid-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-canvas);
    border-bottom: 1px solid var(--border-light);
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

/* Grid Filter Tabs */
.grid-filter-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #f5f5f5;
    padding: 4px;
    border-radius: 10px;
}

.grid-filter-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.grid-filter-tab:hover {
    background: rgba(255,255,255,0.8);
    color: #444;
}

.grid-filter-tab.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.grid-filter-tab svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.grid-filter-tab span {
    white-space: nowrap;
}

/* Grid Sort Selector */
.grid-sort-selector {
    margin-left: auto;
}

.grid-sort-select {
    padding: 8px 12px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 13px;
    color: #444;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 140px;
}

.grid-sort-select:hover {
    border-color: var(--primary);
    background: #fafafa;
}

.grid-sort-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(44, 24, 16, 0.1);
}

/* Grid Size Controls */
.grid-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.grid-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.grid-action-btn:hover {
    background: #f5f5f5;
    color: #444;
}

.grid-action-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Grid Size Variations */
.results-grid.grid-small {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
    gap: var(--space-4) !important;
}

.results-grid.grid-small .artwork-card {
    min-height: 200px;
}

.results-grid.grid-small .artwork-image-container {
    height: 140px;
}

.results-grid.grid-large {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)) !important;
    gap: var(--space-8) !important;
}

.results-grid.grid-large .artwork-card {
    min-height: 450px;
}

.results-grid.grid-large .artwork-image-container {
    height: 320px;
}

.results-grid.grid-large .artwork-title {
    font-size: 1.1rem;
}

.results-grid.grid-large .artwork-creator {
    font-size: 0.95rem;
}

/* Also apply to grouped grid items */
.grid-group-items.grid-small {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
    gap: var(--space-4) !important;
}

.grid-group-items.grid-large {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)) !important;
    gap: var(--space-8) !important;
}

/* Grouped Grid Sections */
.grid-group {
    margin-bottom: var(--space-8);
}

.grid-group-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 2px solid var(--border-light);
}

.grid-group-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.grid-group-count {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    background: var(--bg-tertiary);
    padding: 2px 10px;
    border-radius: 12px;
}

.grid-group-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-6);
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-6);
}

.results-grid.hidden {
    display: none;
}

.artwork-card {
    background: #fff;
    border-radius: 1px;
    overflow: hidden;
    cursor: pointer;
    transition: all 600ms cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 
        0 15px 35px rgba(0,0,0,0.15),
        0 5px 15px rgba(0,0,0,0.08);
    border: 15px solid #fff; /* Passe-partout */
    outline: 1px solid rgba(0,0,0,0.1);
    position: relative;
    display: flex;
    flex-direction: column;
    /* Outer frame effect */
    padding: 0;
}

.artwork-card::before {
    content: '';
    position: absolute;
    inset: -16px;
    border: 2px solid #2c1810; /* Dark wood frame */
    pointer-events: none;
    z-index: 2;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.artwork-card::after {
    content: '';
    position: absolute;
    inset: -14px;
    border: 1px solid #c4a962; /* Gold inner inlay */
    pointer-events: none;
    z-index: 3;
}

.artwork-card:hover {
    transform: translateY(-20px) scale(1.02);
    box-shadow: 
        0 40px 80px rgba(44, 24, 16, 0.25),
        0 15px 30px rgba(44, 24, 16, 0.15);
}

.artwork-image-container {
    position: relative;
    width: 100%;
    padding-top: 120%;
    background: #f0f0f0;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.15);
    z-index: 1;
}

.artwork-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.artwork-card:hover .artwork-image {
    transform: scale(1.1);
}

.artwork-info {
    padding: 1.5rem 1rem;
    background: #fffef9;
    border-top: 1px solid rgba(0,0,0,0.05);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Gallery Label Style */
.artwork-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background: var(--primary-gold);
}

.artwork-title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.6rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.artwork-creator {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.artwork-meta {
    margin-top: 1rem;
    padding-top: 0.8rem;
    border-top: 1px dotted rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    font-size: 0.7rem;
    color: var(--text-tertiary);
    font-style: italic;
    font-family: var(--font-serif);
}

.artwork-info::after {
    content: '';
    position: absolute;
    top: 0;
    left: var(--space-5);
    right: var(--space-5);
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-gold), transparent);
    opacity: 0.5;
}

.artwork-title {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.4;
    margin-bottom: var(--space-2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: -0.01em;
}

.artwork-creator {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
    font-style: italic;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.artwork-date {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
    color: var(--text-tertiary);
}

/* Load More */
.load-more-section {
    padding: var(--space-8) 0;
    text-align: center;
}

.load-more-section.hidden {
    display: none;
}

.load-more-info {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
}

.load-more-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.btn-load-more {
    padding: var(--space-3) var(--space-8);
    background: var(--bg-primary);
    border: 1.5px solid var(--border-medium);
    border-radius: var(--radius-full);
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.btn-load-more:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
}

.btn-load-all {
    padding: var(--space-3) var(--space-6);
    background: linear-gradient(135deg, var(--primary) 0%, #6d5a47 100%);
    border: none;
    border-radius: var(--radius-full);
    font-size: var(--text-base);
    font-weight: 500;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    box-shadow: 0 2px 8px rgba(139, 115, 85, 0.3);
}

.btn-load-all:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 115, 85, 0.4);
}

.btn-load-all:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-load-all.loading {
    pointer-events: none;
}

.btn-load-all.loading svg {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============================================
   Detail Modal - Two Column Layout
   ============================================ */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    z-index: 2000;
    overflow-y: auto;
}

.modal.active {
    display: block;
}

.modal-wrapper {
    min-height: 100vh;
    padding: var(--space-6);
}

.modal-content-detail {
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
}

/* Close Button */
.modal-close-detail {
    position: absolute;
    top: -10px;
    right: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.modal-close-detail:hover {
    background: var(--bg-tertiary);
    border-color: var(--text-primary);
    color: var(--text-primary);
}

/* Breadcrumb Navigation */
.detail-breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
    font-size: var(--text-sm);
}

.breadcrumb-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb-link:hover {
    color: var(--primary-blue);
}

.breadcrumb-separator {
    color: var(--text-tertiary);
}

.breadcrumb-current {
    color: var(--text-primary);
    font-weight: 500;
}

/* Two Column Grid */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
    align-items: start;
}

/* Left Column - Image */
.detail-image-column {
    position: sticky;
    top: var(--space-6);
}

.detail-image-wrapper {
    background: white;
    border: 15px solid white;
    outline: 1px solid var(--border-medium);
    box-shadow: var(--shadow-artistic);
    padding: 0;
    margin-bottom: var(--space-6);
    position: relative;
}

.detail-image-wrapper::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 1px solid var(--border-gold);
    pointer-events: none;
}

.detail-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Thumbnails */
.detail-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-3);
}

.detail-thumbnail {
    aspect-ratio: 1;
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--border-medium);
    transition: all 0.3s ease;
}

.detail-thumbnail:hover {
    border-color: var(--primary-gold);
    transform: translateY(-2px);
}

.detail-thumbnail.active {
    border-color: var(--primary-gold);
    outline: 2px solid var(--primary-gold);
}

.detail-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Right Column - Information */
.detail-info-column {
    padding: var(--space-2) 0;
}

.detail-title-section {
    margin-bottom: var(--space-5);
}

.detail-title {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    letter-spacing: -0.02em;
}

.detail-creator {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--text-secondary);
    margin: 0;
    font-style: italic;
}

/* Favorite Button */
.detail-favorite-btn {
    width: 100%;
    padding: 18px 30px;
    background: var(--primary);
    color: white;
    border: 1px solid var(--primary);
    border-radius: 2px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
}

.detail-favorite-btn:hover {
    background: transparent;
    color: var(--primary);
    transform: translateY(-3px);
}

/* Quick Info Grid */
.detail-quick-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    padding: var(--space-5) 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    margin-bottom: var(--space-6);
}

.quick-info-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.quick-info-label {
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.quick-info-value {
    font-size: var(--text-sm);
    color: var(--text-primary);
}

/* Collapsible Sections */
.detail-sections {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.detail-section {
    border-bottom: 1px solid var(--border-light);
}

.section-toggle {
    width: 100%;
    padding: var(--space-4) 0;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: var(--transition);
}

.section-toggle:hover {
    color: var(--primary-blue);
}

.section-title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
}

.section-icon {
    color: var(--text-secondary);
    transition: transform var(--transition);
}

.section-toggle.active .section-icon {
    transform: rotate(180deg);
}

.section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.section-content.expanded {
    max-height: 2000px;
    padding-bottom: var(--space-5);
}

.section-text {
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

.section-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.detail-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: var(--space-3);
}

.detail-row-label {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
}

.detail-row-value {
    font-size: var(--text-sm);
    color: var(--text-primary);
}

.additional-info-container {
    margin-top: var(--space-4);
}

/* Legacy compatibility */
.modal-close {
    display: none;
}

.detail-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: var(--space-3);
    margin-bottom: var(--space-2);
}

.detail-label {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
}

.detail-value {
    font-size: var(--text-sm);
    color: var(--text-primary);
}

/* Fullscreen Modal */
.fullscreen-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto; /* Enable scrolling when content is too large */
}

.fullscreen-modal.hidden {
    display: none;
}

.fullscreen-content {
    width: 100%;
    height: 100%;
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
}

.fullscreen-close {
    position: fixed; /* Changed from absolute to fixed so it stays visible when scrolling */
    top: var(--space-4);
    right: var(--space-4);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: var(--radius-full);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 3001; /* Above the image */
}

.fullscreen-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.zoom-controls {
    position: fixed;
    bottom: var(--space-4);
    right: var(--space-4);
    display: flex;
    gap: var(--space-2);
    z-index: 3001;
}

.zoom-btn {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: var(--radius-full);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.zoom-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.zoom-btn:active {
    transform: scale(0.95);
}

.zoom-reset {
    font-size: 1.3rem;
}

.fullscreen-image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh; /* Ensure container is at least viewport height */
    overflow: visible; /* Allow overflow */
}

.fullscreen-image {
    max-width: none; /* Remove max-width constraint to allow zooming beyond viewport */
    max-height: none; /* Remove max-height constraint */
    object-fit: contain;
    transition: transform 0.1s ease-out; /* Smooth zoom/pan transitions */
    transform-origin: center center;
}

.fullscreen-info {
    text-align: center;
    color: white;
    margin-top: var(--space-4);
}

.fullscreen-info h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-2);
}

.fullscreen-loading {
    color: white;
}

.fullscreen-loading.hidden {
    display: none;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .hero-artwork {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    /* Show mobile menu toggle, hide desktop nav */
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-center {
        display: none;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .hero-section {
        padding: var(--space-6) var(--space-4);
    }
    
    .hero-title {
        font-size: var(--text-3xl);
    }
    
    .filters-section {
        padding: var(--space-4);
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
    }
    
    .results-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: var(--space-4);
    }
    
    /* Grid Toolbar Responsive */
    .grid-toolbar {
        padding: 10px 12px;
        gap: 10px;
    }
    
    .grid-filter-tabs {
        gap: 2px;
        padding: 3px;
    }
    
    .grid-filter-tab {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .grid-filter-tab span {
        display: none;
    }
    
    .grid-filter-tab svg {
        width: 18px;
        height: 18px;
    }
    
    .grid-sort-select {
        min-width: 100px;
        font-size: 12px;
    }

    /* Detail Modal Responsive */
    .detail-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .detail-image-column {
        position: relative;
        top: 0;
    }
    
    .detail-title {
        font-size: var(--text-3xl);
    }
    
    .detail-quick-info {
        grid-template-columns: 1fr;
    }
    
    .detail-row {
        grid-template-columns: 1fr;
    }
    
    .modal-wrapper {
        padding: var(--space-4);
    }
}

@media (max-width: 480px) {
    .results-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ============================================
   Utility Classes
   ============================================ */

.hidden {
    display: none !important;
}

/* Legacy class mappings for JS */
.search-results { display: contents; }
#loadingSpinner:not(.hidden) { display: flex !important; }
#errorMessage:not(.hidden) { display: flex !important; }

/* Scrollbar - Verbeterd voor kleine schermen */
::-webkit-scrollbar {
    width: 14px;
    height: 14px;
}

::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-gold) 0%, var(--border-medium) 100%);
    border-radius: 8px;
    border: 2px solid var(--bg-tertiary);
    box-shadow: 0 2px 6px rgba(44, 24, 16, 0.15);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-gold) 0%, var(--text-secondary) 100%);
    box-shadow: 0 2px 8px rgba(44, 24, 16, 0.25);
}

::-webkit-scrollbar-thumb:active {
    background: var(--primary-gold);
}

/* Scrollbar corner */
::-webkit-scrollbar-corner {
    background: var(--bg-tertiary);
}

/* Verbeterde scrollbar voor mobile/tablet */
@media (max-width: 1024px) {
    ::-webkit-scrollbar {
        width: 16px;
        height: 16px;
    }
    
    ::-webkit-scrollbar-thumb {
        background: var(--primary-gold);
        border: 3px solid var(--bg-tertiary);
        box-shadow: 0 3px 8px rgba(44, 24, 16, 0.2);
    }
    
    ::-webkit-scrollbar-thumb:hover {
        background: var(--btn-secondary-hover);
    }
}

/* Extra visuele indicator voor scrollbare content */
.results-grid-container {
    position: relative;
}

.results-grid-container::after {
    content: '';
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to top, rgba(253, 251, 247, 0.95), transparent);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.results-grid-container.has-scroll::after {
    opacity: 1;
}

/* Scroll hint indicator - Extra duidelijk voor kleine laptops */
.scroll-hint {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-gold);
    color: white;
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(196, 169, 98, 0.4);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 100;
}

.scroll-hint.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-hint::after {
    content: '↓';
    font-size: 18px;
    animation: bounceDown 1.5s infinite;
}

@keyframes bounceDown {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-6px);
    }
    60% {
        transform: translateY(-3px);
    }
}

/* Voor zeer kleine schermen - grotere indicator */
@media (max-width: 768px) {
    .scroll-hint {
        bottom: 15px;
        right: 15px;
        padding: 14px 24px;
        font-size: 15px;
        box-shadow: 0 6px 20px rgba(196, 169, 98, 0.5);
    }
    
    .scroll-hint::after {
        font-size: 20px;
    }
}

/* ============================================
   FAVORITES SYSTEM
   ============================================ */

.favorite-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
    color: var(--text-tertiary);
}

.favorite-btn svg {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

.favorite-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.favorite-btn.active {
    animation: heartBeat 0.3s ease;
    color: #e63946;
}

.favorite-btn.active svg {
    fill: #e63946;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(1.1); }
}

.card-source-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    color: white;
    font-size: 13px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
}

.nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    margin-left: 8px;
    background: #ff4757;
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 10px;
}

.nav-link.active {
    color: var(--primary-blue);
    font-weight: 600;
}

/* ============================================
   NEW SIDEBAR LAYOUT
   ============================================ */

.search-results-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-6);
    align-items: start;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-6) var(--space-6);
}

.search-results-layout.filters-collapsed {
    grid-template-columns: 80px 1fr;
}

/* When sidebar is hidden, make results full width */
.search-results-layout:has(.search-sidebar[style*="display: none"]) {
    grid-template-columns: 1fr;
}

.search-sidebar {
    position: sticky;
    top: calc(var(--nav-height) + 8px);
    background: #fffef9;
    background-image: var(--texture-paper);
    border-radius: 2px;
    padding: var(--space-6);
    box-shadow: 
        0 10px 30px rgba(0,0,0,0.05),
        inset 0 0 40px rgba(44, 24, 16, 0.02);
    border: 1px solid var(--border-gold);
    max-height: calc(100vh - var(--nav-height) - 16px);
    overflow-y: auto;
    transition: all 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--border-gold);
    letter-spacing: -0.01em;
    text-align: center;
    position: relative;
}

.sidebar-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-gold);
}

.results-main-wrapper {
    max-height: calc(100vh - var(--nav-height) - 40px);
    overflow: hidden;
    border-radius: 2px;
    box-shadow: 
        0 30px 60px rgba(0,0,0,0.12),
        inset 0 0 100px rgba(44, 24, 16, 0.05);
    background: var(--bg-secondary);
    background-image: var(--texture-paper);
    border: 1px solid var(--border-gold);
    position: relative;
}

.results-main-area {
    padding: var(--space-8);
    overflow-y: auto;
    max-height: calc(100vh - var(--nav-height) - 40px);
    scrollbar-width: thin;
    scrollbar-color: var(--primary-gold) transparent;
}

.results-main-area::-webkit-scrollbar {
    width: 6px;
}

.results-main-area::-webkit-scrollbar-thumb {
    background-color: var(--primary-gold);
    border-radius: 10px;
}

.sidebar-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.sidebar-header-text {
    flex: 1;
}

.sidebar-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.sidebar-description {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin: 0;
}

.sidebar-collapse-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    background: white;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 200ms ease;
}

.sidebar-collapse-btn:hover {
    border-color: var(--primary-gold);
    color: var(--primary);
}

.collapse-icon {
    font-size: 1rem;
    transition: transform 200ms ease;
}

.sidebar-body {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    transition: opacity 200ms ease;
}

.search-sidebar.collapsed {
    width: 64px;
    min-width: 64px;
    padding: 16px 10px;
    border-radius: var(--radius-lg);
    overflow: visible;
}

.search-sidebar.collapsed .sidebar-header {
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.search-sidebar.collapsed .sidebar-header-text,
.search-sidebar.collapsed .sidebar-description {
    display: none;
}

.search-sidebar.collapsed .sidebar-collapse-btn {
    flex-direction: column;
    justify-content: center;
    padding: 10px;
    width: 100%;
}

.search-sidebar.collapsed .collapse-label {
    font-size: 0.75rem;
}

.search-sidebar.collapsed .collapse-icon {
    transform: rotate(180deg);
}

.search-sidebar.collapsed .sidebar-body {
    opacity: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

.sidebar-filters {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.filter-section-title {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.sidebar-filters .filter-select {
    width: 100%;
    padding: 8px 10px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: var(--text-xs);
    background: white;
    cursor: pointer;
    transition: all 300ms ease;
}

.sidebar-filters .filter-select:focus {
    border-color: var(--primary-gold);
    outline: none;
    box-shadow: 0 0 0 3px rgba(196, 169, 98, 0.1);
}

.sidebar-filters .filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.results-main-area {
    min-height: 80vh;
}

.results-main-area .results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-5);
}

.results-main-area .results-header {
    margin-bottom: var(--space-5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
    flex-wrap: wrap;
}

.results-main-area .results-title {
    font-size: var(--text-xl);
    color: var(--primary);
    font-weight: 600;
    flex-shrink: 0;
}

.results-main-area .search-progress {
    flex: 1;
    min-width: 300px;
    background: transparent;
    border: none;
    padding: 0;
}

.results-main-area .search-progress .progress-wrapper {
    margin: 0;
    max-width: none;
}

/* Responsive adjustments */
@media (max-width: 1400px) {
    .results-main-area .results-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .search-results-layout {
        grid-template-columns: 280px 1fr;
        gap: var(--space-6);
    }
    
    .results-main-area .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .search-results-layout {
        grid-template-columns: 1fr;
    }
    
    .search-sidebar {
        position: relative;
        top: 0;
    }
    
    .results-main-area .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ============================================
   ARTISTIC ENHANCEMENTS
   ============================================ */

/* Enhanced suggestion chips */
.suggestion-chip, .artist-chip {
    background: var(--bg-canvas) !important;
    border: 2px solid var(--border-light) !important;
    box-shadow: 0 2px 4px rgba(44, 24, 16, 0.05) !important;
    transition: all 300ms ease !important;
}

.suggestion-chip:hover, .artist-chip:hover {
    background: var(--primary-gold) !important;
    color: white !important;
    border-color: var(--primary-gold) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(196, 169, 98, 0.3) !important;
}

/* Artists View Styles */
.artists-main-area {
    padding: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.artists-header {
    margin-bottom: 32px;
    text-align: center;
}

.artists-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 12px 0;
    text-align: center;
}

.artists-subtitle {
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0 0 40px 0;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.artists-search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto 60px;
}

.artists-search-input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border: 1px solid var(--border-gold);
    border-radius: 2px;
    font-size: 1rem;
    font-family: var(--font-serif);
    background: #fffef9;
    background-image: var(--texture-paper);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.artists-search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(44, 24, 16, 0.1);
}

.artists-search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-gold);
    pointer-events: none;
}

.artists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
    padding: 20px;
}

.artist-card-container {
    display: flex;
    gap: 0;
    align-items: stretch;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.artist-card {
    flex: 1;
    background: #fffef9;
    background-image: var(--texture-paper);
    border: 12px solid #fff; /* Passe-partout */
    border-radius: 2px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    box-shadow: var(--shadow-artistic);
    position: relative;
}

/* Wood frame for artist card */
.artist-card::before {
    content: '';
    position: absolute;
    top: -14px;
    left: -14px;
    right: -14px;
    bottom: -14px;
    border: 4px solid var(--primary); /* Dark wood */
    pointer-events: none;
    z-index: 1;
}

/* Gold inlay for artist card */
.artist-card::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 1px solid var(--primary-gold);
    pointer-events: none;
    z-index: 2;
}

.artist-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(44, 24, 16, 0.3);
}

.artist-card:hover::before {
    border-color: #3d2216;
}

.artist-card:hover .artist-name {
    color: var(--primary-gold);
}

.artist-card:hover .artist-dates {
    color: var(--primary-gold);
}

.artist-name {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.artist-dates {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--text-tertiary);
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.artist-info-btn {
    background: var(--primary-gold);
    border: none;
    border-radius: 0 2px 2px 0;
    width: 44px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-left: -1px;
}

.artist-info-btn:hover {
    background: var(--primary);
    width: 50px;
}

@media (max-width: 768px) {
    .artists-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }
    
    .artist-card {
        padding: 12px;
    }
    
    .artist-name {
        font-size: 14px;
    }
    
    .artist-dates {
        font-size: 12px;
    }
    
    .artist-info-btn {
        width: 36px;
    }
}

/* Enhanced filter chips */
.filter-chip.active {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--accent-burgundy) 100%) !important;
    color: white !important;
    border-color: transparent !important;
    box-shadow: 0 4px 12px rgba(139, 47, 57, 0.3) !important;
}

/* Page background texture */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(196, 169, 98, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 47, 57, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Download Image Button */
.image-action-btn {
    transition: all 0.3s ease;
}

.image-action-btn:hover:not(:disabled) {
    background: #6d5842 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.image-action-btn:active:not(:disabled) {
    transform: translateY(0);
}

.image-action-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ============================================
   Mobile Improvements
   ============================================ */

/* Enhanced Mobile Navigation */
@media (max-width: 768px) {
    .top-nav {
        padding: 12px 16px;
    }
    
    .logo {
        font-size: 18px;
    }
    
    /* Make search sidebar full width on mobile */
    .search-results-layout {
        display: flex;
        flex-direction: column;
    }
    
    .search-sidebar {
        width: 100%;
        max-width: 100%;
        padding: var(--space-4);
    }
    
    .results-main-area {
        width: 100%;
        padding: var(--space-4);
    }
    
    /* Smaller hero title on mobile */
    .hero-title {
        font-size: 32px;
        margin-bottom: 8px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    /* Touch-friendly buttons */
    .search-btn-primary,
    .search-btn-secondary {
        min-height: 44px;
        padding: 12px 20px;
    }
    
    /* Filter section mobile */
    .filter-section {
        margin-bottom: 16px;
    }
    
    .filter-chips {
        gap: 8px;
    }
    
    .filter-chip {
        min-height: 36px;
        padding: 8px 12px;
        font-size: 13px;
    }
    
    /* Source filters in rows on mobile */
    .source-filters {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .source-filter-item label {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    /* Results grid responsive */
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .artwork-card {
        border-radius: 8px;
    }
    
    .artwork-title {
        font-size: 13px;
    }
    
    .artwork-creator {
        font-size: 12px;
    }
    
    /* Detail Modal Mobile Optimizations - Complete Redesign */
    .modal-wrapper {
        padding: 0;
    }
    
    .modal-content-detail {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        background: var(--bg-primary);
    }
    
    .modal-header-detail {
        padding: 12px 16px;
        position: sticky;
        top: 0;
        background: var(--bg-primary);
        z-index: 100;
        border-bottom: 1px solid var(--border-light);
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }
    
    .modal-body-detail {
        padding: 0;
        max-height: none;
        overflow-y: visible;
    }
    
    .detail-grid {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    
    .detail-image-column {
        position: relative;
        top: auto;
        width: 100%;
        background: var(--bg-canvas);
    }
    
    .detail-image-wrapper {
        padding: 20px;
        margin-bottom: 0;
        max-height: none;
        background: var(--bg-canvas);
    }
    
    .detail-image {
        max-height: 50vh;
        width: 100%;
        height: auto;
        object-fit: contain;
    }
    
    /* Title and creator section */
    .detail-info-column {
        padding: 20px 16px;
    }
    
    .detail-title {
        font-size: 24px;
        line-height: 1.2;
        margin-bottom: 8px;
        color: var(--text-primary);
        font-weight: 700;
    }
    
    .detail-creator {
        font-size: 16px;
        margin-bottom: 16px;
        color: var(--text-secondary);
        font-weight: 500;
    }
    
    .detail-favorite-btn {
        font-size: 15px;
        padding: 14px 24px;
        width: 100%;
        margin-bottom: 20px;
        min-height: 48px;
    }
    
    /* Quick info grid - 2 columns on mobile */
    .quick-info-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        margin-bottom: 24px;
    }
    
    .quick-info-item {
        padding: 12px;
        background: var(--bg-secondary);
        border-radius: 8px;
        border: 1px solid var(--border-light);
    }
    
    .quick-info-label {
        font-size: 10px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        font-weight: 600;
        color: var(--text-tertiary);
        margin-bottom: 4px;
    }
    
    .quick-info-value {
        font-size: 14px;
        color: var(--text-primary);
        font-weight: 500;
        line-height: 1.3;
        word-break: break-word;
    }
    
    /* Sections - Better spacing */
    .detail-section {
        margin-bottom: 0;
        padding: 20px 16px;
        border-bottom: 1px solid var(--border-light);
        background: var(--bg-primary);
    }
    
    .detail-section:last-child {
        border-bottom: none;
    }
    
    .section-title {
        font-size: 18px;
        margin-bottom: 16px;
        color: var(--text-primary);
        font-weight: 700;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .section-text {
        font-size: 15px;
        line-height: 1.7;
        color: var(--text-primary);
    }
    
    /* Detail items - Full width, better readability */
    .detail-item {
        padding: 16px 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        border-bottom: 1px solid var(--border-light);
    }
    
    .detail-item:last-child {
        border-bottom: none;
    }
    
    .detail-label {
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        font-weight: 600;
        color: var(--text-tertiary);
        width: 100%;
    }
    
    .detail-value {
        font-size: 15px;
        width: 100%;
        color: var(--text-primary);
        line-height: 1.6;
        word-break: break-word;
    }
    
    .detail-value a {
        color: var(--primary-gold);
        text-decoration: none;
        font-weight: 500;
    }
    
    .detail-value a:hover {
        text-decoration: underline;
    }
        margin-bottom: var(--space-1);
    }
    
    .detail-value {
        font-size: 14px;
        width: 100%;
    }
    
    /* Download button mobile */
    .detail-image-actions {
        flex-direction: column;
        gap: var(--space-2);
    }
    
    .image-action-btn {
        width: 100%;
        justify-content: center;
        padding: 12px;
        font-size: 14px;
    }
    
    /* Close button mobile */
    .modal-close-detail {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        z-index: 20;
    }
    
    /* Breadcrumb mobile */
    .detail-breadcrumb {
        font-size: 12px;
        flex-wrap: wrap;
        gap: var(--space-1);
    }
    
    /* Artists grid mobile */
    .artists-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .artist-card {
        padding: 14px;
    }
    
    .artist-name {
        font-size: 14px;
    }
    
    .artist-dates {
        font-size: 12px;
    }
    
    /* Data source attribution mobile */
    .data-source-attribution {
        padding: var(--space-4);
        margin-top: var(--space-5);
    }
    
    .data-source-attribution h4 {
        font-size: 14px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .search-sidebar {
        padding: var(--space-3);
    }
    
    .results-main-area {
        padding: var(--space-3);
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    /* Stack source filters */
    .source-filters {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    /* Single column results on very small screens */
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .artists-grid {
        grid-template-columns: 1fr;
    }
    
    /* Modal takes full screen */
    .modal-wrapper {
        padding: 0;
    }
    
    .modal-close-detail {
        width: 36px;
        height: 36px;
        top: 8px;
        right: 8px;
    }
    
    .breadcrumb {
        font-size: 11px;
    }
    
    /* Detail modal - smaller spacing */
    .modal-header-detail {
        padding: 12px;
    }
    
    .modal-body-detail {
        padding: 12px;
    }
    
    .detail-grid {
        gap: 16px;
    }
    
    .detail-title {
        font-size: 20px;
    }
    
    .detail-image {
        max-height: 300px;
    }
    
    .detail-image-wrapper {
        padding: var(--space-3);
    }
    
    .detail-section {
        padding: var(--space-3);
        margin-bottom: var(--space-4);
    }
    
    .section-title {
        font-size: 15px;
    }
    
    .detail-item {
        padding: var(--space-2) 0;
    }
    
    .detail-favorite-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    /* Make quick info more compact */
    .quick-info-item {
        padding: var(--space-2);
    }
    
    .quick-info-label {
        font-size: 10px;
    }
    
    .quick-info-value {
        font-size: 12px;
    }
}

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .favorite-btn,
    .modal-close-detail,
    .section-toggle,
    .image-action-btn,
    .detail-favorite-btn {
        min-width: 44px;
        min-height: 44px;
    }
    
    /* Better touch feedback */
    * {
        -webkit-tap-highlight-color: rgba(196, 169, 98, 0.2);
    }
    
    /* Remove hover effects on touch devices */
    .artwork-card:hover {
        transform: none;
        box-shadow: var(--shadow-md);
    }
    
    .image-action-btn:hover:not(:disabled) {
        transform: none;
    }
    
    .breadcrumb-link:hover {
        color: var(--text-secondary);
    }
    
    /* Active states for touch feedback */
    .artwork-card:active {
        transform: scale(0.98);
        opacity: 0.95;
    }
    
    button:active,
    .image-action-btn:active {
        opacity: 0.8;
        transform: scale(0.97);
    }
    
    a:active {
        opacity: 0.7;
    }
    
    /* Improve scrolling on iOS */
    .modal-body-detail,
    .modal-content-detail {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Prevent text selection during touch interactions */
    .artwork-card,
    .favorite-btn,
    button {
        -webkit-user-select: none;
        user-select: none;
    }
}

/* =========================================
   VIEW TOGGLE & GRAPH VISUALIZATION
   ========================================= */

/* Results header with toggle */
.results-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

/* View Toggle Buttons */
.view-toggle-container {
    padding: 8px;
    background: linear-gradient(135deg, #f8f7f5 0%, #f0ede8 100%);
    border-radius: 12px;
    margin-bottom: 16px;
    border: 1px solid var(--border-light);
}

.view-toggle {
    display: flex;
    flex-direction: row;
    background: white;
    border-radius: 8px;
    padding: 4px;
    gap: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-light);
}

.view-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--text-tertiary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    line-height: 1;
}

.view-toggle-btn:hover {
    background: var(--bg-subtle);
    color: var(--primary);
}

.view-toggle-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(139, 115, 85, 0.35);
}

.view-toggle-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    display: block;
}

.view-toggle-btn.active svg {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.view-toggle-btn span {
    display: block;
}

/* Graph Container */
.graph-container {
    position: relative;
    width: 100%;
    min-height: 700px;
    background: #2c1810; /* Dark wood background for the "screen" */
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 
        0 40px 100px rgba(0,0,0,0.3),
        inset 0 0 100px rgba(0,0,0,0.5);
    border: 25px solid #2c1810; /* Heavy wood frame */
    outline: 2px solid #c4a962; /* Gold inlay */
    outline-offset: -12px;
}

.graph-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--bg-canvas);
    background-image: var(--texture-paper);
    opacity: 0.95;
    pointer-events: none;
    z-index: 0;
}

.graph-canvas {
    position: relative;
    z-index: 1;
}

.graph-container.fullscreen {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    z-index: 2000;
    background: #2c1810;
    box-shadow: none;
    border: 40px solid #2c1810;
}

.graph-container.fullscreen::before {
    opacity: 0.98;
}

.graph-container.fullscreen .graph-canvas {
    padding: 100px 80px 80px;
    min-height: calc(100vh - 180px);
    height: calc(100vh - 180px);
}

.graph-container.fullscreen .graph-toolbar {
    top: 24px;
    left: 24px;
    right: 24px;
}

body.graph-fullscreen-active {
    overflow: hidden;
}

.graph-container.hidden {
    display: none;
}

/* Graph Filter Indicator */
.graph-filter-indicator {
    position: absolute;
    top: 30px;
    left: 30px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: min(360px, calc(100% - 60px));
    padding: 16px 20px;
    background: #fff;
    background-image: var(--texture-paper);
    border: 1px solid var(--border-gold);
    border-radius: 2px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.graph-filter-indicator.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.graph-filter-indicator .filter-indicator-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.graph-filter-indicator .filter-label {
    font-size: 13px;
    color: var(--text-main);
    font-family: var(--font-serif);
}

.graph-filter-indicator .filter-label strong {
    color: var(--primary);
}

.graph-filter-indicator .filter-reset-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--primary);
    border: none;
    border-radius: 2px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.graph-filter-indicator .filter-reset-btn:hover {
    background: var(--primary-gold);
    transform: translateY(-2px);
}

/* Filter path (breadcrumb) styles */
.graph-filter-indicator .filter-path {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    flex-wrap: wrap;
    flex: 1;
}

.graph-filter-indicator .path-separator {
    color: var(--border-gold);
    font-weight: bold;
}

.graph-filter-indicator .path-item {
    padding: 4px 10px;
    border-radius: 2px;
    transition: all 0.2s ease;
    background: #f9f7f2;
    border: 1px solid var(--border-light);
}

.graph-filter-indicator .path-item[data-node]:hover {
    background: #fff;
    border-color: var(--primary-gold);
    color: var(--primary);
}

.graph-filter-indicator .path-item.active {
    background: var(--primary-gold);
    color: white;
    border-color: var(--primary-gold);
    font-weight: 600;
    cursor: default;
}

.graph-filter-indicator .path-item.path-search {
    font-size: 14px;
    padding: 3px 6px;
}

.graph-filter-indicator .path-item.path-museum {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.graph-filter-indicator .path-item.path-type {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.graph-filter-indicator .path-item.path-creator {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: #f3e5f5;
    border-color: #9b59b6;
    color: #7b1fa2;
}

.graph-filter-indicator .path-item.path-technique {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: #e3f2fd;
    border-color: #90caf9;
    color: #1b4f72;
}

.graph-filter-indicator .path-item.path-period {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: #fff4e0;
    border-color: #f0b27a;
    color: #a04000;
}

.graph-filter-indicator .filter-chip-groups {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-chip-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chip-group-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #a26b00;
}

.chip-group-items {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(240, 193, 75, 0.5);
    background: white;
    color: #6b4a00;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-chip .chip-icon {
    font-size: 14px;
}

.filter-chip .chip-count {
    font-size: 11px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.07);
}

.filter-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(240, 193, 75, 0.3);
}

.filter-chip.type-creator {
    background: #f7ecff;
    border-color: #d4b5f2;
    color: #5c2a8e;
}

.filter-chip.type-creator .chip-count {
    background: rgba(92, 42, 142, 0.12);
    color: #5c2a8e;
}

.filter-chip.type-technique {
    background: #e9f2ff;
    border-color: #a6c8ff;
    color: #1f4f91;
}

.filter-chip.type-technique .chip-count {
    background: rgba(31, 79, 145, 0.12);
    color: #1f4f91;
}

.filter-chip.type-period {
    background: #fff3e0;
    border-color: #f4c27c;
    color: #a25611;
}

.filter-chip.type-period .chip-count {
    background: rgba(162, 86, 17, 0.12);
    color: #a25611;
}

/* ============================================
   NEW GRAPH TOOLBAR - Redesigned UX
   ============================================ */

.graph-toolbar-new {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 30px;
    background: #fffef9;
    background-image: var(--texture-paper);
    border-bottom: 2px solid #c4a962;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Mode Tabs */
.graph-mode-tabs {
    display: flex;
    gap: 10px;
    background: #f0e8db;
    padding: 6px;
    border-radius: 2px;
    border: 1px solid #d4c4b0;
}

.graph-mode-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: 2px;
    font-size: 11px;
    font-weight: 700;
    color: #5a4a3a;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.graph-mode-tab:hover {
    background: #fffef9;
    color: #2c1810;
    transform: translateY(-2px);
}

.graph-mode-tab.active {
    background: #2c1810;
    color: #fffef9;
    box-shadow: 0 8px 20px rgba(44, 24, 16, 0.3);
}

.graph-mode-tab svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.graph-mode-tab span {
    white-space: nowrap;
}

/* Layout Selector (quick access) */
.graph-layout-selector {
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid var(--border-gold);
}

.graph-layout-select {
    padding: 10px 16px;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 2px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 160px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.graph-layout-select:hover {
    border-color: var(--primary-gold);
    background: #f9f7f2;
}

/* Toolbar Actions (right side) */
.graph-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.graph-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 2px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.graph-action-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.graph-action-btn:hover {
    background: #f8f7f5;
    border-color: var(--primary, #8B7355);
    color: var(--primary, #8B7355);
}

.graph-action-btn:active {
    transform: scale(0.95);
}

.graph-action-btn svg {
    width: 16px;
    height: 16px;
}

.graph-action-btn .icon-exit {
    display: none;
}

.graph-action-btn[data-fullscreen="true"] .icon-enter {
    display: none;
}

.graph-action-btn[data-fullscreen="true"] .icon-exit {
    display: block;
}

/* Settings Dropdown */
.graph-settings-dropdown {
    position: relative;
}

.graph-settings-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.graph-settings-btn:hover {
    background: #f8f7f5;
    border-color: var(--primary, #8B7355);
    color: var(--primary, #8B7355);
}

.graph-settings-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 240px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    padding: 12px;
    z-index: 200;
}

.graph-settings-panel.hidden {
    display: none;
}

.settings-section {
    margin-bottom: 12px;
}

.settings-section:last-child {
    margin-bottom: 0;
}

.settings-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.settings-select {
    width: 100%;
    padding: 8px 10px;
    font-size: 13px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fafafa;
    color: #333;
    cursor: pointer;
}

.settings-select:focus {
    outline: none;
    border-color: var(--primary, #8B7355);
}

.settings-range {
    width: calc(100% - 40px);
    margin-right: 8px;
    vertical-align: middle;
}

.settings-value {
    display: inline-block;
    min-width: 24px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.settings-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
}

.settings-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary, #8B7355);
}

.settings-divider {
    height: 1px;
    background: #e8e8e8;
    margin: 12px 0;
}

.settings-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
}

.settings-action-btn:hover {
    background: #eee;
    border-color: #ccc;
}

/* Graph Canvas adjustment for new toolbar */
.graph-container .graph-canvas {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
}

/* OLD toolbar - hide it */
.graph-toolbar {
    display: none !important;
}

/* ============================================
   Responsive adjustments
   ============================================ */
@media (max-width: 768px) {
    .graph-mode-tabs {
        gap: 2px;
        padding: 3px;
    }
    
    .graph-mode-tab {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .graph-mode-tab span {
        display: none;
    }
    
    .graph-mode-tab svg {
        width: 18px;
        height: 18px;
    }
    
    .graph-layout-selector {
        margin-left: 8px;
        padding-left: 8px;
    }
    
    .graph-layout-select {
        padding: 6px 8px;
        font-size: 12px;
        min-width: 100px;
    }
    
    .graph-settings-panel {
        width: 200px;
    }
}

/* Fullscreen mode adjustments */
.graph-container.fullscreen .graph-toolbar-new {
    padding: 16px 24px;
}

.graph-container.fullscreen .graph-canvas {
    top: 70px;
}

/* OLD Toolbar Styles (kept for compatibility but hidden) */

.dimension-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f5f5f5;
    border: 1px solid transparent;
}

.dimension-toggle:hover {
    background: #ede7f6;
    border-color: #9b59b6;
}

.dimension-toggle input[type="checkbox"] {
    display: none;
}

.dimension-toggle input[type="checkbox"]:checked + .toggle-icon {
    opacity: 1;
}

.dimension-toggle input[type="checkbox"]:not(:checked) + .toggle-icon {
    opacity: 0.4;
}

.dimension-toggle input[type="checkbox"]:checked ~ .toggle-text {
    color: #333;
}

.dimension-toggle input[type="checkbox"]:not(:checked) ~ .toggle-text {
    color: #999;
    text-decoration: line-through;
}

.dimension-toggle .toggle-icon {
    font-size: 14px;
    transition: opacity 0.2s ease;
}

.dimension-toggle .toggle-text {
    font-size: 11px;
    font-weight: 500;
    transition: color 0.2s ease;
}

/* Active state for dimension toggle */
.dimension-toggle:has(input:checked) {
    background: #f3e5f5;
    border-color: #ce93d8;
}

.graph-canvas {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 600px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Central Search Node */
.graph-node {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.graph-node:hover {
    transform: scale(1.08);
    z-index: 20;
}

.graph-node.search-node {
    width: 120px;
    height: 120px;
}

.graph-node.search-node .node-circle {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary) 0%, #6d5a47 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(139, 115, 85, 0.4);
    border: 4px solid white;
}

.graph-node.search-node .node-icon {
    width: 40px;
    height: 40px;
    color: white;
}

.graph-node.search-node .node-label {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    max-width: 150px;
    word-wrap: break-word;
}

/* Museum Node */
.graph-node.museum-node {
    width: 100px;
    height: 100px;
}

.graph-node.museum-node .node-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
    border: 3px solid white;
    transition: all 0.3s ease;
}

.graph-node.museum-node:hover .node-circle {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.graph-node.museum-node .node-icon {
    width: 32px;
    height: 32px;
    color: white;
}

.graph-node.museum-node .node-label {
    margin-top: 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    max-width: 120px;
}

.graph-node.museum-node .node-count {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Object Type Node */
.graph-node.type-node {
    width: 70px;
    height: 70px;
}

.graph-node.type-node .node-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 2px solid white;
    font-size: 20px;
}

.graph-node.type-node .node-label {
    margin-top: 8px;
    font-size: 10px;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
    max-width: 80px;
}

.graph-node.type-node .node-count {
    font-size: 10px;
    color: var(--text-tertiary);
}

/* Artwork Node (mini thumbnail) */
.graph-node.artwork-node {
    width: 60px;
    height: 60px;
}

.graph-node.artwork-node .node-circle {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
    border: 2px solid white;
}

.graph-node.artwork-node .node-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.graph-node.artwork-node:hover {
    transform: scale(1.2);
}

/* Connection Lines (SVG) */
.graph-connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.graph-connection {
    stroke: var(--border-light);
    stroke-width: 2;
    fill: none;
    opacity: 0.6;
}

.graph-connection.highlighted {
    stroke: var(--primary);
    stroke-width: 3;
    opacity: 1;
}

.graph-connection.museum-connection {
    stroke-width: 3;
}

.graph-connection.type-connection {
    stroke-width: 2;
    stroke-dasharray: 4, 4;
}

/* Graph Legend */
.graph-legend {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: white;
    display: block;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.graph-legend h4 {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.legend-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--text-secondary);
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
}

.legend-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 4px 0;
}

.legend-item.legend-creator {
    color: #7f8c8d;
}

.legend-item.legend-creator-cross {
    color: #9b59b6;
    font-weight: 500;
}

/* Graph Tooltip */
.graph-tooltip {
    position: absolute;
    background: white;
    padding: 12px 16px;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    pointer-events: none;
    max-width: 250px;
    font-size: 13px;
}

.graph-tooltip.hidden {
    display: none;
}

.graph-tooltip-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.graph-tooltip-subtitle {
    color: var(--text-secondary);
    font-size: 12px;
}

.graph-tooltip-count {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid var(--border-light);
    font-size: 11px;
    color: var(--text-tertiary);
}

/* Expand/Collapse animations */
.graph-node.expanding {
    animation: nodeExpand 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes nodeExpand {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.graph-node.collapsed {
    transform: scale(0);
    opacity: 0;
}

/* Graph controls */
.graph-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 100;
}

.graph-control-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: white;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.graph-control-btn:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 115, 85, 0.3);
}

/* Museum colors */
.museum-rijksmuseum { background: linear-gradient(135deg, #8B7355 0%, #6d5a47 100%); }
.museum-kunstmuseum { background: linear-gradient(135deg, #2c5f2d 0%, #1e4620 100%); }
.museum-europeana { background: linear-gradient(135deg, #0a72cc 0%, #0859a1 100%); }
.museum-rmo { background: linear-gradient(135deg, #d4a574 0%, #b8906a 100%); }
.museum-met { background: linear-gradient(135deg, #ce1126 0%, #a00e1e 100%); }
.museum-louvre { background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1a 100%); }

/* Type node colors (pastel) */
.type-painting { background: linear-gradient(135deg, #FFE4C4 0%, #DEB887 100%); }
.type-drawing { background: linear-gradient(135deg, #E6E6FA 0%, #D8BFD8 100%); }
.type-print { background: linear-gradient(135deg, #F0FFF0 0%, #98FB98 100%); }
.type-sculpture { background: linear-gradient(135deg, #FFF0F5 0%, #FFB6C1 100%); }
.type-photograph { background: linear-gradient(135deg, #F0F8FF 0%, #87CEEB 100%); }
.type-default { background: linear-gradient(135deg, #F5F5F5 0%, #DCDCDC 100%); }

/* Draggable Nodes */
.graph-node.draggable {
    cursor: grab;
    user-select: none;
}

.graph-node.draggable:active {
    cursor: grabbing;
}

/* Dragging State */
.graph-node.dragging {
    z-index: 100 !important;
    transform: scale(1.05);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    cursor: grabbing;
}

.graph-node.dragging .node-circle {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

/* Expand Hint Arrow */
.node-expand-hint {
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 8px;
    color: var(--text-tertiary);
    opacity: 0;
    transition: opacity 0.2s;
}

.graph-node:hover .node-expand-hint {
    opacity: 0.7;
}

/* Type Circle Background */
.node-circle.type-circle {
    background: linear-gradient(135deg, #f8f8f8 0%, #e8e8e8 100%);
}

/* Artwork Circle */
.node-circle.artwork-circle {
    background: #f0f0f0;
}

/* More Node */
.more-node .node-circle.more-circle {
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Search Circle */
.node-circle.search-circle {
    background: linear-gradient(135deg, var(--primary) 0%, #6d5a47 100%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(139, 115, 85, 0.35);
    border: 3px solid white;
    color: white;
}

/* Graph Tooltip Updates */
.graph-tooltip .tooltip-title {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-primary);
}

.graph-tooltip .tooltip-subtitle {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.graph-tooltip .tooltip-extra {
    font-size: 10px;
    color: var(--text-tertiary);
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid var(--border-light);
}

/* Landscape mode on mobile */
@media (max-width: 896px) and (orientation: landscape) {
    .detail-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .detail-image-wrapper {
        max-height: 400px;
    }
    
    .modal-body-detail {
        max-height: calc(100vh - 50px);
    }
}

/* ===========================================
   CYTOSCAPE.JS GRAPH STYLES
   =========================================== */

/* Graph Canvas - Cytoscape Container */
.graph-canvas {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 600px;
    background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);
    border-radius: 8px;
}

/* Layout Selector */
.graph-layout-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.graph-layout-select:hover {
    border-color: var(--primary);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.graph-layout-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.15);
}

/* Cytoscape Tooltip */
.cytoscape-tooltip {
    position: fixed;
    background: white;
    padding: 12px 16px;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    pointer-events: none;
    max-width: 280px;
    font-size: 13px;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.cytoscape-tooltip.visible {
    opacity: 1;
}

.cytoscape-tooltip .tooltip-title {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.cytoscape-tooltip .tooltip-subtitle {
    font-size: 11px;
    color: var(--text-secondary);
}

.cytoscape-tooltip .tooltip-extra {
    font-size: 10px;
    color: var(--text-tertiary);
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid var(--border-light);
}

/* Legend clickable items */
.legend-item {
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.legend-item:hover {
    background: rgba(139, 115, 85, 0.1);
}

/* Graph toolbar improvements */
.graph-toolbar {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

/* ============================================
   Welcome Screen / Splash Screen
   ============================================ */
.welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary);
    background-image: 
        linear-gradient(rgba(44, 24, 16, 0.85), rgba(44, 24, 16, 0.85)),
        url('https://www.rijksmuseum.nl/assets/2/0/SK-C-5.jpg?s=2048');
    background-size: cover;
    background-position: center;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.welcome-screen.hidden {
    display: none;
}

.welcome-content {
    max-width: 800px;
    width: 100%;
    background: var(--bg-canvas);
    background-image: var(--texture-paper);
    border-radius: 2px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    padding: 60px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--border-gold);
    position: relative;
}

.welcome-content::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 1px solid var(--border-gold);
    pointer-events: none;
}

.welcome-header {
    text-align: center;
    margin-bottom: 40px;
}

.welcome-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--primary-gold);
    margin-bottom: 12px;
    font-weight: 700;
}

.welcome-header h1 {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    letter-spacing: -0.02em;
    font-weight: 700;
}

.welcome-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.welcome-start-btn-top {
    margin-top: 18px;
    display: flex;
    margin-left: auto;
    margin-right: auto;
}

.welcome-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.welcome-column h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--primary);
    font-weight: 700;
    border-bottom: 2px solid var(--primary-gold);
    display: inline-block;
    padding-bottom: 5px;
}

.welcome-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.welcome-list.compact {
    gap: 12px;
}

.welcome-list li {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
}

.welcome-list li:last-child {
    border-bottom: none;
}

.list-title {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.list-text {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.welcome-note {
    margin-top: 18px;
    font-size: 0.85rem;
    color: var(--text-tertiary);
    line-height: 1.4;
}

.welcome-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid var(--bg-tertiary);
}

.welcome-start-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: var(--primary);
    color: white;
    border: 1px solid var(--primary);
    border-radius: 2px;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.welcome-start-btn:hover {
    background: transparent;
    color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.welcome-start-btn:active {
    transform: translateY(-2px);
}

.welcome-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-tertiary);
    font-size: 0.9rem;
    cursor: pointer;
}

.welcome-remember input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-gold);
    cursor: pointer;
}

.welcome-meta {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--bg-accent);
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-tertiary);
    flex-wrap: wrap;
    gap: 8px;
}

/* Mobile responsive for welcome screen */
@media (max-width: 600px) {
    .welcome-content {
        padding: 24px;
    }
    
    .welcome-header h1 {
        font-size: 1.8rem;
    }
    
    .welcome-layout {
        gap: 20px;
    }
    
    .welcome-start-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Responsive styles for graph dimension toggles */
@media (max-width: 900px) {
    .graph-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .graph-dimension-toggles {
        flex-wrap: wrap;
        width: 100%;
    }
    
    .dimension-label {
        width: 100%;
        margin-bottom: 4px;
    }
    
    .graph-toolbar > *:last-child {
        margin-left: 0;
    }
}

@media (max-width: 600px) {
    .dimension-toggle .toggle-text {
        display: none;
    }
    
    .dimension-toggle {
        padding: 6px;
    }
    
    .graph-dimension-toggles {
        gap: 4px;
        padding: 6px 8px;
    }
}
