/*
Theme Name: Graffiti Database Brutalism
Author: Nottambulo
Version: 1.0
Description: Dark Brutalist Theme for Graffiti Videos and Archives.
*/

/* --- GOOGLE FONTS IMPORT --- */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

/* --- RESET & VARIABLES --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Courier New', Courier, monospace, sans-serif;
}

:root {
  --bg-dark: #0a0e1a;
  --yellow: #FFE600;
  --white: #F0F0F0;
  --black: #000000;
  --font-pixel: 'Press Start 2P', cursive;
  --shadow-black: 6px 6px 0px #000000;
  --shadow-yellow: 6px 6px 0px #FFE600;
}

body {
  background-color: var(--bg-dark);
  color: var(--white);
  /* Dezent verstreute gelbe Sterne als Hintergrund-Pattern */
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="120" height="120" viewBox="0 0 120 120"><polygon points="20,10 22,16 28,16 23,20 25,26 20,22 15,26 17,20 12,16 18,16" fill="%23FFE600" opacity="0.3"/><polygon points="80,70 81,74 85,74 82,77 83,81 80,78 77,81 78,77 75,74 79,74" fill="%23FFE600" opacity="0.25"/><circle cx="100" cy="20" r="1.5" fill="%23FFE600" opacity="0.4"/><circle cx="40" cy="90" r="1" fill="%23FFE600" opacity="0.3"/></svg>');
  background-repeat: repeat;
  overflow-x: hidden;
}

/* --- GLOBAL LINK RESET & STYLING --- */
a, a:visited, a:active {
  color: var(--yellow);
  text-decoration-color: var(--yellow);
  text-underline-offset: 4px;
  transition: all 0.1s ease;
}

a:hover {
  color: var(--white);
  text-decoration-color: var(--white);
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, 
.glitch-title, 
.section-title, 
.logo, 
.tag-badge, 
.card-tag,
.promo-badge,
.page-btn,
.page-number {
  font-family: var(--font-pixel) !important;
}

/* --- NAVIGATION --- */
.brutal-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: var(--bg-dark);
  border-bottom: 5px solid var(--yellow);
  box-shadow: 0px 6px 0px var(--black);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* --- LOGO MIT SCHRÄGLAGE --- */
.logo {
  font-size: 1.1rem;
  background: var(--yellow);
  color: var(--black) !important;
  padding: 6px 12px;
  border: 3px solid var(--black);
  box-shadow: var(--shadow-black);
  display: inline-block;
  transform: rotate(-2deg);
  transition: transform 0.1s ease;
  text-decoration: none !important;
}

.logo:hover {
  transform: rotate(1deg) scale(1.05);
}

/* --- WORDPRESS NAV MENU & HOME BUTTON STYLING --- */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-links ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.nav-links ul li a,
.nav-links ul li a:visited {
  text-decoration: none;
  color: var(--white);
  background: var(--black);
  padding: 10px 16px;
  border: 2px solid var(--white);
  font-weight: bold;
  font-size: 0.9rem;
  display: inline-block;
  transition: all 0.1s ease;
}

.nav-links ul li a:hover,
.nav-links ul li.current-menu-item > a,
.nav-links ul li.current_page_item > a {
  background: var(--yellow);
  color: var(--black) !important;
  border-color: var(--black);
  box-shadow: 4px 4px 0px var(--white);
}

/* --- NAV HOME BUTTON (PIXEL HAUS) --- */
.nav-home-btn,
.nav-home-btn:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  color: var(--white) !important;
  border: 2px solid var(--white);
  padding: 8px 12px;
  text-decoration: none !important;
  transition: all 0.1s ease;
}

.nav-home-btn .pixel-house-icon {
  display: block;
  image-rendering: pixelated;
  fill: var(--white);
}

.nav-home-btn .door-fill {
  fill: var(--black);
}

/* Hover & Active States */
.nav-home-btn:hover {
  background: var(--yellow);
  border-color: var(--black);
  box-shadow: 4px 4px 0px var(--white);
}

.nav-home-btn:hover .pixel-house-icon {
  fill: var(--black);
}

.nav-home-btn:hover .door-fill {
  fill: var(--yellow);
}

/* --- COMMON SECTIONS & BOXES --- */
.section {
  padding: 3rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.brutal-box {
  background: #121829;
  border: 4px solid var(--black);
  box-shadow: var(--shadow-yellow);
  padding: 1.5rem;
}

.tag-badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--black);
  font-size: 0.8rem;
  padding: 6px 12px;
  border: 3px solid var(--black);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-black);
}

.glitch-title {
  font-size: 2.2rem;
  line-height: 1.3;
  margin-bottom: 2rem;
  text-shadow: 4px 4px 0px var(--black);
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--yellow);
}

/* --- HERO FEATURED VIDEO --- */
.hero-container {
  text-align: center;
}

.featured-video-box {
  padding: 0;
  border: 4px solid var(--yellow);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  background: #000;
  overflow: hidden;
}

.video-wrapper iframe,
.video-wrapper object,
.video-wrapper embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-info-bar {
  background: var(--black);
  padding: 1.5rem;
  text-align: left;
  border-top: 4px solid var(--yellow);
}

.video-title {
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.video-meta {
  color: var(--yellow);
  font-weight: bold;
  font-size: 0.9rem;
}

/* --- GRIDS (3 & 9 COLUMNS) --- */
.grid-3, .grid-9 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.brutal-card {
  background: #121829;
  border: 4px solid var(--black);
  box-shadow: var(--shadow-black);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.brutal-card:hover {
  border-color: var(--yellow);
  box-shadow: var(--shadow-yellow);
}

.card-tag {
  position: absolute;
  top: -12px;
  left: 12px;
  background: var(--black);
  color: var(--white);
  border: 2px solid var(--white);
  padding: 2px 8px;
  font-size: 0.65rem;
  z-index: 5;
}

.card-tag.highlight {
  background: var(--yellow);
  color: var(--black);
  border-color: var(--black);
}

/* --- DYNAMISCHE GRID THUMBNAILS MIT OVERLAY & PLAY BUTTON --- */
.brutal-card .thumbnail-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  overflow: hidden;
  background-color: var(--black);
  border: 2px solid var(--white);
  margin: 1rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* AUTOMATISCHES BEITRAGSBILD & VERDUNKELUNG */
.brutal-card .thumbnail-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.65);
  transition: transform 0.2s ease, filter 0.2s ease;
}

/* GELBER PLAY-BUTTON DRÜBERGELEGT */
.brutal-card .thumbnail-placeholder::after {
  content: '►';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  background-color: var(--yellow);
  color: var(--black);
  font-size: 1.1rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 3px;
  border: 2px solid var(--black);
  box-shadow: 3px 3px 0px var(--black);
  pointer-events: none;
  transition: transform 0.2s ease, background-color 0.2s ease;
  z-index: 2;
}

/* HOVER-EFFEKTE */
.brutal-card:hover .thumbnail-placeholder img {
  filter: brightness(0.85);
  transform: scale(1.04);
}

.brutal-card:hover .thumbnail-placeholder::after {
  transform: translate(-50%, -50%) scale(1.1);
  background-color: var(--white);
}

.runtime {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: var(--black);
  color: var(--white);
  font-size: 0.75rem;
  padding: 2px 6px;
  border: 1px solid var(--white);
  font-weight: bold;
  z-index: 3;
}

.brutal-card h3 {
  font-size: 0.95rem;
  line-height: 1.4;
  margin-bottom: 0.8rem;
  color: var(--white);
}

.brutal-card p {
  font-size: 0.95rem;
  color: #a0aabf;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.buy-btn,
.buy-btn:visited {
  text-decoration: none !important;
  text-align: center;
  background: var(--white);
  color: var(--black) !important;
  border: 3px solid var(--black);
  padding: 10px;
  font-weight: bold;
  font-size: 0.9rem;
  box-shadow: 4px 4px 0px var(--black);
  display: block;
}

.buy-btn:hover {
  background: var(--yellow);
}

/* --- PROMO BANNER --- */
.promo-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--yellow);
  color: var(--black);
  border: 4px solid var(--black);
  box-shadow: 8px 8px 0px var(--black);
  gap: 2rem;
}

.promo-badge {
  background: var(--black);
  color: var(--white);
  font-size: 0.7rem;
  padding: 4px 8px;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.promo-title {
  font-size: 1.4rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.promo-banner p {
  font-size: 1.05rem;
  font-weight: bold;
}

.promo-btn,
.promo-btn:visited {
  text-decoration: none !important;
  background: var(--black);
  color: var(--yellow) !important;
  font-family: var(--font-pixel) !important;
  font-size: 0.85rem;
  padding: 15px 20px;
  border: 3px solid var(--black);
  box-shadow: 4px 4px 0px var(--white);
  white-space: nowrap;
}

.promo-btn:hover {
  background: var(--white);
  color: var(--black) !important;
}

/* --- PAGINATION (WORDPRESS READY) --- */
.page-header {
  text-align: center;
}

.pagination-wrapper {
  margin-top: 4rem;
  display: flex;
  justify-content: center;
}

.brutal-pagination {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.brutal-pagination .page-numbers,
.brutal-pagination .page-numbers:visited {
  text-decoration: none !important;
  background: var(--black);
  color: var(--white) !important;
  border: 2px solid var(--white);
  padding: 10px 14px;
  font-size: 0.75rem;
  font-family: var(--font-pixel) !important;
  display: inline-block;
}

.brutal-pagination .page-numbers.current,
.brutal-pagination a.page-numbers:hover {
  background: var(--yellow);
  color: var(--black) !important;
  border-color: var(--black);
  box-shadow: 3px 3px 0px var(--white);
}

.brutal-pagination .page-numbers.dots {
  background: transparent;
  border: none;
  color: var(--yellow) !important;
  font-weight: bold;
  padding: 0 5px;
}

.brutal-pagination .page-numbers.prev,
.brutal-pagination .page-numbers.next {
  font-weight: bold;
}

/* --- FOOTER --- */
.brutal-footer {
  border-top: 4px solid var(--black);
  background: var(--black);
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #707070;
  margin-top: 4rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* --- FOOTER MENU (DYNAMISCH & UNINTEGRIERT) --- */
.footer-links ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
}

.footer-links ul li {
  display: flex;
  align-items: center;
  font-size: 0.8rem; /* Exakt selbe Schriftgröße wie der Text links */
  color: #707070;
}

.footer-links ul li a,
.footer-links ul li a:visited {
  color: #707070 !important;
  text-decoration: underline !important;
  transition: color 0.1s ease;
}

/* Hover-Zustand: Wechselt zu Gelb */
.footer-links ul li a:hover {
  color: var(--yellow) !important;
}

/* Dezent grauer Trennstrich [/] zwischen den Punkten */
.footer-links ul li:not(:last-child)::after {
  content: " /";
  color: #707070;
  margin-left: 0.8rem;
  text-decoration: none;
}

.sys-ver {
  font-family: var(--font-pixel) !important;
  font-size: 0.65rem;
  color: #707070;
  background: #121829;
  padding: 4px 8px;
  border: 1px solid #333;
}

/* Responsive Handling für mobile Displays */
@media (max-width: 768px) {
  .brutal-footer,
  .footer-right {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --- TEXT & SINGLE PAGE STYLES (INCL. CONTENT LINKS) --- */
.text-page-container {
  background: #121829;
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem;
}

.text-header {
  text-align: left;
}

.text-meta {
  font-size: 0.85rem;
  color: var(--yellow);
  font-weight: bold;
  margin-top: -1rem;
  margin-bottom: 1rem;
}

.brutal-divider {
  border: 0;
  height: 4px;
  background: var(--black);
  box-shadow: 0px 2px 0px var(--yellow);
  margin: 2rem 0;
}

.lead-paragraph {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--yellow);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.text-content h2 {
  font-size: 1.3rem;
  color: var(--white);
  margin: 2.5rem 0 1rem 0;
  border-left: 5px solid var(--yellow);
  padding-left: 12px;
  line-height: 1.4;
}

.text-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #c5d0e6;
  margin-bottom: 1.5rem;
}

/* In-Text Links (Brutalist Highlight Marker) */
.text-content a:not(.buy-btn):not(.promo-btn):not(.wp-block-embed-youtube a),
.brutal-box a:not(.buy-btn):not(.promo-btn):not(.hero-btn) {
  color: var(--black) !important;
  background: var(--yellow);
  padding: 2px 6px;
  border: 2px solid var(--black);
  font-weight: bold;
  text-decoration: none !important;
  box-shadow: 2px 2px 0px var(--black);
  display: inline-block;
}

.text-content a:not(.buy-btn):not(.promo-btn):not(.wp-block-embed-youtube a):hover,
.brutal-box a:not(.buy-btn):not(.promo-btn):not(.hero-btn):hover {
  background: var(--white);
  color: var(--black) !important;
  box-shadow: 3px 3px 0px var(--yellow);
}

.text-content blockquote {
  background: var(--black);
  border: 3px solid var(--yellow);
  padding: 1.5rem;
  font-style: italic;
  color: var(--yellow);
  margin: 2rem 0;
  box-shadow: 6px 6px 0px var(--black);
  line-height: 1.6;
}

.text-content blockquote p {
  margin: 0;
}

.text-list {
  list-style-type: square;
  padding-left: 1.5rem;
  color: #c5d0e6;
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.text-list li::marker {
  color: var(--yellow);
}

/* --- SINGLE PAGE EMBEDDED YOUTUBE VIDEO STYLING --- */
.text-content iframe,
.text-content .wp-block-embed-youtube,
.text-page-container iframe,
.text-page-container .wp-block-embed-youtube,
.entry-content iframe,
.entry-content .wp-block-embed-youtube {
  width: 100% !important;
  max-width: 100% !important;
  border: 4px solid var(--yellow) !important;
  box-shadow: var(--shadow-yellow) !important;
  margin: 2rem 0 !important;
  display: block;
}

/* Erzwingt das korrekte 16:9 Format für WordPress Gutenberg Block-Embeds */
.wp-block-embed-youtube .wp-block-embed__wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
}

.wp-block-embed-youtube .wp-block-embed__wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  border: 0 !important;
}

/* --- CATEGORY FILTER BAR --- */
.category-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
  justify-content: center;
}

.filter-btn,
.filter-btn:visited {
  font-family: var(--font-pixel) !important;
  font-size: 0.75rem;
  background: var(--yellow);
  color: var(--black) !important;
  border: 3px solid var(--black);
  padding: 10px 14px;
  text-decoration: none !important;
  box-shadow: 4px 4px 0px var(--black);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: inline-block;
  
  /* Leicht schräg stellen */
  transform: rotate(-1.5deg);
}

/* Jeder zweite Button entgegengesetzt schräg für ein dynamisches Gesamtbild */
.filter-btn:nth-child(even) {
  transform: rotate(1.5deg);
}

/* Hover-Effekt: Bewegung und Gegen-Rotation */
.filter-btn:hover {
  transform: translateY(-3px) rotate(0deg) scale(1.03);
  box-shadow: 6px 6px 0px var(--black);
  background: var(--yellow);
}

/* Aktiver Button (ausgewählte Kategorie) bekommt ein weißes Highlight */
.filter-btn.active {
  background: var(--white);
  border-color: var(--black);
  box-shadow: 4px 4px 0px var(--yellow);
  transform: rotate(0deg) scale(1.05);
}

/* --- POST META BAR & SHARE BUTTON --- */
.post-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.post-meta-bar .text-meta {
  margin: 0;
}

.copy-btn {
  font-family: var(--font-pixel) !important;
  font-size: 0.7rem;
  font-weight: bold !important; /* Schrift fett gemacht */
  background: var(--black);
  color: var(--yellow) !important;
  border: 2px solid var(--yellow);
  padding: 8px 12px;
  cursor: pointer;
  box-shadow: 3px 3px 0px var(--yellow);
  transition: all 0.15s ease;
  display: inline-block;
}

.copy-btn:hover {
  background: var(--yellow);
  color: var(--black) !important;
  border-color: var(--black);
  box-shadow: 3px 3px 0px var(--black);
  transform: translate(-2px, -2px);
}

.copy-btn.copied {
  background: var(--white) !important;
  color: var(--black) !important;
  border-color: var(--black) !important;
  box-shadow: 3px 3px 0px var(--black) !important;
  transform: scale(1.02);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
  .grid-3, .grid-9 {
    grid-template-columns: repeat(2, 1fr);
  }
  .promo-banner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 650px) {
  .grid-3, .grid-9 {
    grid-template-columns: 1fr;
  }
  .glitch-title {
    font-size: 1.5rem;
  }
  .brutal-nav {
    flex-direction: column;
    gap: 1rem;
  }
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }
  .text-page-container {
    padding: 1.5rem;
  }
}

@media (max-width: 600px) {
  .post-meta-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --- NEWS PAGE SPECIFIC STYLES --- */

/* Hero Section Layout (2 Spalten: Bild links, Text rechts) */
.news-hero {
  display: grid;
  grid-template-columns: 450px 1fr;
  gap: 2.5rem;
  align-items: center;
  background: #121829;
  border: 4px solid var(--black);
  box-shadow: var(--shadow-yellow);
  padding: 2rem;
  margin-bottom: 3rem;
}

.news-hero-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 4px solid var(--yellow);
  box-shadow: var(--shadow-black);
  overflow: hidden;
  background: var(--black);
}

.news-hero-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-hero-title {
  font-size: 1.6rem;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--white);
}

.news-hero-excerpt {
  font-size: 1rem;
  color: #c5d0e6;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* --- CLEAN BRUTALIST BUTTON (Ersatz für Drips) --- */
.drip-btn,
.drip-btn:visited {
  position: relative;
  display: inline-block;
  background: var(--yellow);
  color: var(--black) !important;
  font-family: var(--font-pixel) !important;
  font-size: 0.75rem;
  padding: 10px 16px;
  border: 3px solid var(--black);
  text-decoration: none !important;
  box-shadow: 4px 4px 0px var(--black);
  text-align: center;
  width: fit-content;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease;
}

.drip-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px var(--black);
  background: var(--white);
}

.drip-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px var(--black);
}

/* --- 3 EINZELARTIKEL LISTE (NACH HERO) --- */
.news-list-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.news-list-item {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 1.5rem;
  align-items: center;
  background: #121829;
  border: 4px solid var(--black);
  box-shadow: var(--shadow-black);
  padding: 1rem;
  transition: all 0.15s ease;
}

.news-list-item:hover {
  border-color: var(--yellow);
  box-shadow: var(--shadow-yellow);
}

.news-list-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 2px solid var(--white);
  overflow: hidden;
  background: var(--black);
}

.news-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-list-title h3 {
  font-size: 1.05rem;
  color: var(--white);
  line-height: 1.4;
}

.news-list-title h3 a {
  color: var(--white) !important;
  text-decoration: none !important;
}

.news-list-title h3 a:hover {
  color: var(--yellow) !important;
}

/* Responsive Anpassungen für Mobilgeräte */
@media (max-width: 768px) {
  .news-hero {
    grid-template-columns: 1fr;
  }
  .news-list-item {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .news-list-thumb {
    max-width: 300px;
    margin: 0 auto;
  }
}