/* ==========================================================================
   Base Styles & Variables
   ========================================================================== */

:root {
    --color-bg-dark: #0a0a0a;
    --color-bg-light: #1a1a1a;
    --color-text: #e0e0e0;
    --color-accent: #b90000;
    --color-accent-hover: #ff1a1a;
    
    --font-main: 'Roboto', sans-serif;
    --font-heading: 'Metallord', 'Metal Mania', cursive;
    --font-metallord: 'Metallord', 'Metal Mania', cursive;
}

@font-face {
    font-family: 'Metallord';
    src: url('../fonts/metallord.woff2') format('woff2'),
         url('../fonts/metallord.woff') format('woff'),
         url('../fonts/metallord.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    background-color: var(--color-bg-dark);
    color: var(--color-text);
    font-family: var(--font-main);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1;
}

.global-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: -1;
    pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    margin-top: 0;
    color: #ffffff;
    letter-spacing: 1px;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-accent-hover);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--color-accent);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
    background-color: rgba(10, 10, 10, 0.9);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-user-actions {
    position: absolute;
    right: 20px;
    display: flex;
    align-items: center;
}

.logout-link-header {
    color: #888;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.logout-link-header:hover {
    color: var(--color-accent);
}

@media (max-width: 768px) {
    .header-user-actions {
        right: 60px; /* offset for hamburger */
    }
}

/* Navigation */
.header-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 60px; /* Stabile Höhe für die absolute Positionierung der Menüs */
}

.site-branding {
    text-align: center;
}

.site-title {
    margin: 0;
    font-size: 2.5rem; /* Smaller than hero, but fits header */
    font-family: var(--font-metallord);
    letter-spacing: 2px;
}

@keyframes burn {
    0% { text-shadow: 0 0 5px #fff, 0 -5px 15px #ffaa00, 0 -10px 20px #ff3300, 0 -15px 40px #aa0000; }
    50% { text-shadow: 0 0 5px #fff, 0 -7px 18px #ffaa00, 0 -13px 25px #ff3300, 0 -20px 50px #aa0000; }
    100% { text-shadow: 0 0 5px #fff, 0 -5px 15px #ffaa00, 0 -10px 20px #ff3300, 0 -15px 40px #aa0000; }
}

.site-title a {
    color: #ffe6cc;
    animation: burn 1.5s infinite alternate ease-in-out;
}

.site-title a:hover {
    color: #ffffff;
    animation: burn 0.5s infinite alternate ease-in-out;
}

.site-description {
    margin: 5px 0 0;
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.desktop-only {
    display: block;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

#site-navigation-left {
    left: 15px;
}

#site-navigation-right {
    right: 15px;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.main-navigation li a,
.mobile-navigation li a {
    color: #e0e0e0;
    font-family: var(--font-heading);
    font-size: 1.1rem; /* Kleiner als der Name */
    text-transform: uppercase;
    padding: 5px 10px;
    letter-spacing: 1px;
}

.main-navigation li a:hover,
.main-navigation li.current-menu-item a,
.mobile-navigation li a:hover {
    color: var(--color-accent);
}

.mobile-navigation {
    display: none;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    gap: 5px;
}

.hamburger-icon {
    display: block;
    width: 30px;
    height: 3px;
    background-color: #fff;
    transition: 0.3s;
}

.menu-toggle.is-active .hamburger-icon:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.menu-toggle.is-active .hamburger-icon:nth-child(2) {
    opacity: 0;
}
.menu-toggle.is-active .hamburger-icon:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .header-container {
        justify-content: space-between;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .mobile-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(15, 15, 15, 0.95);
        border-bottom: 2px solid var(--color-accent);
        padding: 20px 0;
    }

    .mobile-navigation.toggled {
        display: block;
    }

    .mobile-navigation ul, .page-menu-fallback ul {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        list-style: none;
        padding: 0;
        margin: 0;
    }
}

/* Page Headers */
.page-header {
    padding: 120px 0 40px; /* offset for fixed header */
    text-align: center;
}

/* Hungary specific header */
.hungary-header {
    padding: 150px 0 70px;
}

.hungary-flag-icon {
    width: 120px;
    height: auto;
    margin-bottom: 15px;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.8), 0 0 10px rgba(185, 0, 0, 0.5);
    border: 2px solid #333;
}

.page-title {
    font-size: 4rem;
    color: #fff;
    margin: 0;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.8);
    position: relative;
    z-index: 2;
}

.page-content-section {
    padding: 60px 0;
}

.page-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #e0e0e0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.metallord-font {
    font-family: var(--font-metallord);
}

/* ==========================================================================
   Front Page Sections
   ========================================================================== */

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 0; /* Compensate for fixed header */
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: var(--font-metallord);
    font-size: 6rem;
    color: #ffffff;
    text-shadow: 4px 4px 10px rgba(0, 0, 0, 0.8), 0 0 20px var(--color-accent);
    margin-bottom: 10px;
    line-height: 1.1;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: #e0e0e0;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
    background: rgba(0, 0, 0, 0.4);
    display: inline-block;
    padding: 5px 15px;
    border-left: 4px solid var(--color-accent);
    border-right: 4px solid var(--color-accent);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }
    .hero-subtitle {
        font-size: 1.2rem;
    }
}

/* Twitch Section */
.twitch-section {
    padding: 80px 0;
    background: transparent;
    border: none;
}

.browser-window {
    background: #000;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9), 0 0 20px rgba(185, 0, 0, 0.3);
    max-width: 1000px;
    margin: 0 auto;
}

.browser-header {
    background: linear-gradient(to bottom, #2a2a2a, #1a1a1a);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #000;
}

.browser-buttons {
    display: flex;
    gap: 8px;
    margin-right: 15px;
}

.browser-buttons span {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.btn-close { background-color: #ff5f56; }
.btn-minimize { background-color: #ffbd2e; }
.btn-maximize { background-color: #27c93f; }

.browser-title {
    color: #888;
    font-size: 0.85rem;
    font-family: var(--font-main);
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    flex-grow: 1;
    margin-right: 60px; /* offset the buttons to center the title perfectly */
}

.browser-content {
    background: #000;
}

/* About Section */
.about-section {
    padding: 80px 0;
    background-color: var(--color-bg-dark);
    background-image: linear-gradient(rgba(10,10,10,0.9), rgba(10,10,10,0.9)), url('data:image/svg+xml;utf8,<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="2" fill="%23222"/></svg>');
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.8;
    text-align: center;
    background: rgba(26, 26, 26, 0.8);
    padding: 40px;
    border: 1px solid #333;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.about-content p {
    margin-bottom: 20px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: #050505;
    padding: 30px 0;
    text-align: center;
    border-top: none;
    font-size: 0.9rem;
    color: #666;
}

/* Gallery Block (Friends Page) */
.wp-block-gallery { display: grid; gap: 15px; list-style: none; padding: 0; }
.wp-block-gallery .wp-block-image { margin: 0; overflow: hidden; border-radius: 4px; box-shadow: 0 5px 15px rgba(0,0,0,0.5); border: 2px solid #333; transition: transform 0.3s ease, border-color 0.3s ease; }
.wp-block-gallery .wp-block-image:hover { transform: scale(1.05); border-color: var(--color-accent); }
.wp-block-gallery .wp-block-image img { display: block; width: 100%; height: 100%; object-fit: cover; }


/* Ungarn Sub-Header */
.ungarn-sub-header { background: transparent; border-bottom: none; padding: 100px 0 20px; text-align: center; }
.ungarn-site-title { color: #fff; font-size: 3rem; margin: 0 0 15px; text-shadow: 2px 2px 5px rgba(0,0,0,0.8); }
.ungarn-navigation ul { list-style: none; padding: 0; margin: 0; display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }
.ungarn-navigation li a { color: #e0e0e0; font-family: var(--font-heading); font-size: 1.2rem; text-transform: uppercase; padding: 5px 15px; border: 1px solid transparent; transition: 0.3s; }
.ungarn-navigation li a:hover, .ungarn-navigation li.current-menu-item a { color: var(--color-accent); border-color: var(--color-accent); background: rgba(185, 0, 0, 0.1); }

/* Friends Sub-Header */
.friends-sub-header { background: transparent; border-bottom: none; padding: 100px 0 20px; text-align: center; }
.friends-site-title { color: #fff; font-size: 3rem; margin: 0 0 15px; text-shadow: 2px 2px 5px rgba(0,0,0,0.8); }
.friends-navigation ul { list-style: none; padding: 0; margin: 0; display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }
.friends-navigation li a { color: #e0e0e0; font-family: var(--font-heading); font-size: 1.2rem; text-transform: uppercase; padding: 5px 15px; border: 1px solid transparent; transition: 0.3s; }
.friends-navigation li a:hover, .friends-navigation li.current-menu-item a { color: var(--color-accent); border-color: var(--color-accent); background: rgba(185, 0, 0, 0.1); }


/* Twitch Friends Shortcode Gallery */
.twitch-friends-container { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; margin: 40px 0; }
.twitch-friend-link { display: flex; flex-direction: column; align-items: center; background: rgba(10, 10, 10, 0.85); border: 2px solid #333; border-radius: 12px; padding: 20px; width: 160px; text-decoration: none; transition: all 0.3s ease; box-shadow: 0 5px 15px rgba(0,0,0,0.6); }
.twitch-friend-link:hover { transform: translateY(-8px); border-color: var(--color-accent); box-shadow: 0 10px 25px rgba(185, 0, 0, 0.4); background: rgba(20, 20, 20, 0.95); }
.twitch-friend-avatar { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; margin-bottom: 15px; border: 3px solid #222; transition: border-color 0.3s; }
.twitch-friend-link:hover .twitch-friend-avatar { border-color: var(--color-accent); }
.twitch-friend-name { color: #fff; font-family: var(--font-heading); font-size: 1.2rem; text-transform: uppercase; letter-spacing: 1px; text-align: center; word-break: break-all; }

