/* Ethiopian Art Gallery — Custom Styles */

:root {
    --color-background: #f5efe0;
    --color-foreground: #2a2520;
    --color-primary: #3a2818;
    --color-accent: #c9882a;
    --color-border: #ddd2b8;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--color-background);
    color: var(--color-foreground);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.font-serif {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

.font-sans {
    font-family: 'Inter', -apple-system, sans-serif;
}

/* Tracking */
.tracking-wider-label {
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

/* Editorial link underline */
.editorial-link {
    position: relative;
    display: inline-block;
}
.editorial-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.editorial-link:hover::after {
    width: 100%;
}

/* Artwork frame hover */
.artwork-frame {
    position: relative;
    overflow: hidden;
}
.artwork-frame img {
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.artwork-frame:hover img {
    transform: scale(1.04);
}

/* Animations */
@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up {
    animation: fade-in-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
.animate-fade-in {
    animation: fade-in 0.8s ease both;
}

@keyframes slow-zoom {
    from { transform: scale(1.0); }
    to { transform: scale(1.08); }
}
.animate-slow-zoom {
    animation: slow-zoom 20s ease-out both;
}

/* Shimmer loading */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}
.shimmer {
    background: linear-gradient(90deg, #ebe3d0 0%, #f5efe0 50%, #ebe3d0 100%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
}

/* Line clamp */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-4 {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 3D Canvas container */
#vg-canvas canvas {
    display: block;
    outline: none;
    touch-action: none;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: var(--color-background);
}
::-webkit-scrollbar-thumb {
    background: #9a8e7a;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .animate-slow-zoom {
        animation: none !important;
    }
}

/* Form inputs default styling */
input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--color-accent) !important;
}

/* Table responsive */
table {
    width: 100%;
    border-collapse: collapse;
}

/* Modal backdrop */
.fixed.inset-0 {
    backdrop-filter: blur(4px);
}
