/* --- SCHRIFTARTEN --- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@700&family=Zilla+Slab:ital,wght@1,500&display=swap');

/* --- GRUNDDESIGN --- */
:root {
    --bg-dark: #1a1a24;
    --paper: #fdf5e6;
    --primary-red: #b30000;
    --gold: #ffd700;
    --text-dark: #2c3e50;
}

/* WICHTIG: Aktiviert die nativen Seitenübergänge (View Transitions API) */
@view-transition {
    navigation: auto;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Zilla Slab', serif;
    background-color: var(--bg-dark);
    color: var(--paper);
    background-image: radial-gradient(circle at top, #2a2a3a 0%, var(--bg-dark) 100%);
    min-height: 100vh;
}

/* --- NAVIGATION --- */
nav {
    background: rgba(26, 26, 36, 0.9);
    border-bottom: 2px solid var(--primary-red);
    padding: 20px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

nav a {
    color: var(--gold);
    text-decoration: none;
    font-family: 'Noto Serif JP', serif;
    font-size: 18px;
    margin: 0 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary-red);
}

/* --- INHALTSBEREICH (Die Papierschriftrollen) --- */
main {
    max-width: 900px;
    margin: 50px auto;
    padding: 40px;
    background: var(--paper);
    color: var(--text-dark);
    border-top: 5px solid var(--primary-red);
    border-bottom: 5px solid var(--primary-red);
    border-left: 10px solid var(--gold);
    border-right: 10px solid var(--gold);
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    
    /* Dies sagt der View Transition API, dass sich dieser Bereich animieren soll */
    view-transition-name: main-content;
}

h1, h2, h3 {
    font-family: 'Noto Serif JP', serif;
    color: var(--primary-red);
    border-bottom: 1px solid rgba(179,0,0,0.2);
    padding-bottom: 10px;
}

p {
    font-size: 18px;
    line-height: 1.6;
}

/* --- TWITCH EMBED --- */
.twitch-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    margin: 30px 0;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.twitch-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid var(--gold);
}

/* --- KARTEN-GRID (Für Mods, VIPs & Verbündete) --- */
.grid-container {
    display: grid;
    /* Macht das Raster responsive: Karten ordnen sich auf Handys automatisch untereinander an */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 40px;
}

.card {
    background: rgba(26, 26, 36, 0.03);
    border: 2px solid var(--primary-red);
    border-bottom: 6px solid var(--gold);
    padding: 20px;
    text-align: center;
    border-radius: 4px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card-btn[href="#"],
.card-btn[href*="#"] {
    pointer-events: none;    
    opacity: 0.4;            
    filter: grayscale(100%); 
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 25px rgba(179,0,0,0.15);
}

.card h3 {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 5px;
    font-size: 22px;
}

.card p {
    font-size: 15px;
    color: #555;
    margin-top: 0;
}

/* Twitch Badge Farben für das gewisse Extra */
.badge-mod { color: #00ad03; font-weight: bold; font-family: sans-serif; letter-spacing: 1px;}
.badge-vip { color: #e005b9; font-weight: bold; font-family: sans-serif; letter-spacing: 1px;}

/* Button in der Karte (Für die Streamer-Links) */
.card-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 20px;
    background: var(--primary-red);
    color: var(--paper);
    text-decoration: none;
    font-family: 'Noto Serif JP', serif;
    font-size: 14px;
    text-transform: uppercase;
    border-radius: 4px;
    transition: background 0.3s, color 0.3s;
}

.card-btn:hover {
    background: var(--gold);
    color: var(--bg-dark);
}

/* --- LORE AUDIO PLAYER --- */
.audio-shrine-container {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--bg-dark);
    border: 2px solid var(--gold);
    border-left: 8px solid var(--primary-red);
    padding: 15px 25px;
    border-radius: 4px;
    margin: 30px 0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.6);
    /* Passt sich auf dem Handy automatisch an */
    flex-wrap: wrap; 
}

.audio-icon {
    font-size: 35px;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
    animation: float 3s ease-in-out infinite;
}

.audio-text {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 200px;
}

.audio-title {
    font-family: 'Noto Serif JP', serif;
    color: var(--primary-red);
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.audio-subtitle {
    font-family: 'Zilla Slab', serif;
    font-size: 15px;
    color: var(--paper);
    opacity: 0.8;
}

/* Der Player selbst */
.lore-audio {
    height: 40px;
    outline: none;
    border-radius: 20px;
    /* Macht den Player optisch etwas wärmer/goldener */
    filter: sepia(40%) hue-rotate(330deg) saturate(150%) contrast(110%);
}

/* --- PAKT DER DIMENSIONEN (COOKIE POP-UP) --- */
.cookie-shrine-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%); /* Zentriert das Pop-up genau in der Mitte */
    background: var(--bg-dark);
    border: 2px solid var(--gold);
    border-top: 8px solid var(--primary-red);
    padding: 25px;
    border-radius: 4px;
    z-index: 9999; /* Sorgt dafür, dass es immer über allem anderen schwebt */
    box-shadow: 0 15px 40px rgba(0,0,0,0.9);
    width: 90%;
    max-width: 600px;
    text-align: center;
}

.cookie-content h3 {
    border-bottom: none;
    margin-top: 0;
    color: var(--primary-red);
    font-size: 22px;
}

.cookie-content p {
    color: var(--paper);
    font-size: 14px;
    margin-bottom: 20px;
    font-family: 'Zilla Slab', serif;
}

.cookie-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap; /* Auf Handys rutschen die Buttons untereinander */
}

/* Ablehnen-Button sieht etwas schlichter aus */
.decline-btn {
    background: transparent;
    border: 1px solid var(--primary-red);
    color: var(--primary-red);
}

.decline-btn:hover {
    background: rgba(179,0,0,0.2);
    color: var(--paper);
}

/* --- TWITCH PLATZHALTER (WENN ABGELEHNT WURDE) --- */
.twitch-placeholder {
    background: rgba(26, 26, 36, 0.6);
    border: 2px dashed var(--primary-red);
    padding: 50px 20px;
    text-align: center;
    margin: 30px 0;
    border-radius: 4px;
}

.twitch-placeholder h3 {
    color: var(--gold);
    border: none;
    margin-bottom: 10px;
}

.twitch-placeholder p {
    color: var(--paper);
    margin-bottom: 25px;
}

/* Die Schwebe-Animation für das Icon (falls noch nicht vorhanden) */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* --- VIEW TRANSITION ANIMATIONEN --- */
/* Sanftes Überblenden und leichtes Schieben beim Seitenwechsel */
::view-transition-old(main-content) {
    animation: fade-out 0.3s ease forwards, slide-out 0.3s ease forwards;
}

::view-transition-new(main-content) {
    animation: fade-in 0.3s ease forwards, slide-in 0.3s ease forwards;
}

@keyframes fade-out { to { opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes slide-out { to { transform: translateY(-20px); } }
@keyframes slide-in { from { transform: translateY(20px); } }

/* --- SUCHLEISTE --- */
.search-container {
    margin: 30px 0;
    text-align: center;
}

.search-box {
    width: 80%;
    max-width: 500px;
    padding: 12px 20px;
    font-size: 18px;
    font-family: 'Zilla Slab', serif;
    background: var(--bg-dark);
    color: var(--gold);
    border: 2px solid var(--gold);
    border-radius: 30px;
    outline: none;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.5), 0 5px 15px rgba(0,0,0,0.3);
    transition: box-shadow 0.3s, border-color 0.3s;
}

.search-box:focus {
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.5), 0 0 20px rgba(255, 215, 0, 0.4);
    border-color: var(--primary-red);
}

.search-box::placeholder {
    color: rgba(255, 215, 0, 0.5);
    font-style: italic;
}

/* --- PLATTFORM BADGES --- */
.badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    font-family: 'Noto Serif JP', serif;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 4px;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.badge-steam {
    background-color: #1b2838;
    color: #66c0f4;
    border: 1px solid #66c0f4;
}

.badge-switch {
    background-color: #e60012;
    color: white;
    border: 1px solid #fff;
}

.badge-software {
    background-color: #4b0082;
    color: #e0b0ff;
    border: 1px solid #e0b0ff;
}

/* Versteckt Elemente (für die Suchfunktion) */
.hidden {
    display: none !important;
}

/* --- GESCHENK HINWEIS --- */
.gift-note {
    font-family: 'Zilla Slab', serif;
    font-size: 15px;
    font-style: italic;
    color: #5d4037; 
    margin-top: 8px;
    margin-bottom: 12px;
    display: block;
}

.gift-note strong {
    color: var(--primary-red); 
    font-family: 'Noto Serif JP', serif;
}

/* --- SPONSORING HINWEIS --- */
.sponsor-note {
    font-family: 'Zilla Slab', serif;
    font-size: 15px;
    font-style: italic;
    color: #4a5568; /* Ein edles Schiefergrau */
    margin-top: 8px;
    margin-bottom: 12px;
    display: block;
}

.sponsor-note strong {
    color: #2b6cb0; /* Ein schickes Blau für das Entwicklerteam */
    font-family: 'Noto Serif JP', serif;
    letter-spacing: 0.5px;
}

/* --- WARN TAGS (CONTENT WARNINGS) --- */
.warnings-container {
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap; /* Falls ein Spiel viele Warnungen hat, brechen sie sauber um */
    margin-top: 5px;
    margin-bottom: 15px;
}

.badge-warning {
    background-color: rgba(179, 0, 0, 0.08); /* Sehr dezentes Rot */
    color: var(--primary-red);
    border: 1px solid rgba(179, 0, 0, 0.4);
    padding: 2px 8px;
    font-size: 11px;
    font-family: 'Noto Serif JP', serif;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 4px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.badge-external {
    background-color: #14281d; /* Sehr dunkles, edles Tannengrün */
    color: #72efb6;            /* Magisches, helles Mintgrün */
    border: 1px solid #34a873;
}

/* Inline-Code (für einzelne Wörter im Text) */
code {
    font-family: 'Courier New', Courier, monospace;
    background-color: var(--bg-dark); /* Dunkler Hintergrund */
    color: var(--gold); /* Goldene Runen-Schrift */
    padding: 3px 6px;
    border-radius: 4px;
    border: 1px solid var(--primary-red); /* Feiner roter Rand */
    font-size: 0.9em;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.8); /* Leichter Tiefen-Effekt */
    text-shadow: 0 0 3px rgba(255, 215, 0, 0.3); /* Leichtes Leuchten */
}

/* Mehrzeilige Code-Blöcke (Falls du mal ganze Skripte zeigst) */
pre {
    background-color: var(--bg-dark);
    padding: 15px;
    border-radius: 4px;
    border-left: 5px solid var(--primary-red);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8), 0 5px 15px rgba(0,0,0,0.2);
    overflow-x: auto; /* Scrollbalken, falls der Code zu lang ist */
    margin: 20px 0;
}

pre code {
    /* Setzt den Inline-Style für große Blöcke zurück */
    background-color: transparent; 
    border: none;
    padding: 0;
    box-shadow: none;
}