/* Lucifer11986 Twitch-Website – Dark-Fire Theme
   Vollständig optimiert, strukturiert und konsistent
*/

/* ---------------- Root Variables ---------------- */
:root {
    --primary-color: #00ffe1;
    --secondary-color: #1e1e2f;
    --accent-color: #ff4d6d;
    --background-color: #12121c;
    --text-color: #ffffff;
    --hover-glow: rgba(0, 255, 225, 0.3);
    --transition-speed: 0.3s;
}

/* ---------------- Global Reset ---------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

html, body {
    height: 100%;
}

body {
    background: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden; /* verhindert horizontale Scrollbars bei Hover/Transforms */
}

/* Make sure common high-level containers allow overflow for popouts/tooltips */
.forum-page, .forum-wrapper, .forum-content, .forum-categories, .thread-cards,
.grid-dashboard, .gallery-grid, .vod-grid, .shop-grid {
    overflow: visible;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all var(--transition-speed) ease;
}

a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 8px var(--accent-color);
}

/* Basis-Schriftfarbe */
body {
  color: #f0f0f0; /* Heller als vorher */
}

/* Überschriften */
h1, h2, h3, h4, h5, h6 {
  color: #ffffff; /* Weiß für bessere Lesbarkeit */
}

/* Links */
a {
  color: #ff9933;
  text-decoration: none;
}

a:hover {
  color: #ff6600;
  text-shadow: 0 0 6px #ff4500;
}


/* ---------------- Animations ---------------- */
@keyframes glowPulse {
    0% { box-shadow: 0 0 10px var(--primary-color); }
    50% { box-shadow: 0 0 20px var(--primary-color); }
    100% { box-shadow: 0 0 10px var(--primary-color); }
}

@keyframes textGlowPulse {
    0% { text-shadow: 0 0 5px var(--primary-color); }
    50% { text-shadow: 0 0 15px var(--primary-color); }
    100% { text-shadow: 0 0 5px var(--primary-color); }
}

/* ---------------- Header ---------------- */
header {
    position: sticky;
    top: 0;
    width: 100%;
    height: 70px;
    background: rgba(18,18,28,0.85);
    backdrop-filter: blur(10px);
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

header .logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 1px;
    animation: textGlowPulse 2.5s infinite;
    flex-shrink: 0;
}

nav ul {
    display: flex;
    gap: 1.8rem;
    list-style: none;
}

nav li {
    position: relative;
}

nav li a {
    font-weight: 500;
    padding: 0.5rem;
    display: block;
    transition: all 0.3s ease;
}

nav li a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-color);
}

/* ---------------- Dropdowns ---------------- */
nav li ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(30,30,47,0.95);
    backdrop-filter: blur(15px);
    border-radius: 10px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.3s ease;
    min-width: 200px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

nav li:hover > ul {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

nav li ul li a {
    display: block;
    padding: 0.8rem 1.2rem;
    font-weight: 400;
    transition: all 0.25s ease;
}

nav li ul li a:hover {
    background: var(--primary-color);
    color: var(--background-color);
    transform: translateX(5px);
    box-shadow: 0 0 8px var(--primary-color);
}

/* ---------------- Buttons ---------------- */
button, .btn, .shop-button {
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--background-color);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,255,225,0.2);
}

button:hover, .btn:hover, .shop-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,255,225,0.35);
}

/* ---------------- Cards ---------------- */
/* keep overflow visible and optimize transforms to avoid scrollbar appearance */
.card, .event-item, .cta-card, .product-card {
    background: rgba(30,30,47,0.85);
    backdrop-filter: blur(15px);
    border-radius: 14px;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    overflow: visible; /* wichtig: verhindert Scrollbars bei Hover-Scale */
    will-change: transform;
    transform-origin: center top;
}

.card:hover, .event-item:hover, .cta-card:hover, .product-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 15px 30px rgba(0,255,225,0.4);
    background: rgba(30,30,47,0.95);
}

.card h3, .event-item h3, .cta-card h3, .product-card h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.card p, .event-item p, .cta-card p, .product-card p,
.card ul, .event-item ul, .cta-card ul, .product-card ul {
    color: rgba(255,255,255,0.85);
    margin-bottom: 0.8rem;
}

.card a, .event-item a, .cta-card a, .product-card a {
    color: var(--accent-color);
}

.card a:hover, .event-item a:hover, .cta-card a:hover, .product-card a:hover {
    text-shadow: 0 0 8px var(--accent-color);
}

/* ---------------- Grid Dashboard ---------------- */
.grid-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem;
    overflow: visible; /* verhindert Scrollbars bei Hover */
}

/* Blog Card größer machen im Dashboard */
.grid-dashboard .blog-card {
    grid-column: span 3;
    min-height: 250px;
}

@media (max-width: 1024px) {
    .grid-dashboard .blog-card {
        grid-column: 1 / -1;
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .grid-dashboard .blog-card {
        grid-column: 1 / -1;
    }
}

/* ---------------- Gallery Cards ---------------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
    overflow: visible; /* verhindert Scrollbars bei Hover */
}

.gallery-card {
    position: relative;
    background: rgba(30,30,47,0.85);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    overflow: visible; /* verhindert Scrollbars bei Skalierung/Hover */
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    will-change: transform;
    transform-origin: center top;
}

.gallery-card img {
    width: 100%;
    display: block;
    border-radius: 12px 12px 0 0;
}

.gallery-card .overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
    color: #fff;
    padding: 1rem;
    text-align: center;
}

.gallery-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 25px rgba(0,255,225,0.35);
}

.gallery-card:hover .overlay {
    opacity: 1;
}

.gallery-card .overlay h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.gallery-card .overlay a {
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    background: var(--accent-color);
    color: var(--background-color);
    font-weight: 600;
    text-decoration: none;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
}

.gallery-card .overlay a:hover {
    background: var(--primary-color);
    color: var(--background-color);
    box-shadow: 0 0 8px var(--primary-color);
}

/* ---------------- VOD Cards ---------------- */
.vod-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
    overflow: visible; /* verhindert Scrollbars bei Hover */
}

.vod-card {
    position: relative;
    background: rgba(30,30,47,0.85);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    overflow: visible; /* verhindert Scrollbars */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
    transform-origin: center top;
}

.vod-card img {
    width: 100%;
    display: block;
    border-radius: 12px 12px 0 0;
}

.vod-card .vod-info {
    padding: 1rem;
}

.vod-card .vod-info h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.vod-card .vod-info p {
    color: rgba(255,255,255,0.85);
    margin-bottom: 0.5rem;
}

.vod-card .vod-info a {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    background: var(--accent-color);
    color: var(--background-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.vod-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 25px rgba(0,255,225,0.35);
}

.vod-card .vod-info a:hover {
    background: var(--primary-color);
    box-shadow: 0 0 8px var(--primary-color);
}

/* ---------------- Shop Section ---------------- */
.shop-section {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.shop-header {
    text-align: center;
    padding: 2rem;
}

.shop-header h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.shop-header p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.shop-cta, .shop-faq, .shop-contact {
    padding: 2rem;
}

.shop-cta h2, .shop-faq h3, .shop-contact h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.shop-cta p, .shop-faq dd, .shop-contact ul li {
    color: rgba(255,255,255,0.8);
    margin-bottom: 1rem;
}

.payment-methods {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.payment-methods li {
    background: rgba(0,255,225,0.1);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.95rem;
}

/* ---------------- Forms ---------------- */
input, textarea, select {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(30,30,47,0.75);
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px var(--hover-glow);
    outline: none;
}

/* ---------------- Tables ---------------- */
table.styled-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.styled-table th, .styled-table td {
    padding: 0.75rem 1rem;
    text-align: left;
}

.styled-table th {
    background: rgba(0,255,225,0.1);
}

.styled-table tr:nth-child(even) {
    background: rgba(255,255,255,0.05);
}

/* Kategorie-Tabelle responsive */
.category-table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin-top: 1rem;
}

.table-scroll {
    min-width: 600px; /* Mindestens Breite, damit Inputs nebeneinander passen */
    overflow-x: auto;
}

.styled-table th, .styled-table td {
    white-space: nowrap; /* Zeilen umbrechen verhindern */
}

.position-input {
    width: 60px;
}

.category-accordion .card {
    margin-bottom: 0.8rem;
}

.subcategories {
    margin-left: 1.5rem;
    padding-left: 0.5rem;
    border-left: 2px solid rgba(255, 100, 0, 0.4); /* leichte Linie für Unterkategorien */
}

.category-card summary {
    cursor: pointer;
    font-weight: 600;
}

.category-card .card-content {
    margin-top: 0.5rem;
}

/* ---------------- Forum Thread Tooltip ---------------- */
.forum-thread {
    position: relative;
}

.thread-tooltip {
    position: absolute;
    left: 105%;
    top: 0;
    background: rgba(30,30,47,0.95);
    backdrop-filter: blur(15px);
    color: var(--text-color);
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,255,225,0.3);
    width: 300px;
    max-width: 90vw;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 10000; /* höher, damit Tooltip nicht von anderen Elementen abgeschnitten wird */
    overflow: hidden; /* Inhalt selbst nicht scrollen */
}

.thread-toggle-btn {
    margin-left: 10px;
    background: #1a1a1a;
    border: 1px solid #ff4500;
    color: #ff4500;
    padding: 5px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}
.thread-toggle-btn:hover {
    background: #ff4500;
    color: #1a1a1a;
}


.forum-thread:hover .thread-tooltip {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0px);
}

.thread-tooltip p {
    font-size: 0.85rem;
    line-height: 1.3;
    color: rgba(255,255,255,0.85);
    max-height: 150px;
    overflow: hidden;
}

.thread-tooltip::after {
    content: '';
    position: absolute;
    left: -8px;
    top: 10px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent rgba(30,30,47,0.95) transparent transparent;
}

@media(max-width:768px){
    .thread-tooltip {
        position: static;
        width: 100%;
        margin-top: 0.5rem;
        transform: none !important;
        left: 0;
    }
    .thread-tooltip::after { display: none; }
}

/* ---------------- Footer ---------------- */
footer {
    background: rgba(18,18,28,0.95);
    padding: 2rem;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.6);
}

footer a {
    color: var(--primary-color);
}

footer a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 8px var(--accent-color);
}

/* ---------------- Mobile Menu ---------------- */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100%;
    background: rgba(30,30,47,0.95);
    backdrop-filter: blur(15px);
    padding: 2rem;
    transition: all 0.4s ease;
    z-index: 999;
    flex-direction: column;
}

.mobile-menu.active { left: 0; }

.mobile-menu ul { flex-direction: column; gap: 1.5rem; }
.mobile-menu li a { font-size: 1.2rem; }

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

.hamburger.active div:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.active div:nth-child(2) { opacity: 0; }
.hamburger.active div:nth-child(3) { transform: rotate(-45deg) translate(6px,-6px); }

/* ---------------- Responsive ---------------- */
@media (max-width: 1024px) {
    nav ul { display: none; }
    .hamburger { display: flex; }
    .grid-dashboard { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.8rem; margin: 1.5rem; }
}

@media (max-width: 768px) {
    header { padding: 0.6rem 1.5rem; flex-direction: column; align-items: flex-start; }
    .card, .event-item, .cta-card { padding: 1.5rem; }
    .grid-dashboard { grid-template-columns: 1fr; gap: 1.5rem; margin: 1rem; }
    .shop-section { padding: 0 1rem; gap: 2rem; }
    .shop-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .shop-header h2, .shop-cta h2 { font-size: 1.5rem; }
    .shop-header p, .shop-cta p { font-size: 1rem; }
    .cta-card .cta-buttons a { flex: 1 1 100%; }
}
