/* ==========================================================================
   AURA GALLERY - DESIGN SYSTEM & STYLESHEET
   Theme: Minimalist, Modern, Elegant Art Gallery
   Color Palette: Beige & Caramel
   ========================================================================== */

/* --- CSS VARIABLES (Design Tokens) --- */
:root {
  /* Color Palette */
  --bg-main: #F2EBD9;          /* Soft light beige */
  --bg-card: #FAF6EE;          /* Warm white for cards and details */
  --bg-header: rgba(242, 235, 217, 0.85); /* Semi-transparent header */
  --text-primary: #2B2B2B;     /* Elegant dark charcoal */
  --text-secondary: #6B6256;   /* Warm medium gray-brown */
  --accent-caramel: #C68B59;   /* Classic caramel accent */
  --accent-caramel-dark: #B3704C; /* Deep warm caramel */
  --accent-caramel-light: #E0BA9B; /* Soft light caramel tint */
  --border-color: #E2DAC8;     /* Light outline beige */
  --shadow-subtle: 0 8px 30px rgba(107, 98, 86, 0.06);
  --shadow-hover: 0 16px 40px rgba(107, 98, 86, 0.12);
  --white: #FFFFFF;
  --error: #D9534F;
  --success: #5CB85C;

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

  /* Layout */
  --header-height: 80px;
  --border-radius: 12px;
  --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: all 0.2s ease;
}

/* --- RESET & BASE STYLES --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* --- APP LAYOUT --- */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--bg-header);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100;
  transition: var(--transition-smooth);
}

.header-container {
  max-width: 1400px;
  height: 100%;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--text-primary);
}

.logo-accent {
  font-weight: 300;
  color: var(--accent-caramel-dark);
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  position: relative;
  padding: 8px 0;
}

.nav-link:hover {
  color: var(--accent-caramel-dark);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-caramel);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-link.active {
  color: var(--text-primary);
  font-weight: 600;
}

.nav-link.admin-btn {
  background-color: transparent;
  border: 1px solid var(--accent-caramel);
  padding: 8px 18px;
  border-radius: 4px;
  color: var(--accent-caramel-dark);
}

.nav-link.admin-btn:hover {
  background-color: var(--accent-caramel);
  color: var(--white);
}

.nav-link.admin-btn::after {
  display: none;
}

.main-content {
  margin-top: var(--header-height);
  flex: 1;
  padding: 40px;
  max-width: 1400px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.app-footer {
  text-align: center;
  padding: 30px;
  border-top: 1px solid var(--border-color);
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--text-secondary);
  background-color: var(--bg-card);
  text-transform: uppercase;
}

/* --- COMMON COMPONENTS & TYPOGRAPHY --- */
.section-title-wrap {
  text-align: center;
  margin-bottom: 40px;
}

.section-subtitle {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-caramel-dark);
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: 1px;
}

.title-underline {
  width: 40px;
  height: 2px;
  background-color: var(--accent-caramel);
  margin: 12px auto 0 auto;
}

/* SPA View Swapper */
.spa-view {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.spa-view.active {
  display: block;
  animation: fadeInView 0.5s forwards cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes fadeInView {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- TOAST NOTIFICATIONS --- */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--text-primary);
  color: var(--white);
  padding: 16px 28px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.success {
  border-left: 4px solid var(--accent-caramel);
}

.toast.error {
  border-left: 4px solid var(--error);
}

.toast.hidden {
  display: none;
}

/* --- VIEW 1: EXHIBITION (PUBLIC VIEW) --- */

/* Artists Filter Carousel */
.artists-section {
  margin-bottom: 50px;
}

.artists-carousel {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  padding: 20px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Individual Artist Card in Carousel */
.artist-filter-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  width: 120px;
  transition: var(--transition-smooth);
  text-align: center;
}

.avatar-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  padding: 3px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  transition: var(--transition-smooth);
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}

.avatar-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  filter: grayscale(40%);
  transition: var(--transition-smooth);
}

.artist-filter-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

/* Active and Hover States */
.artist-filter-card:hover .avatar-wrapper {
  border-color: var(--accent-caramel-light);
  transform: translateY(-4px);
}

.artist-filter-card:hover .avatar-wrapper img {
  filter: grayscale(0%);
}

.artist-filter-card:hover .artist-filter-name {
  color: var(--accent-caramel-dark);
}

.artist-filter-card.active .avatar-wrapper {
  border-color: var(--accent-caramel-dark);
  box-shadow: 0 0 0 3px var(--accent-caramel-light);
  transform: translateY(-4px);
}

.artist-filter-card.active .avatar-wrapper img {
  filter: grayscale(0%);
}

.artist-filter-card.active .artist-filter-name {
  color: var(--text-primary);
  font-weight: 600;
}

/* Artist Bio Panel (Revealed on click) */
.artist-bio-container {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  margin-top: 30px;
  position: relative;
  transition: max-height 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.5s ease, padding 0.5s ease;
  box-shadow: var(--shadow-subtle);
}

.artist-bio-container.active {
  max-height: 500px;
  opacity: 1;
  padding: 30px;
}

.close-bio-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 18px;
  color: var(--text-secondary);
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.close-bio-btn:hover {
  background-color: var(--bg-main);
  color: var(--text-primary);
}

.bio-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: center;
}

.bio-image-wrap {
  width: 200px;
  height: 200px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
}

.bio-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bio-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bio-tag {
  align-self: flex-start;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  background-color: var(--accent-caramel-light);
  color: var(--accent-caramel-dark);
  padding: 4px 10px;
  border-radius: 20px;
}

.bio-name {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--text-primary);
  font-weight: 400;
}

.bio-text {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

.bio-stats {
  margin-top: 10px;
}

.stat-badge {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-caramel-dark);
  border: 1px solid var(--accent-caramel-light);
  padding: 6px 14px;
  border-radius: 4px;
}

/* Gallery Layout - Masonry Column Grid */
.gallery-section {
  border-top: 1px solid var(--border-color);
  padding-top: 50px;
}

.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 35px;
}

.gallery-meta {
  font-size: 14px;
  color: var(--text-secondary);
  font-style: italic;
}

.gallery-masonry {
  column-count: 3;
  column-gap: 24px;
  width: 100%;
}

/* Individual Art Piece Card */
.art-card {
  break-inside: avoid;
  margin-bottom: 24px;
  background-color: var(--bg-card);
  border-radius: var(--border-radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
}

.art-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Immersive Overlay and Hover Effect */
.art-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(179, 112, 76, 0.95) 0%,
    rgba(198, 139, 89, 0.5) 50%,
    rgba(242, 235, 217, 0) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: flex-end;
  z-index: 2;
}

.art-card-content {
  padding: 30px;
  color: var(--white);
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
  width: 100%;
}

.art-card-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.art-card-artist {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.85;
}

/* Hover Animation Trigger */
.art-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

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

.art-card:hover .art-card-overlay {
  opacity: 1;
}

.art-card:hover .art-card-content {
  transform: translateY(0);
  opacity: 1;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 80px 0;
  color: var(--text-secondary);
}

.empty-state i {
  font-size: 48px;
  color: var(--border-color);
  margin-bottom: 16px;
}

.empty-state p {
  font-size: 16px;
}

/* --- LIGHTBOX MODAL --- */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--overlay-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  background: transparent;
  border: none;
  font-size: 24px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition-fast);
  z-index: 1010;
}

.lightbox-close:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  transform: rotate(90deg);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  z-index: 1010;
}

.lightbox-nav:hover {
  background-color: var(--accent-caramel);
  border-color: var(--accent-caramel);
  color: var(--white);
}

.lightbox-prev {
  left: 40px;
}

.lightbox-next {
  right: 40px;
}

.lightbox-content {
  max-width: 80%;
  max-height: 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  transform: scale(0.95);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.lightbox.active .lightbox-content {
  transform: scale(1);
}

.lightbox-image-wrap {
  max-height: 70vh;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  border-radius: 4px;
  overflow: hidden;
  background-color: #000;
}

.lightbox-image-wrap img {
  max-height: 70vh;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox-caption {
  text-align: center;
  color: var(--white);
}

.lightbox-caption h4 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 4px;
}

.lightbox-caption p {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-caramel-light);
}


/* --- VIEW 2: AUTHENTICATION / LOGIN --- */
.auth-card-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - var(--header-height) - 160px);
  padding: 20px 0;
}

.auth-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 40px;
  width: 100%;
  max-width: 450px;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
}

.auth-header {
  text-align: center;
  margin-bottom: 30px;
}

.auth-icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--accent-caramel-light);
  color: var(--accent-caramel-dark);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
}

.auth-header h2 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 6px;
}

.auth-header p {
  font-size: 13px;
  color: var(--text-secondary);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
}

.input-icon-wrap {
  position: relative;
}

.input-icon-wrap .input-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 14px;
}

.input-icon-wrap input,
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-primary);
  outline: none;
  font-size: 14px;
  transition: var(--transition-fast);
}

.input-icon-wrap input {
  padding-left: 45px;
}

.input-icon-wrap input:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-caramel);
  box-shadow: 0 0 0 3px rgba(198, 139, 89, 0.15);
}

.form-error {
  background-color: rgba(217, 83, 79, 0.1);
  color: var(--error);
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(217, 83, 79, 0.2);
}

.form-error.hidden {
  display: none;
}

/* Buttons System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  border: none;
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-primary {
  background-color: var(--accent-caramel);
  color: var(--white);
}

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

.btn-secondary {
  background-color: transparent;
  border: 1px solid var(--text-secondary);
  color: var(--text-secondary);
}

.btn-secondary:hover {
  background-color: var(--text-secondary);
  color: var(--white);
}

.btn-cancel {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: underline;
  cursor: pointer;
  margin-top: 10px;
}

.btn-cancel:hover {
  color: var(--text-primary);
}

.text-center {
  text-align: center;
}

.demo-credentials-hint {
  margin-top: 24px;
  padding: 16px;
  background-color: rgba(198, 139, 89, 0.05);
  border: 1px dashed var(--accent-caramel-light);
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.demo-credentials-hint code {
  background-color: rgba(107, 98, 86, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-primary);
}


/* --- VIEW 3: ADMIN DASHBOARD --- */
.admin-dashboard-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding-bottom: 60px;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 24px;
}

.db-title-area h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
}

.db-title-area p {
  font-size: 14px;
  color: var(--text-secondary);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 30px;
  align-items: start;
}

.dashboard-forms-pane {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.dashboard-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--shadow-subtle);
}

.sticky-card {
  position: sticky;
  top: 100px;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.card-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
  padding-bottom: 12px;
}

.card-header-flex .card-title {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.dashboard-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* File Upload Details */
.upload-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 10px;
}

.tab-btn {
  background: transparent;
  border: none;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tab-btn.active {
  color: var(--accent-caramel-dark);
  font-weight: 600;
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-caramel-dark);
}

.input-option.hidden {
  display: none;
}

.custom-file-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1.5px dashed var(--accent-caramel-light);
  background-color: rgba(198, 139, 89, 0.02);
  border-radius: 6px;
  padding: 24px;
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--text-secondary);
  text-align: center;
}

.custom-file-upload input[type="file"] {
  display: none;
}

.custom-file-upload i {
  font-size: 24px;
  color: var(--accent-caramel);
  margin-bottom: 8px;
}

.custom-file-upload span {
  font-size: 13px;
}

.custom-file-upload:hover {
  background-color: rgba(198, 139, 89, 0.05);
  border-color: var(--accent-caramel);
  color: var(--text-primary);
}

/* Upload Image Preview */
.image-preview-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

.image-preview-container img {
  max-width: 120px;
  max-height: 120px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  object-fit: cover;
}

.image-preview-container.hidden {
  display: none;
}

/* Listings Pill Switchers */
.filter-pills {
  display: flex;
  gap: 8px;
  background-color: var(--bg-main);
  padding: 4px;
  border-radius: 20px;
}

.filter-pills .pill {
  border: none;
  background: transparent;
  padding: 6px 16px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.filter-pills .pill.active {
  background-color: var(--accent-caramel);
  color: var(--white);
}

.listings-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.listings-container.hidden {
  display: none;
}

.list-search-bar input {
  width: 100%;
  padding: 10px 14px;
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  outline: none;
  font-size: 13px;
}

.list-search-bar input:focus {
  border-color: var(--accent-caramel);
}

.scrollable-list {
  max-height: 480px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 4px;
}

/* Custom Scrollbar for scrollable lists */
.scrollable-list::-webkit-scrollbar,
.artists-carousel::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.scrollable-list::-webkit-scrollbar-track,
.artists-carousel::-webkit-scrollbar-track {
  background: transparent;
}

.scrollable-list::-webkit-scrollbar-thumb,
.artists-carousel::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

.scrollable-list::-webkit-scrollbar-thumb:hover,
.artists-carousel::-webkit-scrollbar-thumb:hover {
  background: var(--accent-caramel-light);
}

/* List Item Styles */
.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 10px 14px;
  gap: 12px;
  transition: var(--transition-fast);
}

.list-item:hover {
  border-color: var(--accent-caramel-light);
  box-shadow: 0 4px 12px rgba(107, 98, 86, 0.04);
}

.item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}

.item-thumbnail {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border-color);
}

.item-thumbnail.round {
  border-radius: 50%;
}

.item-details {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.item-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-meta {
  font-size: 11px;
  color: var(--text-secondary);
}

.item-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.btn-delete {
  background: transparent;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-delete:hover {
  background-color: rgba(217, 83, 79, 0.1);
  color: var(--error);
}


/* --- RESPONSIVE DESIGN MEDIA QUERIES --- */

/* For iPads and tablets */
@media (max-width: 1024px) {
  .gallery-masonry {
    column-count: 2;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  
  .sticky-card {
    position: static;
  }
}

/* For small tablets / big phones */
@media (max-width: 768px) {
  .main-content {
    padding: 24px;
  }

  .header-container {
    padding: 0 20px;
  }

  .logo-text {
    font-size: 20px;
  }

  .nav-links {
    gap: 15px;
  }

  .nav-link {
    font-size: 12px;
  }

  .nav-link.admin-btn {
    padding: 6px 12px;
  }

  .bio-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    justify-items: center;
    text-align: center;
  }

  .bio-image-wrap {
    width: 140px;
    height: 140px;
  }

  .bio-info {
    align-items: center;
  }

  .bio-name {
    font-size: 24px;
  }

  .lightbox-nav {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-close {
    top: 15px;
    right: 15px;
  }
}

/* For mobile devices */
@media (max-width: 480px) {
  .gallery-masonry {
    column-count: 1;
  }

  .artists-carousel {
    justify-content: flex-start;
    padding-left: 10px;
    padding-right: 10px;
  }

  .section-title {
    font-size: 26px;
  }

  .auth-card {
    padding: 24px;
  }

  .dashboard-card {
    padding: 20px;
  }
}

/* --- SYNC STATUS BADGE (SUPABASE Integration) --- */
.sync-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 4px;
  margin-top: 8px;
}

.sync-badge.local-mode {
  background-color: rgba(107, 98, 86, 0.1);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.sync-badge.cloud-mode {
  background-color: rgba(92, 184, 92, 0.1);
  color: var(--success);
  border: 1px solid rgba(92, 184, 92, 0.3);
}

.sync-badge.cloud-mode::before {
  content: '';
  width: 6px;
  height: 6px;
  background-color: var(--success);
  border-radius: 50%;
  animation: pulse-green 1.5s infinite;
}

@keyframes pulse-green {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(92, 184, 92, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 4px rgba(92, 184, 92, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(92, 184, 92, 0);
  }
}
