/* myknw.com — Photography & Memory Gallery */
/* Theme: Vivid Warm Amber (#FF7A00), Crisp Clean Light (#F8F9FA / #FFFFFF), and Charcoal Contrast (#18181B) */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Prompt:wght@300;400;500;600;700&display=swap');

:root {
  --color-brand: #FF7A00;
  --color-brand-glow: rgba(255, 122, 0, 0.25);
  --font-main: 'Plus Jakarta Sans', 'Prompt', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Light Theme Defaults */
  --bg-primary: #F8F9FA;
  --bg-surface: #FFFFFF;
  --bg-surface-alt: #F1F3F5;
  --text-primary: #18181B;
  --text-muted: #64748B;
  --border-subtle: #E2E8F0;
}

html:not(.dark) {
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Light Mode Overrides & High-Contrast Typography */
html.light body,
html:not(.dark) body {
  background-color: #F8F9FA !important;
  color: #0F172A !important;
}

/* Header in Light Mode */
html.light header,
html:not(.dark) header {
  background-color: rgba(255, 255, 255, 0.95) !important;
  border-bottom: 1px solid #E2E8F0 !important;
}

html.light header > div h1, 
html.light header > div span.text-white,
html:not(.dark) header > div h1, 
html:not(.dark) header > div span.text-white {
  color: #0F172A !important;
}

/* Radio Player Header Bar - Pure White text and high-contrast styling */
#radioPlayerContainer #radioListenerCount,
#radioPlayerContainer #radioCollapsedListenerCount,
header #radioPlayerContainer #radioListenerCount,
header #radioPlayerContainer #radioCollapsedListenerCount {
  color: #FFFFFF !important;
  font-weight: 900 !important;
}

header #radioPlayerContainer #radioStationTitle {
  color: #FFFFFF !important;
}

html.light header #siteHeaderSubtext,
html:not(.dark) header #siteHeaderSubtext {
  color: #64748B !important;
}

/* Hero Section Typography in Light Mode */
html.light #heroTitleText,
html:not(.dark) #heroTitleText {
  color: #0F172A !important;
  font-weight: 800 !important;
}

html.light #heroSubtitleText,
html:not(.dark) #heroSubtitleText {
  color: #334155 !important;
  font-weight: 400 !important;
}

html.light #heroBadgeText,
html:not(.dark) #heroBadgeText {
  color: #C2410C !important;
  font-weight: 600 !important;
}

/* Stats in Light Mode */
html.light #photoCount,
html.light #totalLikesCount,
html:not(.dark) #photoCount,
html:not(.dark) #totalLikesCount {
  color: #EA580C !important;
  font-weight: 800 !important;
}

/* Category Filter Buttons */
.category-btn {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Inactive category pills */
html.light .category-btn:not(.active),
html:not(.dark) .category-btn:not(.active) {
  background-color: #FFFFFF !important;
  color: #334155 !important;
  border: 1px solid #CBD5E1 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

html.light .category-btn:not(.active):hover,
html:not(.dark) .category-btn:not(.active):hover {
  color: #EA580C !important;
  border-color: #FF7A00 !important;
  background-color: #FFF7ED !important;
  transform: translateY(-1px);
}

/* Active category pill */
.category-btn.active,
html.light .category-btn.active,
html:not(.dark) .category-btn.active,
html.dark .category-btn.active {
  background-color: #FF7A00 !important;
  color: #000000 !important;
  border: 1px solid #FF7A00 !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(255, 122, 0, 0.35) !important;
}

/* Photo Cards in Light Mode */
html.light .photo-card,
html:not(.dark) .photo-card {
  background-color: #FFFFFF !important;
  border-color: #E2E8F0 !important;
  box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.06), 0 2px 6px -1px rgba(0, 0, 0, 0.03) !important;
}

html.light .photo-card:hover,
html:not(.dark) .photo-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 122, 0, 0.6) !important;
  box-shadow: 0 16px 32px -4px rgba(255, 122, 0, 0.2) !important;
}

/* Footer in Light Mode */
html.light footer,
html:not(.dark) footer {
  background-color: #FFFFFF !important;
  border-top: 1px solid #E2E8F0 !important;
  color: #475569 !important;
}

html.light footer span.text-zinc-300,
html:not(.dark) footer span.text-zinc-300,
html.light footer #siteFooterText,
html:not(.dark) footer #siteFooterText {
  color: #1E293B !important;
}

html.light #searchInput,
html.light #searchInputMobile,
html:not(.dark) #searchInput,
html:not(.dark) #searchInputMobile {
  background-color: #FFFFFF !important;
  color: #0F172A !important;
  border-color: #CBD5E1 !important;
}

html.light #searchInput::placeholder,
html.light #searchInputMobile::placeholder,
html:not(.dark) #searchInput::placeholder,
html:not(.dark) #searchInputMobile::placeholder {
  color: #94A3B8 !important;
}

html.light #themeToggleBtn,
html.light #logoutBtn,
html.light #loginNavBtn,
html:not(.dark) #themeToggleBtn,
html:not(.dark) #logoutBtn,
html:not(.dark) #loginNavBtn {
  background-color: #FFFFFF !important;
  border-color: #E2E8F0 !important;
  color: #334155 !important;
}

html.light #themeToggleBtn:hover,
html.light #loginNavBtn:hover,
html:not(.dark) #themeToggleBtn:hover,
html:not(.dark) #loginNavBtn:hover {
  border-color: #FF7A00 !important;
  color: #EA580C !important;
}

html.light #userAvatarText,
html:not(.dark) #userAvatarText {
  color: #000000 !important;
}

html.light #userNameText,
html:not(.dark) #userNameText {
  color: #1E293B !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: #F1F3F5;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 122, 0, 0.4);
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.8);
}
::-webkit-scrollbar-thumb:hover {
  background: #FF7A00;
}

/* Smooth Masonry Column Break */
.masonry-item {
  break-inside: avoid;
  transform: translateZ(0);
}

/* Shimmer Loading Animation */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.img-skeleton {
  background: linear-gradient(90deg, #E2E8F0 25%, #F1F5F9 50%, #E2E8F0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* Lightbox Animation */
.lightbox-enter {
  animation: lightboxFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes lightboxFadeIn {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Brand Button Gradient */
.btn-brand-gradient {
  background: linear-gradient(135deg, #FF8C00 0%, #FF5A00 100%);
  color: #000000;
  box-shadow: 0 6px 20px -2px rgba(255, 106, 0, 0.35);
  transition: all 0.25s ease;
}

.btn-brand-gradient:hover {
  background: linear-gradient(135deg, #FFA024 0%, #FF6E1A 100%);
  box-shadow: 0 10px 24px -2px rgba(255, 106, 0, 0.45);
  transform: translateY(-1px);
}

/* Mobile Category Filter Bar — Smooth Horizontal Scroll */
.no-scrollbar::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
.no-scrollbar {
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior-x: contain;
}

/* Category Pill Single Line Guarantee */
.category-btn {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

/* Radio Audio Visualizer Waves */
@keyframes audioWave {
  0%, 100% { height: 3px; }
  50% { height: 16px; }
}
.audio-playing .audio-bar-1 { animation: audioWave 0.8s ease-in-out infinite; }
.audio-playing .audio-bar-2 { animation: audioWave 1.1s ease-in-out infinite 0.2s; }
.audio-playing .audio-bar-3 { animation: audioWave 0.9s ease-in-out infinite 0.4s; }
.audio-playing .audio-bar-4 { animation: audioWave 1.2s ease-in-out infinite 0.1s; }

