/* =============================================
   StockVault - Main Stylesheet
   Premium Stock Photo Script
   ============================================= */

/* ---- CSS Custom Properties ---- */
:root {
  --brand: #FF385C;
  --brand-dark: #E0263A;
  --brand-light: #FF6B84;
  --accent: #FFBA08;
  --accent2: #00D1B2;

  --bg: #0A0A0B;
  --bg-2: #111113;
  --bg-3: #18181B;
  --bg-4: #222226;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.15);

  --text: #F1F1F3;
  --text-2: #A1A1AA;
  --text-3: #71717A;
  --text-inv: #0A0A0B;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-pill: 9999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow: 0 4px 20px rgba(0,0,0,0.5);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.7);
  --shadow-brand: 0 4px 20px rgba(255,56,92,0.4);

  --transition: 0.2s cubic-bezier(0.4,0,0.2,1);
  --transition-slow: 0.5s cubic-bezier(0.4,0,0.2,1);

  --nav-h: 64px;
  --container: 1340px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
input, textarea, select { font: inherit; color: inherit; background: transparent; }
ul, ol { list-style: none; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); line-height: 1.2; font-weight: 700; }

/* ---- Skip Nav ---- */
.skip-nav { position: absolute; top: -100%; left: 0; padding: 8px 16px; background: var(--brand); color: white; z-index: 9999; border-radius: 0 0 var(--radius-sm) 0; }
.skip-nav:focus { top: 0; }

/* ---- Container ---- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; width: 100%; }

/* ---- Alert Bar ---- */
.alert-bar {
  background: linear-gradient(135deg, var(--brand), #8B5CF6);
  color: white; text-align: center;
  padding: 10px 48px; font-size: 0.875rem;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  position: relative;
}
.alert-bar a { color: white; font-weight: 600; text-decoration: underline; }
.alert-bar__close { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 1.2rem; opacity: 0.7; transition: opacity var(--transition); }
.alert-bar__close:hover { opacity: 1; }

/* ---- Navbar ---- */
.navbar {
  height: var(--nav-h);
  position: sticky; top: 0; z-index: 1000;
  background: rgba(10,10,11,0.88);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-lg); }
.navbar__inner { display: flex; align-items: center; gap: 24px; height: 100%; }

.navbar__logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem;
  color: var(--text);
  flex-shrink: 0;
}
.navbar__logo-icon { width: 36px; height: 36px; flex-shrink: 0; }

.navbar__nav {
  display: flex; align-items: center; gap: 4px;
  flex: 1;
}
.navbar__link {
  padding: 8px 14px; border-radius: var(--radius-sm);
  color: var(--text-2); font-size: 0.9rem; font-weight: 500;
  transition: color var(--transition), background var(--transition);
}
.navbar__link:hover { color: var(--text); background: var(--bg-3); }

/* Dropdown */
.navbar__dropdown { position: relative; }
.navbar__link--dropdown { display: flex; align-items: center; gap: 6px; }
.navbar__link--dropdown svg { width: 10px; height: 6px; transition: transform var(--transition); }
.navbar__dropdown:hover .navbar__link--dropdown svg { transform: rotate(180deg); }
.navbar__dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: -8px;
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 8px;
  min-width: 200px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: all var(--transition); pointer-events: none;
  display: grid; gap: 2px;
}
.navbar__dropdown:hover .navbar__dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: all; }
.navbar__dropdown-menu a { padding: 8px 12px; border-radius: var(--radius-sm); font-size: 0.875rem; color: var(--text-2); display: block; transition: all var(--transition); }
.navbar__dropdown-menu a:hover { color: var(--text); background: var(--bg-4); }
.navbar__dropdown-all { color: var(--brand) !important; font-weight: 600 !important; margin-top: 4px; border-top: 1px solid var(--border); padding-top: 10px !important; }

.navbar__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.navbar__search-toggle { padding: 8px; color: var(--text-2); border-radius: var(--radius-sm); transition: all var(--transition); }
.navbar__search-toggle:hover { color: var(--text); background: var(--bg-3); }
.navbar__search-toggle svg { width: 20px; height: 20px; display: block; }

/* User Menu */
.navbar__user-menu { position: relative; }
.navbar__avatar {
  width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid var(--border-strong); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-4); position: relative;
  cursor: pointer; transition: border-color var(--transition);
}
.navbar__avatar:hover { border-color: var(--brand); }
.navbar__avatar img { width: 100%; height: 100%; object-fit: cover; }
.navbar__avatar-initials { font-weight: 700; font-size: 1rem; color: var(--brand); }
.navbar__user-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 8px;
  min-width: 220px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: all var(--transition);
}
.navbar__user-menu:hover .navbar__user-dropdown,
.navbar__user-menu:focus-within .navbar__user-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.navbar__user-info { padding: 10px 12px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.navbar__user-info strong { display: block; font-size: 0.9rem; }
.navbar__user-info span { font-size: 0.75rem; color: var(--text-3); }
.navbar__user-dropdown a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--radius-sm); font-size: 0.875rem; color: var(--text-2); transition: all var(--transition); }
.navbar__user-dropdown a:hover { color: var(--text); background: var(--bg-4); }
.navbar__user-dropdown hr { border: none; border-top: 1px solid var(--border); margin: 4px 0; }
.navbar__admin-link { color: var(--accent) !important; }

.navbar__hamburger { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.navbar__hamburger span { display: block; width: 22px; height: 2px; background: var(--text-2); border-radius: 2px; transition: all var(--transition); }
.navbar__mobile-search { display: none; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 600;
  cursor: pointer; transition: all var(--transition); white-space: nowrap;
  text-decoration: none; border: 2px solid transparent;
}
.btn--primary { background: var(--brand); color: white; }
.btn--primary:hover { background: var(--brand-dark); transform: translateY(-1px); box-shadow: var(--shadow-brand); }
.btn--ghost { background: transparent; color: var(--text-2); border-color: var(--border-strong); }
.btn--ghost:hover { color: var(--text); border-color: var(--text-3); background: var(--bg-3); }
.btn--outline { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn--outline:hover { background: var(--bg-3); border-color: var(--text-3); }
.btn--sm { padding: 7px 14px; font-size: 0.8rem; }
.btn--lg { padding: 14px 28px; font-size: 1rem; border-radius: var(--radius); }
.btn--download {
  background: linear-gradient(135deg, var(--brand), #FF6B84);
  color: white; width: 100%; justify-content: center;
}
.btn--download:hover { filter: brightness(1.1); transform: translateY(-1px); box-shadow: var(--shadow-brand); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn--icon {
  padding: 8px; border-radius: var(--radius-sm);
  color: var(--text-2); background: var(--bg-3); border: 1px solid var(--border);
}
.btn--icon:hover { color: var(--brand); border-color: var(--brand); }
.btn--icon.active { color: var(--brand); border-color: var(--brand); background: rgba(255,56,92,0.1); }

/* ---- Badges ---- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: var(--radius-pill);
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
}
.badge--green { background: rgba(0,209,178,0.15); color: var(--accent2); }
.badge--gold { background: rgba(255,186,8,0.15); color: var(--accent); }
.badge--blue { background: rgba(59,130,246,0.15); color: #60A5FA; }
.badge--orange { background: rgba(249,115,22,0.15); color: #FB923C; }
.badge--red { background: var(--brand); color: white; }
.badge--purple { background: rgba(139,92,246,0.15); color: #A78BFA; }

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: min(85vh, 720px);
  display: flex; align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr);
}
.hero__bg-img {
  background-size: cover; background-position: center;
  opacity: 0;
  animation: hero-fade 12s ease-in-out infinite;
}
.hero__bg-img:nth-child(1) { animation-delay: 0s; }
.hero__bg-img:nth-child(2) { animation-delay: 2s; }
.hero__bg-img:nth-child(3) { animation-delay: 4s; }
.hero__bg-img:nth-child(4) { animation-delay: 6s; }
.hero__bg-img:nth-child(5) { animation-delay: 8s; }
.hero__bg-img:nth-child(6) { animation-delay: 10s; }
@keyframes hero-fade { 0%,100%{opacity:0;} 15%,85%{opacity:1;} }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,11,0.75) 0%, rgba(10,10,11,0.5) 50%, rgba(10,10,11,0.9) 100%);
}
.hero__content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 28px;
  padding: 80px 0;
}
.hero__title {
  font-size: clamp(2.4rem, 6vw, 5rem);
  color: white;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
  max-width: 800px;
  animation: fade-up 0.8s ease both;
}
.hero__title em { color: var(--brand); font-style: normal; }
.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255,255,255,0.8); max-width: 600px;
  animation: fade-up 0.8s 0.1s ease both;
}
@keyframes fade-up { from{opacity:0;transform:translateY(24px);} to{opacity:1;transform:translateY(0);} }

/* Hero Search Bar */
.search-bar {
  width: 100%; max-width: 740px;
  animation: fade-up 0.8s 0.2s ease both;
}
.search-bar__inner {
  display: flex; align-items: center;
  background: rgba(255,255,255,0.96); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-lg);
  height: 58px;
}
.search-bar__icon { width: 20px; height: 20px; color: var(--text-3); flex-shrink: 0; margin-left: 18px; }
.search-bar__input {
  flex: 1; padding: 0 16px;
  border: none; outline: none;
  font-size: 1rem; color: #111;
  background: transparent;
}
.search-bar__input::placeholder { color: #999; }
.search-bar__btn {
  padding: 0 28px; height: 100%;
  background: var(--brand); color: white;
  font-size: 0.95rem; font-weight: 700;
  transition: background var(--transition);
}
.search-bar__btn:hover { background: var(--brand-dark); }
.search-bar__filters {
  display: flex; gap: 12px; margin-top: 12px;
  justify-content: center; flex-wrap: wrap;
}
.search-bar__filters label {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.8); font-size: 0.85rem;
}
.search-bar__filters select {
  background: rgba(255,255,255,0.12); color: white;
  border: 1px solid rgba(255,255,255,0.25); border-radius: var(--radius-sm);
  padding: 6px 10px; font-size: 0.8rem; cursor: pointer;
}
.search-bar__filters select option { color: #111; background: white; }

.hero__trending {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  justify-content: center; animation: fade-up 0.8s 0.3s ease both;
}
.hero__trending-label { color: var(--text-3); font-size: 0.85rem; }
.hero__tag {
  padding: 5px 14px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.8);
  font-size: 0.82rem; transition: all var(--transition); border: 1px solid rgba(255,255,255,0.15);
}
.hero__tag:hover { background: rgba(255,255,255,0.2); color: white; }

.hero__stats {
  display: flex; gap: 40px;
  animation: fade-up 0.8s 0.4s ease both;
}
.hero__stat { text-align: center; color: rgba(255,255,255,0.8); }
.hero__stat strong { display: block; font-size: 1.8rem; font-weight: 700; color: white; font-family: var(--font-display); }
.hero__stat span { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; }

/* ---- Sections ---- */
.section { padding: 72px 0; }
.section--categories { background: var(--bg); }
.section--trending { background: var(--bg-2); }
.section--latest { background: var(--bg); }
.section--cta { background: var(--bg-2); }
.section__header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 32px; gap: 16px;
}
.section__header h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
.section__link { color: var(--text-2); font-size: 0.9rem; transition: color var(--transition); white-space: nowrap; }
.section__link:hover { color: var(--brand); }
.section__tabs { display: flex; gap: 4px; background: var(--bg-3); border-radius: var(--radius-sm); padding: 4px; }
.tab {
  padding: 6px 16px; border-radius: var(--radius-sm); font-size: 0.875rem; font-weight: 500;
  color: var(--text-3); transition: all var(--transition);
}
.tab.active, .tab:hover { background: var(--bg-4); color: var(--text); }
.tab.active { color: var(--brand); }

/* ---- Categories Grid ---- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.category-card {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 24px 16px; border-radius: var(--radius);
  background: var(--bg-3); border: 1px solid var(--border);
  text-align: center; transition: all var(--transition);
}
.category-card:hover { border-color: var(--brand); background: var(--bg-4); transform: translateY(-2px); }
.category-card__icon { font-size: 1.8rem; color: var(--brand); }
.category-card__name { font-weight: 600; font-size: 0.9rem; }
.category-card__count { font-size: 0.75rem; color: var(--text-3); }

/* ---- Image Grid (Masonry-like) ---- */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.image-grid--masonry {
  grid-template-rows: masonry;  /* Progressive enhancement */
}

/* ---- Image Card ---- */
.image-card {
  position: relative; overflow: hidden;
  border-radius: var(--radius); background: var(--bg-3);
  cursor: pointer; min-height: 160px;
  transition: transform var(--transition);
}
.image-card:hover { transform: scale(1.01); z-index: 5; }
.image-card__link { display: block; }
.image-card__img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--transition-slow);
  display: block;
}
.image-card:hover .image-card__img { transform: scale(1.06); }
.image-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, transparent 30%, transparent 60%, rgba(0,0,0,0.85) 100%);
  opacity: 0; transition: opacity var(--transition);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 12px;
}
.image-card:hover .image-card__overlay { opacity: 1; }
.image-card__top { display: flex; gap: 6px; flex-wrap: wrap; }
.image-card__actions {
  display: flex; gap: 6px; justify-content: flex-end;
  opacity: 0; transform: translateY(4px);
  transition: all var(--transition);
}
.image-card:hover .image-card__actions { opacity: 1; transform: translateY(0); }
.image-card__action {
  width: 34px; height: 34px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.15); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  color: white; transition: all var(--transition);
}
.image-card__action:hover { background: rgba(255,255,255,0.3); }
.image-card__action.active { background: rgba(255,56,92,0.5); }
.image-card__action svg { width: 15px; height: 15px; }
.image-card__info { margin-top: auto; }
.image-card__title {
  display: block; color: white; font-weight: 600; font-size: 0.85rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.image-card__meta { display: flex; justify-content: space-between; margin-top: 4px; }
.image-card__author, .image-card__stats { font-size: 0.72rem; color: rgba(255,255,255,0.7); }
.image-card__author { display: flex; align-items: center; gap: 4px; }
.image-card__stats { display: flex; align-items: center; gap: 10px; }

/* ---- Load More ---- */
.load-more-wrap { text-align: center; margin-top: 48px; }
#load-more svg { width: 18px; height: 18px; }
#load-more.loading .btn { opacity: 0.6; pointer-events: none; }

/* ---- CTA Box ---- */
.cta-box {
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; padding: 60px; border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--bg-3) 0%, var(--bg-4) 100%);
  border: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.cta-box::before {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,56,92,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.cta-box__content h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 12px; }
.cta-box__content p { color: var(--text-2); max-width: 480px; margin-bottom: 24px; }
.cta-box__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-box__stats { display: flex; gap: 32px; flex-shrink: 0; }
.cta-box__stat { text-align: center; }
.cta-box__stat strong { display: block; font-size: 2rem; color: var(--brand); font-family: var(--font-display); }
.cta-box__stat span { font-size: 0.8rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.1em; }

/* ---- Image Page ---- */
.image-page { padding: 32px 0 72px; }
.breadcrumb { margin-bottom: 24px; }
.breadcrumb ol { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.breadcrumb li { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-3); }
.breadcrumb li:not(:last-child)::after { content: '›'; color: var(--text-3); }
.breadcrumb a:hover { color: var(--text); }

.image-page__layout {
  display: grid; grid-template-columns: 1fr 380px;
  gap: 32px; align-items: start;
}
.image-viewer {
  position: sticky; top: calc(var(--nav-h) + 16px);
}
.image-viewer__frame {
  border-radius: var(--radius); overflow: hidden;
  position: relative; background: var(--bg-3);
}
.image-viewer__img { width: 100%; height: auto; display: block; transition: transform 0.3s ease; }
.image-viewer__premium-badge {
  position: absolute; top: 16px; right: 16px;
  background: linear-gradient(135deg, var(--accent), #F97316);
  color: var(--text-inv); padding: 6px 14px; border-radius: var(--radius-pill);
  font-size: 0.8rem; font-weight: 700; display: flex; align-items: center; gap: 6px;
}
.image-viewer__premium-badge svg { width: 14px; height: 14px; }
.image-viewer__tools {
  display: flex; gap: 8px; margin-top: 12px;
}
.image-viewer__tool {
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  background: var(--bg-3); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2); transition: all var(--transition);
}
.image-viewer__tool:hover { color: var(--text); border-color: var(--brand); }
.image-viewer__tool svg { width: 18px; height: 18px; }
.image-viewer__stats {
  display: flex; gap: 16px; flex-wrap: wrap;
  margin-top: 12px; padding: 12px 16px;
  background: var(--bg-3); border-radius: var(--radius-sm);
  font-size: 0.82rem; color: var(--text-3);
}
.image-viewer__stats span { display: flex; align-items: center; gap: 6px; }
.image-viewer__stats svg { width: 14px; height: 14px; }

.image-sidebar { display: flex; flex-direction: column; gap: 24px; }
.image-sidebar__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.image-sidebar__header-actions { display: flex; gap: 8px; flex-shrink: 0; }
.image-sidebar__title { font-size: 1.5rem; line-height: 1.3; }

/* Download Panel */
.download-panel {
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
}
.download-panel__title {
  display: flex; align-items: center; gap: 8px;
  font-size: 1rem; margin-bottom: 16px;
}
.download-panel__title svg { width: 18px; height: 18px; color: var(--brand); }
.download-panel__sizes { display: flex; flex-direction: column; gap: 8px; }
.download-size {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-radius: var(--radius-sm);
  background: var(--bg-4); border: 1px solid var(--border);
  gap: 12px; transition: border-color var(--transition);
}
.download-size:hover { border-color: var(--border-strong); }
.download-size.locked { opacity: 0.7; }
.download-size__info { display: flex; align-items: center; gap: 10px; flex: 1; flex-wrap: wrap; }
.download-size__name { font-weight: 600; font-size: 0.875rem; min-width: 60px; }
.download-size__dim, .download-size__filesize { font-size: 0.8rem; color: var(--text-3); }
.download-size__format { font-size: 0.7rem; font-weight: 700; color: var(--accent2); background: rgba(0,209,178,0.1); padding: 2px 8px; border-radius: var(--radius-pill); }
.download-panel__login-note { font-size: 0.85rem; color: var(--text-3); margin-top: 12px; text-align: center; }
.download-panel__login-note a { color: var(--brand); }
.download-panel__license {
  display: flex; align-items: center; gap: 8px;
  margin-top: 16px; padding: 10px; border-radius: var(--radius-sm);
  background: rgba(0,209,178,0.06); border: 1px solid rgba(0,209,178,0.15);
  font-size: 0.82rem; color: var(--text-2);
}
.download-panel__license svg { width: 16px; height: 16px; color: var(--accent2); flex-shrink: 0; }

/* Photographer Card */
.photographer-card {
  display: flex; align-items: center; gap: 14px;
  padding: 16px; border-radius: var(--radius);
  background: var(--bg-3); border: 1px solid var(--border);
  transition: all var(--transition);
}
.photographer-card:hover { border-color: var(--brand); background: var(--bg-4); }
.photographer-card__avatar { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--bg-4); }
.photographer-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.photographer-card__initials {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #8B5CF6);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: white; font-size: 1.1rem;
}
.photographer-card__info strong { display: block; font-size: 0.95rem; }
.photographer-card__info span { font-size: 0.8rem; color: var(--text-3); }

/* Details Table */
.details-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.details-table tr:not(:last-child) td { border-bottom: 1px solid var(--border); }
.details-table td { padding: 8px 0; }
.details-table td:first-child { color: var(--text-3); width: 40%; }
.details-table a { color: var(--brand); }
.details-table a:hover { text-decoration: underline; }

/* Tags */
.tags-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  padding: 5px 12px; border-radius: var(--radius-pill);
  background: var(--bg-4); border: 1px solid var(--border);
  font-size: 0.8rem; color: var(--text-2);
  transition: all var(--transition);
}
.tag:hover { color: var(--text); border-color: var(--text-3); background: var(--bg-3); }

/* Share Buttons */
.share-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--radius-sm);
  font-size: 0.8rem; font-weight: 600; transition: all var(--transition);
  cursor: pointer;
}
.share-btn--twitter { background: rgba(29,155,240,0.15); color: #1D9BF0; }
.share-btn--twitter:hover { background: rgba(29,155,240,0.25); }
.share-btn--facebook { background: rgba(24,119,242,0.15); color: #1877F2; }
.share-btn--facebook:hover { background: rgba(24,119,242,0.25); }
.share-btn--pinterest { background: rgba(230,0,35,0.15); color: #E60023; }
.share-btn--pinterest:hover { background: rgba(230,0,35,0.25); }
.share-btn--copy { background: var(--bg-4); color: var(--text-2); border: 1px solid var(--border); }
.share-btn--copy:hover { color: var(--text); border-color: var(--text-3); }

/* Embed */
.embed-box { margin-top: 10px; }
.embed-code {
  width: 100%; padding: 10px; border-radius: var(--radius-sm);
  background: var(--bg-4); border: 1px solid var(--border);
  color: var(--text-2); font-size: 0.75rem; font-family: monospace;
  resize: vertical;
}

/* Image Description */
.image-description { padding: 40px 0; border-top: 1px solid var(--border); }
.image-description h2 { margin-bottom: 12px; font-size: 1.3rem; }
.image-description p { color: var(--text-2); max-width: 800px; }

/* Image Sidebar Sections */
.image-sidebar__details h4,
.image-sidebar__tags h4,
.image-sidebar__share h4,
.image-sidebar__embed h4 { 
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-3); margin-bottom: 12px; font-family: var(--font-body);
}

/* ---- Comments ---- */
.comments-section { padding: 40px 0; border-top: 1px solid var(--border); }
.comments-section h2 { margin-bottom: 24px; font-size: 1.4rem; }
.comment-form { margin-bottom: 32px; }
.comment-form__inner { display: flex; gap: 14px; margin-bottom: 12px; }
.comment-form__avatar, .comment__avatar {
  width: 40px; height: 40px; border-radius: 50%;
  flex-shrink: 0; overflow: hidden; background: var(--bg-4);
}
.comment-form__avatar img, .comment__avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-initials {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #8B5CF6);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem; color: white;
}
.form-control {
  width: 100%; padding: 10px 14px; border-radius: var(--radius-sm);
  background: var(--bg-3); border: 1px solid var(--border);
  color: var(--text); font-size: 0.9rem;
  transition: border-color var(--transition); resize: vertical;
}
.form-control:focus { outline: none; border-color: var(--brand); }
.comment { display: flex; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.comment__header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.comment__header strong a { font-size: 0.9rem; }
.comment__header strong a:hover { color: var(--brand); }
.comment__header time { font-size: 0.78rem; color: var(--text-3); }
.comment__body p { font-size: 0.9rem; color: var(--text-2); }
.comments-empty, .comments-login { color: var(--text-3); font-size: 0.9rem; }
.comments-login a { color: var(--brand); }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }

/* Related Images */
.related-images { padding-top: 56px; }

/* ---- Modals ---- */
.modal { display: none; position: fixed; inset: 0; z-index: 9000; align-items: center; justify-content: center; }
.modal.open { display: flex; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(8px); }
.modal__box {
  position: relative; z-index: 1;
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  max-width: 90vw; max-height: 90vh; overflow-y: auto;
  animation: modal-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal__box--sm { max-width: 400px; width: 100%; }
@keyframes modal-in { from{opacity:0;transform:scale(0.9);} to{opacity:1;transform:scale(1);} }
.modal__close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg-4); color: var(--text-2); font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.modal__close:hover { background: var(--bg); color: var(--text); }

/* ---- Toast Notifications ---- */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px; border-radius: var(--radius);
  background: var(--bg-3); border: 1px solid var(--border);
  box-shadow: var(--shadow-lg); min-width: 280px; max-width: 400px;
  animation: slide-in 0.3s ease;
}
@keyframes slide-in { from{opacity:0;transform:translateX(100%);} to{opacity:1;transform:translateX(0);} }
.toast.hide { animation: slide-out 0.3s ease forwards; }
@keyframes slide-out { to{opacity:0;transform:translateX(100%);} }
.toast--success { border-left: 3px solid var(--accent2); }
.toast--error { border-left: 3px solid var(--brand); }
.toast--info { border-left: 3px solid #3B82F6; }

/* ---- Footer ---- */
.footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: 72px 0 32px; }
.footer__grid { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 40px; margin-bottom: 48px; }
.footer__brand .footer__logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; margin-bottom: 12px;
}
.footer__brand p { color: var(--text-3); font-size: 0.875rem; margin-bottom: 20px; max-width: 280px; }
.footer__social { display: flex; gap: 12px; }
.footer__social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-3); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3); font-size: 0.85rem; transition: all var(--transition);
}
.footer__social a:hover { color: var(--brand); border-color: var(--brand); }
.footer__col h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-3); margin-bottom: 16px; font-family: var(--font-body); font-weight: 600; }
.footer__col a { display: block; color: var(--text-3); font-size: 0.875rem; padding: 4px 0; transition: color var(--transition); }
.footer__col a:hover { color: var(--text); }
.footer__bottom {
  padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem; color: var(--text-3); flex-wrap: wrap; gap: 12px;
}
.footer__bottom-links { display: flex; gap: 16px; }
.footer__bottom-links a { color: var(--text-3); transition: color var(--transition); }
.footer__bottom-links a:hover { color: var(--text); }

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .image-page__layout { grid-template-columns: 1fr; }
  .image-viewer { position: static; }
  .cta-box { flex-direction: column; padding: 40px; }
}

@media (max-width: 768px) {
  .navbar__nav { display: none; }
  .navbar__hamburger { display: flex; }
  .navbar__actions .btn--ghost { display: none; }
  .hero__stats { gap: 24px; }
  .search-bar__filters { display: none; }
  .image-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .categories-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
  .section__tabs { display: none; }
  .hero__title { font-size: 2rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .cta-box__stats { display: none; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero__content { gap: 20px; padding: 60px 0; }
  .search-bar__inner { height: 50px; }
  .hero__stats { gap: 16px; }
  .hero__stat strong { font-size: 1.4rem; }
  .image-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .section { padding: 48px 0; }
}

/* ---- Utilities ---- */
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }

/* ---- Loading Skeleton ---- */
.skeleton {
  background: linear-gradient(90deg, var(--bg-3) 25%, var(--bg-4) 50%, var(--bg-3) 75%);
  background-size: 200% 100%;
  animation: skeleton 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes skeleton { 0%{background-position:200% 0;} 100%{background-position:-200% 0;} }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* ---- Search Results Page ---- */
.search-header { padding: 32px 0 24px; border-bottom: 1px solid var(--border); margin-bottom: 32px; }
.search-header h1 { font-size: 1.8rem; margin-bottom: 8px; }
.search-header h1 span { color: var(--brand); }
.search-header p { color: var(--text-3); }
.search-filters {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--border); margin-bottom: 32px;
}
.search-filter-group { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; color: var(--text-3); }
.filter-select {
  background: var(--bg-3); border: 1px solid var(--border);
  color: var(--text); border-radius: var(--radius-sm);
  padding: 7px 12px; font-size: 0.85rem; cursor: pointer;
  transition: border-color var(--transition);
}
.filter-select:focus { outline: none; border-color: var(--brand); }

/* ---- Upload Page ---- */
.upload-page { padding: 48px 0; max-width: 800px; margin: 0 auto; }
.upload-page h1 { font-size: 2rem; margin-bottom: 8px; }
.upload-page > p { color: var(--text-2); margin-bottom: 40px; }
.upload-dropzone {
  border: 2px dashed var(--border-strong); border-radius: var(--radius-lg);
  padding: 60px 40px; text-align: center;
  transition: all var(--transition); cursor: pointer;
}
.upload-dropzone:hover, .upload-dropzone.drag-over { border-color: var(--brand); background: rgba(255,56,92,0.05); }
.upload-dropzone svg { width: 48px; height: 48px; color: var(--text-3); margin: 0 auto 16px; }
.upload-dropzone h3 { font-size: 1.3rem; margin-bottom: 8px; }
.upload-dropzone p { color: var(--text-3); font-size: 0.9rem; }
.upload-form { display: flex; flex-direction: column; gap: 20px; margin-top: 32px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 0.875rem; font-weight: 600; color: var(--text-2); }
.upload-progress { display: flex; flex-direction: column; gap: 8px; }
.progress-bar { height: 6px; background: var(--bg-4); border-radius: 3px; overflow: hidden; }
.progress-bar__fill { height: 100%; background: linear-gradient(90deg, var(--brand), #8B5CF6); border-radius: 3px; transition: width 0.3s ease; }

/* ---- Pricing Page ---- */
.pricing-page { padding: 72px 0; text-align: center; }
.pricing-page h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 16px; }
.pricing-page > p { color: var(--text-2); font-size: 1.1rem; margin-bottom: 48px; }
.pricing-toggle { display: flex; align-items: center; gap: 12px; justify-content: center; margin-bottom: 48px; }
.pricing-toggle__label { font-size: 0.9rem; font-weight: 600; }
.toggle-switch {
  width: 48px; height: 26px; background: var(--bg-4); border-radius: var(--radius-pill);
  position: relative; cursor: pointer; transition: background var(--transition);
  border: 1px solid var(--border);
}
.toggle-switch.active { background: var(--brand); }
.toggle-switch::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 50%; background: white;
  transition: transform var(--transition);
}
.toggle-switch.active::after { transform: translateX(22px); }
.pricing-save-badge { background: rgba(0,209,178,0.15); color: var(--accent2); padding: 4px 10px; border-radius: var(--radius-pill); font-size: 0.75rem; font-weight: 700; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; max-width: 960px; margin: 0 auto; text-align: left; }
.pricing-card {
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 36px;
  transition: all var(--transition); position: relative; overflow: hidden;
}
.pricing-card.featured { border-color: var(--brand); background: var(--bg-4); }
.pricing-card.featured::before { content: 'Most Popular'; position: absolute; top: 16px; right: -24px; background: var(--brand); color: white; font-size: 0.7rem; font-weight: 700; padding: 4px 40px; transform: rotate(45deg); }
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.pricing-card__price { margin: 20px 0; }
.pricing-card__price .price { font-size: 3rem; font-weight: 700; font-family: var(--font-display); }
.pricing-card__price .period { color: var(--text-3); font-size: 0.9rem; }
.pricing-card__features { list-style: none; margin: 24px 0; display: flex; flex-direction: column; gap: 10px; }
.pricing-card__features li { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--text-2); }
.pricing-card__features li::before { content: '✓'; color: var(--accent2); font-weight: 700; flex-shrink: 0; }
.pricing-card__features li.unavailable { opacity: 0.4; }
.pricing-card__features li.unavailable::before { content: '×'; color: var(--text-3); }
