:root {

  --bg: #0b0c10;
  --panel: rgba(20, 22, 28, 0.72);
  --panel-border: rgba(255, 255, 255, 0.06);

  --text: rgba(255, 255, 255, 0.88);
  --muted: rgba(255, 255, 255, 0.55);

  --blur: 10px;

  --accent: #ea4c89;
  --accent-glow: rgba(234, 76, 137, 0.25);

  /* filter sizing */
  --filter-fs: clamp(8px, 1.5vw, 12px);
  --filter-px: clamp(9px, 1.8vw, 14px);
  --filter-py: clamp(5px, 0.8vw, 8px);
  --filter-h: clamp(28px, 4vw, 36px);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Inter, system-ui, sans-serif;
}

body {
  background: radial-gradient(1200px 800px at 70% 10%, #1a1d26, var(--bg));
  color: var(--text);
  overflow: hidden;
}

/* ===================== LAYOUT ===================== */

.layout {
  display: flex;
  height: 100vh;
}

/* =====================
   BRAND TITLE
===================== */

.brand-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.4px;

  color: var(--text);

  margin-bottom: 14px;
}


.sidebar-top-space {
  height: 80px;
}

/* =====================
   FILTER LABEL
===================== */

.filters-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;

  color: var(--muted);

  margin: 10px 0 8px;
}

/* =====================
   FILTER CONTAINER
===================== */
.filter-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-gap: 10px;
  padding-bottom: 12px;
}

.filters-inner {
  width: 100%;

  display: flex;
  flex-wrap: wrap;

  gap: 5px;

  align-content: flex-start;

  padding-bottom: 12px;
}


.filters {
  position: fixed;
  top: 0;
  left: 0;

  width: 280px;
  height: 100vh;

  padding: 32px 22px 18px;

  background: var(--panel);
  border-right: 1px solid var(--panel-border);

  backdrop-filter: blur(var(--blur));

  display: flex;
  flex-direction: column;

  z-index: 100;

  transition: transform 0.28s ease;
}

/* OPEN / CLOSED */
.filters.closed {
  transform: translateX(-100%);
}

.filters.open {
  transform: translateX(0);
}


/* =====================
   FILTER BUTTONS
===================== */

.filter {
  flex: 0 0 auto;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: var(--filter-h);

  padding: var(--filter-py) var(--filter-px);

  font-size: var(--filter-fs);
  font-weight: 500;

  border-radius: 999px;

  white-space: nowrap;

  color: var(--text);

  background: rgba(255, 255, 255, 0.04);

  border: 1px solid rgba(255, 255, 255, 0.06);

  cursor: pointer;

  transition: all 0.18s ease;
}

.filter:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.filter.active {
  background: rgba(234, 76, 137, 0.12);

  border-color: var(--accent);

  color: #fff;

  box-shadow:
    0 0 0 1px var(--accent-glow),
    0 6px 16px var(--accent-glow);

  transform: translateY(-1px);
}

/* =====================
   FOOTER
===================== */

.sidebar-footer {
  margin-top: auto;

  display: flex;
  gap: 10px;

  padding-top: 14px;

  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.social-icon {
  width: 36px;
  height: 36px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 10px;

  background: rgba(255, 255, 255, 0.05);

  transition: 0.2s ease;
}

.social-icon:hover {
  background: var(--accent);
  transform: translateY(-2px);
}


.social-icon svg {
  width: 18px;
  height: 18px;
  fill: var(--text);
}

/* =====================
   VIEWER
===================== */

.viewer {
  flex: 1;
  margin-left: 0;
  transition: margin-left 0.28s ease;
}

.layout.sidebar-open .viewer {
  margin-left: 280px;
}


/* =====================
   TOGGLE BUTTON
===================== */

.sidebar-toggle {
  position: fixed;
  top: 18px;
  left: 18px;

  width: 42px;
  height: 42px;

  border: none;
  border-radius: 12px;

  background: rgba(20, 22, 28, 0.75);
  backdrop-filter: blur(10px);

  color: white;
  font-size: 20px;

  cursor: pointer;
  z-index: 200;

  transition: 0.2s ease;
}

.sidebar-toggle:hover {
  background: var(--accent);
  transform: scale(1.05);
}

/* =====================
   IMAGE
===================== */

.image-wrap {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#mainImage {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.22s ease;
}

/* =====================
   META
===================== */

.meta {
  position: absolute;
  bottom: 28px;
  right: 28px;

  display: flex;
  gap: 14px;

  font-size: 12px;
  color: var(--muted);
}

/* =====================
   MORE BUTTON
===================== */

#moreBtn {
  padding: 8px 14px;
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);

  cursor: pointer;

  transition: 0.18s ease;
}

#moreBtn:hover {
  background: var(--accent);
  color: #fff;

  box-shadow: 0 4px 12px rgba(234, 76, 137, 0.35);

  transform: translateY(-2px);
}

/* =====================
   PROGRESS
===================== */

.progress-line {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);

  width: 2px;
  height: 60%;

  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
}

.progress-fill {
  width: 100%;
  height: 0%;

  background: linear-gradient(to bottom,
      var(--accent),
      rgba(255, 255, 255, 0.4));

  transition: height 0.25s ease;
}


/* =====================
   MOBILE
===================== */

@media (max-width: 1024px) {

  .filters {
    width: 280px;
    height: 100dvh;

    background: rgba(15, 15, 15, 0.92);

    border-right: 1px solid rgba(255, 255, 255, 0.08);
  }

  .filters-inner {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .filter {
    flex: 0 0 auto;

    padding: 6px 12px;
    font-size: 12px;
    margin: 5px;
  }

  .layout.sidebar-open .viewer {
    margin-left: 0;
  }

  .viewer {
    margin-left: 0;
  }

  .progress-line {
    inset: auto 0 0 0;
    transform: none;

    width: 100%;
    height: 3px;
  }

  .progress-fill {
    width: 0%;
    height: 100%;
  }
}


/* =====================
   SMALL MOBILE
===================== */

@media (max-width: 470px) {


  .filter {
    padding: 5px 10px;
    font-size: 11px;
  }
}
