/* =========================================
   DARKSIDE COMMUNITY - STYLESHEET
   ========================================= */

:root {
    --bg-color: #050505;
    --card-bg: rgba(20, 20, 20, 0.7);
    --text-main: #e0e0e0;
    --text-muted: #888888;
    --accent-red: #8a0303;
    --accent-red-glow: rgba(138, 3, 3, 0.6);
    --accent-green: #4b5320;
    --accent-green-glow: rgba(75, 83, 32, 0.5);
    
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

/* --- KAWAII PINK THEME OVERRIDES --- */
body[data-theme="kawaii"] {
    --bg-color: #ffe6f2; /* Helles Pink als Hintergrund */
    --card-bg: rgba(255, 255, 255, 0.85); /* Weiße, transparente Karten */
    --text-main: #c2185b; /* Dunkles Pink für normalen Text */
    --text-muted: #f06292; /* Helles Pink für Sekundärtexte */
    --accent-red: #ff4081; /* Knalliges Hot Pink */
    --accent-red-glow: rgba(255, 64, 129, 0.6);
    --accent-green: #ff80ab; /* Softes Pink anstelle von Grün */
    --accent-green-glow: rgba(255, 128, 171, 0.5);
}

/* Passe bei Kawaii das Hero-Bild an (weniger dunkel, mehr Farbe) */
body[data-theme="kawaii"] .hero-bg {
    filter: brightness(0.8) contrast(1.1) sepia(0.3) hue-rotate(290deg) saturate(2);
}
body[data-theme="kawaii"] .noise-overlay {
    opacity: 0.05;
}
body[data-theme="kawaii"] .card-footer {
    border-top: 1px solid rgba(240, 98, 146, 0.3);
}
body[data-theme="kawaii"] .social-icon-btn:hover {
    color: var(--accent-red);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- OVERLAYS & TEXTURES --- */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/images/hero-bg.png');
    background-size: cover;
    background-position: center;
    filter: brightness(0.4) contrast(1.2) grayscale(0.5);
    z-index: -1;
    animation: slowZoom 20s ease-in-out infinite alternate;
}

@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, var(--bg-color), transparent);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 0 20px;
}

.glitch {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    color: white;
    letter-spacing: 0.1em;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}

.subtitle {
    font-size: 1.2rem;
    letter-spacing: 0.3em;
    color: var(--accent-red);
    margin-top: 10px;
    margin-bottom: 40px;
    text-shadow: 0 0 10px var(--accent-red-glow);
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    border: 1px solid var(--accent-red);
    background: rgba(138, 3, 3, 0.1);
    color: white;
    text-transform: uppercase;
    text-decoration: none;
    font-family: var(--font-heading);
    letter-spacing: 2px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.5s ease;
}

.cta-button:hover {
    background: var(--accent-red);
    box-shadow: 0 0 20px var(--accent-red-glow);
}

.cta-button:hover::before {
    left: 100%;
}

/* --- MAIN CONTAINER --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

/* --- INTRO SECTION --- */
.intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

.intro h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
}

.intro p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.hr-military {
    width: 100px;
    height: 3px;
    background: var(--accent-green);
    margin: 40px auto 0;
    box-shadow: 0 0 10px var(--accent-green-glow);
}

/* --- ROSTER / CARDS GRID --- */
.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-left: 4px solid var(--accent-red);
    padding-left: 15px;
}

.cards-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobile Default: untereinander */
    gap: 30px;
}

.profile-card {
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.05);
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
    backdrop-filter: blur(10px);
}

.profile-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-red);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--accent-red-glow) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.profile-card:hover .card-glow {
    opacity: 0.15;
}

.live-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #ff0000;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 10;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
    animation: pulse-red 1.5s infinite;
    letter-spacing: 1px;
    font-family: var(--font-heading);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 0, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
    }
}

.card-inner {
    position: relative;
    z-index: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.img-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #333;
    transition: border-color 0.3s ease;
}

.profile-card:hover .img-wrapper {
    border-color: var(--accent-red);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.8);
    transition: filter 0.3s ease;
}

.profile-card:hover .profile-img {
    filter: grayscale(0);
}

.scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255,255,255,0.5);
    opacity: 0;
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
    animation: none;
}

.profile-card:hover .scanline {
    opacity: 1;
    animation: scan 2s linear infinite;
}

@keyframes scan {
    0% { top: -10%; }
    100% { top: 110%; }
}

.card-content {
    text-align: center;
    flex-grow: 1;
}

.badges {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.badge {
    font-size: 0.65rem;
    padding: 3px 8px;
    border-radius: 4px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.profile-rank {
    font-family: var(--font-heading);
    color: var(--accent-green);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 5px;
}

.profile-name {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 5px;
    color: white;
}

.profile-handle {
    display: block;
    font-size: 0.9rem;
    color: var(--accent-red);
    margin-bottom: 15px;
}

.profile-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.card-footer {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.view-profile {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    color: #888;
}

.social-links {
    display: flex;
    gap: 12px;
    align-items: center;
}

.social-icon-btn {
    width: 20px;
    height: 20px;
    color: #888;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.social-icon-btn:hover {
    color: #fff;
    transform: scale(1.2);
}

/* --- FOOTER --- */
footer {
    background: #000;
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid #222;
}

.footer-content p {
    color: #555;
    font-size: 0.9rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .glitch { font-size: 3.5rem; }
    .subtitle { font-size: 1rem; }
}

@media (min-width: 769px) {
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .cards-grid { grid-template-columns: repeat(3, 1fr); } /* PC: max 3 nebeneinander */
}

@media (min-width: 2560px) {
    .cards-grid { grid-template-columns: repeat(4, 1fr); } /* 4K: max 4 nebeneinander */
}
