/* Charlie Racconta - Warm Pastel Theme */

:root {
  /* Warm pastel color palette - Expanded */
  --primary-color: #F9A826;
  --primary-dark: #F59E0B;
  --primary-light: #FEF3C7;
  --accent-color: #F97316;
  --accent-dark: #EA580C;
  --accent-light: #FFEDD5;
  --secondary-color: #E9B8A8;
  --secondary-dark: #D69E8E;
  --secondary-light: #FCEAE6;
  --tertiary-color: #F9C8D9;
  --tertiary-dark: #F5A3BF;
  --tertiary-light: #FEE5EF;
  --success-color: #84CC16;
  --success-dark: #65A30D;
  --success-light: #ECFCCB;
  --warning-color: #FACC15;
  --warning-dark: #EAB308;
  --warning-light: #FEF9C3;
  --error-color: #EF4444;
  --error-dark: #DC2626;
  --error-light: #FEE2E2;
  --text-color: #4A5568;
  --text-light: #718096;
  --bg-color: #FFF8F0;
  --white: #FFFFFF;
  --gray-100: #F7FAFC;
  --gray-200: #EDF2F7;
  --gray-300: #E2E8F0;
  --gray-400: #CBD5E0;
  --gray-500: #A0AEC0;
  --gray-600: #718096;
  --gray-700: #4A5568;
  --gray-800: #2D3748;
  --gray-900: #1A202C;
}

body {
  font-family: "Quicksand", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
}

h1, h2, h3, h4, h5 {
  font-family: "Playfair Display", serif;
}

/* Buttons */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

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

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

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

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

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

/* Text colors */
.text-primary {
  color: var(--primary-color);
}

.text-secondary {
  color: var(--secondary-color);
}

.text-accent {
  color: var(--accent-color);
}

.text-tertiary {
  color: var(--tertiary-color);
}

/* Background colors */
.bg-primary {
  background-color: var(--primary-color);
}

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

.bg-secondary {
  background-color: var(--secondary-color);
}

.bg-secondary-light {
  background-color: var(--secondary-light);
}

.bg-accent {
  background-color: var(--accent-color);
}

.bg-accent-light {
  background-color: var(--accent-light);
}

.bg-tertiary {
  background-color: var(--tertiary-color);
}

.bg-tertiary-light {
  background-color: var(--tertiary-light);
}

/* Border colors */
.border-primary {
  border-color: var(--primary-color);
}

.border-secondary {
  border-color: var(--secondary-color);
}

.border-accent {
  border-color: var(--accent-color);
}

/* Forms */
input:focus, textarea:focus, select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-light);
}

/* Cards */
.card {
  background-color: var(--white);
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Tailwind Overrides for Warm Pastel Theme */
.bg-white {
  background-color: var(--white);
}

.bg-gray-50 {
  background-color: var(--bg-color);
}

.bg-gray-100 {
  background-color: var(--gray-100);
}

.bg-blue-50 {
  background-color: var(--primary-light);
}

.bg-blue-100 {
  background-color: var(--primary-light);
}

.bg-blue-600, .bg-blue-700 {
  background-color: var(--primary-color);
}

.hover\:bg-blue-700:hover {
  background-color: var(--primary-dark);
}

.text-blue-600, .text-blue-700, .text-blue-800 {
  color: var(--primary-dark);
}

.border-blue-600 {
  border-color: var(--primary-color);
}

.hover\:border-blue-600:hover {
  border-color: var(--primary-dark);
}

.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(249, 168, 38, 0.1), 0 4px 6px -2px rgba(249, 168, 38, 0.05);
}

/* Gradients */
.gradient-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.gradient-warm {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.gradient-pastel {
  background: linear-gradient(135deg, var(--secondary-color), var(--tertiary-color));
}

/* ===================== */
/* Media (Galleria) UI   */
/* ===================== */
.media-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 1024px) {
  .media-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .media-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .media-grid { grid-template-columns: 1fr; }
}

.media-item {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.media-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 22px rgba(0,0,0,0.12);
}

.media-item img {
  display: block;
  width: 100%;
  height: 12rem;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.media-item:hover img {
  transform: scale(1.05);
}

/* Document list styling */
.doc-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.doc-card {
  display: flex;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.doc-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary-color);
  box-shadow: 0 10px 18px rgba(249,168,38,0.12);
}

.doc-card .doc-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--primary-light);
  color: var(--primary-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.doc-card .doc-title {
  font-weight: 600;
  color: var(--text-color);
}

.doc-card .doc-meta {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* Video frame */
.video-frame {
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.lightbox-overlay.active { display: flex; }

.lightbox-content {
  max-width: min(92vw, 1100px);
  max-height: 86vh;
}

.lightbox-content img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
}

.lightbox-caption {
  color: #fff;
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.95rem;
  opacity: 0.9;
}