/* ========================================================
   LANDING PAGE STYLES – TierCraft.gg (style.css)
   --------------------------------------------------------
   Styles for the home / landing page (index.html).
   Covers the global layout, header, meta snapshot panel,
   weekly rankings, featured lists, info panel (spec
   detail overlay), create-new panels, footer, draw mode
   canvas, and responsive / mobile adjustments.
======================================================== */

/* ========================================================
   BASE & GLOBAL STYLES
======================================================== */
html,
body {
  min-height: 100%;
  height: auto;
  overflow-x: auto !important;
  overflow-y: auto !important;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-touch-callout: none;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 20px;
  min-height: 100vh;
  background-color: #1a1a1e;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

#content-all {
  background-color: #1a1a1e;
  width: 1080px;
  margin: 0 auto;
  padding-left: 16px;
  overflow: visible;
  position: relative;
  user-select: none;
}

/* ========================================================
   HEADER & TYPOGRAPHY
======================================================== */
#page-header {
  display: flex;
  align-items: center;
  margin-left: 396px;
}

h1,
h2 {
  margin: 0;
}

@font-face {
  font-family: 'Freestyle Script';
  src: url('core/woff/freescpt.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

h1 {
  font-family: 'Freestyle Script', cursive;
  font-size: 90px;
  color: #a6b4b4;
  margin-top: 10px;
  margin-bottom: 35px;
  padding-right: 6px;
  cursor: pointer;
  user-select: none;
}

h1.pulse {
  animation: h1-pulse 1.5s ease-in-out infinite alternate;
  background: linear-gradient(90deg, #a6b4b4 0%, white 100%);
  background-size: 200% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@keyframes h1-pulse {
  0% {
    background-position: 0% 0%;
    filter: none;
  }
  15% {
    background-position: 20% 0%;
    filter: drop-shadow(0 2px 4px #a6b4b444) brightness(1.04) contrast(1.02);
  }
  30% {
    background-position: 32% 0%;
    filter: drop-shadow(0 2px 6px #e0e4e444) brightness(1.06) contrast(1.05);
  }
  45% {
    background-position: 45% 0%;
    filter: drop-shadow(0 2px 7px #ffffff44) brightness(1.08) contrast(1.07);
  }
  60% {
    background-position: 60% 0%;
    filter: drop-shadow(0 2px 8px #e0e4e466) brightness(1.1) contrast(1.1);
  }
  85% {
    background-position: 80% 0%;
    filter: drop-shadow(0 2px 4px #a6b4b444) brightness(1.04) contrast(1.02);
  }
  100% {
    background-position: 100% 0%;
    filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  h1.pulse {
    animation: none;
    filter: none;
  }
}

h1:hover {
  color: #ffffff !important;
  transition: color 0.2s;
}

h1.pulse:hover {
  -webkit-text-fill-color: rgba(255, 255, 255, 0.9);
  filter: none;
}

h2 {
  color: #a6b4b4;
  margin-top: 5px;
  font-family: Arial, sans-serif;
  font-weight: normal;
  font-size: 24px;
  user-select: none;
}

/* ========================================================
   HEADER CONTROLS
======================================================== */
#header-container {
  width: 1080px;
  display: flex;
  margin-bottom: 14px;
}

.dropdown-container {
  position: relative;
  display: inline-block;
  margin-right: 10px;
}

.dropdown-container::after {
  content: '\25BC';
  font-size: 16px;
  color: #a6b4b4;
  position: absolute;
  top: 55%;
  right: 12px;
  user-select: none;
  pointer-events: none;
  transform: translateY(-50%);
}

.dropdown-list {
  height: 43px;
  padding: 10px 12px;
  font-size: 16px;
  color: #a6b4b4;
  background-color: #121214;
  border: 2px solid #121214;
  border-radius: 6px;
  cursor: pointer;
  transition:
    background-color 0.3s,
    border-color 0.3s;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  text-align: left;
  text-align-last: left;
}

.dropdown-list option {
  text-align: left;
}

.dropdown-list:hover {
  background-color: #333338;
  border-color: #333338;
  transition:
    background-color 0.2s,
    border-color 0.2s;
}

#view-selector {
  min-width: 166px;
  max-width: 166px;
  background-color: #222328;
  border: 2px solid #222328;
}

#view-selector:hover {
  background-color: #333338;
  border-color: #333338;
  transition:
    background-color 0.2s,
    border-color 0.2s;
}

.input-box {
  padding: 11px 12px;
  font-size: 16px;
  color: #a6b4b4;
  background-color: #222328;
  border: 2px solid #222328;
  border-radius: 6px;
  transition:
    background-color 0.3s,
    border-color 0.3s;
  cursor: text;
}

.input-box:hover,
.input-box:focus {
  background-color: #333338;
  border-color: #333338;
  transition:
    background-color 0.2s,
    border-color 0.2s;
}

.input-box.dragover {
  cursor: no-drop;
}

#welcome-container {
  display: flex;
  align-items: center;
}

.welcome-label {
  height: 42px;
  width: 477px;
  padding: 18px 12px;
  margin-right: 10px;
  font-size: 16px;
  color: #a6b4b4;
  background-color: #222328;
  border: 2px solid #222328;
  border-radius: 6px;
  display: flex;
  align-items: center;
  flex: 1;
  box-sizing: border-box;
  user-select: none;
  text-align: left;
}

.button-icon {
  padding: 6px 0px 6px 0px;
  width: 25px;
  height: 25px;
  display: inline-block;
  vertical-align: middle;
}

.bar-button {
  display: inline-flex;
  width: 50px;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 16px;
  color: #a6b4b4;
  background-color: #222328;
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
  user-select: none;
}

.bar-button:hover {
  background-color: #333338 !important;
  transition: background-color 0.2s;
}

.bar-button.hidden {
  display: none;
}

#draw-button {
  margin-right: 15px;
}

#draw-button.active {
  background-color: #3a3f44;
  border-color: #a6b4b4;
}

.bar-button:hover #bar-tooltip {
  visibility: visible;
  opacity: 1;
}

#bar-tooltip {
  top: auto;
  bottom: calc(100% + 10px);
}

/* Draw overlay canvas */
#draw-canvas {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1100;
  pointer-events: none;
}

#draw-canvas.draw-active {
  display: block;
  pointer-events: auto;
  cursor: crosshair;
  touch-action: none;
}

#greeting-container {
  display: flex;
  align-items: center;
}

.greeting-label {
  height: 43px;
  width: 342px;
  padding: 10px 12px;
  margin-bottom: 1px;
  font-size: 16px;
  color: #a6b4b4;
  background-color: #121214;
  border: 2px solid #121214;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 1 1 auto;
  min-width: 0;
  box-sizing: border-box;
  user-select: none;
}

#header-text {
  color: #a6b4b4;
  font-family: Arial, sans-serif;
  font-size: 26px;
  margin-top: 0px;
  margin-bottom: 12px;
  user-select: none;
}

/* ========================================================
   MAIN CONTAINER
======================================================== */
#main-container {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  margin-top: 0;
}

/* ========================================================
   LEFT CONTAINER (Meta and Ranking Panels)
======================================================== */
#left-container {
  display: flex;
  flex-direction: column;
  min-width: 712px;
  max-width: 712px;
  margin-right: 15px;
  height: 100%;
}

#meta-container {
  display: flex;
  flex-direction: column;
  height: 284px;
  background-color: #222328;
  border-radius: 6px;
  margin-bottom: 10px;
  box-sizing: border-box;
  padding: 12px;
  position: relative;
}

.meta-header {
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#info-icon-meta-container {
  position: relative;
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  height: 24px;
  width: 24px;
  margin-bottom: 6px;
}

#info-icon-meta {
  width: 24px;
  height: 24px;
}

#info-tooltip {
  position: absolute;
  padding: 4px 1px 0px 0px;
  min-width: 320px;
  max-width: 680px !important;
  text-overflow: unset;
  background-color: #222328;
  color: #a6b4b4;
  border-radius: 4px;
  font-size: 14px;
  visibility: hidden;
  z-index: 1000;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  max-width: 400px;
}

.meta-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.meta-section {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-left: 4px;
}

.meta-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 114px;
  min-height: 66px;
  padding: 10px;
  border-radius: 6px;
}

.meta-label-1 {
  background-color: #00ccffd8;
  border-color: #00ccffd8;
}

.meta-label-2 {
  background-color: #e6cc80d8;
  border-color: #e6cc80d8;
}

.meta-tier {
  display: flex;
  align-items: center;
  justify-content: center;
}

.meta-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 6px;
  pointer-events: none;
}

.meta-icon[src$='meteor.svg'] {
  transform: rotate(180deg);
}

.meta-text {
  font-size: 14px;
  color: #ffffff;
  text-align: center;
  white-space: nowrap;
}

.meta-info {
  margin-top: 10px;
  margin-left: 3px;
  font-size: 14px;
  color: #a6b4b4;
  text-align: left;
  line-height: 1.3;
}

.meta-header h3 {
  font-size: 16px;
  margin: 0 0 8px 0;
  color: #a6b4b4;
  text-align: left;
}

.meta-tier {
  margin-bottom: 0;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tier-label-span {
  white-space: nowrap;
  display: flex;
}

.tier-label-container {
  position: relative;
  display: flex;
}

.role {
  position: absolute;
  opacity: 0.8;
  width: 30px;
  height: 30px;
  z-index: 1000;
  user-select: none;
  pointer-events: none;
}

#role-tank-1 {
  margin-top: -6px;
  margin-left: 10px;
}

#role-healer-1 {
  margin-top: -6px;
  margin-left: 146px;
}

#role-dps-1 {
  margin-top: -6px;
  margin-left: 286px;
}

#role-tank-2 {
  margin-top: -6px;
  margin-left: 10px;
}

#role-healer-2 {
  margin-top: -6px;
  margin-left: 146px;
}

#role-dps-2 {
  margin-top: -6px;
  margin-left: 286px;
}

.tier-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  align-items: center;
}

.sub-tier {
  display: flex;
  flex-direction: row;
  border-radius: 6px;
  gap: 10px;
  width: 536px;
  margin-left: auto;
  margin-right: auto;
}

.tier-content {
  flex-grow: 1;
  padding: 10px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  min-height: 64px;
  overflow-x: auto;
  background-color: #1a1a1e;
  border: 2px solid #1a1a1e;
  border-radius: 6px;
}

#tank-content-1,
#healer-content-1 {
  width: 20.2%;
  padding: 10px 0px 10px 47px;
}

#dps-content-1 {
  width: 50%;
  padding: 10px 12px 10px 50px;
}

#tank-content-2,
#healer-content-2 {
  width: 20.2%;
  padding: 10px 0px 10px 47px;
}

#dps-content-2 {
  width: 50%;
  padding: 10px 12px 10px 50px;
}

#ranking-container {
  display: flex;
  flex-direction: column;
  height: 480px;
  background-color: #222328;
  border-radius: 6px;
  padding: 12px;
  box-sizing: border-box;
}

.ranking-header {
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#info-icon-ranking-container {
  position: relative;
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  height: 24px;
  width: 24px;
  margin-bottom: 6px;
}

#info-icon-ranking {
  width: 24px;
  height: 24px;
}

#ranking-detailed {
  flex: 1;
  overflow-y: auto;
}

.ranking-header h3 {
  font-size: 16px;
  margin: 0 0 8px 0;
  color: #a6b4b4;
  text-align: left;
}

/* ========================================================
   SIDE CONTAINER (Right Side)
======================================================== */
.side-container {
  display: flex;
  flex-direction: column;
  min-width: 344px;
  max-width: 344px;
  min-height: 0;
}

/* ========================================================
   CREATE NEW CONTAINER (Top Right)
======================================================== */
#create-container {
  flex-direction: column;
  min-width: 344px;
  max-width: 344px;
  height: 284px;
  margin-top: 0px;
  padding: 1px 3px;
  border-radius: 6px;
  background-color: #121214;
  box-sizing: border-box;
  user-select: none;
}

.create-content {
  color: #a6b4b4;
  padding: 12px;
  box-sizing: border-box;
}

.create-header h4 {
  font-size: 16px;
  margin: 0 0 0px 0;
  height: 20px;
  color: #a6b4b4;
  text-align: left;
  box-sizing: border-box;
}

.create-panels {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-top: 18px;
}

.create-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 153px;
  height: auto;
  padding: 0;
  background-color: transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  transform: scale(1);
  box-sizing: border-box;
}

.create-panel:last-child {
  margin-bottom: 0;
}

.create-panel:hover {
  transform: scale(1.05);
}

.create-panel:hover .panel-text {
  color: #ffffff;
}

.panel-image {
  width: 153px;
  height: 186px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 6px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.create-panel:hover .panel-image {
  opacity: 1;
}

.panel-icon {
  width: 20px;
  text-align: center;
  margin-right: 12px;
  font-size: 16px;
}

.panel-text {
  margin-top: 8px;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  font-weight: bold;
  font-size: 16px;
  color: #a6b4b4;
  transition: color 0.3s ease;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #121214;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background: #222328;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #333338;
}

/* ========================================================
   FEATURES CONTAINER (Middle Right)
======================================================== */
#features-container {
  min-width: 344px;
  max-width: 344px;
  height: 284px;
  margin-top: 10px;
  padding: 1px 3px;
  border-radius: 6px;
  overflow: hidden;
  background-color: #121214;
  box-sizing: border-box;
  user-select: none;
}

.features-content {
  color: #a6b4b4;
  padding: 12px;
  text-align: left;
  height: 100%;
  box-sizing: border-box;
}

.features-header h3 {
  font-size: 16px;
  margin: 2px 0 24px 0;
  height: 20px;
  color: #a6b4b4;
  text-align: left;
  box-sizing: border-box;
}

.features-title {
  display: flex;
  align-items: center;
  font-weight: bold;
  margin-bottom: 4px;
  font-size: 14px;
  height: 20px;
  box-sizing: border-box;
}

.features-title-icon {
  margin-right: 6px;
  font-size: 14px;
}

.features-sub-title {
  margin-left: 26px;
  font-size: 12px;
  line-height: 1.5;
  color: #a6b4b4;
  height: 18px;
  box-sizing: border-box;
}

.feature-item {
  text-decoration: none;
  color: inherit;
  display: block;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
  transform: translateX(0);
}

.feature-item:visited {
  color: inherit;
}

.feature-item:hover {
  text-decoration: none;
  color: white;
  transform: translateX(3px);
}

.feature-item:hover .features-title,
.feature-item:hover .features-sub-title {
  color: white;
}

.feature-time-ago {
  font-weight: normal;
}

#features-container:hover {
  background-color: #121214;
  border-color: #121214;
  /* Intentionally matches the default background */
}

/* ========================================================
   AD CONTAINER (Bottom Right)
======================================================== */
#ad-container {
  min-width: 344px;
  max-width: 344px;
  flex: 1 1 auto;
  min-height: 186px;
  display: flex;
  margin-top: 10px;
  justify-content: center;
  align-items: center;
  border-radius: 6px;
  overflow: hidden;
  background-color: #121214;
  box-sizing: border-box;
}

.ad-image {
  width: 187px;
  height: auto;
  padding-bottom: 5px;
  user-select: none;
}

#ad-container a {
  display: block;
  text-decoration: none;
}

/* ========================================================
   DISCORD WRAPPER
======================================================== */
#discord-wrapper {
  text-align: center;
  background-color: #222328;
  padding: 12px 40px 10px 40px;
  margin-top: 28px;
  margin-left: auto;
  margin-right: auto;
  width: fit-content;
  border-radius: 6px;
  display: block;
}

#discord-text {
  color: #a6b4b4;
  font-family: Arial, sans-serif;
  font-size: 16px;
  user-select: none;
  white-space: nowrap;
}

#discord-icon {
  height: 20px;
  width: 20px;
  vertical-align: middle;
  margin: 0 1px 4px 1px;
}

#discord-link {
  color: #a6b4b4;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
  user-select: none;
}

#discord-link:hover {
  color: white;
  transition: color 0.2s ease;
}

/* ========================================================
   FOOTER
======================================================== */
footer {
  margin-top: 25px;
  margin-left: auto;
  margin-right: auto;
  width: fit-content;
  text-align: center;
  color: #a6b4b4;
  font-family: Arial, sans-serif;
  font-size: 16px;
  display: block;
  user-select: none;
}

/* ========================================================
   PANEL STYLES
======================================================== */
.info-hidden {
  display: none !important;
}

#info-panel {
  position: absolute;
  top: 500px;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 500px;
  background-color: #222328;
  border-radius: 8px;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  z-index: 1000;
}

.panel-content {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 20px;
  box-sizing: border-box;
}

.panel-title {
  font-size: 24px;
  font-weight: bold;
  color: #a6b4b4;
  text-align: left;
  user-select: none;
}

.panel-subtitle {
  font-size: 15px;
  color: #a6b4b4;
  text-align: left;
  user-select: none;
}

.panel-subtitle a {
  color: #a6b4b4;
  text-decoration: underline;
}

.panel-subtitle a:hover {
  color: #ffffff;
  text-decoration: none;
}

#info-panel .info-panel-top {
  background-color: #1a1a1e;
  height: 110px;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

/* Info Panel Body — split left/right below the top bar */
#info-panel .info-panel-body {
  position: absolute;
  top: 110px;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: row;
}

/* Left sidebar — fixed 100px */
#info-panel .info-panel-left {
  width: 100px;
  min-width: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0;
  gap: 8px;
  border-right: 1px solid #2e2e34;
}

/* Expansion / season / week metadata */
.rank-meta {
  text-align: center;
  padding: 0 4px;
  line-height: 1.4;
}

.rank-meta-expansion {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #c9d6d6;
}

.rank-meta-sub {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: #a6b4b4;
}

/* Small "Rank" label inside rank-box */
.rank-label {
  font-size: 10px;
  font-weight: 400;
  color: #a6b4b4;
  padding-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  user-select: none;
}

/* Rank box */
.rank-box {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  background-color: #1a1a1e;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  user-select: none;
  flex-shrink: 0;
}

#info-panel-rank {
  font-size: 28px;
  font-weight: 800;
  color: white;
}

/* Links column — vertical icon list, pushed to bottom of sidebar */
.links-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  margin-bottom: 12px;
  overflow-y: auto;
}

.links-column a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background-color: #1a1a1e;
  transition: background-color 0.2s;
}

.links-column a:hover {
  background-color: #333338;
}

.links-column .link-icon {
  width: 20px;
  height: 20px;
  user-select: none;
}

/* Right panel — chart area */
#info-panel .info-panel-right {
  flex: 1;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

#info-panel-chart {
  width: 100% !important;
  height: 100% !important;
}

#info-panel-image {
  width: 70px;
  height: 70px;
  border-radius: 6px;
  object-fit: cover;
  position: absolute;
  top: 20px;
  left: 20px;
  user-select: none;
}

#info-panel-label {
  margin-top: 26px;
  margin-left: 105px;
}

#info-panel-description {
  margin-top: 10px;
  margin-left: 105px;
}

#close-info {
  position: absolute;
  width: 30px;
  height: 30px;
  top: 10px;
  right: 10px;
  background-color: #222328;
  border-radius: 6px;
  border: none;
  font-size: 14px;
  font-weight: bold;
  color: #a6b4b4;
  cursor: pointer;
  z-index: 2;
}

#close-info:hover {
  background-color: #333338 !important;
  transition:
    background-color 0.2s,
    border-color 0.2s;
}

/* ========================================================
   META ITEM STYLES
======================================================== */
.item {
  width: 54px;
  height: 54px;
  margin: 5px;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  position: relative;
  isolation: isolate;
  border-radius: 6px;
  overflow: visible;
  z-index: 1000;
}

.tooltip {
  position: absolute;
  padding: 5px 10px;
  background-color: #222224;
  color: #a6b4b4;
  border-radius: 4px;
  font-size: 14px;
  visibility: hidden;
  z-index: 1000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 400px;
}

.placeholder {
  width: 54px;
  height: 54px;
  margin: 5px;
  background-color: #333338;
  border-color: #333338;
  border-radius: 6px;
  transition:
    outline 0.3s ease,
    box-shadow 0.3s ease;
}

.placeholder-reverse {
  width: 54px;
  height: 54px;
  margin: 5px;
  background-color: #222328;
  border-color: #222328;
  border-radius: 6px;
  transition:
    outline 0.3s ease,
    box-shadow 0.3s ease;
}

/* ========================================================
   RANKING STYLES
======================================================== */
.ranking-content {
  display: flex;
  gap: 15px;
  height: 100%;
}

.ranking-column {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ranking-section {
  margin-bottom: 10px;
}

.ranking-section-title {
  font-size: 14px;
  font-weight: bold;
  color: #a6b4b4;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.ranking-section-title::before {
  content: '';
  width: 18px;
  height: 18px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
  margin-left: 1px;
}

/* Tank section icon */
.ranking-section-title[data-role='tank']::before {
  background-image: url('wow/data/role/tank.png');
}

/* Healer section icon */
.ranking-section-title[data-role='healer']::before {
  background-image: url('wow/data/role/healer.png');
}

/* DPS section icon */
.ranking-section-title[data-role='dps']::before {
  background-image: url('wow/data/role/dps.png');
}

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ranking-item {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 22px;
}

.ranking-rank-square {
  width: 22px;
  height: 22px;
  background-color: #1a1a1e;
  color: #a6b4b4;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: bold;
  flex-shrink: 0;
}

.ranking-number {
  width: 22px;
  height: 22px;
  background-color: #333338;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: bold;
  color: #a6b4b4;
  flex-shrink: 0;
}

/* Tier-based ranking number colors */
.ranking-number.tier-sp {
  background-color: #00ccff;
  color: white;
}

.ranking-number.tier-s {
  background-color: #e6cc80;
  color: white;
}

.ranking-number.tier-ap {
  background-color: #ff8000;
  color: white;
}

.ranking-number.tier-a {
  background-color: #a335ee;
  color: white;
}

.ranking-number.tier-b {
  background-color: #0070dd;
  color: white;
}

.ranking-number.tier-c {
  background-color: #1eff00;
  color: white;
}

.ranking-number.tier-d {
  background-color: #ffffff;
  color: #000;
}

.ranking-number.tier-f {
  background-color: #9d9d9d;
  color: white;
}

.item-mini {
  width: 22px;
  height: 22px;
  background-size: cover;
  background-position: center;
  border-radius: 2px;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
}

.ranking-spec-name {
  font-size: 12px;
  color: #a6b4b4;
  flex-grow: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ranking-percentage {
  font-size: 11px;
  color: #8a9999;
  flex-shrink: 0;
}

/* Class colors for percentage bars */
.class-death-knight {
  background-color: #c41e3a;
}
.class-demon-hunter {
  background-color: #a330c9;
}
.class-druid {
  background-color: #ff7c0a;
}
.class-evoker {
  background-color: #33937f;
}
.class-hunter {
  background-color: #aad372;
}
.class-mage {
  background-color: #3fc7eb;
}
.class-monk {
  background-color: #00ff98;
}
.class-paladin {
  background-color: #f48cba;
}
.class-priest {
  background-color: #ffffff;
}
.class-rogue {
  background-color: #fff468;
}
.class-shaman {
  background-color: #0070dd;
}
.class-warlock {
  background-color: #8788ee;
}
.class-warrior {
  background-color: #c69b6d;
}

.ranking-change-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ranking-change-icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.ranking-bar-container {
  display: flex;
  align-items: center;
  flex-grow: 1;
  gap: 6px;
}

.ranking-percentage-bar {
  height: 14px;
  border-radius: 2px;
  flex-shrink: 0;
  position: relative;
  min-width: 0;
}

.ranking-percentage-bar .bar-text {
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  font-weight: bold;
  color: rgba(0, 0, 0, 0.8);
  white-space: nowrap;
  z-index: 1;
}

.ranking-unused {
  opacity: 0.5;
}

/* ========================================================
   PRIVACY NOTICE PANEL
======================================================== */
#privacy-panel {
  position: absolute;
  top: 500px;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  background-color: #222328;
  border-radius: 8px;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  padding: 30px 40px;
  box-sizing: border-box;
}

#privacy-panel .panel-title {
  text-align: left;
  margin-bottom: 20px;
}

#privacy-panel .panel-subtitle {
  text-align: left;
  line-height: 1.4;
  margin-bottom: 24px;
  white-space: pre-line;
}

#privacy-acknowledge {
  display: block;
  width: 200px;
  height: 43px;
  margin: 0 auto;
  background-color: #1a1a1e;
}

/* Footer Privacy Notice link */
footer a {
  color: #a6b4b4;
  text-decoration: none;
  transition: color 0.2s ease;
}

footer a:hover {
  color: #ffffff;
}
