/* Luxury Couture Design System */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600;700&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* Premium Color Palette */
:root {
    /* Luxury Metallics */
    --gold-primary: #D4AF37;
    --gold-light: #E8D4A2;
    --gold-dark: #B8962E;
    --champagne: #F7E7CE;
    
    /* Refined Darks */
    --noir: #0A0A0A;
    --charcoal: #1A1A1A;
    --graphite: #2A2A2A;
    --slate: #3A3A3A;
    
    /* Elegant Neutrals */
    --ivory: #FFFFF0;
    --pearl: #F5F5F0;
    --stone: #E5E5DC;
    --taupe: #C9C4B8;
    
    /* Accent Colors */
    --burgundy: #800020;
    --deep-emerald: #0C4B33;
    --midnight-blue: #191970;
}

/* Typography - Refined Hierarchy */
body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 300;
    letter-spacing: 0.3px;
    background-color: var(--noir);
    color: var(--ivory);
    padding-bottom: 20px;
    touch-action: manipulation;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    overscroll-behavior: contain;
}

h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.display-4 {
    font-weight: 300;
    letter-spacing: -0.5px;
}

/* Luxury Navigation */
.navbar {
    background: linear-gradient(180deg, var(--charcoal) 0%, var(--noir) 100%) !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    backdrop-filter: blur(10px);
    margin-bottom: 0;
}

.navbar-brand {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 1.5rem;
    letter-spacing: 1px;
    color: var(--gold-primary) !important;
}

.navbar-brand i {
    color: var(--gold-primary);
}

.nav-link {
    font-weight: 400;
    letter-spacing: 0.5px;
    color: var(--pearl) !important;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--gold-primary) !important;
}

.dropdown-menu {
    background: var(--charcoal);
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.dropdown-item {
    color: var(--pearl);
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: var(--graphite);
    color: var(--gold-primary);
}

/* Elegant Hero Section */
.bg-dark {
    background: linear-gradient(145deg, var(--noir) 0%, var(--charcoal) 50%, var(--graphite) 100%) !important;
    position: relative;
}

.bg-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(212, 175, 55, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* Premium Button Styles */
.btn-primary {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    border: none;
    color: var(--noir);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.85rem;
    padding: 1rem 2.5rem;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.5);
    color: var(--noir);
}

.btn-outline-light {
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.85rem;
    padding: 1rem 2.5rem;
    background: transparent;
    transition: all 0.4s ease;
}

.btn-outline-light:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--gold-light);
    color: var(--gold-light);
    transform: translateY(-2px);
}

/* Luxury Card Design */
.card {
    background: linear-gradient(145deg, var(--charcoal) 0%, var(--graphite) 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
    transition: left 0.5s ease;
}

.card:hover::before {
    left: 100%;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    border-color: var(--gold-primary);
}

/* Premium Feature Cards */
.feature-card-primary {
    background: linear-gradient(145deg, var(--charcoal) 0%, var(--midnight-blue) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 0;
}

.feature-card-secondary {
    background: linear-gradient(145deg, var(--charcoal) 0%, var(--burgundy) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 0;
}

.feature-card-tertiary {
    background: linear-gradient(145deg, var(--charcoal) 0%, var(--deep-emerald) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 0;
}

.feature-icon-wrapper {
    background: rgba(212, 175, 55, 0.1);
    border: 2px solid var(--gold-primary);
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.4s ease;
}

.feature-card-primary:hover .feature-icon-wrapper,
.feature-card-secondary:hover .feature-icon-wrapper,
.feature-card-tertiary:hover .feature-icon-wrapper {
    background: var(--gold-primary);
    transform: scale(1.1) rotate(360deg);
}

.feature-icon-wrapper i {
    color: var(--gold-primary);
    transition: all 0.4s ease;
}

.feature-card-primary:hover .feature-icon-wrapper i,
.feature-card-secondary:hover .feature-icon-wrapper i,
.feature-card-tertiary:hover .feature-icon-wrapper i {
    color: var(--noir);
}

/* Elegant Badge Styling */
.badge {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-size: 0.7rem;
    padding: 0.5rem 1rem;
    border-radius: 0;
}

.badge.bg-warning {
    background: var(--gold-primary) !important;
    color: var(--noir) !important;
}

.badge.bg-success {
    background: var(--deep-emerald) !important;
    color: var(--gold-light) !important;
}

.badge.bg-info {
    background: var(--midnight-blue) !important;
    color: var(--gold-light) !important;
}

/* Refined Text Colors */
.text-muted {
    color: var(--taupe) !important;
}

.text-light {
    color: var(--pearl) !important;
}

.lead {
    font-weight: 300;
    letter-spacing: 0.5px;
    line-height: 1.8;
}

/* Luxury Gallery Cards */
.gallery-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.gallery-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border-color: var(--gold-primary);
}

/* Premium Image Treatments */
.img-fluid.rounded.shadow-lg {
    border-radius: 0 !important;
    border: 2px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transition: all 0.5s ease;
}

.img-fluid.rounded.shadow-lg:hover {
    box-shadow: 0 30px 80px rgba(212, 175, 55, 0.2);
}

/* Sophisticated Partner Logos */
.partner-logo {
    max-height: 70px;
    opacity: 0.6;
    filter: brightness(0) invert(1);
    transition: all 0.4s ease;
}

.partner-logo:hover {
    opacity: 1;
    filter: brightness(0) invert(1) sepia(1) saturate(10) hue-rotate(10deg);
    transform: scale(1.05);
}

/* Elegant Animations */
@keyframes luxuryFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.position-relative .badge {
    animation: luxuryFloat 4s ease-in-out infinite;
    backdrop-filter: blur(10px);
    background: rgba(26, 26, 26, 0.8) !important;
    border: 1px solid var(--gold-primary);
}

@keyframes subtleGoldGlow {
    from { 
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3); 
    }
    to { 
        box-shadow: 0 20px 60px rgba(212, 175, 55, 0.2), 0 0 40px rgba(212, 175, 55, 0.1); 
    }
}

/* White Background Card Fix */
.bg-light {
    background: var(--pearl) !important;
}

.bg-light .card-body {
    color: var(--noir) !important;
}

.bg-light .text-muted {
    color: var(--slate) !important;
}

.bg-light .card {
    background: var(--ivory) !important;
    border: 1px solid var(--taupe);
}

.bg-light .card:hover {
    border-color: var(--gold-primary);
}

/* Premium CTA Section */
.bg-primary {
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold-primary) 100%) !important;
}

/* Refined Mobile Styles */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2.5rem;
    }
    
    .feature-icon-wrapper {
        width: 80px;
        height: 80px;
    }
    
    .btn {
        padding: 0.875rem 2rem;
        font-size: 0.8rem;
    }
}

/* Luxury Form Elements */
.form-control {
    background: var(--graphite);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--ivory);
    border-radius: 0;
    padding: 0.875rem 1.25rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    background: var(--charcoal);
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.15);
    color: var(--ivory);
}

.form-control::placeholder {
    color: var(--taupe);
}

/* Artwork Card Premium Styling */
.artwork-card {
    margin-bottom: 20px;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.artwork-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

/* Sophisticated Loading States */
.progress {
    height: 2px;
    background-color: var(--graphite);
    border-radius: 0;
}

.progress-bar {
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-primary), var(--gold-light));
}

/* Luxury Publication Cards */
.publication-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.publication-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border-color: var(--gold-primary);
}

/* Premium AI Enhancement */
.ai-enhanced::before {
    background: linear-gradient(90deg, var(--gold-primary), var(--gold-light), var(--gold-primary));
    height: 2px;
}

/* Elegant Scrolling */
html {
    scroll-behavior: smooth;
}

/* Gold Divider Line */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
    margin: 4rem 0;
}

/* Luxury Typography Accents */
.text-gold {
    color: var(--gold-primary);
}

.text-gold-light {
    color: var(--gold-light);
}

/* Premium Touch Interactions */
.touch-button {
    min-height: 48px;
    min-width: 48px;
    padding: 1rem 2rem;
    margin: 0.5rem;
}

/* High-End Image Preview */
#preview-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1050;
    display: none;
}

#preview-container.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

#preview-image {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border: 2px solid var(--gold-primary);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.8);
}

/* Refined Category Badges */
.badge.bg-info.bg-opacity-20 {
    background-color: rgba(25, 25, 112, 0.3) !important;
    color: var(--gold-light) !important;
    border: 1px solid var(--gold-primary);
}

.badge.bg-success.bg-opacity-20 {
    background-color: rgba(12, 75, 51, 0.3) !important;
    color: var(--gold-light) !important;
    border: 1px solid var(--gold-primary);
}
