/* public/css/gallery.css */

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #8B2635;
    --secondary-color: #D4AF37;
    --tertiary-color: #2D5F4F;
    --text-primary: #2B2B2B;
    --text-secondary: #666;
    --bg-primary: #FAFAF8;
    --bg-white: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: 0.03em;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Scroll Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transition: var(--transition-slow);
}

.animate-on-scroll.animated {
    opacity: 1;
    animation: fadeInUp 0.8s ease-out forwards;
}

.stagger-animation {
    opacity: 0;
}

.stagger-animation.animated {
    opacity: 1;
    animation: fadeIn 0.6s ease-out forwards;
}

/* ==================== NAVIGATION ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition-smooth);
    padding: 1.5rem 0;
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition-smooth);
    z-index: 10;
}

.logo {
    height: auto;
    width: auto;
    max-height: 60px;
    max-width: 180px;
    object-fit: contain;
    display: block;
    transition: var(--transition-smooth);
}

.logo-white {
    display: block !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.logo-black {
    display: none !important;
}

.navbar.scrolled .logo-white {
    display: none !important;
}

.navbar.scrolled .logo-black {
    display: block !important;
}

.navbar.scrolled .logo {
    max-height: 50px;
    max-width: 150px;
}

.logo-link:hover .logo {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: white;
    position: relative;
    padding: 0.5rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: var(--transition-smooth);
}

.navbar.scrolled .nav-link {
    color: var(--text-primary);
    text-shadow: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.navbar.scrolled .nav-link::after {
    background-color: var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color);
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    position: relative;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background-color: white;
    transition: var(--transition-smooth);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.navbar.scrolled .mobile-menu-btn span {
    background-color: var(--text-primary);
    box-shadow: none;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translateY(7px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-7px);
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
    min-height: 100vh;
    padding-top: 100px; /* Account for fixed navbar */
}

/* Hero section should start at absolute top (behind navbar) */
.main-content > .hero:first-child {
    margin-top: -100px; /* Compensate for main-content padding */
    padding-top: 0;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 4rem;
    letter-spacing: 0.05em;
}

/* ==================== HERO SECTION ==================== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 0;
    padding-top: 0;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.6);
    animation: parallaxBg 20s ease-in-out infinite alternate;
}

@keyframes parallaxBg {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.05);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    animation: fadeIn 1.2s ease-out;
}

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-subtitle {
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-cta {
    padding: 1rem 2.5rem;
    border: 2px solid var(--secondary-color);
    color: white;
    font-weight: 600;
    letter-spacing: 0.12em;
    transition: var(--transition-smooth);
    animation: fadeInUp 1s ease-out 0.9s both;
}

.hero-cta:hover {
    background-color: var(--secondary-color);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    transform: translateX(-50%);
    animation: float 2s ease-in-out infinite;
}

.scroll-indicator svg {
    width: 32px;
    height: 32px;
    color: white;
}

/* ==================== CARDS & GRID ==================== */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.card {
    background-color: var(--bg-white);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

.card-img-wrapper {
    position: relative;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover .card-img {
    transform: scale(1.08);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 2rem;
    text-align: center;
}

.card:hover .card-overlay {
    opacity: 1;
}

.card-overlay-title {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.1s;
}

.card:hover .card-overlay-title {
    transform: translateY(0);
}

.card-overlay-text {
    color: white;
    font-size: 0.95rem;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.2s;
}

.card:hover .card-overlay-text {
    transform: translateY(0);
}

.card-body {
    padding: 2rem;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.card-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Mobile card info (shown below image on touch devices) */
.card-info-mobile {
    display: none;
    padding: 1rem;
    background-color: var(--bg-white);
    text-align: center;
}

.card-info-title {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
    font-weight: 600;
}

.card-info-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Event card specific styles */
.event-card {
    min-height: 0;
}

.event-card .card-body {
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.event-card .card-title {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.event-card .card-img {
    max-width: 100%;
}

/* ==================== EXHIBITIONS TABS ==================== */
.exhibitions-tabs {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 4rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.exhibitions-tabs::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    padding: 1rem 2rem;
    background: none;
    border: none;
    font-family: 'Lato', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    cursor: pointer;
    color: var(--text-secondary);
    border-bottom: 3px solid transparent;
    transition: var(--transition-smooth);
    white-space: nowrap;
    flex-shrink: 0;
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    color: var(--text-primary);
    border-bottom-color: var(--primary-color);
}

/* ==================== COLLECTION SEARCH & FILTERS ==================== */
.collection-controls {
    margin-bottom: 3rem;
    width: 100%;
}

.collection-controls-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 250px;
    max-width: 400px;
}

.search-icon {
    position: absolute;
    left: 0;
    color: var(--text-secondary);
    pointer-events: none;
    opacity: 0.6;
}

.search-input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 2rem;
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    border: none;
    background-color: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    transition: var(--transition-smooth);
    color: var(--text-primary);
}

.search-input:focus {
    outline: none;
    border-bottom-color: var(--primary-color);
}

.search-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.5;
}

.search-clear {
    position: absolute;
    right: 0.5rem;
    color: var(--text-secondary);
    opacity: 0.5;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
}

.search-clear:hover {
    opacity: 1;
    color: var(--primary-color);
}

.filters-wrapper {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-select {
    padding: 0.5rem 1.5rem 0.5rem 0.5rem;
    font-family: 'Lato', sans-serif;
    font-size: 0.875rem;
    border: none;
    background-color: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    transition: var(--transition-smooth);
    cursor: pointer;
    color: var(--text-primary);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.25rem center;
    background-size: 10px;
    padding-right: 1.75rem;
    min-width: 140px;
}

.filter-select:focus {
    outline: none;
    border-bottom-color: var(--primary-color);
}

.filter-select:hover {
    border-bottom-color: var(--primary-color);
}

/* ==================== PAGINATION ==================== */
.pagination-wrapper {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pagination {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
    align-items: center;
}

.pagination li {
    margin: 0;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-family: 'Lato', sans-serif;
    font-size: 0.875rem;
    color: var(--text-primary);
    text-decoration: none;
    border: 1px solid #ddd;
    background-color: white;
    transition: var(--transition-smooth);
    min-width: 40px;
    text-align: center;
}

.pagination a:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination .active span {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    font-weight: 600;
}

.pagination .disabled span {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f5f5f5;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-family: 'Lato', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.12em;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    text-transform: uppercase;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    border: 2px solid var(--text-primary);
    background-color: transparent;
    color: var(--text-primary);
}

.btn-outline:hover {
    background-color: var(--text-primary);
    color: white;
}

.btn-gold {
    background-color: var(--secondary-color);
    color: var(--text-primary);
}

.btn-gold:hover {
    background-color: #C09A2D;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ==================== FORMS ==================== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    border: 1px solid #ddd;
    background-color: white;
    transition: var(--transition-smooth);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 38, 53, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

select.form-control {
    cursor: pointer;
}

/* ==================== FOOTER ==================== */
.footer {
    background-color: var(--text-primary);
    color: #bbb;
    padding: 4rem 0 2rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-title {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-text {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #bbb;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    color: #bbb;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-icon i {
    font-size: 20px;
    line-height: 1;
}

.social-icon:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
}

/* ==================== MODAL ==================== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    padding: 2rem;
    overflow-y: auto;
    animation: fadeIn 0.3s ease-out;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    max-width: 1200px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: scaleIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    background: none;
    border: none;
    transition: var(--transition-smooth);
    z-index: 10;
}

.modal-close:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 2rem;
    }
    
    .container {
        padding: 0 2rem;
    }
    
    .logo {
        max-height: 55px;
        max-width: 160px;
    }
    
    .navbar.scrolled .logo {
        max-height: 45px;
        max-width: 140px;
    }
    
    .main-content {
        padding-top: 90px; /* Adjusted for tablet navbar */
    }
    
    .main-content > .hero:first-child {
        margin-top: -90px;
    }
    
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 1.5rem;
    }
    
    .logo {
        max-height: 45px;
        max-width: 140px;
    }
    
    .navbar.scrolled .logo {
        max-height: 40px;
        max-width: 120px;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-md);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-smooth);
        gap: 1.5rem;
        z-index: 1000;
        pointer-events: none;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    
    /* Mobile menu links should be dark on white background */
    .nav-menu .nav-link {
        color: var(--text-primary);
        text-shadow: none;
    }
    
    .nav-menu .nav-link:hover,
    .nav-menu .nav-link.active {
        color: var(--primary-color);
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .main-content {
        padding-top: 80px; /* Adjusted for mobile navbar */
    }
    
    .main-content > .hero:first-child {
        margin-top: -80px;
    }
    
    .hero {
        align-items: flex-end;
        padding-bottom: 9rem;
    }
    
    .hero-content {
        margin-top: auto;
        padding-top: 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Show card info on mobile instead of relying on hover */
    .card-info-mobile {
        display: block;
    }
    
    /* Hide overlay on mobile since we show info below */
    .card-overlay {
        display: none;
    }
    
    .collection-controls-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .search-wrapper {
        min-width: 100%;
        max-width: 100%;
    }
    
    .filters-wrapper {
        width: 100%;
        flex-direction: column;
    }
    
    .filter-select {
        width: 100%;
        min-width: 100%;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .pagination a,
    .pagination span {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
        min-width: 35px;
    }
    
    /* Exhibitions tabs - keep in one line on mobile */
    .exhibitions-tabs {
        gap: 1rem;
        justify-content: center;
        padding-bottom: 0.5rem;
    }
    
    .tab-btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .exhibitions-tabs {
        gap: 0.75rem;
        justify-content: center;
    }
    
    .tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .logo {
        max-height: 38px;
        max-width: 120px;
    }
    
    .navbar.scrolled .logo {
        max-height: 35px;
        max-width: 100px;
    }
    
    .main-content {
        padding-top: 75px; /* Adjusted for small mobile navbar */
    }
    
    .main-content > .hero:first-child {
        margin-top: -75px;
    }
    
    .hero {
        padding-bottom: 7rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
}

/* ==================== UTILITY CLASSES ==================== */
.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--text-secondary); }
.text-gold { color: var(--secondary-color); }

.bg-white { background-color: var(--bg-white); }
.bg-primary { background-color: var(--bg-primary); }
.bg-burgundy { background-color: var(--primary-color); color: white; }

/* Empty states & spinner */
.empty-state {
    background: rgba(255,255,255,0.82);
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: flex-start;
    color: var(--text-secondary);
}
.empty-state h3 {
    margin: 0 0 0.35rem;
    color: var(--text-primary);
}
.spinner {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid rgba(0,0,0,0.08);
    border-top-color: var(--secondary-color);
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}