/* =========================================================
   DATABASE PAGE STYLE INDEX
   1. Page Background
   2. Hero Orbit
   3. Creators Browser
   4. Filter Sidebar
   5. Creator Cards
   6. Light Mode
   7. RTL + Responsive
   ========================================================= */

body.database-page {
  background:
    radial-gradient(circle at 50% 0%, rgba(44, 80, 255, 0.24), transparent 32%),
    radial-gradient(circle at 12% 44%, rgba(22, 130, 255, 0.12), transparent 28%),
    linear-gradient(180deg, #050526 0%, #080733 52%, #050526 100%);
}

.database-main {
  position: relative;
  overflow: hidden;
  padding: 22px 0 92px;
}

.database-shell {
  width: min(1220px, calc(100% - 36px));
  margin: 0 auto;
}

.database-hero-section {
  position: relative;
  min-height: clamp(360px, 47vw, 520px);
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.database-hero-section::before {
  content: "";
  position: absolute;
  inset: 5% 12%;
  z-index: -2;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 255, 0.2), transparent 62%);
  filter: blur(6px);
}

.database-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.database-hero-logo {
  width: clamp(58px, 6vw, 86px);
  margin: 0 auto 12px;
}

.database-hero-kicker {
  margin: 0;
  color: #8fb0ff;
  font-size: clamp(22px, 2.2vw, 34px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
}

.database-hero-content h1 {
  margin: 4px 0 18px;
  color: #d9e5ff;
  font-size: clamp(36px, 5vw, 76px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.database-hero-btn,
.filter-apply-btn,
.filter-reset-btn,
.creator-hire-btn {
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #4f86ff 0%, #2563ff 100%);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 16px 34px rgba(37, 99, 255, 0.34);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.database-hero-btn {
  min-height: 38px;
  padding: 0 24px;
  font-size: 13px;
}

.database-hero-btn:hover,
.filter-apply-btn:hover,
.filter-reset-btn:hover,
.creator-hire-btn:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(37, 99, 255, 0.44);
}

.database-hero-orbit {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.database-orbit-ring {
  position: absolute;
  left: 50%;
  top: 52%;
  border: 1px solid rgba(143, 176, 255, 0.12);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.ring-one {
  width: min(780px, 76vw);
  height: min(330px, 34vw);
}

.ring-two {
  width: min(520px, 58vw);
  height: min(230px, 26vw);
  transform: translate(-50%, -50%) rotate(-11deg);
}

.database-orbit-avatar {
  position: absolute;
  width: clamp(48px, 7vw, 118px);
  height: clamp(48px, 7vw, 118px);
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(143, 176, 255, 0.2);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34), 0 0 0 10px rgba(37, 99, 255, 0.04);
  animation: databaseFloat 6s ease-in-out infinite;
}

.avatar-one { left: 18%; top: 5%; animation-delay: -0.4s; }
.avatar-two { left: 7%; top: 31%; animation-delay: -1.2s; }
.avatar-three { left: 27%; top: 39%; width: clamp(44px, 5vw, 80px); height: clamp(44px, 5vw, 80px); animation-delay: -2.4s; }
.avatar-four { right: 16%; top: 8%; animation-delay: -0.8s; }
.avatar-five { right: 8%; top: 38%; width: clamp(54px, 7.4vw, 128px); height: clamp(54px, 7.4vw, 128px); animation-delay: -1.8s; }
.avatar-six { right: 27%; top: 34%; width: clamp(44px, 5vw, 76px); height: clamp(44px, 5vw, 76px); animation-delay: -2.8s; }

.database-creators-section {
  padding-top: 28px;
}

.database-section-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.database-section-kicker {
  color: #f8fbff;
  font-size: 17px;
  font-weight: 800;
}

.database-section-top h2 {
  margin: 18px 0 0;
  color: #fff;
  font-size: clamp(28px, 3vw, 46px);
  letter-spacing: -0.04em;
}

.database-browser {
  display: grid;
  grid-template-columns: minmax(230px, 270px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 22px;
}

.creator-filter-sidebar,
.creator-profile-card,
.filter-card,
.filter-control select,
.filter-control input,
.creator-results-toolbar select {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(11, 12, 61, 0.72);
}

.creator-filter-sidebar {
  position: sticky;
  top: 94px;
  padding: 16px;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.filter-sidebar-head,
.creator-results-toolbar,
.creator-card-title,
.creator-card-meta,
.range-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.filter-sidebar-head h3 {
  margin: 0;
  color: #fff;
  font-size: 22px;
}

.filter-clear-btn {
  border: 0;
  background: transparent;
  color: #8fb0ff;
  font-weight: 800;
}

.filter-control,
.filter-card {
  display: grid;
  gap: 11px;
  margin-top: 14px;
}

.filter-control span,
.filter-card h4,
.range-label span {
  color: rgba(228, 236, 255, 0.78);
  font-size: 13px;
  font-weight: 800;
}

.filter-card {
  max-height: 230px;
  overflow-y: auto;
  padding: 14px;
  border-radius: 18px;
}

.filter-card label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(228, 236, 255, 0.68);
  font-size: 13px;
  cursor: pointer;
}

.filter-card input[type="checkbox"] {
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 5px;
  border: 1px solid rgba(143, 176, 255, 0.26);
  background: rgba(255, 255, 255, 0.06);
}

.filter-card input[type="checkbox"]:checked {
  border-color: #4f86ff;
  background: linear-gradient(180deg, #4f86ff, #2563ff);
  box-shadow: inset 0 0 0 3px rgba(5, 5, 38, 0.95);
}

.range-card {
  max-height: none;
}

.filter-control select,
.filter-control input,
.creator-results-toolbar select {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  color: #f8fbff;
  outline: none;
  color-scheme: dark;
}

.filter-control option,
.creator-results-toolbar option {
  background: #090a3d;
  color: #fff;
}

.range-card input[type="range"] {
  width: 100%;
  accent-color: #2563ff;
}

.filter-apply-btn,
.filter-reset-btn {
  width: 100%;
  min-height: 44px;
  margin-top: 14px;
}

.filter-reset-btn {
  background: linear-gradient(180deg, #24b8ff 0%, #2563ff 100%);
}

.creator-results {
  min-width: 0;
}

.creator-results-toolbar {
  margin-bottom: 18px;
}

.creator-results-toolbar p {
  margin: 0;
  color: rgba(228, 236, 255, 0.72);
  font-weight: 700;
}

.creator-results-toolbar label {
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(228, 236, 255, 0.72);
  font-size: 13px;
  font-weight: 800;
}

.creator-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.creator-profile-card {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.creator-profile-card:hover {
  transform: translateY(-6px);
  border-color: rgba(79, 134, 255, 0.32);
  box-shadow: 0 28px 70px rgba(37, 99, 255, 0.18);
}

.creator-profile-card.is-hidden {
  display: none;
}

.creator-card-media {
  position: relative;
  height: 205px;
  overflow: hidden;
}

.creator-card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.creator-profile-card:hover .creator-card-media img {
  transform: scale(1.05);
}

.creator-chip {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(5, 5, 38, 0.7);
  color: #9bb8ff;
  font-size: 11px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.creator-card-body {
  padding: 15px;
}

.creator-card-title h3 {
  margin: 0;
  color: #fff;
  font-size: 17px;
}

.creator-card-title p {
  margin: 4px 0 0;
  color: rgba(228, 236, 255, 0.58);
  font-size: 12px;
}

.creator-card-title > span {
  color: #fff;
  font-size: 17px;
  font-weight: 900;
}

.creator-social-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  color: rgba(228, 236, 255, 0.64);
  font-size: 12px;
}

.creator-social-row i {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(79, 134, 255, 0.14);
  color: #4f86ff;
}

.creator-card-meta {
  margin-top: 14px;
  color: rgba(228, 236, 255, 0.58);
  font-size: 12px;
}

.creator-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.creator-hire-btn {
  width: 100%;
  min-height: 38px;
  margin-top: 14px;
  font-size: 13px;
}

html[data-theme="light"] body.database-page {
  background:
    radial-gradient(circle at 50% 0%, rgba(37, 99, 255, 0.12), transparent 32%),
    linear-gradient(180deg, #f7faff 0%, #eef3fb 100%);
}

html[data-theme="light"] .database-hero-section {
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .database-hero-kicker,
html[data-theme="light"] .database-hero-content h1,
html[data-theme="light"] .database-section-kicker,
html[data-theme="light"] .database-section-top h2,
html[data-theme="light"] .filter-sidebar-head h3,
html[data-theme="light"] .creator-card-title h3,
html[data-theme="light"] .creator-card-title > span {
  color: #0f172a;
}

html[data-theme="light"] .database-section-top {
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .creator-filter-sidebar,
html[data-theme="light"] .creator-profile-card,
html[data-theme="light"] .filter-card,
html[data-theme="light"] .filter-control select,
html[data-theme="light"] .filter-control input,
html[data-theme="light"] .creator-results-toolbar select {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(15, 23, 42, 0.08);
  color: #0f172a;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  color-scheme: light;
}

html[data-theme="light"] .filter-control option,
html[data-theme="light"] .creator-results-toolbar option {
  background: #fff;
  color: #0f172a;
}

html[data-theme="light"] .filter-control span,
html[data-theme="light"] .filter-card h4,
html[data-theme="light"] .range-label span,
html[data-theme="light"] .filter-card label,
html[data-theme="light"] .creator-results-toolbar p,
html[data-theme="light"] .creator-results-toolbar label,
html[data-theme="light"] .creator-card-title p,
html[data-theme="light"] .creator-social-row,
html[data-theme="light"] .creator-card-meta {
  color: rgba(15, 23, 42, 0.62);
}

@keyframes databaseFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

html[dir="rtl"] .creator-chip {
  right: auto;
  left: 12px;
}

@media (max-width: 1199.98px) {
  .creator-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .database-browser {
    grid-template-columns: 1fr;
  }

  .creator-filter-sidebar {
    position: static;
  }

  .creator-results-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .creator-results-toolbar label {
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .database-main {
    padding-top: 12px;
  }

  .database-shell {
    width: min(100% - 22px, 1220px);
  }

  .database-hero-section {
    min-height: 360px;
  }

  .database-orbit-avatar {
    opacity: 0.86;
  }

  .avatar-one { left: 8%; top: 6%; }
  .avatar-two { left: 3%; top: 44%; }
  .avatar-three { left: 24%; top: 66%; }
  .avatar-four { right: 7%; top: 8%; }
  .avatar-five { right: 3%; top: 48%; }
  .avatar-six { right: 27%; top: 67%; }

  .ring-one {
    width: 540px;
    height: 260px;
  }

  .ring-two {
    width: 360px;
    height: 190px;
  }

  .database-section-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .creator-card-grid {
    grid-template-columns: 1fr;
  }

  .creator-card-media {
    height: 230px;
  }
}

@media (max-width: 575.98px) {
  .database-browser {
    gap: 18px;
  }

  .creator-filter-sidebar {
    padding: 14px;
    border-radius: 20px;
  }

  .creator-card-media {
    height: 210px;
  }
}
