/* ===========================================================
   KIRVX DISCORD SIM — FULL UI SYSTEM
   Clean • Modern • Green • Ultra Smooth
=========================================================== */

:root {
  --kirvx-green: #47F138;
  --kirvx-green-soft: rgba(71, 241, 56, 0.22);
  --kirvx-bg: #05070a;
  --kirvx-text: #e5e5e5;
  --kirvx-muted: #8b8b8b;

  --surface: #111318;
  --surface-alt: #181b22;
  --border: rgba(255,255,255,0.07);
}

/* WRAPPER --------------------------------------------------- */
.discord-sim-wrapper {
  padding: 140px 8%;
  background: radial-gradient(circle at 20% 20%, rgba(71,241,56,0.14), transparent 55%),
              radial-gradient(circle at 80% 80%, rgba(71,241,56,0.10), transparent 60%),
              var(--kirvx-bg);
  display: flex;
  justify-content: center;
}

.discord-sim-inner {
  width: 100%;
  max-width: 1320px;
}

/* HEADER ----------------------------------------------------- */
.discord-kicker {
  color: var(--kirvx-green);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .2em;
}

.discord-title {
  font-size: 42px;
  color: var(--kirvx-text);
  margin: 6px 0 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.discord-sub {
  color: var(--kirvx-muted);
  font-size: 15px;
  max-width: 620px;
}

/* FRAME ------------------------------------------------------ */
.discord-app-frame {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 260px minmax(0,1fr) 290px;
  background: linear-gradient(145deg,#07090d,#151821);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 26px;
  height: 78vh;
  max-height: 830px;
  min-height: 550px;
  overflow: hidden;
  box-shadow: 0 24px 90px rgba(0,0,0,.85),
              0 0 70px rgba(71,241,56,.12);
}

/* SIDEBAR ---------------------------------------------------- */
.discord-sidebar {
  background: #060709;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.server-icon {
  width: 38px;
  height: 38px;
  border-radius: 16px;
  background: radial-gradient(circle at 30% 0,#b8ffdf,#47F138);
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 800;
  color: #05070a;
}

.discord-server-pill {
  display: flex;
  gap: 12px;
  padding: 18px 14px;
  border-bottom: 1px solid var(--border);
}

.server-label-name {
  color: white;
  font-size: 13px;
  font-weight: 700;
}

.server-label-sub {
  font-size: 10px;
  color: rgba(255,255,255,.45);
}

.discord-channel-wrap {
  padding: 12px 10px 20px;
}

.discord-channel-group-label {
  font-size: 11px;
  color: rgba(255,255,255,.35);
  margin-bottom: 4px;
  letter-spacing: .15em;
  text-transform: uppercase;
}

/* CHANNEL BUTTON --------------------------------------------- */

.discord-channel {
  border: none;
  width: 100%;
  background: transparent;
  padding: 7px 10px;
  margin-bottom: 1px;
  border-radius: 8px;
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: var(--kirvx-muted);
  cursor: pointer;
  transition: .18s ease;
}

.discord-channel:hover {
  background: rgba(255,255,255,.05);
  color: var(--kirvx-text);
}

.discord-channel.active {
  background: var(--kirvx-green-soft);
  color: var(--kirvx-green);
}

/* NOTIFICATION BADGES ---------------------------------------- */
.badge-layer {
  position: relative;
}

.channel-badge {
  position: absolute;
  right: 8px;
  top: 6px;
  background: var(--kirvx-green);
  padding: 2px 6px;
  font-size: 10px;
  border-radius: 999px;
  color: #05070a;
  font-weight: 600;
  box-shadow: 0 0 12px rgba(71,241,56,.6);
  animation: popBadge .25s ease;
}

@keyframes popBadge {
  from { transform: scale(.4); opacity: .4; }
  to   { transform: scale(1); opacity: 1; }
}

/* MAIN -------------------------------------------------------- */
.discord-main {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  min-height: 0;
}

/* TOP BAR ----------------------------------------------------- */
.discord-main-header {
  height: 52px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 18px;
}

.status-pill {
  padding: 5px 10px;
  font-size: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.2);
  letter-spacing: .15em;
  text-transform: uppercase;
}

.status-pill.live {
  border-color: rgba(71,241,56,.5);
  color: var(--kirvx-green);
}

.status-pill.bot {
  border-style: dashed;
}

/* JOIN ANIMATION ---------------------------------------------- */
.join-animation {
  position: absolute;
  top: 60px;
  left: 20px;
  background: rgba(0,0,0,.65);
  padding: 10px 14px;
  border-radius: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
  color: white;
  animation: slideIn .35s ease;
  z-index: 20;
}

.join-animation.hidden {
  display: none;
}

.join-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background-size: cover;
  background-position: center;
  background-color: #333;
}

.join-text {
  font-size: 13px;
  opacity: .85;
}

@keyframes slideIn {
  from { transform: translateY(-10px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* TYPING INDICATOR ------------------------------------------- */
.typing-indicator {
  position: absolute;
  bottom: 56px;
  left: 16px;
  background: rgba(0,0,0,.45);
  padding: 6px 12px;
  border-radius: 999px;
  display: flex;
  gap: 6px;
  align-items: center;
  animation: fadeTyping .25s ease;
}

.typing-indicator.hidden {
  display: none;
}

.typing-indicator .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--kirvx-green);
  animation: blinkDots 1.2s infinite ease-in-out;
}

.typing-indicator .dot:nth-child(2) { animation-delay: .2s; }
.typing-indicator .dot:nth-child(3) { animation-delay: .4s; }

@keyframes blinkDots {
  0%   { transform: translateY(0); opacity: .3; }
  50%  { transform: translateY(-4px); opacity: 1; }
  100% { transform: translateY(0); opacity: .3; }
}

#typingUser {
  font-size: 12px;
  color: white;
  margin-left: 4px;
  opacity: .8;
}

@keyframes fadeTyping {
  from { opacity: 0; transform: scale(.96); }
  to   { opacity: 1; transform: scale(1); }
}

/* MESSAGE AREA ----------------------------------------------- */
.discord-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  scroll-behavior: smooth;
  min-height: 0;
}

/* MESSAGES ---------------------------------------------------- */
.discord-message {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  opacity: 0;
  animation: msgFade .25s ease forwards;
}

@keyframes msgFade {
  to { opacity: 1; transform: translateY(0); }
}

/* Avatar */
.message-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: linear-gradient(145deg,#222,#16181f);
  border: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 14px;
}

.message-avatar.image {
  background-size: cover;
  background-position: center;
  color: transparent;
}

.message-avatar.bot {
  background: radial-gradient(circle at 30% 0,#b8ffdf,#47F138);
  color: #05070a;
}

/* Message body */
.message-meta {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 3px;
}

.message-author {
  color: white;
  font-weight: 600;
}

.message-author.bot {
  color: var(--kirvx-green);
}

.message-timestamp {
  color: rgba(255,255,255,.45);
  font-size: 11px;
}

.message-content {
  color: var(--kirvx-text);
  font-size: 14px;
  line-height: 1.5;
}

/* EMBED ------------------------------------------------------- */
.message-embed {
  background: rgba(0,0,0,.35);
  border-left: 3px solid var(--kirvx-green);
  padding: 8px 12px;
  margin-top: 6px;
  border-radius: 8px;
}

.embed-title {
  color: var(--kirvx-green);
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 13px;
}

.embed-field {
  color: rgba(255,255,255,.85);
  font-size: 12px;
  margin-top: 4px;
}

/* INPUT ------------------------------------------------------- */
.discord-input-bar {
  border-top: 1px solid var(--border);
  padding: 12px 16px;
  background: rgba(0,0,0,.25);
}

.discord-input {
  width: 100%;
  padding: 10px 16px;
  background: rgba(0,0,0,.6);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  color: white;
  outline: none;
}

.discord-input:focus {
  border-color: var(--kirvx-green);
  box-shadow: 0 0 20px rgba(71,241,56,.35);
}

/* RIGHT PANEL ------------------------------------------------ */
.discord-right {
  background: var(--surface-alt);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

/* ADMIN PANEL ------------------------------------------------ */
.admin-panel {
  padding: 14px;
  border-bottom: 1px solid var(--border);
}

.admin-input {
  width: 100%;
  background: rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 6px;
  padding: 6px 10px;
  color: white;
}

.admin-log {
  margin-top: 10px;
  background: #090b10;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  height: 150px;
  overflow-y: auto;
  font-size: 11px;
  padding: 8px;
  font-family: monospace;
  color: white;
}

.admin-commands button {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.16);
  padding: 5px 10px;
  border-radius: 999px;
  color: white;
  cursor: pointer;
  font-size: 11px;
}

/* MEMBER PANEL ---------------------------------------------- */
.member-panel {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.member-list {
  overflow-y: auto;
  margin-top: 10px;
}

.member-item {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.status-dot.online {
  background: var(--kirvx-green);
  box-shadow: 0 0 8px rgba(71,241,56,.7);
}

.status-dot.idle {
  background: #facc15;
}

.status-dot.offline {
  background: #4b5563;
}

.member-name {
  color: white;
  font-size: 13px;
  flex: 1;
}

.member-tag {
  border: 1px solid rgba(255,255,255,.14);
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 10px;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
}

/* SCROLLBARS ------------------------------------------------- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-thumb {
  background: rgba(71,241,56,.3);
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(71,241,56,.6);
}

* {
  scrollbar-color: rgba(71,241,56,.35) transparent;
  scrollbar-width: thin;
}
/* ============================================================
   FULL MOBILE LOCK — Entfernt den gesamten Discord-Block
============================================================ */
@media (max-width: 900px) {

  /* Gesamter Wrapper verschwindet */
  .discord-sim-wrapper,
  .discord-sim-inner,
  .discord-kicker,
  .discord-title,
  .discord-sub,
  .discord-app-frame {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    max-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
  }
}

/* Desktop normal */
@media (min-width: 901px) {
  .discord-sim-wrapper {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    overflow: visible !important;
  }
}
