/* ============================================
   KAWAHYAH GALLERY - Single CSS Stylesheet
   Clean Minimalist Design - NO CONFLICTS
   ============================================ */

/* ---------- CSS Variables / Theme ---------- */
:root {
    --primary: #2c2c2c;
    --secondary: #5a5a5a;
    --accent: #8a7a6a;
    --background: #f8f6f2;
    --card-bg: #fffffffa;
    --border: #e0ddd6;
    --shadow: rgba(0,0,0,0.04);
    --shadow-hover: rgba(0,0,0,0.08);
    --radius: 20px;
    --radius-sm: 12px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- Reset & Base ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--background);
    color: var(--primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h1 { font-size: 2.8rem; font-weight: 300; }
h2 { font-size: 2rem; font-weight: 300; margin: 2rem 0 1.2rem; border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; }
h3 { font-size: 1.3rem; font-weight: 400; margin: 0.5rem 0; }
h4 { font-size: 1.1rem; font-weight: 500; }

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent);
}

/* ---------- Utilities ---------- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.text-center { text-align: center; }
.text-muted { color: var(--secondary); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.grid { display: grid; gap: 1.5rem; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 0.6rem 1.8rem;
    border-radius: 40px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    color: var(--primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font);
    text-align: center;
}

.btn:hover {
    background: #e3ded6;
    border-color: #b0a89b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-hover);
}

.btn-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: #3a3a3a;
    border-color: #3a3a3a;
    color: white;
}

.btn-danger {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.btn-danger:hover {
    background: #c82333;
    border-color: #c82333;
    color: white;
}

.btn-success {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.btn-success:hover {
    background: #218838;
    border-color: #218838;
    color: white;
}

.btn-sm {
    padding: 0.3rem 1rem;
    font-size: 0.8rem;
}

/* ---------- Header / Navigation ---------- */
.site-header {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0px;
    background: white;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.site-logo {
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: -0.02em;
}

.site-logo span {
    color: var(--accent);
}

.site-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.site-nav a {
    font-size: 0.95rem;
    padding: 0.3rem 0;
    border-bottom: 2px solid transparent;
    position: relative;
}

.site-nav a:hover,
.site-nav a.active {
    border-bottom-color: var(--accent);
}

/* Minimal Header - Override */
.minimal-header {
    padding: 1.5rem 0;
    border-bottom: 1px solid #efede7;
    background: white;
}

.minimal-header .site-nav a {
    font-weight: 300;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    border-bottom: none;
    color: #4a4a4a;
    padding: 0.3rem 0;
    position: relative;
}

.minimal-header .site-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: #8a7a6a;
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.minimal-header .site-nav a:hover::after,
.minimal-header .site-nav a.active::after {
    transform: scaleX(1);
}

.minimal-header .site-nav a.active {
    color: #4a4a4a;
}

/* ---------- Subhead ---------- */
.subhead {
    font-size: 1.2rem;
    color: var(--secondary);
    margin-bottom: 2rem;
}
/* ===== PREMIUM HERO ===== */
.hero-premium {
    position: relative;
    width: 100%;
    min-height: 620px;
    background: linear-gradient(135deg, #6B5344 0%, #8B7355 40%, #A0826A 100%);
    overflow: hidden;
    margin-bottom: 0;
}

/* Pill navbar */
.hero-pill-nav {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 60px;
    padding: 0.4rem 0.5rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.hero-pill-link {
    padding: 0.55rem 1.4rem;
    border-radius: 40px;
    font-size: 0.82rem;
    font-weight: 400;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: var(--transition);
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.hero-pill-link:hover {
    color: white;
    background: rgba(255,255,255,0.1);
}

.hero-pill-link.active {
    color: white;
    background: rgba(255,255,255,0.15);
}

.hero-pill-cta {
    padding: 0.55rem 1.5rem;
    border-radius: 40px;
    font-size: 0.82rem;
    font-weight: 500;
    color: white;
    text-decoration: none;
    background: linear-gradient(135deg, #D4A574 0%, #B8935F 100%);
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(212,165,116,0.35);
    white-space: nowrap;
}

.hero-pill-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(212,165,116,0.5);
    color: white;
}

/* Serif headline */
.hero-text h1 {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 4rem;
    font-weight: 400;
    line-height: 1.05;
    color: white;
    letter-spacing: -0.03em;
    margin-bottom: 1.2rem;
}

.hero-text h1 span {
    font-style: italic;
    font-weight: 400;
}

/* Hero grid */
.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 3rem;
    align-items: center;
}

/* Floating cards */
.hero-float-card,
.hero-float-card-top {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-float-card:hover {
    transform: translateY(-4px);
}

.hero-float-card-top:hover {
    transform: translateY(4px);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-premium {
        min-height: auto;
    }
    
    .hero-grid {
        grid-template-columns: 1fr !important;
        gap: 4rem !important;
    }
    
    .hero-text h1 {
        font-size: 3rem !important;
    }
    
    .hero-visual {
        order: -1;
        min-height: 380px !important;
    }
    
    .hero-float-card {
        left: 0 !important;
        bottom: -20px !important;
    }
    
    .hero-float-card-top {
        right: 0 !important;
        top: -20px !important;
    }
}

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2.4rem !important;
    }
    
    .hero-pill-logo {
        border: none !important;
        padding: 0.3rem 0.8rem !important;
        order: -1;
        width: 100%;
        justify-content: center;
        margin-bottom: 0.3rem;
    }
    
    .hero-pill-logo span:last-child {
        font-size: 0.8rem !important;
        letter-spacing: 1.5px !important;
    }
    
    .hero-pill-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-pill-link,
    .hero-pill-cta {
        padding: 0.45rem 1rem !important;
        font-size: 0.75rem !important;
    }
    
    .hero-visual {
        min-height: 320px !important;
    }
    
    .hero-float-card,
    .hero-float-card-top {
        transform: scale(0.9);
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem !important;
    }
    
    .hero-float-card {
        max-width: 200px !important;
        padding: 0.8rem 1rem !important;
    }
    
    .hero-float-card-top {
        padding: 0.6rem 0.8rem !important;
    }
}
/* ===== HERO PORTRAIT INTRO ===== */
@media (max-width: 768px) {
    .hero-text > div[style*="display: flex"][style*="align-items: center"] {
        flex-direction: row !important;
        gap: 0.9rem !important;
        padding: 0.8rem 1rem !important;
        max-width: 100% !important;
    }
    
    .hero-text > div[style*="display: flex"][style*="align-items: center"] > div:first-child > div {
        width: 68px !important;
        height: 68px !important;
    }
    
    .hero-text > div[style*="display: flex"][style*="align-items: center"] > div:last-child > div:first-child {
        font-size: 0.88rem !important;
    }
    
    .hero-text > div[style*="display: flex"][style*="align-items: center"] > div:last-child > div:last-child {
        font-size: 0.72rem !important;
    }
}

/* Brand name - responsive */
@media (max-width: 992px) {
    .hero-premium > div:first-child + div + div + div > a:first-child > span:last-child {
        font-size: 1.3rem !important;
    }
}

@media (max-width: 768px) {
    .hero-premium > div:nth-child(4) {
        padding: 1rem 1rem 0 !important;
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .hero-premium > div:first-child + div + div + div > a:first-child {
        margin-bottom: 0.5rem;
    }
    
    .hero-pill-nav {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
}

/* ===== FULL WIDTH CAROUSEL ===== */
.hero-carousel-fullwidth {
    width: 100%;
    margin-bottom: 3rem;
}

.carousel-container-fullwidth {
    position: relative;
    overflow: hidden;
    min-height: 520px;
    width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide-fullwidth {
    min-width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 520px;
    position: relative;
    overflow: hidden;
}

.carousel-slide-fullwidth .slide-content {
    padding: 3.5rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.carousel-slide-fullwidth .slide-image {
    height: 520px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.carousel-slide-fullwidth .slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide-fullwidth:hover .slide-image img {
    transform: scale(1.03);
}

/* Carousel Controls */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.4rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 2rem;
}

.carousel-btn.next {
    right: 2rem;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.6);
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.carousel-indicator:hover {
    transform: scale(1.2);
}

.carousel-indicator.active {
    background: white;
    border-color: white;
}

/* ===== HERO MINIMAL ===== */
.hero-minimal {
    padding: 4rem 0 3rem;
}

.hero-minimal h1 {
    font-size: 3.5rem;
    font-weight: 100;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

/* ===== FEATURED STRIP ===== */
.featured-strip {
    padding: 2rem 0 3rem;
    background: #faf9f6;
    border-top: 1px solid #efede7;
    border-bottom: 1px solid #efede7;
}

.featured-item {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.featured-item:hover {
    transform: translateY(-4px);
}

.featured-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== SIDEBAR ===== */
.filters-sidebar {
    position: sticky;
    top: 2rem;
    align-self: start;
}

/* ===== GALLERY GRID ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* ===== ARTWORK CARDS ===== */
.art-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.art-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px var(--shadow-hover);
}

/* Minimal Card - Override */
.minimal-card {
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.minimal-card:hover {
    transform: translateY(-4px);
    box-shadow: none;
}

/* Art Image */
.art-image {
    position: relative;
    overflow: hidden;
    background: #eae7e0;
    height: 240px;
}

.art-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.art-card:hover .art-image img {
    transform: scale(1.05);
}

.art-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: var(--transition);
}

.art-card:hover .art-overlay {
    opacity: 1;
}

.art-overlay .btn {
    background: white;
    border: none;
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
}

.art-overlay .btn:hover {
    background: var(--primary);
    color: white;
}

/* Art Body */
.art-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.art-title {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.art-desc {
    font-size: 0.9rem;
    color: var(--secondary);
    margin: 0.3rem 0 0.8rem;
    line-height: 1.5;
    flex: 1;
}

.art-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    font-size: 0.85rem;
    color: var(--secondary);
    margin: 0.5rem 0;
}

.art-meta .category {
    background: var(--background);
    padding: 0.1rem 0.8rem;
    border-radius: 20px;
}

.art-rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.stars {
    color: #f5c842;
    letter-spacing: 1px;
}

.art-references {
    font-size: 0.85rem;
    color: var(--secondary);
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
}

.art-references a {
    color: var(--accent);
    margin-right: 0.5rem;
}

.art-references a:hover {
    text-decoration: underline;
}

.art-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

/* ---------- Single Artwork Page ---------- */
.artwork-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 2rem 0;
}

.artwork-detail .art-image {
    height: 500px;
    border-radius: var(--radius);
}

.artwork-info {
    padding: 1rem 0;
}

.artwork-info .art-title {
    font-size: 2rem;
    font-weight: 300;
}

.artwork-info .art-desc {
    font-size: 1rem;
    margin: 1rem 0;
}

.artwork-info .art-meta {
    font-size: 1rem;
}

/* ---------- Reviews Section ---------- */
.reviews-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.review-summary {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.avg-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.avg-rating .stars {
    font-size: 1.5rem;
}

.avg-rating .rating-value {
    font-size: 1.8rem;
    font-weight: 300;
}

.avg-rating .total-reviews {
    color: var(--secondary);
    font-size: 0.9rem;
}

.review-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.review-item {
    background: var(--card-bg);
    padding: 1.2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.review-item .reviewer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.review-item .reviewer-info strong {
    font-weight: 500;
}

.review-item .reviewer-info .date {
    color: var(--secondary);
    font-size: 0.85rem;
}

.review-item .reviewer-info .stars {
    font-size: 0.9rem;
}

.review-item .comment {
    color: var(--secondary);
}

/* ---------- Review Form ---------- */
.review-form {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.review-form h4 {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.6rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--background);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(138, 122, 106, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Star Rating Input */
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    gap: 0.3rem;
    justify-content: flex-end;
}

.star-rating input {
    display: none;
}

.star-rating label {
    font-size: 2rem;
    color: #ddd;
    cursor: pointer;
    transition: var(--transition);
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: #f5c842;
}

/* ---------- Papers Page ---------- */
.papers-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.paper-item {
    background: var(--card-bg);
    padding: 1.5rem 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.paper-item:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 12px var(--shadow-hover);
}

.paper-title {
    font-size: 1.2rem;
    font-weight: 500;
}

.paper-meta {
    color: var(--secondary);
    font-size: 0.9rem;
    margin: 0.2rem 0 0.5rem;
}

.paper-abstract {
    color: var(--secondary);
    font-size: 0.95rem;
    margin: 0.5rem 0;
}

.paper-pdf {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--accent);
}

.paper-pdf:hover {
    text-decoration: underline;
}

/* ---------- Messages / Alerts ---------- */
.alert {
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* ---------- Admin Layout ---------- */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 240px;
    background: var(--primary);
    color: white;
    padding: 2rem 1rem;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.admin-sidebar .logo {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.admin-sidebar .logo span {
    color: var(--accent);
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.admin-nav a {
    color: rgba(255,255,255,0.7);
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.admin-nav a:hover,
.admin-nav a.active {
    background: rgba(255,255,255,0.1);
    color: white;
}

.admin-nav .nav-icon {
    margin-right: 0.5rem;
}

.admin-nav .badge {
    background: #dc3545;
    color: white;
    font-size: 0.7rem;
    padding: 0.1rem 0.5rem;
    border-radius: 20px;
    margin-left: 0.3rem;
}

.admin-main {
    margin-left: 240px;
    padding: 2rem;
    flex: 1;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-user .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

/* ---------- Admin Stats ---------- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow-hover);
}

.stat-card .stat-icon {
    font-size: 2rem;
    margin-bottom: 0.3rem;
}

.stat-card h3 {
    font-size: 0.85rem;
    color: var(--secondary);
    font-weight: 400;
    margin: 0;
}

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 300;
    display: block;
}

.stat-card .stat-change {
    font-size: 0.8rem;
    color: var(--secondary);
}

.stat-card.pending .stat-number {
    color: #dc3545;
}

/* ---------- Admin Tables ---------- */
.admin-table-wrapper {
    overflow-x: auto;
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 0.5rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-table th {
    text-align: left;
    padding: 0.8rem 1rem;
    border-bottom: 2px solid var(--border);
    font-weight: 500;
    color: var(--secondary);
}

.admin-table td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--border);
}

.admin-table tr:hover {
    background: var(--background);
}

.admin-table .badge {
    display: inline-block;
    padding: 0.1rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-pending {
    background: #fff3cd;
    color: #856404;
}

.badge-approved {
    background: #d4edda;
    color: #155724;
}

.badge-rejected {
    background: #f8d7da;
    color: #721c24;
}

.admin-table .actions {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
}

.admin-table .actions .btn {
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
}

/* ---------- Admin Forms ---------- */
.admin-form {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    max-width: 800px;
}

.admin-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.admin-form .form-group {
    margin-bottom: 1.5rem;
}

.admin-form .form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

/* ---------- Drag & Drop Upload ---------- */
.drop-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--background);
}

.drop-zone:hover,
.drop-zone.dragover {
    border-color: var(--accent);
    background: rgba(138, 122, 106, 0.05);
}

.drop-zone input[type="file"] {
    display: none;
}

.drop-zone .preview-image {
    max-width: 200px;
    max-height: 200px;
    margin-top: 1rem;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

/* ---------- Reference Management ---------- */
.reference-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.reference-item {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.reference-item input {
    flex: 1;
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.85rem;
}

.reference-item .remove-ref {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 0.5rem;
}

/* ---------- Lightbox ---------- */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 2rem;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: -2rem;
    right: -2rem;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover {
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 50%;
}

.lightbox-nav:hover {
    background: rgba(255,255,255,0.2);
}

.lightbox-nav.prev {
    left: -4rem;
}

.lightbox-nav.next {
    right: -4rem;
}

/* ---------- Share Modal ---------- */
.share-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.share-modal.active {
    display: flex;
}

.share-modal-content {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius);
    max-width: 500px;
    width: 90%;
    position: relative;
}

.share-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.share-modal h3 {
    margin-bottom: 1.5rem;
}

.share-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.share-btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: white;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.share-btn-social:hover {
    background: var(--background);
    transform: translateY(-2px);
}

.share-link-input {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.share-link-input input {
    flex: 1;
    padding: 0.6rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .carousel-slide-fullwidth {
        grid-template-columns: 1fr !important;
        min-height: auto !important;
    }
    
    .carousel-slide-fullwidth .slide-content {
        padding: 2rem !important;
        order: 2;
    }
    
    .carousel-slide-fullwidth .slide-image {
        height: 250px !important;
        order: 1;
    }
    
    .carousel-slide-fullwidth h2 {
        font-size: 2rem !important;
    }
    
    .carousel-container-fullwidth {
        min-height: auto !important;
    }
    
    .artwork-detail {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .artwork-detail .art-image {
        height: 400px;
    }
    
    .filters-sidebar {
        position: relative;
        top: 0;
    }
    
    .container[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    
    .container { padding: 0 1rem; }
    
    .site-header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .site-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .artwork-detail .art-image {
        height: 300px;
    }
    
    .review-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .admin-wrapper {
        flex-direction: column;
    }
    
    .admin-sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 1rem;
    }
    
    .admin-main {
        margin-left: 0;
        padding: 1rem;
    }
    
    .admin-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .share-buttons {
        grid-template-columns: 1fr;
    }
    
    .carousel-slide-fullwidth .slide-content {
        padding: 1.5rem !important;
    }
    
    .carousel-slide-fullwidth .slide-image {
        height: 200px !important;
    }
    
    .carousel-slide-fullwidth h2 {
        font-size: 1.5rem !important;
    }
    
    .carousel-slide-fullwidth p {
        font-size: 0.9rem !important;
        max-width: 100% !important;
    }
    
    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .carousel-btn.prev {
        left: 0.8rem;
    }
    
    .carousel-btn.next {
        right: 0.8rem;
    }
    
    .hero-minimal h1 {
        font-size: 2.5rem !important;
    }
    
    .featured-strip .grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .lightbox-nav.prev {
        left: -2rem;
    }
    
    .lightbox-nav.next {
        right: -2rem;
    }
    
    .lightbox-nav {
        padding: 0.5rem 1rem;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .art-overlay .btn {
        padding: 0.3rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .admin-table {
        font-size: 0.8rem;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 0.4rem 0.6rem;
    }
    
    .hero-minimal h1 {
        font-size: 2rem !important;
    }
    
    .featured-strip .grid {
        grid-template-columns: 1fr !important;
    }
    
    .lightbox-nav.prev {
        left: -1rem;
    }
    
    .lightbox-nav.next {
        right: -1rem;
    }
}

/* ---------- Animations ---------- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
    opacity: 0;
}

.fade-in:nth-child(1) { animation-delay: 0.05s; }
.fade-in:nth-child(2) { animation-delay: 0.10s; }
.fade-in:nth-child(3) { animation-delay: 0.15s; }
.fade-in:nth-child(4) { animation-delay: 0.20s; }
.fade-in:nth-child(5) { animation-delay: 0.25s; }
.fade-in:nth-child(6) { animation-delay: 0.30s; }
.fade-in:nth-child(7) { animation-delay: 0.35s; }
.fade-in:nth-child(8) { animation-delay: 0.40s; }
.fade-in:nth-child(9) { animation-delay: 0.45s; }
.fade-in:nth-child(10) { animation-delay: 0.50s; }
.fade-in:nth-child(11) { animation-delay: 0.55s; }
.fade-in:nth-child(12) { animation-delay: 0.60s; }

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* ---------- Print Styles ---------- */
@media print {
    .site-header,
    .site-nav,
    .art-actions,
    .review-form,
    .admin-sidebar,
    .carousel-container-fullwidth,
    .featured-strip {
        display: none !important;
    }
    
    .art-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .artwork-detail {
        grid-template-columns: 1fr;
    }
}

/* ===== PROFESSIONAL FOOTER ===== */
.site-footer {
    background: #2c2c2c;
    color: #e8e4df;
    padding: 3rem 0 1.5rem;
    margin-top: 0;
    border-top: 3px solid #8B7355;
}

.site-footer h4 {
    color: white;
    font-weight: 300;
    font-size: 1rem;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer ul li {
    margin-bottom: 0.5rem;
}

.site-footer ul li a {
    color: #b0aaa4;
    text-decoration: none;
    font-weight: 300;
    font-size: 0.9rem;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.site-footer ul li a:hover {
    color: #8B7355;
    border-bottom-color: #8B7355;
}

.site-footer .social-links {
    display: flex;
    gap: 1rem;
}

.site-footer .social-links a {
    color: #b0aaa4;
    transition: var(--transition);
    font-size: 1.2rem;
}

.site-footer .social-links a:hover {
    color: #8B7355;
}

.site-footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-footer .footer-bottom .copyright {
    color: #7a7672;
    font-weight: 300;
    font-size: 0.85rem;
}

.site-footer .footer-bottom .links {
    display: flex;
    gap: 1.5rem;
    color: #7a7672;
    font-weight: 300;
    font-size: 0.85rem;
}

.site-footer .footer-bottom .links a {
    color: #7a7672;
    font-weight: 300;
    font-size: 0.8rem;
    text-decoration: none;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.site-footer .footer-bottom .links a:hover {
    color: #8B7355;
    border-bottom-color: #8B7355;
}

@media (max-width: 992px) {
    .site-footer .footer-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 2rem !important;
    }
}

@media (max-width: 768px) {
    .site-footer .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .site-footer .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .site-footer .footer-bottom .links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem;
    }
}