/* === Whiteout Survival Emoji Combos - Layout === */

#wos-emoji-gallery {
  background-color: #0d0d0f;
  color: #e9e9e9;
  font-family: 'Segoe UI', sans-serif;
  padding: 30px;
  border-radius: 10px;
  max-width: 1000px;
  margin: 0 auto;
}

/* --- Header --- */
.wos-header {
  text-align: center;
  margin-bottom: 30px;
}
.wos-title {
  color: #ffa000;
  font-weight: 700;
  margin-bottom: 10px;
}
.add-emoji-link {
  display: inline-block;
  margin-top: 10px;
  background: #ffa000;
  color: #000;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 0 8px rgba(255, 160, 0, 0.3);
}

.add-emoji-link:hover {
  background: #ffbe33;
  box-shadow: 0 0 12px rgba(255, 190, 51, 0.5);
}

.wos-search {
  width: 70%;
  padding: 10px;
  background: #1a1a1f;
  border: 1px solid #333;
  border-radius: 8px;
  color: #fff;
  font-size: 15px;
  transition: all 0.2s ease-in-out;
}

/* Delikatne podświetlenie przy najechaniu */
.wos-search:hover {
  border-color: #666;
}

/* Pomarańczowy efekt aktywnego pola */
.wos-search:focus,
.wos-search:active {
  border-color: #ffa000;
  box-shadow: 0 0 8px rgba(255, 160, 0, 0.4);
  outline: none;
}


/* --- Panel zmiennych --- */
.alias-panel {
  margin-top: 10px;
  margin-bottom: 15px;
  text-align: left;
}
#toggle-alias-panel {
  background: #2c2c34;
  border: 1px solid #444;
  color: #ccc;
  font-weight: 600;
  font-size: 14px;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
}
#toggle-alias-panel:hover {
  background: #ffa000;
  color: #000;
  border-color: #ffa000;
}

/* --- Alias box (formularz zmiennych) --- */
.alias-box {
  margin-top: 10px;
  background: #1c1c20;
  border: 1px solid #2a2a33;
  border-radius: 8px;
  padding: 10px 15px;
  display: none;
  text-align: left;
}
.alias-field {
  margin-bottom: 8px;
}
.alias-field label {
  font-weight: 600;
  font-size: 13px;
  display: block;
  margin-bottom: 4px;
}
.wos-alias {
  background: #1a1a1f;
  border: 1px solid #333;
  padding: 10px 15px;
  color: #fff;
  border-radius: 8px;
  width: 260px;
  font-size: 15px;
}
.wos-alias:focus {
  border-color: #ffa000;
  outline: none;
}
.alias-hint {
  margin-top: 6px;
  font-size: 13px;
  color: #aaa;
}
.tag-sort {
  margin-bottom: 10px;
  font-size: 14px;
  color: #ddd;
}
.tag-sort select {
  background: #222;
  color: #fff;
  border: 1px solid #555;
  border-radius: 4px;
  padding: 4px 8px;
}

/* --- Emoji Tag buttons --- */
.emoji-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 15px 0;
}

.emoji-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #2c2c34;
  color: #ccc;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 13px;
  cursor: pointer;
  transition: 0.2s;
  white-space: nowrap;
}

.emoji-tag:hover {
  background: #3b3b44;
  color: #fff;
}

.emoji-tag.active {
  background: #ffa000;
  color: #000;
}

.emoji-tag .count {
  color: #aaa;
  font-weight: 400;
  margin-left: 3px;
}

.combo-sort {
  margin: 10px 0 15px;
  font-size: 14px;
  color: #ddd;
}
.combo-sort select {
  background: #222;
  color: #fff;
  border: 1px solid #555;
  border-radius: 4px;
  padding: 4px 8px;
  margin-left: 6px;
}

/* --- Gallery container --- */
.gallery {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* --- Single card --- */
.card {
  display: flex;
  flex-direction: row;
  background: #16161a;
  border-radius: 10px;
  border: 1px solid #2a2a33;
  overflow: hidden;
  transition: 0.25s;
}
.card:hover {
  border-color: #ffa000;
}

/* --- Card content --- */
.card-content {
  flex: 1;
  padding: 15px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.card-content pre {
  font-family: "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji",
               "Noto Sans Symbols", "Apple Color Emoji", "Arial Unicode MS",
               "Symbola", monospace !important;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.2 !important;
  background-color: #1A446F !important;
  color: #fff !important;
  margin: 0;
  box-sizing: border-box;
}



/* --- Copy button --- */
.copy-btn {
  background: #ffa000;
  border: none;
  width: 70px;
  color: #000;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.2s;
  border-radius: 0;
  margin: 0;
  padding: 0;
}
.copy-btn:hover {
  background: #ffbb33;
}

/* --- Tags list inside card --- */
.tags-list {
  margin-top: 10px;
}
.tags-list span {
  display: inline-block;
  background: #222;
  color: #ccc;
  font-size: 12px;
  padding: 4px 10px;
  margin: 3px;
  border-radius: 10px;
  transition: 0.2s;
}
.tags-list span:hover {
  background: #333;
  color: #fff;
}

/* --- Loader --- */
.loader {
  text-align: center;
  color: #aaa;
  padding: 20px;
  font-size: 15px;
}
.wos-alt-panel {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
  padding: 4px 0;
  background: rgba(255,160,0,0.08);
  border-bottom: 1px solid #ffa00044;
  border-radius: 6px 6px 0 0;
}
.wos-alt-btn {
  border: 1px solid #ffa00099;
  background: #1a1a1f;
  color: #ffa000;
  font-size: 12px;
  border-radius: 6px;
  cursor: pointer;
  padding: 6px 10px;
  line-height: 1;
  text-transform: lowercase;
  transition: all 0.2s ease-in-out;
}
.wos-alt-btn:hover,
.wos-alt-btn.active {
  background: #ffa000;
  color: #111;
  border-color: #ffa000;
}
.load-more {
  display: block;
  margin: 20px auto;
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  background: #222;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  transition: 0.2s;
}
.load-more:hover {
  background: #333;
}
.wos-gallery-list {
  display: flex;
  flex-direction: column;
  gap: 20px; /* 🔹 ten sam odstęp co wcześniej */
}
@media (max-width: 700px) {
  #wos-emoji-gallery {
    padding: 20px;
  }
  .wos-search {
    width: 90%;
  }
  .card {
    flex-direction: column;
  }
  .copy-btn {
    width: 100%;
    padding: 8px 0;
  }
}


/* --- Podświetlenie niewypełnionych zmiennych --- */
.var-placeholder {
  color: #ff5c5c;
  animation: pulse-var 1.3s ease-in-out infinite;
}
@keyframes pulse-var {
  0% {
    color: #ff5c5c;
    text-shadow: 0 0 2px rgba(255, 60, 60, 0.3);
  }
  50% {
    color: #ff9b9b;
    text-shadow: 0 0 6px rgba(255, 90, 90, 0.6);
  }
  100% {
    color: #ff5c5c;
    text-shadow: 0 0 2px rgba(255, 60, 60, 0.3);
  }
}
.game-icon {
  display: inline-flex;
  align-items: baseline; /* 🔹 wyrównanie do tekstu */
  gap: 3px;
  vertical-align: baseline;
}

.game-icon img {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  object-fit: contain;
}

.game-icon .icon-label {
  font-size: 13px;
  color: #ccc;
}
