/* Modernes Overlay Design 2024 - Fresh & Clean */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

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

body {
    width: 1920px;
    height: 1080px;
    background: transparent;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Logo - Modern mit Glow-Effekt */
.logo-container {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 100;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.3));
}

.logo {
    height: 72px;
    width: auto;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.2));
}

.logo:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 8px 32px rgba(255, 107, 53, 0.4));
}

/* Webcam Frame - Ultra modern mit Neon-Akzent */
.webcam-frame {
    position: absolute;
    bottom: 24px;
    right: 24px;
    width: 380px;
    height: 285px;
    z-index: 50;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(15, 15, 25, 0.8) 0%, rgba(25, 25, 40, 0.9) 100%);
    backdrop-filter: blur(30px) saturate(180%);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 0 40px rgba(255, 107, 53, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.webcam-frame:hover {
    box-shadow: 
        0 24px 72px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 0 60px rgba(255, 107, 53, 0.25);
    transform: translateY(-2px);
}

.webcam-content {
    width: 100%;
    height: 100%;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
}

/* Live Badge - Modern mit Glitch-Effekt */
.live-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #ff3366 0%, #ff0040 50%, #cc0033 100%);
    border-radius: 50px;
    z-index: 100;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 24px rgba(255, 51, 102, 0.4),
        0 0 20px rgba(255, 51, 102, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: liveGlow 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

.live-badge:hover {
    transform: scale(1.05);
    box-shadow: 
        0 12px 32px rgba(255, 51, 102, 0.5),
        0 0 30px rgba(255, 51, 102, 0.4);
}

.live-dot {
    width: 10px;
    height: 10px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 
        0 0 12px rgba(255, 255, 255, 1),
        0 0 24px rgba(255, 255, 255, 0.6);
    animation: dotPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    position: relative;
}

.live-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #ffffff;
    animation: ripple 2s ease-out infinite;
}

.live-text {
    color: #ffffff;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    font-feature-settings: "liga" 1, "kern" 1;
}

/* Social Links - Modern mit Hover-Animationen */
.social-links {
    position: absolute;
    bottom: 24px;
    left: 24px;
    display: flex;
    gap: 12px;
    z-index: 50;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: linear-gradient(145deg, rgba(20, 20, 30, 0.9) 0%, rgba(15, 15, 25, 0.95) 100%);
    backdrop-filter: blur(30px) saturate(180%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 20px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 107, 53, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.social-link:hover::before {
    width: 200%;
    height: 200%;
}

.social-link:hover {
    background: linear-gradient(145deg, rgba(255, 107, 53, 0.9) 0%, rgba(255, 80, 30, 0.95) 100%);
    border-color: rgba(255, 107, 53, 0.8);
    transform: translateY(-4px) scale(1.08);
    box-shadow: 
        0 16px 40px rgba(255, 107, 53, 0.5),
        0 0 30px rgba(255, 107, 53, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    color: #ffffff;
}

.social-link-minimal {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(145deg, rgba(20, 20, 30, 0.85) 0%, rgba(15, 15, 25, 0.9) 100%);
    backdrop-filter: blur(25px) saturate(180%);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.social-link-minimal:hover {
    background: linear-gradient(145deg, rgba(255, 107, 53, 0.85) 0%, rgba(255, 80, 30, 0.9) 100%);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 32px rgba(255, 107, 53, 0.4);
}

/* Chat Widget - Ultra modern */
.chat-widget {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 360px;
    max-height: 600px;
    z-index: 50;
    display: none;
    background: linear-gradient(145deg, rgba(15, 15, 25, 0.85) 0%, rgba(20, 20, 35, 0.9) 100%);
    backdrop-filter: blur(30px) saturate(180%);
    border-radius: 20px;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    overflow: hidden;
}

.chat-widget-large {
    width: 440px;
    max-height: 700px;
}

.chat-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.25) 0%, rgba(255, 80, 30, 0.15) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.chat-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.chat-messages {
    padding: 16px;
    max-height: 560px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(0, 0, 0, 0.2);
}

.chat-widget-large .chat-messages {
    max-height: 660px;
    padding: 20px;
    gap: 10px;
}

.chat-message {
    padding: 10px 14px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 14px;
    line-height: 1.6;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.chat-message:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.08) 100%);
    border-left-color: rgba(255, 107, 53, 0.8);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.chat-message .username {
    font-weight: 700;
    color: #ff6b35;
    margin-right: 8px;
    text-shadow: 0 1px 4px rgba(255, 107, 53, 0.5);
}

/* Alert Container - Modern */
.alert-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 200;
    pointer-events: none;
}

.alert {
    padding: 32px 56px;
    background: linear-gradient(145deg, rgba(10, 10, 20, 0.98) 0%, rgba(20, 20, 35, 0.98) 100%);
    backdrop-filter: blur(30px) saturate(180%);
    border-radius: 24px;
    border: 2px solid rgba(255, 107, 53, 0.6);
    color: #ffffff;
    font-size: 32px;
    font-weight: 800;
    text-align: center;
    box-shadow: 
        0 24px 80px rgba(0, 0, 0, 0.9),
        0 0 40px rgba(255, 107, 53, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    animation: alertPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
}

.alert-icon {
    font-size: 40px;
    line-height: 1;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

.alert-message {
    flex: 1;
}

/* Individuelle Alert-Styles */
.alert-follower {
    border-color: rgba(145, 70, 255, 0.8);
    box-shadow: 
        0 24px 80px rgba(0, 0, 0, 0.9),
        0 0 40px rgba(145, 70, 255, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    background: linear-gradient(145deg, rgba(20, 10, 30, 0.98) 0%, rgba(30, 15, 45, 0.98) 100%);
}

.alert-subscriber {
    border-color: rgba(255, 215, 0, 0.8);
    box-shadow: 
        0 24px 80px rgba(0, 0, 0, 0.9),
        0 0 40px rgba(255, 215, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    background: linear-gradient(145deg, rgba(30, 25, 10, 0.98) 0%, rgba(45, 35, 15, 0.98) 100%);
}

.alert-resub {
    border-color: rgba(255, 69, 0, 0.8);
    box-shadow: 
        0 24px 80px rgba(0, 0, 0, 0.9),
        0 0 50px rgba(255, 69, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    background: linear-gradient(145deg, rgba(30, 15, 10, 0.98) 0%, rgba(45, 20, 15, 0.98) 100%);
    animation: alertPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), resubGlow 2s ease-in-out infinite;
}

.alert-bits {
    border-color: rgba(0, 191, 255, 0.8);
    box-shadow: 
        0 24px 80px rgba(0, 0, 0, 0.9),
        0 0 40px rgba(0, 191, 255, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    background: linear-gradient(145deg, rgba(10, 20, 30, 0.98) 0%, rgba(15, 30, 45, 0.98) 100%);
}

.alert-hypetrain {
    border-color: rgba(255, 20, 147, 0.8);
    box-shadow: 
        0 24px 80px rgba(0, 0, 0, 0.9),
        0 0 60px rgba(255, 20, 147, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    background: linear-gradient(145deg, rgba(30, 10, 25, 0.98) 0%, rgba(45, 15, 35, 0.98) 100%);
    animation: alertPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), hypeTrainPulse 1.5s ease-in-out infinite;
}

@keyframes resubGlow {
    0%, 100% {
        box-shadow: 
            0 24px 80px rgba(0, 0, 0, 0.9),
            0 0 50px rgba(255, 69, 0, 0.6),
            0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    }
    50% {
        box-shadow: 
            0 24px 80px rgba(0, 0, 0, 0.9),
            0 0 70px rgba(255, 69, 0, 0.8),
            0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    }
}

@keyframes hypeTrainPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 
            0 24px 80px rgba(0, 0, 0, 0.9),
            0 0 60px rgba(255, 20, 147, 0.6),
            0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    }
    50% {
        transform: scale(1.02);
        box-shadow: 
            0 24px 80px rgba(0, 0, 0, 0.9),
            0 0 80px rgba(255, 20, 147, 0.8),
            0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    }
}

/* Scrollbar - Modern */
.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.8) 0%, rgba(255, 80, 30, 0.8) 100%);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, rgba(255, 107, 53, 1) 0%, rgba(255, 80, 30, 1) 100%);
}

/* Animationen - Modern */
@keyframes liveGlow {
    0%, 100% {
        box-shadow: 
            0 8px 24px rgba(255, 51, 102, 0.4),
            0 0 20px rgba(255, 51, 102, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 
            0 12px 32px rgba(255, 51, 102, 0.6),
            0 0 30px rgba(255, 51, 102, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
}

@keyframes dotPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(0.95);
    }
}

@keyframes ripple {
    0% {
        width: 0;
        height: 0;
        opacity: 0.8;
    }
    100% {
        width: 300%;
        height: 300%;
        opacity: 0;
    }
}

@keyframes alertPop {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.7) rotate(-10deg);
    }
    60% {
        transform: translate(-50%, -50%) scale(1.08) rotate(3deg);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
    }
}

/* Start/Ende/Pause - Modern gestylt */
.start-container,
.ende-container,
.pause-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    background: linear-gradient(135deg, rgba(10, 10, 20, 0.95) 0%, rgba(20, 20, 40, 0.98) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    position: relative;
    overflow: hidden;
}

.start-container::before,
.ende-container::before,
.pause-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.logo-large .logo,
.logo-large .logo-animated {
    height: 200px;
    width: auto;
    filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.6));
    animation: logoFloat 4s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.welcome-title,
.goodbye-title,
.pause-title {
    font-size: 64px;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    letter-spacing: 3px;
    position: relative;
    z-index: 1;
    animation: textGlow 3s ease-in-out infinite;
}

@keyframes textGlow {
    0%, 100% {
        filter: drop-shadow(0 4px 20px rgba(255, 255, 255, 0.3));
    }
    50% {
        filter: drop-shadow(0 8px 40px rgba(255, 107, 53, 0.5));
    }
}

.welcome-subtitle,
.goodbye-subtitle,
.pause-subtitle {
    font-size: 28px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
    position: relative;
    z-index: 1;
    letter-spacing: 1px;
}

.loading-animation {
    display: flex;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.loading-dot {
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c5a 100%);
    border-radius: 50%;
    animation: loadingBounce 1.6s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    box-shadow: 
        0 0 20px rgba(255, 107, 53, 0.8),
        0 4px 12px rgba(255, 107, 53, 0.4);
}

.loading-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes loadingBounce {
    0%, 80%, 100% {
        transform: scale(0.8) translateY(0);
        opacity: 0.7;
    }
    40% {
        transform: scale(1.3) translateY(-8px);
        opacity: 1;
    }
}

.pause-icon {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.pause-bar {
    width: 14px;
    height: 70px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c5a 50%, #ff6b35 100%);
    border-radius: 8px;
    animation: pausePulse 1.8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    box-shadow: 
        0 8px 24px rgba(255, 107, 53, 0.6),
        0 0 20px rgba(255, 107, 53, 0.4);
}

.pause-bar:nth-child(2) {
    animation-delay: 0.25s;
}

@keyframes pausePulse {
    0%, 100% {
        opacity: 0.85;
        transform: scaleY(0.92);
    }
    50% {
        opacity: 1;
        transform: scaleY(1.08);
    }
}

.pause-timer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 40px;
    background: linear-gradient(145deg, rgba(15, 15, 25, 0.8) 0%, rgba(20, 20, 35, 0.9) 100%);
    backdrop-filter: blur(30px) saturate(180%);
    border-radius: 20px;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    position: relative;
    z-index: 1;
}

.timer-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.timer-value {
    font-size: 42px;
    font-weight: 800;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c5a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 4px 16px rgba(255, 107, 53, 0.5);
    letter-spacing: 2px;
}

.social-links-large {
    display: flex;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.social-link-large {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 28px;
    background: linear-gradient(145deg, rgba(20, 20, 30, 0.9) 0%, rgba(15, 15, 25, 0.95) 100%);
    backdrop-filter: blur(30px) saturate(180%);
    border-radius: 16px;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 17px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.social-link-large:hover {
    background: linear-gradient(145deg, rgba(255, 107, 53, 0.9) 0%, rgba(255, 80, 30, 0.95) 100%);
    border-color: rgba(255, 107, 53, 0.8);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
        0 16px 40px rgba(255, 107, 53, 0.5),
        0 0 30px rgba(255, 107, 53, 0.4);
    color: #ffffff;
}

.social-link-large .social-icon {
    font-size: 22px;
}

.stats-container {
    display: flex;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.stat-value {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c5a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 16px rgba(255, 107, 53, 0.5);
    letter-spacing: 1px;
}

.stat-label {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}
