/* ============================================================
   PhotoView Custom Styles - Verlsteffen Gallery
   Clean Modern Theme
   ============================================================ */

/* ---------- Gallery Header - Minimal ---------- */
#gallery-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 0;
}

#gallery-header .header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  height: 56px;
  display: flex;
  align-items: center;
}

#gallery-header .header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1a1a1a;
}

#gallery-header .header-logo-icon {
  opacity: 0.6;
}

#gallery-header .header-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #1a1a1a;
  letter-spacing: -0.2px;
}

/* Push the React root below the header */
#root {
  padding-top: 56px !important;
}

/* ============================================================
   HIDE the default PhotoView sticky logo bar
   ============================================================ */
div[class*="sticky"][class*="top-0"]:has(img[src*="photoview-logo"]) {
  display: none !important;
}

img[src*="photoview-logo"] {
  display: none !important;
}

/* ============================================================
   FIX: Navigation Menu & Sidebar Positioning
   ============================================================ */
@media (min-width: 1024px) {
  div[class*="fixed"][class*="bottom-0"][class*="lg:w-[240px]"],
  div[class*="fixed"]:has(> ul > li > a[href*="/timeline"]) {
    top: 60px !important;
    bottom: auto !important;
  }

  div[class*="fixed"][class*="top-[72px]"] {
    top: 56px !important;
    height: calc(100vh - 56px) !important;
  }
}

/* ============================================================
   MODERN BACKGROUND
   ============================================================ */
body {
  background: #ffffff !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  color: #1a1a1a !important;
}

/* ============================================================
   ALBUM TITLES - Clean & readable
   ============================================================ */
a[href*="/album/"] p,
p[class*="whitespace-nowrap"] {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  color: #1a1a1a !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.4 !important;
  padding-top: 8px !important;
}

/* ============================================================
   PICTURE FRAMES - Minimal, clean
   ============================================================ */
img[class*="cover"],
img[class*="rounded-lg"] {
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  border-radius: 4px !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
  transition: all 0.25s ease !important;
}

img[class*="cover"]:hover,
img[class*="rounded-lg"]:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1) !important;
  transform: scale(1.015);
}

/* Individual photo viewer - clean border */
div[role="dialog"] img,
div[class*="viewer"] img:not([class*="logo"]) {
  background: #f5f5f5;
}

/* ============================================================
   TIMELINE PAGE
   ============================================================ */
span[class*="date"],
time {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-weight: 500 !important;
  color: #666 !important;
}

/* ============================================================
   SIDEBAR (Right panel)
   ============================================================ */
div[class*="w-[420px]"],
div[class*="w-[400px]"] {
  background: #ffffff !important;
}

div[class*="w-[420px]"] h1,
div[class*="w-[400px]"] h1,
div[class*="w-[420px]"] h2,
div[class*="w-[400px]"] h2 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  color: #1a1a1a !important;
}

/* ============================================================
   DARK MODE OVERRIDES
   ============================================================ */
html.dark body,
.dark body {
  background: #111 !important;
}

.dark #root {
  background: #111 !important;
}

.dark #gallery-header {
  background: rgba(17, 17, 17, 0.92) !important;
  border-bottom-color: rgba(255, 255, 255, 0.06) !important;
}

.dark #gallery-header .header-title,
.dark #gallery-header .header-logo {
  color: #eee !important;
}

.dark div[class*="w-[420px]"],
.dark div[class*="w-[400px]"] {
  background: #1a1a1a !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1023px) {
  #gallery-header .header-inner {
    padding: 0 16px;
  }

  #root {
    padding-top: 56px !important;
  }
}
