/* 🇩🇪 WortschatzMaster AI - Premium German Theme */
/* Colors: Black #000000, Red #DD0000, Gold #FFCC00 (German Flag) */

/* ============================================ */
/* CSS VARIABLES - Hauptfarben */
/* ============================================ */
:root {
  --primary: 45 100% 50% !important;
  --primary-foreground: 0 0% 0% !important;
  --de-black: #000000;
  --de-red: #DD0000;
  --de-gold: #FFCC00;
}

.dark {
  --primary: 45 100% 50% !important;
  --primary-foreground: 0 0% 0% !important;
}

/* ============================================ */
/* BENUTZER NACHRICHT - Gold + Schwarze Schrift */
/* ============================================ */
.bg-primary {
  background: linear-gradient(135deg, #FFCC00 0%, #FFB300 100%) !important;
  box-shadow: 0 4px 15px rgba(255, 204, 0, 0.4) !important;
}

.text-primary-foreground {
  color: #000000 !important;
  font-weight: 500 !important;
}

/* ============================================ */
/* BODY & HINTERGRUND - Dunkles Thema */
/* ============================================ */
body {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%) !important;
  min-height: 100vh;
}

/* ============================================ */
/* HEADER/NAVBAR - Deutsche Flagge Gradient */
/* ============================================ */
header, nav, [class*="header"], [class*="Header"] {
  background: linear-gradient(90deg, #000000 0%, #DD0000 50%, #FFCC00 100%) !important;
  border-bottom: 3px solid #FFCC00 !important;
  box-shadow: 0 4px 20px rgba(255, 204, 0, 0.3) !important;
}

header *, nav * {
  color: #ffffff !important;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5) !important;
}

/* ============================================ */
/* SIDEBAR - Dunkles Rot */
/* ============================================ */
aside, [class*="sidebar"], [class*="Sidebar"] {
  background: linear-gradient(180deg, #1a0000 0%, #0d0000 100%) !important;
  border-right: 2px solid #DD0000 !important;
}

aside:hover, [class*="sidebar"]:hover {
  border-right-color: #FFCC00 !important;
}

/* ============================================ */
/* NACHRICHTENKARTEN */
/* ============================================ */
[class*="message"], [class*="Message"] {
  border-radius: 16px !important;
  transition: all 0.3s ease !important;
}

[class*="message"]:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
}

/* ============================================ */
/* EINGABEFELD - Gold Rahmen */
/* ============================================ */
input, textarea, [class*="input"], [class*="Input"] {
  background: rgba(26, 26, 26, 0.9) !important;
  border: 2px solid #333333 !important;
  border-radius: 12px !important;
  color: #ffffff !important;
  transition: all 0.3s ease !important;
}

input:focus, textarea:focus, [class*="input"]:focus {
  border-color: #FFCC00 !important;
  box-shadow: 0 0 20px rgba(255, 204, 0, 0.3) !important;
  outline: none !important;
}

/* ============================================ */
/* BUTTONS */
/* ============================================ */
button {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border-radius: 10px !important;
}

button:hover {
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: 0 10px 30px rgba(255, 204, 0, 0.4) !important;
}

button:active {
  transform: translateY(-1px) scale(0.98) !important;
}

/* Senden-Button */
button[class*="send"], button[type="submit"] {
  background: linear-gradient(135deg, #FFCC00 0%, #FFB300 100%) !important;
  color: #000000 !important;
  font-weight: 600 !important;
}

button[class*="send"]:hover, button[type="submit"]:hover {
  background: linear-gradient(135deg, #FFB300 0%, #FF9500 100%) !important;
}

/* ============================================ */
/* SCROLLBAR - Deutsche Farben */
/* ============================================ */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #0a0a0a;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #000000 0%, #DD0000 50%, #FFCC00 100%);
  border-radius: 5px;
  border: 2px solid #0a0a0a;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #333333 0%, #FF0000 50%, #FFD700 100%);
}

/* ============================================ */
/* TABELLEN - Premium Look */
/* ============================================ */
table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  width: 100%;
  margin: 20px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

th {
  background: linear-gradient(135deg, #DD0000 0%, #AA0000 100%) !important;
  color: #FFCC00 !important;
  padding: 15px 20px !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85em;
}

td {
  background: rgba(26, 26, 26, 0.9) !important;
  padding: 12px 20px !important;
  border-bottom: 1px solid #333333 !important;
  transition: all 0.2s ease;
}

tr:hover td {
  background: rgba(40, 40, 40, 0.9) !important;
  color: #FFCC00 !important;
}

tr:last-child td {
  border-bottom: none !important;
}

/* ============================================ */
/* BLOCKQUOTES - Elegant */
/* ============================================ */
blockquote {
  background: linear-gradient(90deg, rgba(221, 0, 0, 0.2) 0%, transparent 100%) !important;
  border-left: 4px solid #FFCC00 !important;
  border-radius: 0 12px 12px 0 !important;
  padding: 16px 24px !important;
  margin: 20px 0 !important;
  font-style: italic;
  color: #cccccc;
}

/* ============================================ */
/* CODE BLOCKS */
/* ============================================ */
pre, code {
  background: #0a0a0a !important;
  border: 1px solid #DD0000 !important;
  border-radius: 10px !important;
  font-family: 'JetBrains Mono', 'Fira Code', monospace !important;
}

pre {
  padding: 20px !important;
  overflow-x: auto;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
}

code {
  color: #FFCC00 !important;
  padding: 3px 8px !important;
}

/* ============================================ */
/* LINKS - Gold Glanz */
/* ============================================ */
a {
  color: #FFCC00 !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  position: relative;
}

a:hover {
  color: #FFD700 !important;
  text-shadow: 0 0 10px rgba(255, 204, 0, 0.5) !important;
}

a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background: linear-gradient(90deg, #FFCC00, #DD0000);
  transition: width 0.3s ease;
}

a:hover::after {
  width: 100%;
}

/* ============================================ */
/* ANIMATIONEN */
/* ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

[class*="message"] {
  animation: fadeInUp 0.4s ease-out !important;
}

/* ============================================ */
/* MARKDOWN ÜBERSCHRIFTEN */
/* ============================================ */
h1, h2, h3, h4, h5, h6 {
  color: #FFCC00 !important;
  font-weight: 700 !important;
  margin-top: 1.5em !important;
  margin-bottom: 0.5em !important;
}

h1 {
  font-size: 2em !important;
  text-shadow: 0 0 20px rgba(255, 204, 0, 0.3) !important;
  border-bottom: 2px solid #DD0000;
  padding-bottom: 10px;
}

h2 {
  font-size: 1.5em !important;
  border-left: 4px solid #FFCC00;
  padding-left: 15px;
}

h3 {
  font-size: 1.25em !important;
  color: #FFD700 !important;
}

/* ============================================ */
/* LISTEN */
/* ============================================ */
ul {
  list-style: none !important;
  padding-left: 20px !important;
}

ul li::before {
  content: '▸' !important;
  color: #FFCC00 !important;
  font-weight: bold;
  margin-right: 10px;
}

ol li::marker {
  color: #FFCC00 !important;
  font-weight: bold;
}

/* ============================================ */
/* HORIZONTAL RULE */
/* ============================================ */
hr {
  border: none !important;
  height: 3px !important;
  background: linear-gradient(90deg, transparent, #000000, #DD0000, #FFCC00, transparent) !important;
  margin: 30px 0 !important;
  border-radius: 2px;
}

/* ============================================ */
/* SELECTION */
/* ============================================ */
::selection {
  background: #FFCC00 !important;
  color: #000000 !important;
}

::-moz-selection {
  background: #FFCC00 !important;
  color: #000000 !important;
}

/* ============================================ */
/* FOCUS STATES */
/* ============================================ */
*:focus-visible {
  outline: 2px solid #FFCC00 !important;
  outline-offset: 2px !important;
}

/* ============================================ */
/* CARDS */
/* ============================================ */
[class*="card"], [class*="Card"] {
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(20, 20, 20, 0.9) 100%) !important;
  border: 1px solid rgba(255, 204, 0, 0.2) !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
  transition: all 0.3s ease !important;
}

[class*="card"]:hover, [class*="Card"]:hover {
  border-color: rgba(255, 204, 0, 0.5) !important;
  transform: translateY(-5px) !important;
}

/* ============================================ */
/* AVATARS */
/* ============================================ */
[class*="avatar"], [class*="Avatar"] {
  border: 2px solid #FFCC00 !important;
  box-shadow: 0 0 15px rgba(255, 204, 0, 0.3) !important;
}

/* ============================================ */
/* RESPONSIVE */
/* ============================================ */
@media (max-width: 768px) {
  h1 { font-size: 1.5em !important; }
  h2 { font-size: 1.25em !important; }
  table { font-size: 0.9em; }
  th, td { padding: 8px 12px !important; }
}
