/* ==========================================
   MODERN ARTSY COLOR PALETTE
   Inspired by soft purples, blues, and yellows
   ========================================== */

:root {
  /* Primary Colors - Soft Blues & Purples */
  --primary-color: #6B8BA3;
  --primary-light: #8BA4B5;
  --primary-dark: #4A6278;

  /* Secondary Colors - Soft Purples */
  --secondary-color: #9B8CB5;
  --secondary-light: #B5A8C9;
  --secondary-dark: #7D6A94;

  /* Accent Colors - Warm Yellows */
  --accent-color: #E8D5A3;
  --accent-light: #F5E6C8;
  --accent-dark: #D4C48A;

  /* Warm Coral - for CTAs */
  --coral-color: #E8A598;
  --coral-light: #F5C7BE;
  --coral-dark: #D4877A;

  /* Neutrals */
  --text-dark: #2C3E50;
  --text-muted: #6C757D;
  --bg-light: #F8F9FA;
  --bg-white: #FFFFFF;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #6B8BA3 0%, #9B8CB5 100%);
  --gradient-warm: linear-gradient(135deg, #E8D5A3 0%, #E8A598 100%);
  --gradient-cool: linear-gradient(135deg, #8BA4B5 0%, #B5A8C9 100%);
  --gradient-hero: linear-gradient(135deg, rgba(107, 139, 163, 0.95) 0%, rgba(155, 140, 181, 0.95) 100%);
}

/* ==========================================
   GLOBAL STYLES
   ========================================== */

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* ==========================================
   NAVIGATION
   ========================================== */

.navbar {
  background: var(--bg-white) !important;
  box-shadow: 0 2px 15px rgba(107, 139, 163, 0.15);
  padding: 0.75rem 0;
  transition: all 0.3s ease;
}

.navbar-brand {
  font-weight: 700;
  color: var(--primary-dark) !important;
  font-size: 1.5rem;
}

.navbar-brand:hover {
  color: var(--secondary-color) !important;
}

.nav-link {
  color: var(--text-dark) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  margin: 0 0.25rem;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-color) !important;
  background: rgba(107, 139, 163, 0.1);
}

.nav-link.active {
  color: var(--bg-white) !important;
  background: var(--gradient-primary) !important;
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero-section {
  background: var(--gradient-hero),
              url('uploads/hero-banner.jpg') center/cover;
  padding: 8rem 0 6rem;
  color: var(--bg-white);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(232, 213, 163, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

.hero-section h1 {
  color: var(--bg-white);
  font-weight: 700;
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.hero-section .lead {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.35rem;
  margin-bottom: 2rem;
}

/* ==========================================
   BUTTONS
   ========================================== */

.btn-primary {
  background: var(--gradient-primary);
  border: none;
  color: var(--bg-white);
  padding: 0.75rem 2rem;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(107, 139, 163, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(107, 139, 163, 0.4);
  background: var(--gradient-primary);
  color: var(--bg-white);
}

.btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 0.75rem 2rem;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background: var(--gradient-primary);
  border-color: var(--primary-color);
  color: var(--bg-white);
  transform: translateY(-2px);
}

.btn-light {
  background: var(--bg-white);
  color: var(--primary-dark);
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-light:hover {
  background: var(--accent-light);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

/* ==========================================
   CARDS
   ========================================== */

.card {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(107, 139, 163, 0.12);
  transition: all 0.4s ease;
  background: var(--bg-white);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(107, 139, 163, 0.2);
}

.card-img-top {
  height: 250px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.card-body {
  padding: 1.5rem;
}

.card-title {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.card-text {
  color: var(--text-muted);
  line-height: 1.6;
}

/* Featured Artwork Cards */
.featured-artwork {
  border-radius: 20px;
  overflow: hidden;
}

.featured-artwork .card-img-top {
  height: 300px;
  object-fit: cover;
}

/* Gallery Artwork Cards */
.artwork-card {
  border-radius: 18px;
  overflow: hidden;
}

.artwork-card .card-img-top {
  height: 350px;
  object-fit: cover;
}

/* Category Cards */
.category-card {
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  background: var(--bg-white);
  transition: all 0.4s ease;
  border: 2px solid transparent;
}

.category-card:hover {
  border-color: var(--primary-light);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(107, 139, 163, 0.2);
}

.category-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==========================================
   SECTIONS
   ========================================== */

section {
  padding: 5rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
 ima background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Featured Section Background */
.section-featured {
  background: linear-gradient(180deg, var(--bg-light) 0%, rgba(139, 164, 181, 0.08) 50%, var(--bg-light) 100%);
}

/* Categories Section Background */
.section-categories {
  background: var(--bg-white);
}

/* ==========================================
   GALLERY PAGE
   ========================================== */

.gallery-page {
  min-height: 80vh;
  background: linear-gradient(180deg, var(--bg-light) 0%, rgba(181, 168, 201, 0.08) 100%);
  padding: 3rem 0 5rem;
}

.gallery-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.gallery-header h1 {
  font-size: 3rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

/* Filter Buttons */
.filter-btn {
  margin: 0.35rem;
  padding: 0.6rem 1.5rem;
  border-radius: 25px;
  border: 2px solid var(--primary-light);
  background: transparent;
  color: var(--text-dark);
  font-weight: 500;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
  color: var(--bg-white);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: var(--gradient-primary);
  border-color: var(--primary-color);
  color: var(--bg-white);
  box-shadow: 0 4px 15px rgba(107, 139, 163, 0.3);
}

/* Artwork Grid */
.artwork-item {
  transition: all 0.3s ease;
}

/* ==========================================
   ARTWORK DETAIL PAGE
   ========================================== */

.artwork-detail {
  padding: 4rem 0;
  background: var(--bg-light);
}

.artwork-image-container {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(107, 139, 163, 0.2);
  background: var(--bg-white);
}

.artwork-image {
  width: 100%;
  height: auto;
  display: block;
}

.artwork-details {
  background: var(--bg-white);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 10px 40px rgba(107, 139, 163, 0.15);
}

.artwork-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.artwork-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 1.5rem 0;
  padding: 1.5rem 0;
  border-top: 2px solid var(--primary-light);
  border-bottom: 2px solid var(--primary-light);
}

.artwork-meta-item {
  flex: 1;
  min-width: 150px;
}

.artwork-meta-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.artwork-meta-value {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 1.1rem;
}

.artwork-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--coral-dark);
  margin: 1.5rem 0;
}

.artwork-description {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 1.05rem;
}

/* ==========================================
   FOOTER
   ========================================== */

footer {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%) !important;
  padding: 4rem 0 2rem;
  margin-top: 6rem;
}

footer h5 {
  color: var(--accent-light);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

footer a {
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

footer a:hover {
  color: var(--accent-light);
  padding-left: 5px;
}

footer .text-white-50 {
  color: rgba(255, 255, 255, 0.7) !important;
}

footer hr {
  border-color: rgba(255, 255, 255, 0.15);
}

/* ==========================================
   FORMS
   ========================================== */

.form-control {
  border: 2px solid var(--primary-light);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(107, 139, 163, 0.15);
}

.form-label {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

/* ==========================================
   ANIMATIONS & EFFECTS
   ========================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 768px) {
  .hero-section {
    padding: 5rem 0 3rem;
  }

  .hero-section h1 {
    font-size: 2.5rem;
  }

  .hero-section .lead {
    font-size: 1.1rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .gallery-header h1 {
    font-size: 2rem;
  }

  .artwork-title {
    font-size: 1.75rem;
  }

  .card-img-top {
    height: 200px;
  }

  .artwork-card .card-img-top {
    height: 250px;
  }
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */

.text-primary-custom {
  color: var(--primary-color) !important;
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.bg-gradient-warm {
  background: var(--gradient-warm) !important;
}

.shadow-custom {
  box-shadow: 0 10px 40px rgba(107, 139, 163, 0.15) !important;
}

.rounded-custom {
  border-radius: 20px !important;
}

/* ==========================================
   ADDITIONAL POLISH
   ========================================== */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Selection color */
::selection {
  background: var(--accent-color);
  color: var(--text-dark);
}

/* Focus styles for accessibility */
button:focus,
a:focus,
.btn:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* Loading state for images */
img {
  background: linear-gradient(90deg, var(--bg-light) 25%, var(--primary-light) 50%, var(--bg-light) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

img[src] {
  animation: none;
  background: none;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
