/* =========================================
   1. COLOR VARIABLES (The Palette)
   ========================================= */
:root {
    --main-bg-color: #e3e3e3; 
    --card-bg-color: #ffffff;
    --brand-primary: #0a58ca;
    
    /* BRAND COLORS */
    --color-paint: #D98C8C;
    --color-print: #6C8E96;
    --color-clay:  #B59B78;
    
    /* SHADOWS */
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.05);
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

/* =========================================
   2. BODY & LAYOUT
   ========================================= */
body {
    background-color: var(--main-bg-color);
    color: #212529;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    /* This ensures the footer sticks to the bottom naturally */
    min-height: 100vh;
    display: flex;           
    flex-direction: column;  
}

h1, h2, h3, h4, h5, h6 {
    color: #000;
    font-weight: 700;
}

.text-muted { color: #6c757d !important; }
.text-paint { color: var(--color-paint); }
.text-print { color: var(--color-print); }
.text-clay  { color: var(--color-clay);  }

/* =========================================
   3. NAVBAR
   ========================================= */
.navbar {
    background-color: var(--main-bg-color) !important;
    border-bottom: none !important;
    box-shadow: none !important;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px; 
}

.nav-link {
    font-weight: 500;
    color: #000 !important;
    font-size: 1.1rem;
}

.nav-btn-hamburger {
    font-size: 1.5rem;
    line-height: 1;
    color: #000;
    cursor: pointer;
}

/* =========================================
   4. CARDS & FORMS
   ========================================= */
.card {
    background-color: var(--card-bg-color);
    border: none;
    border-radius: 4px;
    box-shadow: var(--shadow-soft);
}

.form-control, .form-select {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 8px 12px;
}

.btn {
    border-radius: 4px;
    padding: 8px 24px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* =========================================
   5. FOOTER
   ========================================= */
/* No position:absolute here! It flows naturally. */
footer.footer {
    background-color: transparent !important;
    border-top: none !important;
    color: #6c757d !important;
    padding: 20px 0;
    font-size: 0.85rem;
    margin-top: auto; /* Double safety to push it down */
}

footer a {
    color: #6c757d !important;
    text-decoration: none;
}
footer a:hover {
    color: #000 !important;
}

/* =========================================
   6. GALLERY & GRID SYSTEM (Added Dec 2025)
   ========================================= */

/* Masonry Grid Layout */
.gallery-grid {
    column-count: 1;
    column-gap: 1.5rem;
}

/* Tablet */
@media (min-width: 768px) {
    .gallery-grid { column-count: 2; }
}

/* Desktop */
@media (min-width: 992px) {
    .gallery-grid { column-count: 3; }
}

/* Gallery Card (Invisible container until hovered/content shown) */
.gallery-card {
    break-inside: avoid;
    background-color: white; 
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.gallery-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Text Styling */
.meta-text {
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.4;
}
.meta-title {
    font-weight: 700;
    color: #212529;
    font-size: 0.95rem;
}
.meta-artist {
    font-weight: 600;
    color: #444;
}


/* Filter Dropdowns (Transparent & Minimal) */
.nav-style-dropdown {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem; /* Reduced from 0.85rem */
    color: #333;
    background-color: transparent;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 0.4rem 2rem 0.4rem 0.8rem;
    cursor: pointer;
}
.nav-style-dropdown:focus {
    border-color: #cea481;
    box-shadow: 0 0 0 0.25rem rgba(206, 164, 129, 0.25);
    outline: none;
}

/* =========================================
   7. FILM STRIP GALLERY (Refined V2)
   ========================================= */

/* Hero Section */
.hero-wrapper {
    width: 100%;
    margin: 0 auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (min-width: 768px) {
    .hero-wrapper { width: 50%; }
}

.hero-image-container {
    height: 45vh; /* Reduced from 60vh to 45vh */
    width: 100%;
    background-color: transparent; 
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Navigation Arrows (Hero) */
.hero-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 2rem;
    color: #bbb;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s;
}
.hero-nav-btn:hover { color: #333; }
.hero-prev { left: -60px; }
.hero-next { right: -60px; }

/* Hero Metadata (Text) */
.hero-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 0.75rem; /* Reduced slightly */
    width: 100%; 
    opacity: 0; 
    transition: opacity 0.3s;
}

.hero-title { 
    font-family: 'Montserrat', sans-serif; 
    font-size: 1.1rem;
    font-weight: 500; 
    margin: 0; 
    line-height: 1.2;
}

.hero-subtitle { 
    font-size: 0.8rem;
    color: #6c757d; 
    margin-top: 2px; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
}

.hero-price { 
    font-family: 'Montserrat', sans-serif; 
    font-size: 0.8rem; /* Reduced to match Status */
    color: #6c757d;    /* Grey to match Status */
    font-weight: 400;  /* Standard weight */
    margin: 0; 
    text-align: right; 
    line-height: 1.2;
    text-transform: uppercase; /* Uppercase matches Status */
}

.hero-status { 
    font-size: 0.8rem; 
    color: #6c757d; 
    margin-top: 2px; 
    text-align: right; 
    text-transform: uppercase; 
}

/* Film Strip (The Thumbnails) */
.film-strip-wrapper {
    position: relative;
    margin-top: 1rem; /* Reduced from 2rem to pull strip up */
    padding: 0 40px;
}

.film-strip-scroll {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 0.5rem;
    padding-bottom: 5px; /* Reduced padding */
    scrollbar-width: thin;
}

.film-strip-item {
    flex: 0 0 100px;
    height: 100px;
    cursor: pointer;
    opacity: 0.4;
    transition: opacity 0.2s, transform 0.2s;
    border: 2px solid transparent;
    border-radius: 2px;
    overflow: hidden;
}

.film-strip-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.film-strip-item:hover { opacity: 0.8; }
.film-strip-item.active {
    opacity: 1;
    border-color: #cea481;
}

/* Strip Arrows */
.strip-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: #aaa;
    cursor: pointer;
}
.strip-nav-btn:hover { color: #333; }
.strip-prev { left: 0; }
.strip-next { right: 0; }

/* =========================================
   8. GLOBAL WATERMARK (Added Jan 2026)
   ========================================= */

/* 1. Define Containers that need the watermark */
/* .hero-image-container = Main Gallery Viewer */
/* .image-stage        = Individual Details Page */
/* .film-strip-item    = Small Thumbnails */
/* .watermark-wrap     = Grid View Items */

.hero-image-container,
.image-stage,
.film-strip-item,
.watermark-wrap {
    position: relative !important; /* Anchors the watermark */
    overflow: hidden;              /* Clips text that sticks out */
}

/* 2. The Watermark Sticker */
.hero-image-container::after,
.image-stage::after,
.film-strip-item::after,
.watermark-wrap::after {
    content: "PaintPrintClay";
    position: absolute;
    
    /* Center It */
    top: 50%;
    left: 50%;
    
    /* Rotate & Offset */
    transform: translate(-50%, -50%) rotate(-45deg);
    
    /* Appearance */
    color: rgba(255, 255, 255, 0.4); /* White with 40% opacity */
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: none; /* Important: Allows clicks to pass through to the image */
    z-index: 10;
    
    /* Shadow (So it's readable on white images too) */
    text-shadow: 0px 0px 5px rgba(0,0,0, 0.5);
}

/* 3. Sizing Variations */

/* Large Views */
.hero-image-container::after,
.image-stage::after {
    font-size: 2rem;
    letter-spacing: 5px;
    opacity: 0.6;
}

/* Grid View */
.watermark-wrap::after {
    font-size: 1.2rem;
}

/* Small Thumbnails */
.film-strip-item::after {
    font-size: 0.6rem;
}

/* Mobile Tweaks */
@media (max-width: 768px) {
    .hero-image-container::after,
    .image-stage::after {
        font-size: 1.5rem;
    }
}