/*
Theme Name: MaiR-Theme
Theme URI: https://mair-theme.dev
Author: MaiR Dev Team
Description: Hyper-modernes, interaktives Anime/Musik/VTube Theme.
Version: 1.3
*/

:root {
    --bg-color: #fdfdfd;
    --text-color: #2a2a2a;
    --accent-primary: #ff00cc;
    --accent-secondary: #00f0ff;
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: 1px solid rgba(255, 255, 255, 0.9);
    --font-main: 'Jost', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    overflow-x: hidden;
    font-family: var(--font-main);
    cursor: none;
}

/* UI BASICS */
#cursor {
    position: fixed; top: 0; left: 0; width: 20px; height: 20px;
    border: 2px solid var(--accent-primary); border-radius: 50%;
    pointer-events: none; z-index: 9999;
    transform: translate(-50%, -50%); transition: width 0.3s, height 0.3s, transform 0.2s;
    mix-blend-mode: difference;
}
#cursor.hovered { width: 50px; height: 50px; background: rgba(255,255,255,0.1); border-color: transparent; }

#webgl-canvas { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; opacity: 0.6; }

.content-wrapper { position: relative; z-index: 10; padding: 5vw 10vw; min-height: 100vh; }

/* HERO SECTION */
.hero-section { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 150px; 
    width: 100%; 
    margin-bottom: 80px; 
}
.hero-text { flex: 0 1 auto; z-index: 2; text-align: right; } 

.hero-avatar-container { 
    flex: 0 1 auto; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    perspective: 1000px; 
    z-index: 1; 
    position: relative; 
}

.hero-avatar-link { display: block; cursor: pointer; transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.hero-avatar-link:hover { transform: scale(1.05); }
.avatar-frame { position: relative; width: 400px; height: 400px; border-radius: 50%; box-shadow: 0 0 0 10px var(--glass-bg), 0 0 30px rgba(0,0,0,0.1); animation: pulse-aura 3s infinite alternate; }
.avatar-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; position: relative; z-index: 2; border: 8px solid var(--bg-color); opacity: 0; }
@keyframes pulse-aura { 0% { box-shadow: 0 0 0 10px var(--glass-bg), 0 0 30px var(--accent-primary); } 100% { box-shadow: 0 0 0 15px var(--glass-bg), 0 0 50px var(--accent-secondary); } }

/* Social Icons */
.hero-social-row {
    display: flex;
    gap: 15px;
    margin-top: 30px; 
    z-index: 5;
}
.hero-social-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid rgba(255,255,255,0.5);
    color: var(--text-color);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}
.hero-social-btn:hover {
    background: var(--accent-primary);
    color: #fff;
    border-color: var(--accent-primary);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 5px 15px var(--accent-primary);
}

/* GRID & CARDS */
.section-title { font-size: 3rem; font-weight: 800; margin-bottom: 40px; margin-top: 80px; text-transform: uppercase; letter-spacing: -2px; color: var(--text-color); }
.grid-layout { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; margin-bottom: 50px; }

.gallery-card { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 16/9; transform: translateZ(0); transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); cursor: pointer; background: #000; border: 1px solid rgba(255,255,255,0.1); }
.card-image { width: 100%; height: 100%; object-fit: cover; transition: all 0.5s ease; filter: grayscale(100%) sepia(20%) hue-rotate(180deg) brightness(0.8) contrast(1.2); opacity: 0.9; }
.gallery-card:hover .card-image { filter: grayscale(0%) brightness(1.0) contrast(1); opacity: 0.3; transform: scale(1.05); }
.gallery-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,0,0,0.2); border-color: var(--accent-primary); }
.card-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 25px; opacity: 0; transition: opacity 0.3s ease; box-sizing: border-box; }
.gallery-card:hover .card-overlay { opacity: 1; }
.card-title { color: #fff; font-size: 1.5rem; font-weight: 700; text-transform: uppercase; text-align: center; line-height: 1.3; width: 100%; word-wrap: break-word; hyphens: auto; text-shadow: 0 2px 10px rgba(0,0,0,0.8); transform: translateY(15px); transition: transform 0.3s ease; background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary)); -webkit-background-clip: text; }
.gallery-card:hover .card-title { transform: translateY(0); }
.ext-icon { position: absolute; top: 15px; right: 15px; color: #fff; font-size: 1rem; background: var(--accent-primary); width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 50%; z-index: 10; box-shadow: 0 5px 10px rgba(0,0,0,0.3); }

/* PAGINATION */
.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 50px; }
.page-numbers { 
    display: flex; align-items: center; justify-content: center; 
    width: 40px; height: 40px; border-radius: 10px; 
    background: var(--glass-bg); border: 1px solid rgba(255,255,255,0.5); 
    color: var(--text-color); text-decoration: none; font-weight: bold; 
    transition: all 0.2s; 
    cursor: pointer;
}
.page-numbers.current, .page-numbers:hover { background: var(--accent-primary); color: #fff; border-color: var(--accent-primary); transform: translateY(-3px); }
.pagination.loading { opacity: 0.5; pointer-events: none; }

/* TYPO */
h1 { font-size: 6rem; font-weight: 800; line-height: 0.9; margin-bottom: 30px; background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; position: relative; }
.glitch-hover:hover { animation: glitch-anim 0.3s cubic-bezier(.25, .46, .45, .94) both infinite; -webkit-text-fill-color: var(--accent-primary); background: none; }
.glitch-hover:hover::before, .glitch-hover:hover::after { content: attr(data-text); position: absolute; top: 0; left: 0; width: 100%; height: 100%; -webkit-text-fill-color: var(--accent-primary); }
.glitch-hover:hover::before { left: 2px; text-shadow: -1px 0 var(--accent-secondary); clip: rect(24px, 550px, 90px, 0); animation: glitch-anim-2 2s linear infinite alternate-reverse; }
.glitch-hover:hover::after { left: -2px; text-shadow: -1px 0 var(--accent-primary); clip: rect(85px, 550px, 140px, 0); animation: glitch-anim 2s linear infinite alternate-reverse; }
@keyframes glitch-anim { 0% { transform: translate(0) } 20% { transform: translate(-2px, 2px) } 40% { transform: translate(-2px, -2px) } 60% { transform: translate(2px, 2px) } 80% { transform: translate(2px, -2px) } 100% { transform: translate(0) } }
@keyframes glitch-anim-2 { 0% { clip: rect(10px, 9999px, 30px, 0); } 20% { clip: rect(80px, 9999px, 100px, 0); } 40% { clip: rect(20px, 9999px, 60px, 0); } 60% { clip: rect(60px, 9999px, 80px, 0); } 80% { clip: rect(10px, 9999px, 40px, 0); } 100% { clip: rect(70px, 9999px, 90px, 0); } }

/* SINGLE & FOOTER */
.single-container { max-width: 900px; margin: 0 auto; }
.single-header { text-align: center; margin-bottom: 50px; padding-top: 100px; }
.single-title { font-size: 4rem; font-weight: 900; line-height: 1.1; margin-bottom: 20px; }
.single-meta-row { display: flex; justify-content: center; gap: 20px; color: var(--text-color); opacity: 0.7; font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.cat-badge { color: var(--accent-primary); border: 1px solid var(--accent-primary); padding: 2px 10px; border-radius: 15px; }
.share-row { display: flex; justify-content: center; gap: 15px; margin-bottom: 50px; }
.share-btn { width: 50px; height: 50px; border-radius: 50%; background: var(--glass-bg); border: var(--glass-border); color: var(--text-color); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; transition: 0.2s; cursor: pointer; }
.share-btn:hover { background: var(--accent-primary); color: #fff; transform: translateY(-5px); border-color: var(--accent-primary); }
.content-area { font-size: 1.2rem; line-height: 1.8; color: var(--text-color); background: var(--glass-bg); backdrop-filter: blur(10px); border: var(--glass-border); padding: 60px; border-radius: 20px; box-shadow: 0 10px 40px rgba(0,0,0,0.05); }
.content-area p { margin-bottom: 20px; }
.content-area a { color: var(--accent-primary); text-decoration: underline; text-decoration-thickness: 2px; }
.content-area a:hover { color: var(--accent-secondary); }
.content-area img { border-radius: 10px; max-width: 100%; height: auto; }
.content-area h2, .content-area h3 { margin-top: 40px; margin-bottom: 20px; color: var(--accent-secondary); }
#site-footer { text-align: center; padding: 60px 20px; font-size: 0.9rem; opacity: 0.8; margin-top: 50px; border-top: 1px solid rgba(0,0,0,0.05); }

/* Navigation im Header entfernt */
nav a { text-decoration: none; color: var(--text-color); font-size: 1.2rem; margin-right: 20px; font-weight: 500; position: relative; z-index: 20; }
nav a:hover { color: var(--accent-primary); }
.transition-wipe { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary)); z-index: 9000; transform: translateY(100%); pointer-events: none; }
.music-widget { position: fixed; bottom: 30px; left: 30px; width: 300px; background: var(--glass-bg); backdrop-filter: blur(10px); border: var(--glass-border); border-radius: 15px; padding: 15px; z-index: 100; display: flex; flex-direction: column; box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: transform 0.3s ease; }
.music-widget:hover { transform: translateY(-5px); }
#yt-player-container { width: 100%; height: 150px; border-radius: 10px; overflow: hidden; margin-bottom: 10px; background: #000; }
.player-controls { display: flex; justify-content: space-between; align-items: center; }
.control-btn { background: none; border: 1px solid var(--accent-primary); color: var(--accent-primary); padding: 5px 15px; border-radius: 20px; cursor: pointer; font-family: var(--font-main); font-weight: bold; font-size: 0.8rem; transition: all 0.2s; }
.control-btn:hover { background: var(--accent-primary); color: #fff; }
