/* ==========================================================================
   THE ART OF BLEND - DESIGN SYSTEM
   ========================================================================== */

:root {
    /* Color Palette */
    --primary-gold: #debc7e;
    --primary-gold-hover: #c4a060;
    --secondary-dark: #1a1a1a;
    --secondary-dark-hover: #000000;
    --text-main: #333333;
    --text-muted: #777777;
    --bg-light: #f9f9f9;
    --bg-white: #ffffff;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing System (using rem for scalability) */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
    
    /* Shadows & Borders */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.1);
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
}

/* ==========================================================================
   GLOBAL TYPOGRAPHY
   ========================================================================== */
body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--secondary-dark);
    margin-bottom: var(--space-sm);
    font-weight: 600;
}

.text-gold { color: var(--primary-gold); }
.text-muted-custom { color: var(--text-muted); }

/* ==========================================================================
   LAYOUT UTILITIES
   ========================================================================== */
.section-padding {
    padding: var(--space-lg) 0;
}

.section-bg-light {
    background-color: var(--bg-light);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn-premium {
    background-color: var(--primary-gold);
    color: var(--bg-white);
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 32px;
    border: 2px solid var(--primary-gold);
    border-radius: var(--border-radius-sm);
    transition: all 0.3s ease;
}

.btn-premium:hover {
    background-color: var(--primary-gold-hover);
    border-color: var(--primary-gold-hover);
    color: var(--bg-white);
}

.btn-premium-outline {
    background-color: transparent;
    color: var(--secondary-dark);
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 32px;
    border: 2px solid var(--secondary-dark);
    border-radius: var(--border-radius-sm);
    transition: all 0.3s ease;
}

.btn-premium-outline:hover {
    background-color: var(--secondary-dark);
    color: var(--bg-white);
}

/* ==========================================================================
   ARTWORK CARD COMPONENT
   ========================================================================== */
.artwork-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.artwork-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.artwork-card-img-wrap {
    position: relative;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    overflow: hidden;
}

.artwork-card-img-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.artwork-card:hover .artwork-card-img-wrap img {
    transform: scale(1.05);
}

.artwork-card-body {
    padding: var(--space-sm);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.artwork-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.artwork-card-artist {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
}

.artwork-card-price {
    font-weight: 700;
    color: var(--primary-gold);
    font-size: 1.2rem;
    margin-top: auto;
}

/* ==========================================================================
   DYNAMIC LUXURY ART GALLERY THEMING (ADMIN CONTROLLED)
   ========================================================================== */

/* 1. Glassmorphic Navigation Bar Styles */
.glass-navbar {
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    border-bottom: 1px solid rgba(222, 188, 126, 0.25) !important;
}

/* Navbar Scrolled state for smooth solid backgrounds */
.glass-navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

/* Light Glass Mode */
.glass-navbar.navbar-light-glass {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}
.glass-navbar.navbar-light-glass .nav-link {
    color: #111111 !important;
    font-weight: 500;
}
.glass-navbar.navbar-light-glass .nav-link:hover,
.glass-navbar.navbar-light-glass .nav-link.active {
    color: var(--primary-gold) !important;
}

/* Dark Glass Mode */
.glass-navbar.navbar-dark-glass {
    background: rgba(17, 17, 17, 0.85) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}
.glass-navbar.navbar-dark-glass .nav-link {
    color: #f3f3f3 !important;
    font-weight: 500;
}
.glass-navbar.navbar-dark-glass .nav-link:hover,
.glass-navbar.navbar-dark-glass .nav-link.active {
    color: var(--primary-gold) !important;
}

/* 2. Global Frame Simulation Options */
body.frame-gold-active .artwork-card-img-wrap img,
body.frame-gold-active .artwork-card-img-wrapper img,
body.frame-gold-active .artwork-premium-card .artwork-card-img-wrapper img {
    border: 10px solid #debc7e !important;
    border-image: linear-gradient(135deg, #debc7e 0%, #b89355 50%, #9a7432 100%) 10 !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3), inset 0 0 8px rgba(0,0,0,0.2) !important;
    outline: 2.5px solid #111 !important;
}

body.frame-walnut-active .artwork-card-img-wrap img,
body.frame-walnut-active .artwork-card-img-wrapper img,
body.frame-walnut-active .artwork-premium-card .artwork-card-img-wrapper img {
    border: 10px solid #3d2314 !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.35), inset 0 0 8px rgba(0,0,0,0.4) !important;
    outline: 2.5px solid #111 !important;
}

/* 3. Dark Luxury Exhibition Mode Global Styles */
body.theme-dark-exhibition {
    background-color: #111111 !important;
    color: #e2e2e2 !important;
}

body.theme-dark-exhibition h1,
body.theme-dark-exhibition h2,
body.theme-dark-exhibition h3,
body.theme-dark-exhibition h4,
body.theme-dark-exhibition h5,
body.theme-dark-exhibition h6,
body.theme-dark-exhibition .h1,
body.theme-dark-exhibition .h2,
body.theme-dark-exhibition .h3,
body.theme-dark-exhibition .h4,
body.theme-dark-exhibition .h5,
body.theme-dark-exhibition .h6 {
    color: #ffffff !important;
}

body.theme-dark-exhibition p,
body.theme-dark-exhibition li,
body.theme-dark-exhibition dd,
body.theme-dark-exhibition dt,
body.theme-dark-exhibition span:not(.badge):not(.stat-num):not(.verified-artist-badge) {
    color: #d8d8d8;
}

body.theme-dark-exhibition .text-muted,
body.theme-dark-exhibition .text-muted-custom {
    color: #a0a0a0 !important;
}

/* Section Backgrounds & Spacers */
body.theme-dark-exhibition .section-bg-light,
body.theme-dark-exhibition .sidebar-card-wrapper,
body.theme-dark-exhibition .bg-light {
    background-color: #1a1a1a !important;
    border-color: rgba(222, 188, 126, 0.15) !important;
}

/* Premium Card Blocks in Dark Mode */
body.theme-dark-exhibition .artwork-card,
body.theme-dark-exhibition .artwork-premium-card,
body.theme-dark-exhibition .commission-cta-card,
body.theme-dark-exhibition .card {
    background-color: #1a1a1a !important;
    border-color: rgba(222, 188, 126, 0.15) !important;
    color: #ffffff !important;
}

body.theme-dark-exhibition .artwork-card-title,
body.theme-dark-exhibition .artwork-premium-card .artwork-card-title {
    color: #ffffff !important;
}

/* Tabs & Navigation Controls in Dark Mode */
body.theme-dark-exhibition .artist_profile_codepen.nav-pills .nav-link {
    color: #b0b0b0 !important;
}

body.theme-dark-exhibition .artist_profile_codepen.nav-pills .nav-link.active {
    color: #debc7e !important;
}

body.theme-dark-exhibition .tab-content {
    color: #d1d1d1 !important;
}

/* Accordions and FAQs in Dark Mode */
body.theme-dark-exhibition .accordion-item {
    background-color: #1a1a1a !important;
    border-color: rgba(222, 188, 126, 0.15) !important;
    color: #ffffff !important;
}

body.theme-dark-exhibition .accordion-button {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
}

body.theme-dark-exhibition .accordion-button:not(.collapsed) {
    background-color: rgba(222, 188, 126, 0.1) !important;
    color: #debc7e !important;
}

/* Forms & Inputs in Dark Mode */
body.theme-dark-exhibition input,
body.theme-dark-exhibition select,
body.theme-dark-exhibition textarea {
    background-color: #222222 !important;
    border-color: rgba(222, 188, 126, 0.25) !important;
    color: #ffffff !important;
}

body.theme-dark-exhibition input::placeholder,
body.theme-dark-exhibition textarea::placeholder {
    color: #666666 !important;
}

/* Subtle link adjustment */
body.theme-dark-exhibition a:not(.btn):not(.nav-link):not(.dropdown-item) {
    color: #debc7e;
}
body.theme-dark-exhibition a:not(.btn):not(.nav-link):not(.dropdown-item):hover {
    color: #b89355;
}

/* Custom page specific overrides for Dark Luxury Theme */
body.theme-dark-exhibition .about-section,
body.theme-dark-exhibition .faq-section-padding {
    background-color: #111111 !important;
    color: #e2e2e2 !important;
}

body.theme-dark-exhibition .about-title,
body.theme-dark-exhibition .faq-header-title {
    color: #ffffff !important;
}

body.theme-dark-exhibition .accordion-flush .accordion-item {
    background-color: #161616 !important;
    border-color: rgba(222, 188, 126, 0.15) !important;
    color: #ffffff !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2) !important;
}

body.theme-dark-exhibition .accordion-flush .accordion-item:hover {
    box-shadow: 0 10px 25px rgba(222, 188, 126, 0.15) !important;
    border-color: rgba(222, 188, 126, 0.3) !important;
}

body.theme-dark-exhibition .accordion-button {
    color: #ffffff !important;
}

body.theme-dark-exhibition .accordion-button:not(.collapsed) {
    color: #debc7e !important;
}

body.theme-dark-exhibition .accordion-body {
    color: #d1d1d1 !important;
}

/* ==========================================================================
   LUXURY SECTION HEADERS
   ========================================================================== */
.luxury-section-header {
    margin-bottom: 2.5rem;
    text-align: left;
}
.luxury-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #debc7e;
    display: block;
    margin-bottom: 0.5rem;
}
.luxury-main-title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    color: #111;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.luxury-header-line {
    height: 2px;
    width: 60px;
    background: linear-gradient(135deg, #debc7e 0%, #b89355 100%);
    margin-top: 10px;
}

/* Dark exhibition mode adjustments */
body.theme-dark-exhibition .luxury-main-title {
    color: #ffffff !important;
}
