/* Osnovni reset */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  min-height: 100vh;
  color: #f5f7ff;
  font-family: "DIN 2014", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

/* Pozadina */

.screen {
  background-color: #050915;
  background-image: url("bg/bg_smoke.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Kad je neki skin izabran -> druga pozadina */

.screen.has-selection {
  background-image: url("bg/bg_smoke_water.png");
}

/* Top bar */

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px 8px;
  gap: 32px;
  text-transform: uppercase;
}

.commander-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.commander-badge {
  display: flex;
  align-items: center;
  gap: 8px;
}

.commander-level {
  font-size: 30px;
  font-weight: 700;
  color: #f4d15f;
}

.commander-pip {
  width: 8px;
  height: 40px;
  border-radius: 4px;
  border: 2px solid #f4d15f;
}

.commander-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.commander-name {
  font-size: 26px;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: #f8e08a;
}

.commander-rank-text {
  font-size: 15px;
  letter-spacing: 0.18em;
  opacity: 0.8;
  color:#d1a820;
  font-weight: 800;
}

/* Resursi */

.top-resources {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  justify-content: center;
}

.resource {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
}

.resource-icon {
  width: 20px;
  height: 20px;
}

.resource-value {
  font-weight: 600;
}

.resource-value--green {
  color: #6ff19a;
}

.resource-value--yellow {
  color: #c4b810;
}

/* Crvena NEW oznaka iznad ikone */
.resource--new-flag .resource-new {
  position: absolute;
  top: -14px;
  left: 12px;
  padding: 2px 6px;
  border-radius: 3px;
  background-color: #bf372c;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}


/* Player info */

.player-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.player-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.player-name {
  font-size: 18px;
  font-weight: 600;
  text-transform: lowercase;
}

/* Glavni layout */

.layout {
  flex: 1;
  display: flex;
  padding: 8px 48px 0px;
  gap: 32px;
  overflow: hidden;
}

/* Leva strana – veliki heroj */

.hero-panel {
  display: flex;
  align-items: flex-end;
}

.hero-portrait {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* kad je prikazan */
.hero-portrait.visible {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

/* faza fade-out (pre nego što promenimo sliku) */
.hero-portrait.fading-out {
  opacity: 0;
  transform: scale(0.98);
}


.controller-hints {
  display: flex;
  gap: 24px;
  font-size: 14px;
  align-items: center;
}

.controller-hint {
  display: flex;
  align-items: center;
  gap: 8px;
}

.controller-key {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.controller-key--green {
  background-color: #33c15a;
}

.controller-key--red {
  background-color: #e54554;
}

/* Desna strana */

.right-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-bottom: 24px;
}

.skins-and-details {
  display: flex;
  gap: 28px;
  flex: 1;
}

/* Lista skinova */

/* Wrapper drži listu na mestu i seče višak */
.skin-list-wrapper {
  position: relative;
  width: 150px;
  margin-top: 40px;
  overflow: visible;
}

/* Unutrašnja lista se pomera gore/dole preko transform-a */
.skin-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateY(0);
  transition: transform 0.6s ease-in-out;
}


.skin-item {
  position: relative;
  padding: 4px;
  border-radius: 8px;
  border: 2px solid transparent;
  background: rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: border-color 0.3s ease, transform 0.3s ease,
    box-shadow 0.3s ease;
  transform: scale(1);
}

.skin-item:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

.skin-item.selected {
  border-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4);
  transform: scale(1.06);
}

/* Checkmark levo od selektovanog */
.skin-item.selected::before {
  content: "✓";
  position: absolute;
  left: -18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.7);
}


.skin-portrait {
  display: block;
  width: 100%;
  border-radius: 6px;
}



.bonus-tag {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 15px;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  font-weight: 600;
}

.xp-size {
    width:13px;
}

/* Detalji skina */

.skin-details {
  flex: 1;
  margin-left: 48px;
  padding-top: 8px;
  padding-bottom: 64px;
  display: flex;
  flex-direction: column;
}


.details-placeholder {
  max-width: 420px;
  font-size: 15px;
  opacity: 0.75;
}

.details-placeholder p {
  margin: 0;
}

.details-content.hidden,
.details-placeholder.hidden {
  display: none;
}

.details-header {
  margin-bottom: 28px;
}

.name-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.details-stock {
  font-size: 13px;
  letter-spacing: 0.18em;
  margin-bottom: 8px;
}

.details-name {
  font-size: 32px;
  line-height: 1.1;
  margin-bottom: 6px;
}

.details-subtitle {
  font-size: 15px;
  letter-spacing: 0.20em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.details-subtitle-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.details-main {
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.details-section {
  margin-bottom: 18px;
  max-width: 560px;
}

.section-title {
  font-size: 15px;
  letter-spacing: 0.20em;
  margin-bottom: 6px;
}

.section-text {
  font-size: 15px;
  line-height: 1.7;
  max-width: 680px;
}

/* Grid efekata (plave ikonice) */

.effects-grid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  column-gap: 56px;
  row-gap: 24px;
}

.effect {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.effect-icon {
  width: 40px;
  height: 40px;
}

.effect-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.effect-title {
  font-size: 15px;
  margin-bottom: 4px;
}

.effect-text {
  font-size: 14px;
  line-height: 1.6;
}

/* Donje desno dugme (SHOW BIO) */

.bottom-right-hint {
  margin-top: auto;
  align-self: flex-end;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  opacity: 0.8;
}

.key-square {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
}

.bottom-hint-label {
  letter-spacing: 0.16em;
}

/* APPLY GUISE blok sa dugmadima */

.apply-header-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 6px;
}

.apply-buttons {
  display: flex;
  gap: 12px;
}

.apply-btn {
  padding: 8px 24px;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(5, 10, 20, 0.7);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  white-space: nowrap;
  transition:
    background 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.08s ease,
    border-color 0.15s ease;
}

.apply-btn--primary {
  background: rgba(40, 200, 120, 0.3);
  border-color: rgba(40, 200, 120, 0.9);
}

.apply-btn--primary:hover {
  background: rgba(40, 200, 120, 0.5);
  box-shadow: 0 0 12px rgba(40, 200, 120, 0.6);
  transform: translateY(-1px);
}

.apply-btn--secondary {
  background: transparent;
}

.apply-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

/* Naslov "VISUAL AND SOUND EFFECTS" iznad grid-a */

.section-title--effects {
  margin-top: 18px;
  margin-bottom: 10px;
}


/* ===== Applied / selected border na mini ikonama ===== */

.skin-item {
  border-width: 2px;
  border-style: solid;
  border-color: transparent;
  transition: border-color 0.18s ease-out, box-shadow 0.18s ease-out;
}

/* default selekcija – beli okvir */
.skin-item.selected {
  border-color: #ffffff;
}

/* primenjeni (APPLIED) skin – zlatni okvir */
.skin-item.applied,
.skin-item.applied.selected {
  border-color: #f4d15f;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.7),
    0 0 12px rgba(244, 209, 95, 0.9),
    0 0 26px rgba(244, 209, 95, 0.45);
}

/* ===== PRIMARY dugme: APPLY GUISE / APPLIED ===== */

.apply-btn--primary {
  cursor: pointer;
}

.apply-btn--primary.apply-btn--disabled {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

/* Back button – same visual language as SHOW GUISE BIO, slightly larger */
.back-btn {
  position: fixed;
  top: 800px;
  right: 48px;
  z-index: 50;
  padding: 15px 46px;
  font-size: 13px;
  cursor: pointer;
}

/* ===== VISUAL AND SOUND EFFECTS header bar ===== */

.section-title--effects {
  position: relative;
  display: inline-block;
  margin: 24px 0 18px;
  padding: 6px 22px;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(
    to bottom,
    rgba(16, 23, 35, 0.96),
    rgba(10, 16, 26, 0.96)
  );
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.section-title--effects::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  margin-left: 24px;
  width: 440px;
  height: 1px;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.35),
    rgba(255, 255, 255, 0)
  );
}






/* Malo prilagođavanje za manje širine (da se ne raspadne skroz) */

@media (max-width: 1200px) {
  .layout {
    padding: 8px 24px 24px;
  }

  .top-bar {
    padding: 16px 24px 4px;
  }

  .effects-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    flex: 0 0 30%;
  }
}

@media (max-width: 900px) {
  .layout {
    flex-direction: column;
  }

  .hero-panel {
    order: 2;
  }

  .right-panel {
    order: 1;
  }

  .skin-list {
    flex-direction: row;
    width: auto;
  }

  .skins-and-details {
    flex-direction: column;
  }
}
