/* =====================================================
   PINGUINHUB - Modern Dark Theme Styles
   ===================================================== */

/* Markdown / Typografie */
article p, article ul, article ol { margin: 0 0 10px; }
article h2, article h3 { margin: 18px 0 10px; }

/* Code / Pre */
pre, code, .kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}
pre {
  background:#0a0e13; border:1px solid var(--stroke); border-radius:10px;
  padding:12px; overflow:auto;
}
code {
  background:#0a0e13; border:1px solid var(--stroke); border-radius:6px; padding:2px 6px;
}

/* Tabellen */
article table { width:100%; border-collapse:collapse; margin:10px 0; }
article th, article td { border-bottom:1px solid var(--stroke); padding:8px 10px; text-align:left; }

/* Sonstiges */
img { max-width:100%; height:auto; }
.badge { display:inline-block; padding:2px 8px; border:1px solid var(--stroke);
  border-radius:999px; color:var(--muted); font-size:12px; }

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero-modern {
  position: relative;
  padding: 60px 24px;
  text-align: center;
  border-radius: 20px;
  background: linear-gradient(135deg, #0d1117 0%, #161b22 50%, #0d1117 100%);
  border: 1px solid var(--stroke);
  overflow: hidden;
  margin-bottom: 32px;
}

.hero-modern::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 30%, rgba(0, 210, 106, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 70%, rgba(0, 150, 255, 0.06) 0%, transparent 50%);
  animation: heroGlow 15s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes heroGlow {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(5%, 5%) rotate(5deg); }
}

.hero-modern h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 12px;
  background: linear-gradient(135deg, var(--fg) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.hero-modern .subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 24px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #00a854);
  color: #fff !important;
  border: none !important;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 210, 106, 0.3);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--stroke) !important;
  color: var(--fg);
  padding: 12px 24px;
  border-radius: 12px;
  transition: border-color 0.2s, background 0.2s;
}

.btn-secondary:hover {
  border-color: var(--accent) !important;
  background: rgba(0, 210, 106, 0.05);
}

/* =====================================================
   STATS BAR
   ===================================================== */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 24px;
  flex-wrap: wrap;
  margin: -16px 0 32px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* =====================================================
   SECTION HEADERS
   ===================================================== */
.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 40px 0 20px;
}

.section-header h2 {
  margin: 0;
  font-size: 1.5rem;
}

.section-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--stroke), transparent);
}

/* =====================================================
   FEATURE CARDS
   ===================================================== */
.feature-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 24px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 24px;
}

.feature-icon.green { background: rgba(0, 210, 106, 0.15); }
.feature-icon.blue { background: rgba(0, 150, 255, 0.15); }
.feature-icon.purple { background: rgba(168, 85, 247, 0.15); }
.feature-icon.orange { background: rgba(255, 159, 67, 0.15); }
.feature-icon.red { background: rgba(255, 107, 107, 0.15); }
.feature-icon.cyan { background: rgba(34, 211, 238, 0.15); }

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  flex: 1;
}

.feature-card .card-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--stroke);
  font-size: 0.8rem;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* =====================================================
   TOOLS SHOWCASE
   ===================================================== */
.tools-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.tool-card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
}

.tool-card:hover {
  border-color: var(--accent);
  background: rgba(0, 210, 106, 0.03);
}

.tool-card .icon {
  font-size: 28px;
  margin-bottom: 8px;
  display: block;
}

.tool-card .name {
  font-weight: 600;
  font-size: 0.9rem;
}

/* =====================================================
   CONTENT CARDS (für Guides etc.)
   ===================================================== */
.content-card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 20px;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.content-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.content-card h4 {
  margin: 0 0 8px;
  color: var(--fg);
}

.content-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.content-card .tags {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(0, 210, 106, 0.1);
  border: 1px solid rgba(0, 210, 106, 0.2);
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
}

/* =====================================================
   GAMES GRID
   ===================================================== */
.games-mini-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.game-mini-card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 10px;
  padding: 12px 16px;
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
}

.game-mini-card:hover {
  border-color: var(--accent);
  background: rgba(0, 210, 106, 0.03);
}

.game-mini-card .emoji {
  font-size: 20px;
}

.game-mini-card .name {
  font-weight: 600;
  font-size: 0.9rem;
}

/* =====================================================
   SEARCH INPUT
   ===================================================== */
.search-input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: var(--card);
  color: var(--fg);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 210, 106, 0.1);
}

.search-input::placeholder {
  color: var(--muted);
}

/* =====================================================
   CTA SECTION
   ===================================================== */
.cta-section {
  background: linear-gradient(135deg, rgba(0, 210, 106, 0.1), rgba(0, 150, 255, 0.05));
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  margin-top: 48px;
}

.cta-section h3 {
  margin: 0 0 8px;
}

.cta-section p {
  color: var(--muted);
  margin: 0 0 20px;
}

/* =====================================================
   RESPONSIVE ADJUSTMENTS
   ===================================================== */
@media (max-width: 768px) {
  .hero-modern {
    padding: 40px 16px;
  }
  
  .stats-bar {
    gap: 24px;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
}



/* Copy-to-Clipboard Button für Codeblöcke */
.pre-has-copy { position: relative; padding-top: 34px; } /* Platz für Button */
.copy-btn{
  position:absolute; top:8px; right:8px;
  padding:6px 10px; border:1px solid var(--stroke); border-radius:8px;
  background:color-mix(in oklab, var(--card) 90%, #0b0f14 10%);
  color:var(--fg); cursor:pointer; font-weight:700; font-size:12px;
}
.copy-btn:hover{ outline:2px solid color-mix(in oklab, var(--accent) 40%, transparent); }
.copy-btn.copied{
  border-color: color-mix(in oklab, var(--accent) 60%, var(--stroke) 40%);
}


/* dunkle Buttons – global */
.btn, .status-btn{
  background: color-mix(in oklab, var(--card) 92%, #0a0f14 8%);
  color: var(--fg);
  border: 1px solid var(--stroke);
}
