/* ===== CSS Variables - Pastel Cat Cafe Theme ===== */
:root {
  /* Sakura Pink - Primary */
  --primary: #FFB5BA;
  --primary-light: #FFCDD2;
  --primary-dark: #F48FB1;
  --primary-rgb: 255, 181, 186;
  
  /* Mint Green - Secondary */
  --secondary: #A8E6CF;
  --secondary-light: #C8F7DC;
  --secondary-dark: #88D8B0;
  
  /* Peach - Accent */
  --accent: #FFCCBC;
  --accent-light: #FFE0D6;
  --accent-dark: #FFAB91;
  
  /* Lavender - Tertiary */
  --tertiary: #D4A5FF;
  --tertiary-light: #E8D0FF;
  
  /* Cream Backgrounds */
  --bg-light: #FFF8F0;
  --bg-cream: #FFFAF5;
  --bg-card: #FFFFFF;
  --bg-warm: #FFF5EB;
  --bg-dark: #5D4E4E;
  --bg-dark-card: #6B5B5B;
  
  /* Text Colors - Warm tones */
  --text-primary: #5D4E4E;
  --text-secondary: #8B7E7E;
  --text-muted: #B8ADAD;
  --text-cute: #E57373;
  
  /* Snack/Cookie Colors - Golden warm */
  --snack-color: #FFD54F;
  --snack-glow: #FFCA28;
  --snack-rgb: 255, 213, 79;
  
  /* Status Colors - Softer versions */
  --success: #81C784;
  --error: #E57373;
  --warning: #FFD54F;
  
  /* Soft Shadows - Warmer tones */
  --shadow-sm: 0 2px 8px rgba(93, 78, 78, 0.06);
  --shadow-md: 0 4px 20px rgba(93, 78, 78, 0.08);
  --shadow-lg: 0 8px 32px rgba(93, 78, 78, 0.10);
  --shadow-glow: 0 4px 20px rgba(255, 181, 186, 0.3);
  --shadow-card: 0 4px 24px rgba(93, 78, 78, 0.08);
  
  /* Super Rounded Corners */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --radius-full: 9999px;
  --radius-blob: 60% 40% 50% 50% / 50% 50% 40% 60%;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Nunito', 'Mali', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-cream);
  background-image: 
    radial-gradient(circle, rgba(255, 181, 186, 0.12) 8px, transparent 8px),
    radial-gradient(circle, rgba(168, 230, 207, 0.10) 6px, transparent 6px),
    radial-gradient(circle at 20% 80%, rgba(255, 181, 186, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(168, 230, 207, 0.1) 0%, transparent 50%);
  background-size: 60px 60px, 40px 40px, 100% 100%, 100% 100%;
  background-position: 0 0, 20px 20px, 0 0, 0 0;
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100vw;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

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

/* ===== Typography - Cute Rounded Fonts ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Mali', 'Nunito', sans-serif;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
}

h1 { font-size: 2.25rem; letter-spacing: -0.02em; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }

/* Handwritten style for special text */
.handwritten {
  font-family: 'Itim', cursive;
}

/* ===== Layout ===== */
.upload-page {
  padding: 2rem 1rem;
  max-width: 550px;
  margin: 0 auto;
  width: 100%;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  box-sizing: border-box;
  overflow-x: hidden;
}

.main-content {
  min-height: calc(100vh - 80px);
  padding-top: 80px;
  padding-bottom: 100px;
  overflow-x: hidden;
  width: 100%;
}

@media (min-width: 768px) {
  .main-content {
    padding-bottom: 2rem;
  }
}

/* ===== Navbar - Pastel Cat Cafe ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(255, 181, 186, 0.15);
  z-index: 1000;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 181, 186, 0.2);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Mali', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

.navbar-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(255, 181, 186, 0.3);
  transition: all var(--transition-bounce);
  border: 3px solid white;
}

.navbar-brand:hover .navbar-logo {
  transform: rotate(-10deg) scale(1.1);
  box-shadow: 0 6px 20px rgba(255, 181, 186, 0.4);
}

.navbar-brand span {
  background: linear-gradient(135deg, var(--primary-dark), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-nav {
  display: none;
  list-style: none;
  gap: 2rem;
}

@media (min-width: 768px) {
  .navbar-nav {
    display: flex;
  }
}

.navbar-nav a {
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

.navbar-nav a:hover,
.navbar-nav a.active {
  color: var(--primary);
}

.navbar-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  border-radius: var(--radius-full);
}

.btn-upload-nav {
  display: none;
  padding: 0.7rem 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  font-weight: 600;
  font-family: 'Mali', sans-serif;
  border-radius: var(--radius-full);
  transition: all var(--transition-bounce);
  box-shadow: 
    0 4px 0 var(--primary-dark),
    0 6px 20px rgba(255, 181, 186, 0.3);
  position: relative;
  top: 0;
}

.btn-upload-nav:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 6px 0 var(--primary-dark),
    0 10px 30px rgba(255, 181, 186, 0.4);
}

.btn-upload-nav:active {
  transform: translateY(2px);
  box-shadow: 
    0 2px 0 var(--primary-dark),
    0 4px 10px rgba(255, 181, 186, 0.3);
}

@media (min-width: 768px) {
  .btn-upload-nav {
    display: inline-flex;
  }
}

/* ===== Language Selector ===== */
.lang-selector {
  padding: 0.35rem 0.5rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: var(--bg-light);
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-selector:hover {
  border-color: var(--primary);
  background: white;
}

.lang-selector:focus {
  outline: none;
  border-color: var(--primary);
}

/* ===== Mobile Bottom Nav - Pastel Cat Cafe ===== */
.mobile-nav {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 75px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 -4px 20px rgba(255, 181, 186, 0.15);
  z-index: 1000;
  justify-content: space-around;
  align-items: center;
  padding: 0 1rem;
  border-top: 1px solid rgba(255, 181, 186, 0.2);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

@media (min-width: 768px) {
  .mobile-nav {
    display: none;
  }
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-family: 'Mali', sans-serif;
  transition: all var(--transition-bounce);
}

.mobile-nav-item svg {
  width: 24px;
  height: 24px;
}

.mobile-nav-item.active,
.mobile-nav-item:hover {
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.mobile-nav-upload {
  width: 60px;
  height: 60px;
  background: linear-gradient(145deg, var(--primary-light), var(--primary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-top: -30px;
  box-shadow: 
    0 4px 0 var(--primary-dark),
    0 8px 25px rgba(255, 181, 186, 0.5);
  transition: all var(--transition-bounce);
  border: 3px solid white;
}

.mobile-nav-upload:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 
    0 6px 0 var(--primary-dark),
    0 12px 30px rgba(255, 181, 186, 0.6);
}

.mobile-nav-upload:active {
  transform: scale(0.95) translateY(2px);
  box-shadow: 
    0 2px 0 var(--primary-dark),
    0 4px 15px rgba(255, 181, 186, 0.4);
}

.mobile-nav-upload svg {
  width: 28px;
  height: 28px;
}

/* ===== Hero Section - Pastel Cat Cafe ===== */
.hero-section {
  background: linear-gradient(135deg, 
    rgba(255, 205, 210, 0.4) 0%, 
    rgba(255, 248, 240, 0.8) 40%,
    rgba(200, 247, 220, 0.3) 100%);
  border-radius: var(--radius-xl);
  padding: 2rem 2.5rem;
  margin-bottom: 2rem;
  border: 2px solid rgba(255, 181, 186, 0.2);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
}

/* Decorative blob shapes */
.hero-section::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, rgba(255, 181, 186, 0.3), rgba(168, 230, 207, 0.2));
  border-radius: var(--radius-blob);
  top: -50px;
  right: -30px;
  z-index: 0;
  animation: blob-float 8s ease-in-out infinite;
}

.hero-section::after {
  content: '';
  position: absolute;
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, rgba(255, 204, 188, 0.3), rgba(212, 165, 255, 0.2));
  border-radius: 50% 40% 60% 40% / 40% 50% 40% 60%;
  bottom: -30px;
  left: -20px;
  z-index: 0;
  animation: blob-float 6s ease-in-out infinite reverse;
}

@keyframes blob-float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(10px, -10px) rotate(5deg); }
  66% { transform: translate(-5px, 5px) rotate(-3deg); }
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.hero-image {
  width: 150px;
  height: 150px;
  object-fit: contain;
  border-radius: var(--radius-lg);
  flex-shrink: 0;
  filter: drop-shadow(0 8px 20px rgba(93, 78, 78, 0.15));
  transition: transform var(--transition-bounce);
  /* Allow cat to overflow - "break out" of frame */
  position: relative;
  z-index: 2;
}

.hero-image:hover {
  transform: scale(1.08) rotate(-3deg);
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  font-family: 'Mali', sans-serif;
  background: linear-gradient(135deg, var(--primary-dark), var(--text-cute));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  font-size: 1rem;
  font-family: 'Nunito', sans-serif;
}

/* Paw print CTA button */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: 'Mali', sans-serif;
  box-shadow: 
    0 4px 0 var(--primary-dark),
    0 6px 20px rgba(255, 181, 186, 0.4);
  transition: all var(--transition-bounce);
  position: relative;
  top: 0;
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 6px 0 var(--primary-dark),
    0 10px 30px rgba(255, 181, 186, 0.5);
}

.hero-cta:active {
  transform: translateY(2px);
  box-shadow: 
    0 2px 0 var(--primary-dark),
    0 4px 10px rgba(255, 181, 186, 0.3);
}

@media (max-width: 768px) {
  .hero-section {
    padding: 1.25rem;
  }
  
  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .hero-image {
    width: 100px;
    height: 100px;
  }
  
  .hero-text h1 {
    font-size: 1.35rem;
  }
}

/* ===== Feed Page ===== */
.feed-header {
  padding: 1.5rem 0;
}

.feed-title {
  text-align: center;
  margin-bottom: 1.5rem;
}

.feed-title h1 {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
}

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

.feed-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
  flex-wrap: wrap;
  justify-content: center;
  background: white;
  padding: 0.5rem;
  border-radius: var(--radius-full);
  width: fit-content;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
  border: 2px solid rgba(255, 181, 186, 0.15);
}

.feed-tab {
  padding: 0.65rem 1.3rem;
  border: none;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-bounce);
  font-weight: 600;
  font-size: 0.9rem;
  font-family: 'Mali', sans-serif;
}

.feed-tab:hover {
  background: rgba(255, 181, 186, 0.15);
  color: var(--primary-dark);
  transform: translateY(-1px);
}

.feed-tab.active {
  background: linear-gradient(145deg, var(--primary-light), var(--primary));
  color: white;
  box-shadow: 
    0 3px 0 var(--primary-dark),
    0 4px 12px rgba(255, 181, 186, 0.4);
}

/* ===== Post Grid ===== */
.post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  padding: 1rem 0;
  margin-bottom: 2rem;
  width: 100%;
  overflow: hidden;
}

@media (min-width: 480px) {
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 768px) {
  .post-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .post-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem;
  }
}

@media (min-width: 1400px) {
  .post-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* ===== Post Card - Polaroid Style ===== */
.post-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-bounce);
  border: 3px solid white;
  position: relative;
}

/* Decorative sticker - inside card to prevent overflow */
.post-card::before {
  content: '🐾';
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 1.1rem;
  z-index: 10;
  opacity: 0.7;
  transform: rotate(-15deg);
  transition: all var(--transition-bounce);
}

.post-card:hover::before {
  opacity: 1;
  transform: rotate(-15deg) scale(1.1);
}

.post-card:nth-child(3n)::before { content: '🐟'; }
.post-card:nth-child(3n+1)::before { content: '🐾'; }
.post-card:nth-child(3n+2)::before { content: '🧶'; }

 .post-card.is-video::before {
  display: none;
 }

.post-card:hover {
  transform: translateY(-6px);
  box-shadow: 
    0 16px 32px rgba(93, 78, 78, 0.12),
    0 6px 12px rgba(255, 181, 186, 0.2);
}

.post-card-media {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #faf5f0, #fff8f3);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.post-card-media img,
.post-card-media video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.post-card:hover .post-card-media img,
.post-card:hover .post-card-media video {
  transform: scale(1.03);
}

/* Video in feed */
.post-card-media .post-card-video-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

/* Custom Video Player */
.custom-player {
  position: relative;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
}

.custom-player video {
  width: 100%;
  max-height: 70vh;
  display: block;
  object-fit: contain;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: auto;
}

/* Player Controls */
.player-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
  padding: 20px 16px 12px;
  transition: opacity 0.3s ease;
}

.progress-container {
  position: relative;
  height: 5px;
  background: rgba(255,255,255,0.2);
  border-radius: 10px;
  cursor: pointer;
  margin-bottom: 12px;
}

.progress-container:hover {
  height: 8px;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #ff6b6b, #feca57);
  border-radius: 10px;
  width: 0%;
  transition: width 0.1s linear;
}

.progress-thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  opacity: 0;
  transition: opacity 0.2s;
}

.progress-container:hover .progress-thumb {
  opacity: 1;
}

.controls-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.controls-left, .controls-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ctrl-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ctrl-btn:hover {
  background: rgba(255,255,255,0.15);
  transform: scale(1.1);
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 6px;
}

.volume-slider {
  width: 70px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255,255,255,0.3);
  border-radius: 10px;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
}

.volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

.time-display {
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Big Play Button Overlay */
.big-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  transition: opacity 0.3s ease;
}

.big-play-btn {
  width: 80px;
  height: 80px;
  background: rgba(255,107,107,0.9);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(255,107,107,0.5);
  transition: all 0.3s ease;
  padding-left: 6px;
}

.big-play-btn:hover {
  transform: scale(1.1);
  background: rgba(255,107,107,1);
}

/* Fullscreen styles */
.custom-player:fullscreen {
  background: #000;
}

.custom-player:fullscreen video {
  max-height: 100vh;
}

/* Sound indicator */
.video-sound-indicator {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.post-card-media:hover .video-sound-indicator {
  opacity: 1;
}

.post-card-video-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Polaroid-style thick bottom - cat name area */
.post-card-content {
  padding: 1rem 1.25rem 1.5rem;
  background: white;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  position: relative;
}

.post-card-name {
  font-family: 'Itim', 'Mali', cursive;
  font-weight: 500;
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #111;
}

.post-card-address {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.post-card-address svg {
  color: var(--primary);
}

.post-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.post-card-time {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: 'Nunito', sans-serif;
}

/* ===== Snack Button - Claymorphism Cookie Style ===== */
.snack-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  background: linear-gradient(145deg, #FFE082, var(--snack-color));
  color: #6D4C00;
  font-weight: 600;
  font-family: 'Mali', sans-serif;
  border-radius: var(--radius-full);
  transition: all var(--transition-bounce);
  font-size: 0.9rem;
  box-shadow: 
    0 3px 0 #E6AC00,
    0 5px 15px rgba(255, 213, 79, 0.4),
    inset 0 2px 4px rgba(255, 255, 255, 0.5);
  position: relative;
  top: 0;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.snack-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 5px 0 #E6AC00,
    0 10px 25px rgba(255, 213, 79, 0.5),
    inset 0 2px 4px rgba(255, 255, 255, 0.5);
}

.snack-btn:active {
  transform: translateY(2px) scale(0.98);
  box-shadow: 
    0 1px 0 #E6AC00,
    0 3px 8px rgba(255, 213, 79, 0.4),
    inset 0 2px 4px rgba(255, 255, 255, 0.5);
}

.snack-btn.snacked {
  animation: snack-pop 0.5s var(--transition-bounce);
}

@keyframes snack-pop {
  0% { transform: scale(1) rotate(0deg); }
  30% { transform: scale(1.3) rotate(-5deg); }
  60% { transform: scale(0.9) rotate(5deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.snack-icon {
  font-size: 1.25rem;
  transition: transform var(--transition-bounce);
}

.snack-btn:hover .snack-icon {
  transform: rotate(-15deg) scale(1.1);
}

/* ===== Empty State ===== */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-secondary);
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.empty-state-image {
  width: 180px;
  height: 180px;
  object-fit: contain;
  margin-bottom: 1.5rem;
  border-radius: 20px;
}

.empty-state h3 {
  margin-bottom: 0.5rem;
}

.empty-state p {
  margin-bottom: 1.5rem;
}

/* ===== Loading ===== */
.htmx-request .htmx-indicator {
  display: inline-block;
}

.htmx-indicator {
  display: none;
}

.loading-spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid var(--bg-light);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-sm);
}

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

/* ===== Buttons - Cute Claymorphism ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-weight: 600;
  font-family: 'Mali', sans-serif;
  border-radius: var(--radius-full);
  transition: all var(--transition-bounce);
  position: relative;
  top: 0;
}

.btn-primary {
  background: linear-gradient(145deg, var(--primary-light), var(--primary));
  color: white;
  box-shadow: 
    0 4px 0 var(--primary-dark),
    0 6px 20px rgba(255, 181, 186, 0.4),
    inset 0 2px 4px rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 6px 0 var(--primary-dark),
    0 10px 30px rgba(255, 181, 186, 0.5),
    inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

.btn-primary:active {
  transform: translateY(2px);
  box-shadow: 
    0 2px 0 var(--primary-dark),
    0 4px 10px rgba(255, 181, 186, 0.3),
    inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
  background: white;
  color: var(--text-primary);
  border: 2px solid rgba(255, 181, 186, 0.3);
  box-shadow: 
    0 3px 0 rgba(93, 78, 78, 0.1),
    0 4px 12px rgba(93, 78, 78, 0.08);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 
    0 4px 0 rgba(255, 181, 186, 0.3),
    0 6px 16px rgba(255, 181, 186, 0.2);
}

.btn-lg {
  padding: 1.1rem 2.25rem;
  font-size: 1.1rem;
}

/* ===== Infinite Scroll Trigger ===== */
.infinite-scroll-trigger {
  grid-column: 1 / -1;
  padding: 2rem;
  text-align: center;
}

.loading-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
}

.loading-more p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-family: 'Mali', sans-serif;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--bg-tertiary);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.feed-end {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
  color: var(--text-secondary);
  font-family: 'Mali', sans-serif;
  opacity: 0.7;
}

/* ===== Toast Notifications ===== */
.toast-container {
  position: fixed;
  top: 90px;
  right: 1rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: var(--bg-card);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: toast-in 0.3s ease;
}

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

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
