/* Minecraft Style Server Status - Exact Launcher Style */
.minecraft-server-status {
    background-image: url('../../dirtbg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: none;
    border-radius: 2px;
    /* Kontinuierliche Skalierung: Padding wächst mit Viewport */
    padding: clamp(6px, 1.5vw, 12px) clamp(8px, 2vw, 12px);
    margin: 1.5rem 0;
    text-align: left;
    font-family: 'Minecraft', 'Courier New', monospace;
    position: relative;
    box-shadow: none;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    /* Kontinuierliche Skalierung: Gap wächst mit Viewport */
    gap: clamp(6px, 1.8vw, 12px);
    overflow: hidden;
    cursor: pointer;
}

/* Plasma-Funken-Effekt um den Container - Tanzende Funken */
.minecraft-server-status::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 2px;
    pointer-events: none;
    z-index: 1;
    background: 
        /* Obere Kante - mehrere Funken */
        radial-gradient(circle at 10% 0, rgba(100, 200, 255, 0.9) 0%, rgba(100, 200, 255, 0.9) 0.5px, transparent 0.5px),
        radial-gradient(circle at 30% 0, rgba(120, 210, 255, 0.8) 0%, rgba(120, 210, 255, 0.8) 0.5px, transparent 0.5px),
        radial-gradient(circle at 50% 0, rgba(100, 200, 255, 0.9) 0%, rgba(100, 200, 255, 0.9) 0.5px, transparent 0.5px),
        radial-gradient(circle at 70% 0, rgba(150, 220, 255, 0.85) 0%, rgba(150, 220, 255, 0.85) 0.5px, transparent 0.5px),
        radial-gradient(circle at 90% 0, rgba(100, 200, 255, 0.9) 0%, rgba(100, 200, 255, 0.9) 0.5px, transparent 0.5px),
        /* Rechte Kante */
        radial-gradient(circle at 100% 20%, rgba(120, 210, 255, 0.8) 0%, rgba(120, 210, 255, 0.8) 0.5px, transparent 0.5px),
        radial-gradient(circle at 100% 50%, rgba(100, 200, 255, 0.9) 0%, rgba(100, 200, 255, 0.9) 0.5px, transparent 0.5px),
        radial-gradient(circle at 100% 80%, rgba(150, 220, 255, 0.85) 0%, rgba(150, 220, 255, 0.85) 0.5px, transparent 0.5px),
        /* Untere Kante */
        radial-gradient(circle at 15% 100%, rgba(100, 200, 255, 0.9) 0%, rgba(100, 200, 255, 0.9) 0.5px, transparent 0.5px),
        radial-gradient(circle at 40% 100%, rgba(120, 210, 255, 0.8) 0%, rgba(120, 210, 255, 0.8) 0.5px, transparent 0.5px),
        radial-gradient(circle at 65% 100%, rgba(150, 220, 255, 0.85) 0%, rgba(150, 220, 255, 0.85) 0.5px, transparent 0.5px),
        radial-gradient(circle at 85% 100%, rgba(100, 200, 255, 0.9) 0%, rgba(100, 200, 255, 0.9) 0.5px, transparent 0.5px),
        /* Linke Kante */
        radial-gradient(circle at 0% 25%, rgba(150, 220, 255, 0.85) 0%, rgba(150, 220, 255, 0.85) 0.5px, transparent 0.5px),
        radial-gradient(circle at 0% 60%, rgba(120, 210, 255, 0.8) 0%, rgba(120, 210, 255, 0.8) 0.5px, transparent 0.5px),
        radial-gradient(circle at 0% 90%, rgba(100, 200, 255, 0.9) 0%, rgba(100, 200, 255, 0.9) 0.5px, transparent 0.5px);
    background-size: 100% 1px, 100% 1px, 100% 1px, 100% 1px, 100% 1px, 1px 100%, 1px 100%, 1px 100%, 100% 1px, 100% 1px, 100% 1px, 100% 1px, 1px 100%, 1px 100%, 1px 100%;
    background-position: 
        0 0, 0 0, 0 0, 0 0, 0 0,
        100% 0, 100% 0, 100% 0,
        0 100%, 0 100%, 0 100%, 0 100%,
        0 0, 0 0, 0 0;
    background-repeat: no-repeat;
    animation: plasmaDance 4s ease-in-out infinite;
    filter: blur(0.5px);
    box-shadow: 
        0 0 4px rgba(100, 200, 255, 0.5),
        inset 0 0 4px rgba(100, 200, 255, 0.3);
}

.minecraft-server-status::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 2px;
    pointer-events: none;
    z-index: 1;
    background: 
        /* Obere Kante - andere Funken */
        radial-gradient(circle at 5% 0, rgba(150, 220, 255, 0.85) 0%, rgba(150, 220, 255, 0.85) 0.5px, transparent 0.5px),
        radial-gradient(circle at 25% 0, rgba(100, 200, 255, 0.9) 0%, rgba(100, 200, 255, 0.9) 0.5px, transparent 0.5px),
        radial-gradient(circle at 55% 0, rgba(120, 210, 255, 0.8) 0%, rgba(120, 210, 255, 0.8) 0.5px, transparent 0.5px),
        radial-gradient(circle at 75% 0, rgba(150, 220, 255, 0.85) 0%, rgba(150, 220, 255, 0.85) 0.5px, transparent 0.5px),
        radial-gradient(circle at 95% 0, rgba(100, 200, 255, 0.9) 0%, rgba(100, 200, 255, 0.9) 0.5px, transparent 0.5px),
        /* Rechte Kante */
        radial-gradient(circle at 100% 15%, rgba(100, 200, 255, 0.9) 0%, rgba(100, 200, 255, 0.9) 0.5px, transparent 0.5px),
        radial-gradient(circle at 100% 45%, rgba(150, 220, 255, 0.85) 0%, rgba(150, 220, 255, 0.85) 0.5px, transparent 0.5px),
        radial-gradient(circle at 100% 75%, rgba(120, 210, 255, 0.8) 0%, rgba(120, 210, 255, 0.8) 0.5px, transparent 0.5px),
        /* Untere Kante */
        radial-gradient(circle at 20% 100%, rgba(120, 210, 255, 0.8) 0%, rgba(120, 210, 255, 0.8) 0.5px, transparent 0.5px),
        radial-gradient(circle at 45% 100%, rgba(100, 200, 255, 0.9) 0%, rgba(100, 200, 255, 0.9) 0.5px, transparent 0.5px),
        radial-gradient(circle at 70% 100%, rgba(150, 220, 255, 0.85) 0%, rgba(150, 220, 255, 0.85) 0.5px, transparent 0.5px),
        radial-gradient(circle at 90% 100%, rgba(120, 210, 255, 0.8) 0%, rgba(120, 210, 255, 0.8) 0.5px, transparent 0.5px),
        /* Linke Kante */
        radial-gradient(circle at 0% 30%, rgba(100, 200, 255, 0.9) 0%, rgba(100, 200, 255, 0.9) 0.5px, transparent 0.5px),
        radial-gradient(circle at 0% 55%, rgba(150, 220, 255, 0.85) 0%, rgba(150, 220, 255, 0.85) 0.5px, transparent 0.5px),
        radial-gradient(circle at 0% 85%, rgba(120, 210, 255, 0.8) 0%, rgba(120, 210, 255, 0.8) 0.5px, transparent 0.5px);
    background-size: 100% 1px, 100% 1px, 100% 1px, 100% 1px, 100% 1px, 1px 100%, 1px 100%, 1px 100%, 100% 1px, 100% 1px, 100% 1px, 100% 1px, 1px 100%, 1px 100%, 1px 100%;
    background-position: 
        0 0, 0 0, 0 0, 0 0, 0 0,
        100% 0, 100% 0, 100% 0,
        0 100%, 0 100%, 0 100%, 0 100%,
        0 0, 0 0, 0 0;
    background-repeat: no-repeat;
    animation: plasmaDance 3.5s ease-in-out infinite reverse;
    filter: blur(0.5px);
    box-shadow: 
        0 0 5px rgba(150, 220, 255, 0.6),
        inset 0 0 5px rgba(150, 220, 255, 0.4);
}

@keyframes plasmaDance {
    0% {
        opacity: 0.4;
        transform: scale(1);
    }
    10% {
        opacity: 0.7;
    }
    20% {
        opacity: 1;
        transform: scale(1.01);
    }
    30% {
        opacity: 0.9;
    }
    40% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
    }
    60% {
        opacity: 0.9;
        transform: scale(1.005);
    }
    70% {
        opacity: 1;
    }
    80% {
        opacity: 0.7;
        transform: scale(1);
    }
    90% {
        opacity: 0.5;
    }
    100% {
        opacity: 0.4;
        transform: scale(1);
    }
}

.server-logo {
    /* Kontinuierliche Skalierung: Logo wächst mit Viewport */
    width: clamp(56px, 12vw, 72px);
    height: clamp(56px, 12vw, 72px);
    border-radius: 0;
    background: none;
    border: none;
    box-shadow: none;
    flex-shrink: 0;
    object-fit: cover;
}

.server-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: auto;
}

.server-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: clamp(4px, 1vw, 6px);
}

.server-name {
    color: #ffffff;
    /* Kontinuierliche Skalierung: Font wächst mit Viewport */
    font-size: clamp(0.65rem, 2.2vw, 1rem);
    font-weight: normal;
    font-family: 'Minecraft', 'Courier New', monospace;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    margin: 0;
}

.player-count {
    color: #aaaaaa;
    /* Kontinuierliche Skalierung: Font wächst mit Viewport */
    font-size: clamp(0.58rem, 1.9vw, 0.9rem);
    font-family: 'Minecraft', 'Courier New', monospace;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    margin: 0;
}

.server-stats {
    display: none; /* Im MC Launcher nicht vorhanden */
}

.ping-indicator {
    display: flex;
    align-items: center;
}

.ping-bars {
    display: flex;
    gap: 1px;
}

.ping-bar {
    width: 2px;
    height: 8px;
    background: #666;
    border-radius: 0;
    transition: all 0.2s ease;
}

.ping-bar.active {
    background: #00ff88;
}

.ping-bar.good {
    background: #8a9cff;
}

.ping-bar.medium {
    background: #ffaa00;
}

.ping-bar.bad {
    background: #ff5555;
}

.motd-container {
    margin-top: 2px;
    padding-left: 0;
    cursor: pointer;
    position: relative;
}

.motd-line {
    color: #ffffff;
    /* Kontinuierliche Skalierung: Font wächst mit Viewport - KEINE Media Queries mehr */
    font-size: clamp(0.38rem, 1.8vw, 0.85rem) !important;
    line-height: 1.3;
    margin-bottom: 2px;
    word-wrap: break-word;
    font-family: 'Minecraft', 'Courier New', monospace;
    white-space: pre; /* Exakte Formatierung wie im MC Launcher */
    overflow-wrap: break-word;
    text-align: left; /* Linksbündig wie im Original */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8); /* Text lesbar machen */
    position: relative;
    z-index: 1;
}

/* Mobile: Nur Layout-Anpassungen - KEINE Größen-Überschreibungen mehr */
@media (max-width: 768px) {
    .minecraft-server-status {
        max-width: 100%;
    }
    
    .server-logo {
        border-radius: 0;
    }
    
    .server-content {
        min-width: 0;
        flex: 1;
    }
    
    .motd-container {
        min-width: 0;
        overflow: visible;
    }
    
    .ping-bar {
        width: clamp(1px, 0.3vw, 2px);
        height: clamp(5px, 1.5vw, 8px);
    }
}

.motd-line:last-child {
    margin-bottom: 0;
}

/* Kopier-Feedback Animation */
.minecraft-server-status.copied {
    box-shadow: 0 0 0 0 rgba(138, 156, 255, 0.35), 0 0 18px 6px rgba(138, 156, 255, 0.15);
    transition: box-shadow 0.25s ease;
}

.motd-container:hover .motd-line {
    filter: brightness(1.08);
}

.copy-toast {
    position: absolute;
    right: 12px;
    bottom: 10px;
    background: rgba(30, 32, 45, 0.95);
    border: 1px solid rgba(138, 156, 255, 0.3);
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 0.8rem;
    color: #e6e8ff;
    pointer-events: none;
    opacity: 0;
    transform: translateY(6px);
    animation: toast-in 0.18s ease forwards, toast-out 0.35s ease 1.25s forwards;
}

.copy-toast.error { border-color: rgba(255, 85, 85, 0.5); color: #ffd9d9; }

@keyframes toast-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes toast-out {
    to { opacity: 0; transform: translateY(6px); }
}

/* Overlay-Blur beim Kopieren */
.minecraft-server-status.copy-blur .server-content,
.minecraft-server-status.copy-blur .server-logo {
    filter: blur(3px) brightness(0.9);
    transform: scale(0.995);
    transition: filter 0.15s ease, transform 0.15s ease;
}

.copy-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 12, 20, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}
.copy-overlay.visible { opacity: 1; }

.copy-overlay-text {
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    font-size: 1rem;
    color: #55FF55;
    text-shadow: 0 0 12px rgba(85, 255, 85, 0.35);
    font-weight: 700;
}

/* Brand Headline (OptixMC) – moderne große Minecraft-Schrift */
.brand-title {
    font-family: 'Minecraft', 'Courier New', monospace;
    font-size: 2.8rem;
    line-height: 1.1;
    letter-spacing: 1px;
    color: #e9ecff;
    text-align: center;
    margin: 1.2rem 0 1.6rem 0;
    text-shadow: 0 0 28px rgba(138, 156, 255, 0.45), 0 2px 0 rgba(0,0,0,0.45);
}

/* Minecraft Farben - Exakte Launcher-Farben */
.mc-black { color: #000000; }
.mc-dark-blue { color: #0000AA; }
.mc-dark-green { color: #00AA00; }
.mc-dark-aqua { color: #00AAAA; }
.mc-dark-red { color: #AA0000; }
.mc-dark-purple { color: #AA00AA; }
.mc-gold { color: #FFAA00; }
.mc-gray { color: #AAAAAA; }
.mc-dark-gray { color: #555555; }
.mc-blue { color: #5555FF; }
.mc-green { color: #55FF55; }
.mc-aqua { color: #55FFFF; }
.mc-red { color: #FF5555; }
.mc-light-purple { color: #FF55FF; }
.mc-yellow { color: #FFFF55; }
.mc-white { color: #FFFFFF; }

/* Minecraft Gradient Farben - Exakt wie im Launcher */
.mc-gradient-red { background: linear-gradient(45deg, #FF5555, #FF0000); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.mc-gradient-orange { background: linear-gradient(45deg, #FFAA00, #FF8800); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.mc-gradient-yellow { background: linear-gradient(45deg, #FFFF55, #FFFF00); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.mc-gradient-green { background: linear-gradient(45deg, #55FF55, #00FF00); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.mc-gradient-aqua { background: linear-gradient(45deg, #55FFFF, #00FFFF); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.mc-gradient-blue { background: linear-gradient(45deg, #5555FF, #0000FF); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.mc-gradient-purple { background: linear-gradient(45deg, #FF55FF, #FF00FF); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.mc-gradient-pink { background: linear-gradient(45deg, #FF88FF, #FF44FF); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.mc-gradient-gold { background: linear-gradient(45deg, #FFD700, #FFAA00); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.mc-gradient-rainbow { 
    background: linear-gradient(45deg, #FF0000, #FF7F00, #FFFF00, #00FF00, #0000FF, #4B0082, #9400D3); 
    background-size: 200% 200%;
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    background-clip: text;
    animation: rainbow 2s ease-in-out infinite;
}

@keyframes rainbow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Minecraft Styles */
.mc-bold { font-weight: bold; }
.mc-italic { font-style: italic; }
.mc-underlined { text-decoration: underline; }
.mc-strikethrough { text-decoration: line-through; }
.mc-obfuscated { animation: obf 1s infinite steps(10); }

@keyframes obf {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* Server status indicators */
.server-offline .server-icon {
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
    border-color: rgba(102, 102, 102, 0.3);
    box-shadow: 0 0 8px rgba(102, 102, 102, 0.2);
}

.server-offline .server-name {
    color: #888;
}

.server-offline .player-count {
    color: #666;
}

/* Loading animation */
.server-loading {
    opacity: 0.7;
}

.server-loading .server-icon {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Responsive design - Nur Layout, KEINE Größen-Überschreibungen */
@media (max-width: 768px) {
    .server-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: clamp(6px, 1.5vw, 8px);
    }
} 