/* ======= VIEW OPTIONS MENU (3 Dots) ======= */
.view-options-wrapper {
  position: relative;
  margin-left: 0px;
  margin-right: 0px;
  display: flex;
  align-items: center;
}

/* Der Button */
.icon-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-btn:hover, .icon-btn.active {
  background: rgba(255,255,255,0.05);
  color: var(--text);
}

/* Das Dropdown Fenster */
.view-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  width: 220px;
  background: #1a2332; 
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  padding: 8px;
  z-index: 1000;
  
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
}
.view-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Menü Zeile */
.view-dropdown .menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}
.view-dropdown .menu-item:hover {
  background: rgba(255,255,255,0.03);
}

/* Kleiner Switch im Menü */
.switch.small-switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
  flex-shrink: 0;
}
.switch.small-switch input { opacity: 0; width: 0; height: 0; }
.switch.small-switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255, 255, 255, 0.1);
  transition: .4s;
  border-radius: 34px;
  border: 1px solid rgba(255,255,255,0.1);
}
.switch.small-switch .slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}
.switch.small-switch input:checked + .slider {
  background-color: var(--accent);
  border-color: var(--accent);
}
.switch.small-switch input:checked + .slider:before {
  transform: translateX(16px);
}

/* ======= MODERN UI STATE (Overrides) ======= */
/* Wenn body die Klasse .modern-ui hat, gelten diese Regeln */

/* 1. Meta (Text/User) ausblenden */
body.modern-ui .tile .meta {
  display: none !important;
}

/* 2. Tile Padding & Border entfernen */
body.modern-ui .tile {
  padding: 0px !important;
  border: 0px solid rgba(255, 255, 255, 0.03) !important;
  background: transparent !important;
  box-shadow: none !important; /* Schatten ggf. auch entfernen für cleanen Look */
}

/* 3. Thumb Border-Radius entfernen (8px -> 0px) */
body.modern-ui .tile .thumb {
  border-radius: 0px !important;
  width: 100%; /* Sicherstellen, dass Bild volle Breite nutzt */
}

/* 4. Der Wrapper um das Bild muss auch eckig sein */
body.modern-ui .tile .open-overlay {
  border-radius: 0px !important;
}

/* 5. Abstand zwischen den Kacheln in der Spalte entfernen */
body.modern-ui .mcol {
  gap: 5px !important;
}

/* 6. Topic Rail Abstand anpassen */
body.modern-ui .topic-rail {
  margin-bottom: 5px !important;
}

body.modern-ui .topic-rail .topic-bar .topic-chip {
  /*border-radius: 1px !important;*/
}

/* Switch auf Mobile ausblenden */
@media (max-width: 1000px) {
  .ui-switch-container.desktop-only {
    display: none !important;
  }
}
/* ======= UI SWITCH (RETRO / MODERN) ======= */