/* =========================================
   1. GLOBAL RESET & BODY (Cozy & Pink)
   ========================================= */

html {
    height: 100%;
}

body {
    margin: 0 !important;
    padding: 0 !important;
    padding-top: 110px !important;

    /* Sticky-Footer-Setup: Footer bleibt am Seitenende bei wenig Content */
    min-height: 100vh;
    display: flex;
    flex-direction: column;

    overflow-x: hidden;

    /* Fallback color if image fails - deep pinkish red */
    background-color: #2a0a10;
    color: white;
    font-family: "Inter", sans-serif;
}

/* Background Image - Let it shine! */
body::before {
    content: "";
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    background-image: url("assets/img/enooo.png");
    background-size: cover;
    background-position: center top;
    /* LESS darkness, more color. Just a slight blur for focus */
    filter: blur(3px) brightness(0.9);
}

/* =========================================
   2. HEADER (Frosted Rose Glass)
   ========================================= */
.site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 90px;

    /* Transparent Dark Pink/Red instead of Solid Black */
    background: rgba(30, 5, 10, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 128, 171, 0.3);

    z-index: 9999;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 30px rgba(50, 0, 20, 0.4);
}

.site-header .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 96%;
    max-width: 1900px;
    margin: 0 auto;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 3rem;
}

/* LOGO: Glowy Red */
.site-header .enoflix-title h1 {
    font-family: "Anton", sans-serif;
    font-size: 4rem;
    color: #ff1744;
    text-shadow: 0 0 25px rgba(255, 23, 68, 0.6);
    transform: skewX(-8deg);
    margin: 0;
    line-height: 1;
    cursor: default;
    padding-top: 4px;
}

/* Navigation Buttons (Pinky & Soft) */
.main-nav {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.main-nav a {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.05); /* Slight white tint */
    color: #ffc1e3; /* Soft light pink text */
    border: 1px solid rgba(255, 64, 129, 0.4);
    padding: 0.6rem 1.4rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    background-color: rgba(216, 27, 96, 0.8);
    color: #fff;
    border-color: #ff80ab;
    box-shadow: 0 0 20px rgba(216, 27, 96, 0.6);
    transform: translateY(-2px);
}

/* Twitch Login */
#auth-area {
    display: flex;
    align-items: center;
    gap: 1rem;
}
#twitch-login-btn {
    background-color: #9146ff;
    color: #fff;
    font-family: "Inter", sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.6rem 1.4rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(145, 71, 255, 0.3);
}
#twitch-login-btn:hover {
    background-color: #772ce8;
    box-shadow: 0 0 20px rgba(145, 71, 255, 0.6);
}
#user-info {
    display: none;
    align-items: center;
}
#logout-btn {
    display: none;
    margin-left: 10px;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: 1px solid #555;
    border-radius: 4px;
    cursor: pointer;
}
#user-info:hover #logout-btn {
    display: inline-block;
}

/* =========================================
   3. CONTAINER & LAYOUT
   ========================================= */
.container {
    max-width: 1900px;
    width: 96%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 10px;
    padding-right: 10px;
}

/* Utility: keep text pages left-aligned even with max-width helpers */
.max-w-3xl.mx-auto {
    margin-left: clamp(12px, 4vw, 48px);
    margin-right: auto;
    padding-left: 10px;
    padding-right: 10px;
}

/* =========================================
   4. GLASSMORPHISM BOX STYLES
   ========================================= */
.box-style,
.stream-video,
.stream-chat,
.day-card,
.event-card {
    /* Semitransparent Dark Berry/Red - lets background color through! */
    background: rgba(40, 10, 20, 0.65);

    /* Heavy blur makes text readable even on transparent background */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    /* Soft glowing border */
    border: 1px solid rgba(255, 128, 171, 0.3);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.stream-wrapper {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr clamp(280px, 22vw, 420px);
    gap: 24px;
    margin-bottom: 3rem;
    align-items: stretch;
}

.stream-video {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    width: 100%;
}
.stream-chat {
    display: flex;
    align-items: stretch;
    align-self: stretch;
    overflow: hidden;
    height: 100%;
}
.stream-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.twitch-consent {
    background: rgba(20, 5, 10, 0.8);
    border: 1px solid #d81b60;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}
.twitch-consent-button {
    margin-left: 10px;
    padding: 5px 15px;
    border: 1px solid #ff80ab;
    color: #ff80ab;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
}

/* =========================================
   5. EVENTS (Pink Highlights)
   ========================================= */
.rainbow-border {
    padding: 2px;
    background: linear-gradient(90deg, #ff4081, #e040fb, #7c4dff, #ff4081);
    border-radius: 18px;
    margin-bottom: 2rem;
    animation: rainbow 8s linear infinite;
    background-size: 300%;
    box-shadow: 0 0 20px rgba(255, 64, 129, 0.4);
}
@keyframes rainbow {
    0% {
        background-position: 0%;
    }
    100% {
        background-position: 300%;
    }
}

#highlight-day .highlight-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 15px;

    /* Lighter inner background for the list */
    background: rgba(40, 5, 15, 0.4);
    border-radius: 16px;
}

.event-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    width: 165px;
    aspect-ratio: 3 / 4;
}
.event-card:hover {
    transform: scale(1.08) translateY(-5px);
    border-color: #ff80ab;
    box-shadow: 0 10px 30px rgba(255, 64, 129, 0.5);
    z-index: 10;
}
.event-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: 0.3s;
}
.event-card:hover img {
    opacity: 1;
}

.event-tooltip {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(20, 5, 10, 0.9);
    padding: 12px;
    transform: translateY(100%);
    transition: 0.3s ease-out;
    border-top: 2px solid #ff4081;
}
.event-card:hover .event-tooltip {
    transform: translateY(0);
}
.event-tooltip h4 {
    margin: 0 0 4px 0;
    color: #ff80ab;
    font-size: 0.9rem;
    font-weight: bold;
}
.event-tooltip p {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.3;
    color: #fff;
}

/* =========================================
   6. MAIN GRID & LISTS
   ========================================= */
.main-grid {
    display: grid;
    gap: 40px;
    grid-template-columns: 1fr 400px;
    align-items: start;
}

.day-card {
    padding: 2rem;
}
.day-card h2 {
    color: #ff80ab;
    border-bottom: 2px solid rgba(255, 128, 171, 0.3);
    padding-bottom: 10px;
    margin-top: 0;
    font-size: 1.8rem;
    text-shadow: 0 0 10px rgba(255, 128, 171, 0.3);
}

.event-table {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.event-table-row {
    background-color: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}
.event-table-row:hover {
    transform: translateX(5px);
    border-color: #ff4081;
    background-color: rgba(255, 64, 129, 0.15);
}

.event-table-link {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
    text-decoration: none;
    color: inherit;
}
.event-table-image {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    object-fit: cover;
}
.event-table-info h4 {
    margin: 0 0 6px 0;
    font-size: 1.3rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
.event-table-time {
    color: #ff80ab;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    display: block;
}

/* =========================================
   7. QR CODE & SOCIALS
   ========================================= */

/* Birthdays table + other text pages */
#Geburtstage,
#birthday-wrapper,
#birthday-status {
    text-align: left;
    margin-left: clamp(12px, 4vw, 48px);
}
#birthday-wrapper {
    overflow-x: auto;
}
#watchtime,
#Watchtime,
#watchtime-status {
    text-align: left;
    margin-left: clamp(12px, 4vw, 48px);
}
#watchtime-wrapper {
    margin-left: auto;
    margin-right: auto;
    overflow-x: auto;
}
.wt-col-username input::placeholder {
    color: #000;
    opacity: 0.7;
    text-align: center;
}
.wt-search-wrap {
    width: 100%;
    justify-content: center;
}
.wt-search-input {
    width: 100%;
    max-width: 200px;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-appearance: none;
    position: relative;
    z-index: 1;
}
.wt-col-username input::placeholder,
.wt-col-username #birthday-search-input::placeholder,
#birthday-search-input::placeholder {
    color: #000;
    opacity: 0.8;
    text-align: center;
}
.wt-loader,
#watchtime-search-icon {
    pointer-events: none;
}
.wt-loader {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-top-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    animation: wt-spin 0.8s linear infinite;
    display: none;
}
.wt-status-error {
    color: #ff1744;
}

@keyframes wt-spin {
    to {
        transform: rotate(360deg);
    }
}
.wt-col-index,
.wt-col-username,
.wt-col-status,
.wt-col-months,
.wt-col-days,
.wt-col-hours,
.wt-col-minutes {
    white-space: nowrap;
}
.wt-highlight {
    background: rgba(255, 64, 129, 0.15);
}
.wt-metric-picker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
}
.wt-metric-select {
    display: none;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    padding: 4px 8px;
    color: #000;
    font-weight: 600;
    cursor: pointer;
}

@media (max-width: 900px) {
    .wt-col-months,
    .wt-col-hours,
    .wt-col-minutes {
        display: none;
    }
    #watchtime-table th,
    #watchtime-table td {
        padding: 5px 8px !important;
        font-size: 0.9rem;
    }
    .wt-metric-label {
        display: none;
    }
    .wt-metric-select {
        display: block;
    }
}

@media (max-width: 640px) {
    #watchtime-table th,
    #watchtime-table td {
        padding: 3px 5px !important;
        font-size: 0.8rem;
    }
    .wt-metric-select {
        font-size: 0.9rem;
    }
}

@media (max-width: 780px) {
    #Geburtstage,
    #watchtime,
    #birthday-status,
    #watchtime-status,
    #birthday-wrapper,
    #watchtime-wrapper {
        margin-left: 0;
        margin-right: 0;
        padding-left: 12px;
        padding-right: 12px;
        width: 100%;
        max-width: 100%;
    }

    #birthday-wrapper table,
    #watchtime-wrapper table {
        min-width: 100%;
    }

    #birthday-table th,
    #birthday-table td {
        padding: 8px 12px !important;
        font-size: 1rem;
    }

    #birthday-search-input,
    #watchtime-search-input {
        width: 100%;
        max-width: 240px;
    }
}

@media (max-width: 560px) {
    #birthday-table th,
    #birthday-table td {
        padding: 6px 10px !important;
        font-size: 0.95rem;
    }
}

/* QR CODE CONTAINER -> LIGHT GLASS (Transparent/White Vibe) */
.qr-code-link {
    background-color: rgba(184, 184, 184, 0.07);
    border: 1px solid rgba(255, 128, 171, 0.3);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);

    border-radius: 50px;

    padding: 12px;
    display: block;
    margin-bottom: 1.5rem;
    transition: 0.3s;
}

.qr-code-link:hover {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: #ff80ab;
    transform: translateY(-5px);
}

.qr-code-link img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    margin: 0 auto;
    opacity: 0.9;
}

/* SOCIAL ICONS -> ORIGINAL BRAND COLORS */
.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.social-links a i {
    background-color: rgba(15, 2, 5, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: none !important;

    border-radius: 50% !important;
    width: 50px !important;
    height: 50px !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5) !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 24px !important;
    transition: all 0.3s ease !important;
}

/* Twitch (Lila) */
.social-links .fa-twitch {
    color: #9146ff !important;
}
.social-links a:hover .fa-twitch {
    background-color: #9146ff !important;
    color: #fff !important;
    box-shadow: 0 0 20px rgba(145, 70, 255, 0.6) !important;
    border-color: #9146ff !important;
}

/* Instagram (Pink-Rot) */
.social-links .fa-instagram {
    color: #e4405f !important;
}
.social-links a:hover .fa-instagram {
    background-color: #e4405f !important;
    color: #fff !important;
    box-shadow: 0 0 20px rgba(228, 64, 95, 0.6) !important;
    border-color: #e4405f !important;
}

/* TikTok (Weiß auf Schwarz) */
.social-links .fa-tiktok {
    color: #fff !important;
}
.social-links a:hover .fa-tiktok {
    background-color: #fff !important;
    color: #000 !important;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.6) !important;
    border-color: #fff !important;
}

/* YouTube (Rot) */
.social-links .fa-youtube {
    color: #ff0000 !important;
}
.social-links a:hover .fa-youtube {
    background-color: #ff0000 !important;
    color: #fff !important;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.6) !important;
    border-color: #ff0000 !important;
}

/* Discord (Blurple) */
.social-links .fa-discord {
    color: #5865f2 !important;
}
.social-links a:hover .fa-discord {
    background-color: #5865f2 !important;
    color: #fff !important;
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.6) !important;
    border-color: #5865f2 !important;
}

/* Genereller Hover Effekt */
.social-links a:hover i {
    transform: scale(1.15) rotate(5deg) !important;
}

/* =========================================
   8. COOKIE & MOBILE
   ========================================= */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: min(90%, 800px);
    background: rgba(30, 5, 10, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid #d81b60;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    z-index: 200;
    padding: 1.5rem;
}
.cookie-banner.hidden {
    display: none;
}
.cookie-banner-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.cookie-btn-accept {
    background: #d81b60;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
}

@media (max-width: 1024px) {
    body {
        padding-top: 0 !important;
    }
    .site-header {
        position: relative !important;
        height: auto;
        padding: 1rem 0;
        background: rgba(30, 5, 10, 0.95);
    }
    .site-header {
        padding: 0.75rem 0;
    }
    .site-header .header-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    .header-left {
        flex-direction: row;
        gap: 0.75rem;
        flex-wrap: wrap;
        align-items: center;
    }
    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.6rem;
    }
    .main-nav a {
        padding: 0.5rem 0.9rem;
        font-size: 0.85rem;
        text-align: center;
    }
    .stream-wrapper {
        display: flex;
        flex-direction: column;
        height: auto;
    }
    .stream-chat {
        width: 100%;
        height: auto;
    }
    .main-grid {
        grid-template-columns: 1fr;
    }
    #right-column {
        order: 2;
    }
    .event-table-link {
        flex-direction: column;
        text-align: center;
    }
    #highlight-day .highlight-cards {
        justify-content: center;
    }
    .event-card {
        width: 140px;
    }
}

@media (max-width: 780px) {
    .stream-wrapper,
    #twitch-consent {
        display: none !important;
    }
}

@media (max-width: 640px) {
    .site-header {
        padding: 0.75rem 0;
    }
    .site-header .enoflix-title h1 {
        font-size: 2.6rem;
    }
    .site-header .header-inner {
        position: relative;
        gap: 0.6rem;
    }
    .header-left {
        gap: 0.6rem;
        justify-content: center;
        width: 100%;
    }
    .main-nav {
        width: 100%;
        justify-content: center;
    }
    .main-nav a {
        flex: 1 0 auto;
        padding: 0.45rem 0.75rem;
    }
    #auth-area {
        position: absolute;
        right: 12px;
        top: 8px;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    #twitch-login-btn {
        padding: 0.35rem 0.65rem;
        font-size: 0.78rem;
        line-height: 1.2;
    }
    footer,
    .site-footer {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    footer a,
    .site-footer a {
        display: inline-block;
        width: auto;
    }
}

/* =========================================
   9. CHAT HEIGHT FIX (Zwingt den Chat auf volle Größe)
   ========================================= */
.stream-chat iframe,
.stream-chat .chat-zoom-wrap {
    height: 100% !important;
    width: 100% !important;
    display: block !important;
    border: none !important;
}

/* =========================================
   10. MINI FOOTER (Bottom Bar)
   ========================================= */
footer,
.site-footer {
    background-color: rgba(13, 2, 4, 0.98);
    border-top: 1px solid rgba(255, 64, 129, 0.3);

    padding: 15px 0;
    width: 100%;

    /* Sticky Footer: drückt den Footer ans Seitenende */
    margin-top: auto;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;

    position: relative;
    z-index: 10;
}

footer .container,
.site-footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
}

footer a,
.site-footer a {
    color: #ffc1e3;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    opacity: 0.8;
}

footer a:hover,
.site-footer a:hover {
    color: #ffffff;
    opacity: 1;
    text-shadow: 0 0 10px rgba(216, 27, 96, 0.8);
    transform: translateY(-2px);
}
