/**
 * DeuropaCasino – Ergänzende Template-Komponenten.
 *
 * Wird NACH main.css geladen und schließt die Lücken, die die reinen
 * Design-System-Klassen für Blog-, Kategorie-, Autor-, Such- und 404-Templates
 * offenlassen (Featured-Card, Related-Section, Team-Cards, Suchformular,
 * Leer-/Fehlerzustände). Keine Inline-Styles in den Templates nötig.
 */

/* ------------------------------------------------------------
   Suchformular (get_search_form / searchform.php)
   ------------------------------------------------------------ */
.search-form { display: flex; gap: 10px; max-width: 520px; }
.search-form label { flex: 1; margin: 0; }
.search-form .search-field {
	width: 100%; background: var(--dc-surface); border: 1px solid var(--dc-border-2);
	color: var(--dc-text); font-family: var(--dc-sans); font-size: 15px;
	padding: 12px 16px; border-radius: 6px;
}
.search-form .search-field::placeholder { color: var(--dc-muted-3); }
.search-form .search-submit {
	background: var(--dc-gold); color: var(--dc-bg); font-weight: 700; font-size: 15px;
	padding: 12px 22px; border: 0; border-radius: 6px; cursor: pointer; white-space: nowrap;
}
.search-form .search-submit:hover { background: var(--dc-gold-hi); }

/* ------------------------------------------------------------
   Leer- & Fehlerzustände (404, content-none)
   ------------------------------------------------------------ */
.state-block { max-width: 760px; margin: 0 auto; padding-top: 88px; padding-bottom: 88px; text-align: center; }
.state-block h1 { margin-bottom: 12px; }
.state-block p { color: var(--dc-muted); font-size: 17px; max-width: 560px; margin: 0 auto 8px; }
.state-block .search-form { justify-content: center; margin: 24px auto 0; }
.state-block__list { text-align: left; margin-top: 48px; display: flex; flex-direction: column; gap: 12px; }
.state-block__list .section-heading { text-align: center; font-size: 22px; }

/* ------------------------------------------------------------
   Blog-Single: Tag-Liste, Bearbeiten-Link, Aktualisiert-Label
   ------------------------------------------------------------ */
.entry-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--dc-border); }
.entry-tags a.tag { color: var(--dc-muted); }
.entry-tags a.tag:hover { color: var(--dc-gold); border-color: var(--dc-gold); }
.entry-edit { margin-top: 32px; font-family: var(--dc-mono); font-size: 12px; }
.entry-edit a { color: var(--dc-muted-2); }
.entry-edit a:hover { color: var(--dc-gold); }
.entry-updated { text-transform: uppercase; }

/* ------------------------------------------------------------
   Archiv-Kopf: Zähler & Beschreibung
   ------------------------------------------------------------ */
.archive-head__count { text-transform: uppercase; margin-top: 12px; }
.archive-head__desc { color: var(--dc-muted); font-size: 17px; line-height: 1.6; margin-top: 12px; }
.archive-head__desc p { margin: 0 0 10px; }
.archive-head__desc p:last-child { margin-bottom: 0; }
/* Beschreibungstext ohne Zitat-Optik/Einzug ausrichten (Term-Descriptions enthalten teils blockquote). */
.archive-head__desc blockquote { margin: 0; padding: 0; border: 0; font-style: normal; background: none; }

/* ------------------------------------------------------------
   Kategorie: Featured-Card (horizontal)
   ------------------------------------------------------------ */
.featured { max-width: var(--dc-maxw); margin: 0 auto; padding-top: 48px; }
.featured-card { display: grid; grid-template-columns: 1.1fr 0.9fr; }
.featured-card .post-card__img { aspect-ratio: auto; min-height: 260px; }
.featured-card .post-card__body { justify-content: center; gap: 14px; padding: 40px 44px; }
.featured-card .post-card__cat { display: flex; align-items: center; gap: 10px; }
.featured-card .post-card__title { color: var(--dc-text); font-size: 28px; line-height: 1.25; }

/* ------------------------------------------------------------
   Related-Section (deuropacasino_related_posts → <section class="related">)
   ------------------------------------------------------------ */
.related { border-top: 1px solid var(--dc-border); background: var(--dc-bg-alt); padding: 56px 64px 64px; }
.related > * { max-width: var(--dc-maxw); margin-left: auto; margin-right: auto; }
.related .section-heading { font-size: 26px; }

/* ------------------------------------------------------------
   Autorenseite
   ------------------------------------------------------------ */
.author-crumbs { max-width: 1000px; margin: 0 auto; padding: 40px 24px 0; }
/* Desktop-Hero dreispaltig (Avatar | Inhalt | Statistik). */
.author-hero { grid-template-columns: 128px minmax(0, 1fr) auto; }
.author-team { border-top: 1px solid var(--dc-border); background: var(--dc-bg-alt); padding: 56px 64px 64px; }
.author-team > * { max-width: var(--dc-maxw); margin-left: auto; margin-right: auto; }

.team-card {
	background: var(--dc-surface); border: 1px solid var(--dc-border-2); border-radius: var(--dc-radius);
	padding: 26px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
}
.team-card:hover { border-color: var(--dc-gold); }
.team-card__avatar {
	width: 72px; height: 72px; border-radius: 50%; overflow: hidden; background: var(--dc-surface-2);
	display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 22px; color: var(--dc-text);
}
.team-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card__name { font-weight: 800; font-size: 17px; color: var(--dc-text); }
.team-card__role { font-family: var(--dc-mono); font-size: 10px; letter-spacing: .14em; color: var(--dc-muted-2); text-transform: uppercase; }
.team-card__focus { font-size: 13px; color: var(--dc-muted); line-height: 1.5; }

/* ------------------------------------------------------------
   Kommentare (comments.php)
   ------------------------------------------------------------ */
.comments { border-top: 1px solid var(--dc-border); margin-top: 8px; }
.comments__title, .comment-reply-title { font-size: 24px; }
.comment-list { list-style: none; margin: 0 0 40px; padding: 0; }
.comment-list ol.children { list-style: none; margin: 16px 0 0 28px; padding: 0; }
.comment-list .comment { margin: 0 0 16px; }
.comment-body { background: var(--dc-surface); border: 1px solid var(--dc-border-2); border-radius: var(--dc-radius); padding: 20px 22px; }
.comment-author { display: flex; align-items: center; gap: 12px; }
.comment-author .avatar { border-radius: 50%; }
.comment-author .fn { font-weight: 700; color: var(--dc-text); font-style: normal; }
.comment-author .says { display: none; }
.comment-metadata { font-family: var(--dc-mono); font-size: 11px; color: var(--dc-muted-2); margin: 10px 0; }
.comment-metadata a { color: var(--dc-muted-2); }
.comment-content { color: var(--dc-text-3); }
.comment-content p { margin: 8px 0; }
.reply { margin-top: 10px; }
.comment-reply-link { font-family: var(--dc-mono); font-size: 11px; letter-spacing: .08em; color: var(--dc-gold); text-transform: uppercase; }
.no-comments { color: var(--dc-muted-2); font-family: var(--dc-mono); font-size: 12px; }

.comment-respond { margin-bottom: 40px; }
.comment-form { display: flex; flex-wrap: wrap; gap: 16px; }
.comment-form .comment-notes, .comment-form .comment-form-comment,
.comment-form .form-submit, .comment-form .comment-form-cookies-consent { flex: 0 0 100%; }
.comment-form label { display: block; font-size: 13px; color: var(--dc-muted); margin-bottom: 6px; }
.comment-form input[type="text"], .comment-form input[type="email"],
.comment-form input[type="url"], .comment-form textarea {
	width: 100%; background: var(--dc-surface); border: 1px solid var(--dc-border-2); color: var(--dc-text);
	font-family: var(--dc-sans); font-size: 15px; padding: 12px 14px; border-radius: 6px;
}
.comment-form textarea { resize: vertical; min-height: 150px; }
.comment-form .comment-notes { font-size: 13px; color: var(--dc-muted-2); }
.comment-form .form-submit { margin: 0; }

/* ------------------------------------------------------------
   Responsive – muss NACH den Media-Queries in main.css greifen
   ------------------------------------------------------------ */
@media (max-width: 960px) {
	.author-hero { grid-template-columns: 96px minmax(0, 1fr); }
	.related, .author-team { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 760px) {
	.featured-card { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.related, .author-team { padding-left: 16px; padding-right: 16px; }
}
