/*
 Theme Name: Brezel Theme
 Theme URI: https://example.com
 Author: Du :)
 Description: Custom Minimal Theme für Brezel Blog
 Version: 1.0
*/

:root {
  --bg: #050810;
  --bg-soft: #0b1120;
  --text: #ffffff;
  --muted: #e5e7eb;
  --border: #1f2937;

  --blue: #3b82f6;
  --purple: #a855f7;
  --green: #4ade80;

  --gradient: linear-gradient(90deg, #3b82f6, #a855f7, #4ade80);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* Header / Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(5, 8, 16, 0.95);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  backdrop-filter: blur(10px);
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  margin-right: 1rem;
  cursor: pointer;
}

.logo-main {
  font-size: 1.9rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1.2px;
}

.logo-sub {
  font-size: 0.72rem;
  color: var(--green);
  letter-spacing: 4.5px;
  text-transform: uppercase;
  opacity: 0.85;
  margin-left: 3px;
}

/* Navigation */
.main-nav a {
  margin-left: 1rem;
  text-decoration: none;
  color: var(--text);
  font-size: 0.95rem;
}

.main-nav a:hover {
  color: var(--blue);
}

/* ===== Hero-Bereich ===== */

.hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  text-align: center;

  background: radial-gradient(circle at top, #1f2937 0, #050810 70%);
  position: relative;
  overflow: hidden;
}

/* Animierter Glow-Effekt */
.hero::before {
  content: "";
  position: absolute;
  top: -150px;
  left: 50%;
  width: 300px;
  height: 300px;
  background: var(--gradient);
  filter: blur(130px);
  opacity: 0.35;
  transform: translateX(-50%);
  animation: heroGlow 6s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { opacity: 0.25; transform: translateX(-50%) scale(1); }
  100% { opacity: 0.45; transform: translateX(-50%) scale(1.1); }
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  letter-spacing: 1px;
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto 1.5rem;
}

/* Scroll Indicator */
.scroll-indicator {
  margin-top: 2rem;
  font-size: 1.5rem;
  color: var(--muted);
  opacity: 0.6;
  animation: bounce 1.5s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}

/* Buttons */
.btn-primary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  background: var(--gradient);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  border: none;
}

.btn-primary:hover {
  filter: brightness(1.1);
}

/* Layout */
main {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.section {
  margin-bottom: 2.5rem;
}

.section h2 {
  font-size: 1.6rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

/* Blog Cards */
.post-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.post-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.post-card p {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--muted);
}

.post-link {
  text-decoration: none;
  color: var(--green);
  font-weight: 500;
}

.post-link:hover {
  text-decoration: underline;
  color: var(--blue);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.8rem;
  color: #9ca3af;
}

/* Responsive */
@media (max-width: 700px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .main-nav {
    display: flex;
    flex-wrap: wrap;
  }

  .main-nav a {
    margin: 0 0.75rem 0.5rem 0;
  }

  .hero h1 {
    font-size: 2rem;
  }
}

/* ========== Blog Grid & Meta ========== */

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.post-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.post-card-link {
  text-decoration: none;
  color: inherit;
}

.post-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.15); /* leicht blau */
  border: 1px solid rgba(59, 130, 246, 0.5);
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.7rem;
}

.post-date {
  opacity: 0.8;
}

.post-card:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.post-card p {
  margin-bottom: 0.75rem;
}

/* ========== Einzelner Blogpost ========== */

.post-full {
  background: var(--bg-soft);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.post-full h1 {
  font-size: 2rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.post-full .post-date {
  color: var(--purple);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.post-image {
  margin-bottom: 1.5rem;
}

.post-image img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.post-content > *:first-child {
  margin-top: 0;
}

.post-content p {
  margin-bottom: 1rem;
}

.post-content h2,
.post-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.post-back {
  margin-top: 2rem;
}

/* ========== Kommentare (YouTube-Style, Dark) ========== */

#comments {
  margin-top: 40px;
}

/* Überschrift "Eine Antwort zu..." / "X Kommentare" */
#comments > h2,
#reply-title {
  color: var(--text);
  font-size: 1.6rem;
  margin-bottom: 16px;
  font-weight: 600;
  border-left: 4px solid var(--green);
  padding-left: 10px;
}

/* Liste ohne Nummern / Bulletpoints */
ol.comment-list,
ol.commentlist,
.comment-list,
.commentlist {
  list-style: none;
  margin: 24px 0 0 0;
  padding: 0;
}

/* einzelner Kommentar-Eintrag */
.comment-list > li.comment,
.commentlist > li.comment {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

/* letzter Kommentar ohne Linie unten */
.comment-list > li.comment:last-child,
.commentlist > li.comment:last-child {
  border-bottom: none;
}

/* Aufbau wie YouTube: Avatar links, Inhalt rechts */
.comment-body {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

/* Avatar – rund, klein, ohne Rahmen */
.comment-author .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin: 0;
  border: none;
  flex-shrink: 0;
}

/* rechter Bereich (Name, Datum, Text, Antworten) */
.comment-body > *:not(.comment-author) {
  flex: 1;
}

/* Name + Datum in einer Zeile */
.comment-author .fn {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  margin-right: 6px;
}

.comment-metadata {
  display: inline-block;
  font-size: 0.78rem;
  color: #9ca3af;
}

.comment-metadata a {
  color: #9ca3af;
}

.comment-metadata a:hover {
  color: #d1d5db;
}

/* "sagt:" ausblenden für cleanen Look */
.comment-author span.says {
  display: none;
}

/* Kommentartext */
.comment-content {
  margin-top: 4px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted);
}

/* Antworten-Link unten wie Thread */
.comment-reply-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.comment-reply-link:hover {
  text-decoration: underline;
}

/* Verschachtelte Antworten leicht eingerückt (Thread) */
.comment-list .children,
.commentlist .children {
  list-style: none;
  margin-left: 52px; /* ungefähr Avatar + Abstand */
  padding-left: 0;
  border-left: 1px solid rgba(15, 23, 42, 0.9);
}

.comment-list .children > li.comment,
.commentlist .children > li.comment {
  padding-top: 12px;
  border-bottom: none;
}

/* Kommentarformular in Card-Optik */
#commentform {
  background: var(--bg-soft);
  padding: 22px;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-top: 28px;
}

#commentform p {
  margin-bottom: 12px;
}

#commentform label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 4px;
}

#commentform input,
#commentform textarea {
  width: 100%;
  background: #0f172a;
  border: 1px solid #1f2937;
  color: var(--text);
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.95rem;
}

#commentform input:focus,
#commentform textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 6px rgba(59, 130, 246, 0.45);
}

/* Abschicken-Button im Brezel-Gradient */
#submit {
  margin-top: 6px;
  background: var(--gradient);
  color: #000;
  padding: 10px 20px;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.95rem;
  transition: 0.2s;
}

#submit:hover {
  filter: brightness(1.08);
}


/* ========== Standard-Seiten (Über uns, etc.) ========== */

.page-section {
  /* sorgt für den gleichen Abstand wie bei Blog */
}

.page-full {
  background: var(--bg-soft);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.page-full h1 {
  font-size: 2rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

.page-content p {
  margin-bottom: 1rem;
  color: var(--muted);
}

.page-content h2,
.page-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

	/* ===== Discord / YouTube Seite ===== */

.social-links {
  margin-top: 2.5rem;
  text-align: center;
}

.social-links h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.social-links p {
  margin-bottom: 1.5rem;
  color: var(--muted);
}

.social-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.8rem;
  border-radius: 12px;
  font-size: 1rem;
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s ease;
  border: 1px solid transparent;
}

/* Discord Button */
.discord-btn {
  background: #5865F2; /* Discord-Blau */
  color: white;
}

.discord-btn:hover {
  background: #4752C4;
  transform: translateY(-2px);
}

/* YouTube Button */
.youtube-btn {
  background: #FF0033;
  color: white;
}

.youtube-btn:hover {
  background: #CC002A;
  transform: translateY(-2px);
}

/* Icon */
.social-btn .icon {
  font-size: 1.4rem;
}

.category-description {
  margin-top: -0.5rem;
  margin-bottom: 1.5rem;
  color: var(--muted);
}

/* ===== Aktiver Menüpunkt ===== */

.main-nav .current-menu-item > a,
.main-nav .current-page-item > a,
.main-nav .current_page_parent > a {
  color: var(--blue);
  font-weight: 700;
  border-bottom: 2px solid var(--blue);
  padding-bottom: 2px;
}

	
.account-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
}

/* Text "Hi, admin" */
.nav-user {
  font-size: 0.85rem;
  color: var(--text);
  opacity: 0.9;
}

/* Links im Account-Bereich */
.account-nav a {
  text-decoration: none;
  font-size: 0.8rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5); /* leicht grauer Rand */
  background: rgba(15, 23, 42, 0.8);          /* dunkler Hintergrund */
  color: var(--muted);
  transition: 0.2s ease;
}

/* Hover-Effekt – angelehnt an deinen Brezel-Verlauf */
.account-nav a:hover {
  border-color: transparent;
  background: var(--gradient);
  color: #ffffff;
}

header .account-nav a {
  color: var(--muted) !important;
}

header .account-nav a:hover {
  color: #ffffff !important;
}

.must-log-in {
  margin-top: 24px;
  padding: 16px 18px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.must-log-in a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
  margin-left: 4px;
}

.must-log-in a:hover {
  text-decoration: underline;
}
