/* Custom CSS for Alook Art Trading Platform */

:root {
    --primary-color: #181e30;
    --secondary-color: #2f377d;
    --accent-color: #3d437a;
    --purple-color: #40628d;
    --light-color: #ffffff;
    --dark-color: #181e30;
    --muted-color: #6c757d;
    --gold-color: #3d437a;
}

/* Import ALOOK Brand Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* Global Styles */
body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    padding-top: 0; /* Remove gap between navbar and content */
    overflow-x: hidden!important;
}

/* Typography - ALOOK Brand Fonts */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif; /* NOW font substitute */
    font-weight: 600;
    color: var(--dark-color);
    letter-spacing: -0.02em;
}

.display-4 {
    font-family: 'Space Grotesk', sans-serif; /* NOW font for large titles */
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

/* Body text uses AGRANDIR substitute */
body, p, .card-text, .lead {
    font-family: 'Inter', sans-serif; /* AGRANDIR font substitute */
}

/* Custom Button Styles */
.btn {
    border-radius: 2px !important;
}

.btn-dark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.2s ease;
}

.btn-dark:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-dark {
    color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.2s ease;
}

.btn-outline-dark:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Navigation Styles */
.navbar {
    backdrop-filter: blur(10px);
    background-color: var(--primary-color) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: white !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 2px;
    padding: 0.5rem 0.75rem;
    color: white !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Navbar toggler for mobile */
.navbar-toggler {
    border: none;
    padding: 0.25rem;
    position: relative;
    width: 30px;
    height: 30px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Custom hamburger icon */
.navbar-toggler-icon {
    display: block;
    width: 24px;
    height: 18px;
    position: relative;
    background-image: none !important;
    background-color: rgba(255, 255, 255, 0.8);
    height: 2px;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.navbar-toggler-icon::before {
    top: -8px;
}

.navbar-toggler-icon::after {
    top: 8px;
}

/* X transformation when menu is open */
.navbar-toggler:not(.collapsed) .navbar-toggler-icon {
    background-color: transparent;
}

.navbar-toggler:not(.collapsed) .navbar-toggler-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.navbar-toggler:not(.collapsed) .navbar-toggler-icon::after {
    transform: rotate(-45deg);
    top: 0;
}

/* Subtle button styling in navbar - Vinmonopolet style */
.navbar .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    background-color: rgba(255, 255, 255, 0.05);
}

.navbar .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.navbar .btn-light {
    background-color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    font-weight: 500;
}

.navbar .btn-light:hover {
    background-color: white;
    border-color: white;
    color: var(--primary-color);
}

/* Subtle search input styling */
.navbar .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.navbar .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.navbar .form-control:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.1);
}

/* Login Modal Styles */

/* Cart Quick View Modal Styling */
.modal-dialog-end {
    position: fixed;
    top: 0;
    right: 0;
    width: 25vw;
    min-width: 320px;
    max-width: 400px;
    height: 100vh;
    margin: 0;
    z-index: 1055;
}

.modal-dialog-end .modal-content {
    height: 100vh;
    border-radius: 0;
    border: none;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.modal-dialog-end .modal-body {
    scrollbar-width: thin;
    scrollbar-color: var(--muted-color) transparent;
}

.modal-dialog-end .modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-dialog-end .modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.modal-dialog-end .modal-body::-webkit-scrollbar-thumb {
    background: var(--muted-color);
    border-radius: 3px;
}

/* Responsive cart modal */
@media (max-width: 768px) {
    .modal-dialog-end {
        width: 85vw;
        min-width: unset;
    }
}

@media (max-width: 576px) {
    .modal-dialog-end {
        width: 100vw;
        min-width: unset;
    }
}

.modal-content {
    border-radius: 2px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
    padding: 1.5rem 1.5rem 0;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem 1.5rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    padding-top: 5rem;
    padding-bottom: 5rem;
    overflow: hidden;
}

/* Override min-vh-100 for hero to reduce spacing */
.hero-section .min-vh-100 {
    min-height: auto !important;
}

/* Brand Elements in Hero */
.brand-element-1 {
    position: absolute;
    top: 10%;
    left: -5%;
    width: 200px;
    height: 200px;
    opacity: 0.08;
    z-index: 1;
    background: 
        linear-gradient(45deg, var(--secondary-color) 25%, transparent 25%), 
        linear-gradient(-45deg, var(--secondary-color) 25%, transparent 25%), 
        linear-gradient(45deg, transparent 75%, var(--accent-color) 75%), 
        linear-gradient(-45deg, transparent 75%, var(--accent-color) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    transform: perspective(600px) rotateX(30deg) rotateY(-20deg);
    animation: brandFloat1 20s ease-in-out infinite;
}

.brand-element-2 {
    position: absolute;
    top: 60%;
    right: -8%;
    width: 180px;
    height: 180px;
    opacity: 0.06;
    z-index: 1;
    background-image: 
        linear-gradient(to right, var(--purple-color) 1px, transparent 1px),
        linear-gradient(to bottom, var(--purple-color) 1px, transparent 1px);
    background-size: 15px 15px;
    transform: perspective(500px) rotateX(-15deg) rotateY(25deg);
    animation: brandFloat2 25s ease-in-out infinite;
}

.brand-element-2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(45deg, transparent 40%, var(--accent-color) 41%, var(--accent-color) 42%, transparent 43%),
        linear-gradient(-45deg, transparent 40%, var(--secondary-color) 41%, var(--secondary-color) 42%, transparent 43%);
    background-size: 30px 30px;
}

.brand-element-3 {
    position: absolute;
    top: 30%;
    right: 5%;
    width: 150px;
    height: 150px;
    opacity: 0.05;
    z-index: 1;
    border-radius: 50% 30% 70% 40%;
    background: linear-gradient(135deg, var(--secondary-color), var(--purple-color));
    transform: rotate(25deg);
    animation: brandFloat3 30s ease-in-out infinite;
}

.brand-element-3::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 30%;
    width: 60px;
    height: 60px;
    border-radius: 30% 70% 40% 60%;
    background: linear-gradient(45deg, var(--accent-color), var(--primary-color));
    opacity: 0.7;
}

/* Brand Element Animations */
@keyframes brandFloat1 {
    0%, 100% { 
        transform: perspective(600px) rotateX(30deg) rotateY(-20deg) translateY(0px);
    }
    50% { 
        transform: perspective(600px) rotateX(35deg) rotateY(-15deg) translateY(-20px);
    }
}

@keyframes brandFloat2 {
    0%, 100% { 
        transform: perspective(500px) rotateX(-15deg) rotateY(25deg) translateX(0px);
    }
    50% { 
        transform: perspective(500px) rotateX(-10deg) rotateY(30deg) translateX(15px);
    }
}

@keyframes brandFloat3 {
    0%, 100% { 
        transform: rotate(25deg) scale(1);
        border-radius: 50% 30% 70% 40%;
    }
    33% { 
        transform: rotate(35deg) scale(1.1);
        border-radius: 40% 50% 60% 50%;
    }
    66% { 
        transform: rotate(15deg) scale(0.9);
        border-radius: 60% 40% 50% 60%;
    }
}

/* Adjust spacing for sections - moderate spacing */
.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.py-4 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

/* Adjust large margins for better section separation */
.mb-5 {
    margin-bottom: 2.5rem !important;
}

.mb-4 {
    margin-bottom: 2rem !important;
}

/* Additional spacing reductions */
.my-5 {
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
}

.my-4 {
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
}

.mt-5 {
    margin-top: 2rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

/* Quick Actions Section */
.quick-actions .btn {
    font-weight: 500;
    transition: all 0.2s ease;
    border-width: 1px;
}

.quick-actions .btn:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Hero Artwork Frame - "Picture on Wall" Effect */
.hero-artwork-frame {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.hero-artwork-image {
    width: 100%;
    height: 100%;
    max-width: 600px;
    max-height: 400px;
    object-fit: cover;
    object-position: center;
    
    /* Clean landscape format - no frame */
    border-radius: 2px;
    box-shadow: 
        /* Subtle floating shadow */
        0 10px 30px rgba(0, 0, 0, 0.12),
        /* Soft edge definition */
        0 4px 8px rgba(0, 0, 0, 0.08);
    
    /* Subtle 3D effect */
    transform: perspective(1200px) rotateY(-1deg) rotateX(0.5deg);
    transition: all 0.4s ease;
}

.hero-artwork-image:hover {
    transform: perspective(1200px) rotateY(0deg) rotateX(0deg) scale(1.03);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.15),
        0 6px 12px rgba(0, 0, 0, 0.1);
}

/* Hero Artwork Caption */
.hero-artwork-caption {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 6px 8px;
    font-size: 0.75rem;
    line-height: 1.2;
    border-radius: 2px;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.hero-artwork-caption:hover {
    background: rgba(0, 0, 0, 0.85);
}

.artwork-title {
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
}

.artwork-artist {
    font-weight: 400;
    opacity: 0.9;
    font-family: 'Inter', sans-serif;
}

/* Legacy hero placeholder styles - keeping for fallback */
.hero-image-placeholder {
    border-radius: 2px;
    transition: opacity 0.2s ease;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--purple-color) 100%) !important;
}

.hero-image-placeholder:hover {
    opacity: 0.95;
}

/* Card Styles */
.card {
    transition: all 0.3s ease;
    border-radius: 2px !important;
    overflow: hidden;
    border: 1px solid #dee2e6;
    height: 100%; /* Ensure equal height cards */
    display: flex;
    flex-direction: column;
}

.card-body {
    flex-grow: 1; /* Make card body expand to fill available space */
}

/* Ensure auction cards have equal heights */
#auctions .row {
    display: flex;
    align-items: stretch;
}

#auctions .card {
    height: 100%;
    min-height: 480px; /* Consistent minimum height for auction cards */
}

.card:hover {
    /* Removed hover effects as requested */
}

.artwork-card {
    cursor: pointer;
}

.artwork-card .artwork-image {
    border-radius: 2px 2px 0 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.artwork-card .artwork-image img {
    transition: all 0.3s ease;
    filter: brightness(1) contrast(1.05);
}

.artwork-card:hover .artwork-image img {
    /* Removed hover effects as requested */
}

/* Hero image container */
.hero-image-container {
    transition: all 0.3s ease;
}

.hero-image-container:hover {
    transform: scale(1.02);
}

.hero-image-container img {
    transition: all 0.3s ease;
}

.hero-image-container:hover img {
    filter: brightness(1.05) contrast(1.05);
}

/* Image loading and quality enhancements */
.artwork-image img, .hero-image-container img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Add a subtle overlay on artwork cards for better text readability */
.artwork-card {
    position: relative;
}

.artwork-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(24, 30, 48, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 2px;
    pointer-events: none;
    z-index: 1;
}

.artwork-card:hover::before {
    opacity: 1;
}

/* Ensure card content is above overlay */
.artwork-card .card-body {
    position: relative;
    z-index: 2;
}

/* Category Cards */
.card-img-placeholder {
    border-radius: 2px 2px 0 0;
    background: #f8f9fa;
    transition: background 0.2s ease;
}

.card:hover .card-img-placeholder {
    background: #e9ecef;
}

/* Process Section Icons */
.rounded-circle {
    transition: opacity 0.2s ease;
}

.rounded-circle:hover {
    opacity: 0.9;
}

/* Footer Styles */
footer {
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

footer a {
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--primary-color) !important;
}

/* Price Display */
.fw-bold {
    color: var(--accent-color);
}

/* ALOOK Brand Elements */
.brand-element {
    position: relative;
}

.brand-element::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, var(--secondary-color), var(--purple-color));
    opacity: 0.1;
    border-radius: 2px;
    transform: rotate(15deg);
}

/* Search Input Styling */
.form-control {
    border-radius: 2px !important;
}

.input-group .form-control {
    border-right: none;
    border-radius: 2px 0 0 2px !important;
}

.input-group .btn {
    border-left: none;
    border-radius: 0 2px 2px 0 !important;
}

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

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section .row {
        text-align: center;
    }
    
    /* Mobile navbar adjustments */
    .navbar-nav {
        text-align: center;
        margin: 1rem 0;
    }
    
    .navbar-nav .nav-link {
        font-size: 1.125rem;
        padding: 0.75rem 0 !important;
    }
    
    .navbar .d-flex {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1rem;
    }
    
    .navbar .input-group {
        width: 70% !important;
        max-width: 280px;
        margin: 0 !important;
    }
    
    /* Icon container - buttons under search field */
    .navbar .d-flex > .btn-outline-light,
    .navbar .d-flex > .btn-light {
        margin: 0 0.25rem;
        display: inline-flex;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .hero-image-placeholder {
        height: 300px !important;
        margin-top: 1rem;
    }

    /* Mobile responsive for artwork frame */
    .hero-artwork-frame {
        height: 280px !important;
        padding: 10px;
        margin-top: 1rem;
    }

    .hero-artwork-image {
        max-width: 320px;
        max-height: 240px;
        transform: perspective(800px) rotateY(-0.5deg) rotateX(0.25deg);
    }

    .hero-artwork-image:hover {
        transform: perspective(800px) rotateY(0deg) rotateX(0deg) scale(1.02);
    }

    /* Mobile responsive for artwork caption */
    .hero-artwork-caption {
        font-size: 0.65rem;
        padding: 4px 6px;
        bottom: 2px;
        right: 2px;
    }

    /* Hide or reduce brand elements on mobile */
    .brand-element-1,
    .brand-element-2,
    .brand-element-3 {
        display: none;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .btn-lg {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }
    
    .d-flex.gap-3 {
        flex-direction: column;
        gap: 1rem !important;
    }
}

/* Simplified Animations */
.card {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--muted-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Utility Classes */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.shadow-custom {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Hover Effects for Interactive Elements */
.navbar-brand {
    transition: opacity 0.2s ease;
}

.navbar-brand:hover {
    opacity: 0.8;
}

.social-icons a {
    transition: opacity 0.2s ease;
}

.social-icons a:hover {
    opacity: 0.7;
}

/* Focus States for Accessibility */
.btn:focus,
.form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(44, 62, 80, 0.25);
}

/* Professional spacing for art content */
.artwork-card .card-body {
    padding: 1.5rem;
}

.artwork-card .card-title {
    font-weight: 600;
    font-size: 1rem;
}

/* Enhanced visual hierarchy */
.lead {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--muted-color);
}

/* Clean, minimal transitions */
a, button {
    transition: opacity 0.2s ease;
}

/* ALOOK Brand Typography */
.alook-brand {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.alook-brand small {
    font-weight: 400;
    font-size: 0.6em;
    vertical-align: super;
    opacity: 0.7;
}

/* ALOOK Philosophy Section Styling */
.alook-philosophy {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

.alook-philosophy .row {
    max-width: 1000px;
    margin: 0 auto;
}

.alook-philosophy [class*="col-"] {
    position: relative;
    padding: 2rem 1rem;
}

.alook-philosophy [class*="col-"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.alook-philosophy [class*="col-"]:hover::before {
    opacity: 1;
}

/* Perfect centering for ALOOK letters */
.alook-philosophy h3 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1;
}

/* Brand accent colors for different elements */
.text-primary {
    color: var(--secondary-color) !important;
}

.bg-primary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--purple-color) 100%) !important;
    border: none !important;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--purple-color) 100%);
    border: none;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--purple-color) 0%, var(--secondary-color) 100%);
}

/* Artists Page Styles */
.artists-hero {
    background: linear-gradient(135deg, var(--purple-color) 0%, var(--secondary-color) 100%);
    position: relative;
    padding-top: calc(3rem);
    padding-bottom: 3rem;
}

.artist-profile {
    background: white;
    border-radius: 2px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.artist-profile:hover {
    /* Removed hover effects */
}

.artist-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    position: relative;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--purple-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    position: relative;
    overflow: hidden;
}

.avatar-placeholder::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.artist-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.artist-photo:hover {
    /* Removed hover effects */
}

.artist-stats {
    font-size: 0.85rem;
}

.artwork-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    height: 200px;
}

.artwork-item {
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.artwork-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.3s ease;
}

.artwork-preview:hover {
    /* Removed hover effects */
}

.artwork-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--muted-color);
    font-weight: 500;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.artwork-placeholder:hover {
    /* Removed hover effects */
}

/* Artist Navigation Tabs */
.nav-tabs {
    border-bottom: 1px solid #dee2e6;
}

.nav-tabs .nav-link {
    font-weight: 600;
    color: var(--dark-color);
    border: none;
    border-bottom: 3px solid transparent;
    background-color: transparent;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
    border-radius: 0;
}

.nav-tabs .nav-link:hover {
    color: var(--purple-color);
    border-bottom-color: rgba(64, 98, 141, 0.3);
    background-color: transparent;
}

.nav-tabs .nav-link.active {
    font-weight: 700;
    color: var(--purple-color);
    border-bottom-color: var(--purple-color);
    background-color: transparent;
}

.nav-tabs .nav-link.active:hover {
    color: var(--purple-color);
    border-bottom-color: var(--purple-color);
}

/* Artist profile responsive adjustments */
@media (max-width: 768px) {
    .artist-profile {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .artist-avatar {
        width: 100px;
        height: 100px;
    }
    
    .artwork-grid {
        height: 150px;
        gap: 8px;
    }
    
    .artists-hero {
        padding: 2rem 0;
        text-align: center;
    }
    
    .artists-hero .display-4 {
        font-size: 2rem;
    }
    
    .nav-tabs .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

/* Sales History Styles */
.sales-history {
    background-color: #f8f9fa;
    border-radius: 4px;
    padding: 0.75rem;
    border: 1px solid #e9ecef;
}

.sales-history .d-flex {
    padding: 0.25rem 0;
}

.sales-history .small {
    font-size: 0.875rem;
}

/* Edition Status Badges */
.text-success.small {
    font-weight: 600;
}

.text-primary.small {
    font-weight: 600;
}

.text-muted.small {
    font-style: italic;
}

.controls-bar {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.auction-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.auction-card {
    background: white;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.auction-card:hover {
    /* Removed hover effects */
}

.auction-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
}

.auction-status {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2;
}

.auction-timer {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    z-index: 2;
}

.auction-timer.ending-soon {
    background: #dc3545;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.auction-body {
    padding: 1rem;
}

.auction-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--dark-color);
}

.auction-artist {
    color: var(--muted-color);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.auction-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.current-bid {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.bid-count {
    font-size: 0.8rem;
    color: var(--muted-color);
}

.auction-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-bid {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--purple-color) 100%);
    border: none;
    color: white;
    flex: 1;
    transition: all 0.2s ease;
}

.btn-bid:hover {
    background: linear-gradient(135deg, var(--purple-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.btn-watch {
    background: transparent;
    border: 1px solid var(--muted-color);
    color: var(--muted-color);
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-watch:hover {
    background: var(--muted-color);
    color: white;
}

.btn-watch.watching {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 1.5rem;
}

.section-header h3 {
    margin-bottom: 0;
}

/* List view styles */
.auction-grid.list-view {
    grid-template-columns: 1fr;
}

.auction-card.list-view {
    display: flex;
    flex-direction: row;
}

.auction-card.list-view .auction-image {
    width: 200px;
    height: 150px;
    flex-shrink: 0;
}

.auction-card.list-view .auction-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.auction-card.list-view .auction-details {
    flex: 1;
}

.auction-card.list-view .auction-actions {
    margin-top: auto;
    align-self: flex-start;
}

/* Completed auctions styles */
.auction-card.completed {
    opacity: 0.8;
}

.auction-card.completed .auction-body {
    background: #f8f9fa;
}

.auction-card.completed .current-bid {
    color: var(--muted-color);
}

.final-price {
    font-weight: 700;
    color: var(--dark-color);
}

.sold-badge {
    background: var(--dark-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Price range buttons */
.price-ranges .btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.price-ranges .btn.active {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

/* Modern Status Icons */
.status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    position: relative;
}

.status-icon.ongoing {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.status-icon.upcoming {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

.status-icon.completed {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    box-shadow: 0 0 0 2px rgba(107, 114, 128, 0.2);
}

.status-icon::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.9;
}

/* Enhanced filter labels */
.form-check-label {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: color 0.2s ease;
}

.form-check-label:hover {
    color: var(--secondary-color);
}

.form-check-input:checked + .form-check-label {
    color: var(--secondary-color);
}

/* Large status icons for section headers */
.status-icon.large {
    width: 16px;
    height: 16px;
    margin-right: 10px;
}

.status-icon.large::after {
    width: 8px;
    height: 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .auctions-hero {
        padding: calc(76px + 2rem) 0 2rem 0;
        text-align: center;
    }
    
    .auctions-hero .display-4 {
        font-size: 2rem;
    }
    
    .filters-sidebar {
        margin-bottom: 2rem;
    }
    
    .filters-sidebar .card {
        position: relative;
        top: auto;
    }
    
    .controls-bar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .controls-bar .d-flex {
        flex-direction: column;
        align-items: stretch !important;
        gap: 1rem;
    }
    
    .auction-grid {
        grid-template-columns: 1fr;
    }
    
    .auction-card.list-view {
        flex-direction: column;
    }
    
    .auction-card.list-view .auction-image {
        width: 100%;
        height: 200px;
    }
}

/* Contact Page Styles */
.contact-hero {
    background: linear-gradient(135deg, var(--purple-color) 0%, var(--secondary-color) 100%);
    position: relative;
    padding-top: calc(76px + 4rem);
    padding-bottom: 4rem;
}

.contact-card {
    background: white;
    border-radius: 2px;
    padding: 2rem;
    text-align: center;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: all 0.3s ease;
}

.contact-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--purple-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    color: white;
    font-size: 1.5rem;
}

.contact-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
}

.contact-description {
    color: var(--muted-color);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.contact-details {
    color: var(--dark-color);
}

.contact-details p {
    margin-bottom: 0.25rem;
}

.contact-details strong {
    font-weight: 600;
}

/* FAQ Accordion Customization */
.accordion-button {
    font-weight: 500;
    color: var(--dark-color);
}

.accordion-button:not(.collapsed) {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: var(--secondary-color);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(47, 55, 125, 0.25);
}

/* Support Modal Form */
.modal-body .form-label {
    font-weight: 500;
    color: var(--dark-color);
}

.modal-body .form-control:focus,
.modal-body .form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.25rem rgba(47, 55, 125, 0.25);
}

/* Contact Page Responsive */
@media (max-width: 768px) {
    .contact-hero {
        padding: calc(76px + 2rem) 0 2rem 0;
        text-align: center;
    }
    
    .contact-hero .display-4 {
        font-size: 2rem;
    }
    
    .contact-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .contact-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .contact-title {
        font-size: 1.1rem;
    }
    
    .contact-description {
        font-size: 0.85rem;
                 margin-bottom: 1rem;
     }
 }

/* 404 Error Page Styles */
.error-404 {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 76px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.error-content {
    padding: 2rem 0;
}

.error-small {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.1em;
}

.error-large {
    font-size: 6rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--purple-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 0.2em;
    line-height: 1.1;
}

.error-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: 0;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.05em;
}

.error-actions {
    margin-top: 3rem;
}

.error-actions .btn {
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
}

/* 404 Responsive */
@media (max-width: 768px) {
    .error-large {
        font-size: 4rem;
        letter-spacing: 0.15em;
    }
    
    .error-small {
        font-size: 1rem;
    }
    
    .error-subtitle {
        font-size: 1.2rem;
    }
    
    .error-actions {
        margin-top: 2rem;
    }
    
    .error-actions .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .error-actions .me-3 {
        margin-right: 0 !important;
    }
}

@media (max-width: 576px) {
    .error-large {
        font-size: 3rem;
        letter-spacing: 0.1em;
    }
    
    .error-small {
        font-size: 0.9rem;
    }
    
    .error-subtitle {
        font-size: 1rem;
    }
}

/* Custom Breadcrumb Styling */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 0;
    font-size: 0.9rem;
}

.breadcrumb-item {
    font-weight: 500;
}

.breadcrumb-item a {
    color: #40628d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--secondary-color);
}

.breadcrumb-item.active {
    color: var(--dark-color);
    font-weight: 600;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #40628d;
    font-weight: 600;
    margin: 0 0.5rem;
}

/* Breadcrumb Responsive */
@media (max-width: 768px) {
    .breadcrumb {
        font-size: 0.8rem;
    }
    
    .breadcrumb-item + .breadcrumb-item::before {
        margin: 0 0.25rem;
    }
}

full-viewport {
  min-height: 100dvh;  /* dynamic viewport (modern) */
  min-height: 100svh;  /* iOS 15+ */
  min-height: 100vh;   /* fallback */
  overflow-x: hidden;  /* kill sideways scroll */
}
.stage {
  width: 100%;
  height: 100%;
}
.stage img {
  display: block;
  /* Keep the entire image visible, no cropping */
  object-fit: contain;
  width: auto;
  height: auto;
  /* Don’t exceed viewport; leave breathing room for buttons */
  max-width: calc(100vw - 6rem);
  max-height: calc(100dvh - 6rem);
}

.fullPrevBar {
    height: 100%;
    width: 50px;
    background: #FFFFFF;
    float: left;
}

.fullNextBar {
    height: 100%;
    width: 50px;
    background: #FFFFFF;
    float: right;
}

.alert-success {
    background: #39864f!important;
    border-color: #39864f;
    color: #FFFFFF!important;
}

.alert-danger {
    background: #883b40!important;
    border-color: #883b40;
    color: #FFFFFF!important;
}