:root {
  /* Light pink tone */
  --primary-color: #FF7FBF; /* soft pink */
  --primary-hover: #FF68B3; /* slightly deeper pink */
  --primary-rgb: 255, 127, 191;
  --gloss-gradient: linear-gradient(135deg, rgba(255, 96, 170, 0.92), rgba(255, 136, 202, 0.92));
  --gloss-gradient-strong: linear-gradient(135deg, rgba(255, 116, 190, 1), rgba(255, 146, 215, 0.98));
  --secondary-color: #F7FAFF; /* subtle bluish background */
  --text-color: #333;
  --light-text-color: #fff;
  --border-radius: 16px;
  --button-radius: 999px; /* fully rounded buttons */
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-elev: 0 10px 30px rgba(0, 0, 0, 0.12);
  --glass-bg: rgba(255, 255, 255, 0.38);
  --glass-bg-strong: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 0.65);
  --glass-border-strong: rgba(255, 255, 255, 0.85);
  --glass-shadow: 0 18px 28px rgba(0, 0, 0, 0.12);
  --glass-shadow-strong: 0 24px 40px rgba(0, 0, 0, 0.18);
  --glass-shadow-pressed: 0 12px 20px rgba(0, 0, 0, 0.18);
  --success-rgb: 25, 135, 84;
  --danger-rgb: 220, 53, 69;
  --text-gloss: 0 1px 0 rgba(255, 255, 255, 0.55), 0 -1px 0 rgba(0, 0, 0, 0.06), 0 0 10px rgba(255, 255, 255, 0.35);
  --text-gloss-strong: 0 1px 0 rgba(255, 255, 255, 0.65), 0 -1px 0 rgba(0, 0, 0, 0.08), 0 0 12px rgba(255, 255, 255, 0.42);
}

body {
  font-family: 'Poppins', 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  background: linear-gradient(180deg, #F9FBFF 0%, #F7FAFF 40%, #FFFFFF 100%);
  color: var(--text-color);
  margin: 0; /* ensure no default gaps */
  padding-top: 0; /* NO padding - banner goes to absolute top */
  overflow-x: hidden; /* prevent horizontal dragging from full-width banner */
}

body.home-page {
  background: #ffffff;
}

/* Global fixed background for non-home pages */
body.has-site-bg {
  background-image: url('../images/background.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  padding: 0; /* flush to top and sides */
  pointer-events: none;
}

/* Transparent-at-top behavior for home (with hero) */
.site-header .nav-container {
  transition: background-color .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.site-header.header-transparent .nav-container {
  background-color: transparent !important;
  box-shadow: none !important;
  border-color: transparent !important;
  backdrop-filter: none !important;
}
.site-header.header-transparent .navbar .nav-link,
.site-header.header-transparent .navbar .btn-outline-primary {
  color: #000;
  border-color: transparent;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.48));
}
.site-header.header-transparent .navbar .btn-outline-primary:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.6));
  color: #000;
  border-color: transparent;
}
.site-header.header-transparent .navbar .btn-primary {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.56));
  border-color: transparent;
  color: #111;
}
.site-header.header-transparent .navbar .btn-primary:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.7));
  border-color: transparent;
  color: #111;
}
.site-header.header-transparent .navbar-toggler { filter: none; }

.nav-container {
  max-width: none;
  width: 100%;
  margin: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
  border-radius: 0;
  border: none;
  padding: 4px 20px;
  pointer-events: auto;
}

/* Center inner navbar content so it doesn't hug the edges */
.site-header .container-fluid {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 8px;
  padding-right: 8px;
}


/* Show dropdown on hover for desktop */
@media (min-width: 992px) {
  .navbar .dropdown:hover > .dropdown-menu {
    display: block;
  }
  .navbar .dropdown-toggle::after {
    vertical-align: middle;
  }
}

.logo-img {
  height: 32px;
  object-fit: contain;
}

.site-header .navbar-brand.ms-3 { margin-left: 0 !important; }

/* Brand text style */
.brand-text {
  font-weight: 300;
  font-size: 20px;
  letter-spacing: 0.04em;
  color: #000;
}
.site-header.header-transparent .brand-text { color: #000; }

.navbar {
  position: relative;
}

.navbar .nav-link {
  color: #000;
  font-weight: 400; /* lighter */
  transition: color 0.3s;
}

.navbar .nav-item.dropdown {
  position: static;
}

.navbar .gallery-dropdown-menu {
  overflow-y: auto;
  max-height: 70vh;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

@media (max-width: 992px) {
  .navbar .gallery-dropdown-menu {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    margin: 0 !important;
    transform: none !important;
    width: 300px;
    padding: 0.25rem 0;
    z-index: 1080;
  }
}

.navbar .nav-link:hover {
  color: #000;
}

.hero-viewport {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.home-page .hero-viewport {
  position: sticky;
  top: 0;
  z-index: 1;
}

.hero-banner {
  border-radius: 0;
  overflow: hidden;
  position: relative;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-viewport .hero-banner {
  margin: 0;
}

.home-page .hero-viewport .hero-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-attachment: fixed;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.4s ease;
}

/* Keep the footer area solid by fading the hero image when approaching the bottom */
.home-page .hero-viewport.hero-hidden .hero-banner {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.hero-banner.gallery-hero {
  height: 55vh;
  min-height: 55vh;
}

.hero-banner.gallery-hero {
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.hero-overlay {
  background: transparent; /* keep image colors unchanged */
  border-radius: 0;
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-overlay__content {
  color: #fff;
  text-shadow: 0 14px 26px rgba(0, 0, 0, 0.6);
}
.hero-overlay__content .small-text {
  letter-spacing: 0.25rem;
  text-transform: uppercase;
  font-size: 0.95rem;
  opacity: 0.9;
}
.hero-overlay__content h1 {
  font-size: clamp(2.5rem, 5vw, 3.6rem);
  margin-bottom: 0;
}

/* On small screens, show the entire banner image (contain) */
@media (max-width: 576px) {
  .hero-banner {
    background-size: cover;
    background-position: center center;
    min-height: 55vh;
    height: auto;
    background-repeat: no-repeat;
  }
  .hero-overlay {
    justify-content: center;
    padding: 2rem 1.5rem 1.5rem;
  }
  .hero-banner.gallery-hero {
    min-height: 45vh;
  }
}

/* Universal liquid-glass buttons (aligned with top bar) */
  .btn,
  .navbar .btn {
    border-radius: var(--button-radius) !important;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(var(--primary-rgb), 0.28));
    color: #111;
    text-shadow: var(--text-gloss);
    box-shadow: var(--glass-shadow), 0 6px 18px rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px) saturate(140%);
    font-weight: 600;
    padding: 9px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    transition: none;
    position: relative;
  }
  .navbar .btn { padding: 8px 14px; }
  .btn:hover,
  .btn:focus {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(var(--primary-rgb), 0.34));
    border-color: rgba(255, 255, 255, 0.68);
    text-shadow: var(--text-gloss-strong);
    color: #111;
  }
  .btn:active {
    box-shadow: none;
  }
  .btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.18);
  }
  
  .site-header .navbar .btn {
    background: transparent !important;
    border-color: rgba(17, 17, 17, 0.14);
    color: #111 !important;
  }
  .site-header .navbar .btn:hover,
  .site-header .navbar .btn:focus {
    background: transparent !important;
    color: #111 !important;
  }
  .site-header .navbar .btn:active {
    background: transparent !important;
  }
  
  .btn-primary,
  .btn-success,
  .btn-danger {
    border: 1px solid rgba(var(--primary-rgb), 0.35);
    color: #111;
    text-shadow: var(--text-gloss);
  }
  .btn-success {
    border-color: rgba(var(--success-rgb), 0.3);
    color: rgb(var(--success-rgb));
  }
  .btn-danger {
    border-color: rgba(var(--danger-rgb), 0.3);
    color: rgb(var(--danger-rgb));
  }
    .btn-primary:hover,
    .btn-success:hover,
    .btn-danger:hover {
      background: transparent;
      text-shadow: var(--text-gloss-strong);
    }
  
  .btn-outline-primary,
  .btn-outline-success,
  .btn-outline-danger,
  .btn-outline-dark {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.32));
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #111;
    text-shadow: var(--text-gloss);
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(12px) saturate(140%);
  }
  .btn-outline-primary {
    color: rgb(var(--primary-rgb));
    border-color: rgba(var(--primary-rgb), 0.26);
  }
  .btn-outline-success {
    color: #0f5132;
    border-color: rgba(var(--success-rgb), 0.26);
  }
  .btn-outline-danger {
    color: #842029;
    border-color: rgba(var(--danger-rgb), 0.26);
  }
  .btn-outline-dark {
    color: #111;
  }
  .btn-outline-primary:hover,
  .btn-outline-success:hover,
  .btn-outline-danger:hover,
  .btn-outline-dark:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.42));
    text-shadow: var(--text-gloss-strong);
  }
  .btn-outline-success:hover {
    color: #0f5132;
  }
  .btn-outline-danger:hover {
    color: #842029;
  }
  .btn-outline-dark:hover {
    color: #111;
  }

/* Keep inline action buttons tidy and multi-line safe */
.user-action-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

/* Auth pages */
.auth-card {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  background: #fff;
  padding: 24px;
}
.auth-illustration {
  max-width: 360px;
}

.form-control {
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: box-shadow .2s ease, border-color .2s ease;
}
.form-control:focus {
  border-color: rgba(var(--primary-rgb), .35);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .12);
}

.card {
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.98);
}

.liquid-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(18px) saturate(160%);
  border-radius: calc(var(--border-radius) - 4px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.liquid-card:hover {
  transform: translateY(-3px);
  background: var(--glass-bg-strong);
  border-color: var(--glass-border-strong);
  box-shadow: var(--glass-shadow-strong);
}

.liquid-list .list-group-item {
  margin-bottom: 12px;
  border-radius: calc(var(--border-radius) + 4px);
}
.liquid-list .list-group-item:last-child {
  margin-bottom: 0;
}

.user-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--glass-border);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(14px) saturate(150%);
}
.user-card:hover {
  background: var(--glass-bg-strong);
  border-color: var(--glass-border-strong);
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.14);
}
.user-card-inner {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.user-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}
.user-card-header .user-meta {
  min-width: 0;
  flex: 1;
}
.user-card-header .user-meta .fw-semibold,
.user-card-header .user-meta .text-muted {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-card .user-action-group {
  width: 100%;
  margin-top: 0.35rem;
}

/* Add top spacing for non-home pages so content isn't hidden behind fixed header */
main {
  position: relative;
  z-index: 1;
}

body.home-page main {
  background: #fff;
}

main:not(:has(.hero-banner)) {
  padding-top: 72px;
}

.hero-transition {
  position: relative;
  z-index: 2;
  height: 120px;
  margin-top: 0;
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
  pointer-events: none;
}

.hero-transition::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #ffffff;
  border-top-left-radius: 56px;
  border-top-right-radius: 56px;
  box-shadow: 0 -6px 18px rgba(255, 255, 255, 0.6) inset, 0 18px 36px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
  .hero-transition {
    height: 80px;
    margin-top: -80px;
  }
  .hero-transition::before {
    border-top-left-radius: 36px;
    border-top-right-radius: 36px;
  }
}

.hero-content-shell {
  position: relative;
  background: #ffffff;
  padding-bottom: 2rem;
  overflow: hidden;
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
  z-index: 3;
}

.hero-content-shell .container {
  position: relative;
  z-index: 1;
}

.hero-card-surface {
  background: #ffffff;
  border-top-left-radius: 48px;
  border-top-right-radius: 48px;
  box-shadow: 0 -6px 28px rgba(0, 0, 0, 0.05), 0 18px 40px rgba(0, 0, 0, 0.08);
  padding: 4rem 0 3rem;
  margin-top: 0;
  position: relative;
  z-index: 3;
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
  overflow: hidden;
}

.hero-card-surface::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #ffffff;
  border-top-left-radius: 48px;
  border-top-right-radius: 48px;
  z-index: 0;
}

.hero-card-surface > .container {
  position: relative;
  z-index: 1;
}

.hero-card-surface .hero-card-top {
  margin-top: -2rem;
}
.glass-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 25px 45px rgba(255, 143, 192, 0.2);
  backdrop-filter: blur(12px);
}

.home-page footer {
  position: relative;
  background: #ffffff;
  margin-top: 0;
  padding-top: 1rem;
  z-index: 4;
  padding-bottom: 2rem;
}

/* Toast notifications styling */
.toast {
  border-radius: var(--button-radius);
  box-shadow: var(--shadow);
  min-width: 300px;
  margin-bottom: 0.5rem;
  background-color: rgba(255, 255, 255, 0.75) !important;
  backdrop-filter: saturate(180%) blur(10px);
  border: 1px solid black !important;
  color: var(--text-color) !important;
}

.toast-body {
  font-weight: 400;
}

/* Profile banner styling */
.profile-banner {
  position: relative;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

.profile-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-banner-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
}

/* Scroll reveal animations */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.show { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-36px); transition: opacity .8s ease, transform .8s ease; }
.reveal-left.show { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(36px); transition: opacity .8s ease, transform .8s ease; }
.reveal-right.show { opacity: 1; transform: translateX(0); }
.reveal-slow { transition-duration: 1.1s; }

/* Art Gallery */
.art-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.category-ranking {
  background: rgba(255, 255, 255, 0.85);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.category-ranking__header h3 {
  font-size: 1.3rem;
  margin-bottom: 0;
}

.category-ranking__podium {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  flex-wrap: wrap;
}

.podium-card {
  flex: 1;
  min-width: 180px;
  border-radius: var(--border-radius);
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 1rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(250, 250, 255, 0.9));
  text-align: center;
}

.podium-card h3 {
  margin: 0.3rem 0;
  font-size: clamp(1.6rem, 2.5vw, 2rem);
}

.podium-card .podium-label {
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #555;
}

.podium-count {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
}

.category-ranking__list .list-group-item {
  font-size: 1rem;
}

.category-ranking__list .badge {
  font-size: 0.9rem;
}

.user-access-ranking {
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.user-access-ranking__podium {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: space-between;
}

.user-access-ranking__podium .podium-card {
  flex: 1;
  min-width: 180px;
  border-radius: var(--border-radius);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 1rem;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.user-access-ranking__list {
  margin-top: 1rem;
}

.user-access-ranking__list .list-group-item {
  font-size: 1rem;
}

.access-graph__bar {
  flex: 1;
  max-width: 60px;
}

.access-graph__bar-inner {
  background: linear-gradient(180deg, rgba(255, 145, 0, 0.9), rgba(255, 80, 0, 0.6));
  border-radius: var(--border-radius);
  width: 100%;
  transition: height 0.3s ease;
}

.art-card {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}

.art-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}
.art-card video {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}
.art-card .media-placeholder {
  width: 100%;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f3f5;
  color: #333;
  font-weight: 500;
}

.art-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.6));
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.art-card:hover .art-overlay {
  opacity: 1;
}

.art-overlay .fw-bold {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.art-overlay p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.art-card {
  transition: transform 0.3s ease;
}

.art-card:hover {
  transform: translateY(-5px);
}

.uploader-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(var(--primary-rgb), 0.08);
  border: 1px solid rgba(var(--primary-rgb), 0.25);
  color: var(--text-color);
  padding: 6px 10px;
  border-radius: 999px;
}

.uploader-chip img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}
.access-graph {
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--border-radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.access-graph__bar small {
  display: block;
  font-size: 0.8rem;
}
.gallery-tabs {
  display: flex;
  gap: 0.5rem;
}

.gallery-tabs .btn {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(var(--primary-rgb), 0.24)) !important;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #111 !important;
  text-shadow: var(--text-gloss);
  padding: 10px 18px;
  font-weight: 600;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(12px) saturate(140%);
}

.gallery-tabs .btn:hover,
.gallery-tabs .btn:focus {
  border-color: rgba(255, 255, 255, 0.68);
  text-shadow: var(--text-gloss-strong);
}

.rounded-circle {
  border-radius: 50% !important;
  object-fit: cover;
}
