/* Ergänzungen zur alten templatemo-cyborg-gaming.css für die Node.js-Version */

/* ---- Header ---- */
.latest-update-link {
  margin-left: 3px;
  font-size: 13px;
}

.bell-wrapper {
  position: relative;
  display: inline-block;
}

.bell-wrapper .unread-dot {
  position: absolute;
  top: 0;
  width: 10px;
  height: 10px;
  background-color: red;
  border-radius: 50%;
  border: 2px solid #1f2122;
}

.header-popup-frame {
  position: fixed;
  top: 10%;
  right: 10px;
  z-index: 999;
  width: min(420px, calc(100vw - 20px));
}

.header-popup-frame iframe {
  width: 100%;
  height: min(750px, 80vh);
  border: 2px solid #888;
  border-radius: 23px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 1);
  background: #1f2122;
}

/* ---- Allgemeine Formulare im Seitendesign ---- */
.mm-card {
  border-radius: 23px;
  padding: 30px;
  background-color: #1f2122;
  margin-top: 23px;
}

.mm-card:first-child {
  margin-top: 0;
}

.mm-form label {
  display: block;
  color: #fff;
  font-weight: 600;
  margin-top: 15px;
  margin-bottom: 6px;
}

.mm-form input[type="text"],
.mm-form input[type="url"],
.mm-form input[type="number"],
.mm-form textarea,
.mm-form select {
  width: 100%;
  padding: 10px 15px;
  border-radius: 15px;
  border: 1px solid #444;
  background: #27292a;
  color: #fff;
  font-size: 14px;
}

.mm-form textarea {
  resize: vertical;
}

.mm-form input[type="file"] {
  color: #ccc;
  margin-bottom: 5px;
}

.mm-form .hint {
  color: #999;
  font-size: 13px;
  line-height: 20px;
}

.mm-form .check {
  color: #ccc;
  margin-top: 10px;
}

.mm-form .check input {
  width: auto;
  margin-right: 8px;
}

.mm-btn {
  display: inline-block;
  font-size: 14px;
  color: #fff;
  background-color: #e75e8d;
  padding: 10px 24px;
  border-radius: 25px;
  border: none;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.mm-btn:hover {
  background-color: #fff;
  color: #e75e8d;
}

.mm-btn.secondary {
  background: transparent;
  border: 1px solid #ec6090;
  color: #ec6090;
}

.mm-btn.secondary:hover {
  background: #ec6090;
  color: #fff;
}

.mm-btn.danger {
  background-color: #c0392b;
}

.mm-btn.danger:hover {
  background-color: #fff;
  color: #c0392b;
}

.mm-btn.success {
  background-color: #27ae60;
}

.mm-btn.success:hover {
  background-color: #fff;
  color: #27ae60;
}

.mm-btn.small {
  padding: 4px 14px;
  font-size: 13px;
}

.mm-btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.mm-alert {
  border-radius: 15px;
  padding: 12px 18px;
  margin-bottom: 20px;
  color: #fff;
  background: rgba(236, 96, 144, 0.15);
  border-left: 5px solid #ec6090;
}

.mm-alert.success { background: rgba(39, 174, 96, 0.15); border-left-color: #27ae60; }
.mm-alert.danger { background: rgba(192, 57, 43, 0.2); border-left-color: #c0392b; }
.mm-alert.warning { background: rgba(236, 144, 96, 0.15); border-left-color: #ec9060; }

/* ---- Tabellen (Adminbereich) ---- */
.mm-table {
  width: 100%;
  border-collapse: collapse;
  color: #ddd;
  font-size: 14px;
}

.mm-table th,
.mm-table td {
  padding: 10px;
  border-bottom: 1px solid #3a3d3f;
  vertical-align: top;
  text-align: left;
}

.mm-table th {
  color: #ec6090;
  font-weight: 600;
}

.mm-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.mm-table img.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  margin-right: 6px;
}

.mm-scroll {
  overflow-x: auto;
}

.mm-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  background: #3a3d3f;
  color: #fff;
}

.mm-badge.queued { background: #7f6a1f; }
.mm-badge.reviewing { background: #1f5f7f; }
.mm-badge.denied { background: #7f1f1f; }
.mm-badge.published { background: #1f7f45; }

.mm-code {
  background: #151617;
  color: #ddd;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 1em;
  overflow: auto;
  max-height: 350px;
  white-space: pre-wrap;
  font-size: 13px;
}

/* ---- Spielseite ---- */
.iframe-btn.active i {
  color: #ec6090;
}

.iframe-btn .count {
  font-size: 12px;
  margin-left: 4px;
}

.comment-scrollbox li img {
  width: 28px !important;
  height: 28px;
  border-radius: 50%;
}

.comment-actions button {
  margin-right: 8px;
}

.reply-info {
  color: #ec6090;
  font-size: 13px;
  margin-bottom: 6px;
}

/* ---- Hilfe-Center ---- */
.help-category {
  margin-bottom: 2em;
}

.help-category h2 {
  color: #fff;
  font-size: 22px;
  margin-bottom: 15px;
}

.help-article {
  background: #1f2122;
  border-radius: 15px;
  padding: 1em 1.3em;
  margin-bottom: 1em;
}

.help-article h3 {
  margin: 0 0 0.5em 0;
  font-size: 18px;
}

.help-article h3 a {
  color: #ec6090;
}

.help-article p {
  margin: 0;
  color: #ccc;
}

.help-search input {
  width: 100%;
  padding: 0.6em 1em;
  font-size: 1em;
  border-radius: 23px;
  border: 1px solid #444;
  background: #333;
  color: #fff;
}

/* ---- MiniPost ---- */
.post {
  background: #1f2122;
  border-radius: 15px;
  padding: 15px 20px;
  margin-top: 12px;
}

.post .post {
  background: #27292a;
}

.post .avatar {
  width: 30px !important;
  height: 30px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}

.post .tag {
  color: #888;
  font-size: 13px;
}

.post p {
  color: #eee;
  margin: 8px 0;
}

.post small {
  color: #888;
}

.post .reply-form {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.post .reply-form input {
  flex: 1;
  padding: 6px 12px;
  border-radius: 15px;
  border: 1px solid #444;
  background: #27292a;
  color: #fff;
}

/* ---- Tickets ---- */
.chat-box {
  height: 350px;
  overflow-y: auto;
  background: #151617;
  border-radius: 15px;
  padding: 15px;
  color: #ddd;
}

.chat-box .msg {
  margin-bottom: 10px;
}

.chat-box .msg.staff b {
  color: #ec6090;
}

.chat-box small {
  color: #888;
}

/* ---- Schnee ---- */
#snow-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

#snow-container .flake {
  position: absolute;
  top: -10px;
  color: #fff;
  user-select: none;
  animation-name: mm-snow-fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  opacity: 0.8;
}

@keyframes mm-snow-fall {
  to {
    transform: translateY(105vh) translateX(30px);
  }
}

/* ---- Hellmodus für neue Elemente ---- */
.light-mode .mm-card,
.light-mode .help-article,
.light-mode .post {
  background-color: #1f2122d9;
}

/* Auszeichnungs-Dropdown auch per Tippen öffnen (Handy) */
.live-stream .how-to .how-to-dropdown-content.open {
  display: block;
}
