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

:root {
    --bg-dark: #0a0a0f;
    --bg-card: rgba(20, 20, 30, 0.6);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #f8f9fa;
    --text-secondary: #a0a5b5;
    --accent-glow: rgba(99, 102, 241, 0.15);
    
    /* Minecraft themed accent colors */
    --color-primary: #6366f1; /* Modern Indigo */
    --color-success: #10b981; /* Emerald Green */
    --color-error: #ef4444; /* Redstone Red */
    --font-main: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
}

/* Dynamic background glows */
body::before, body::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.4;
}

body::before {
    background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
    top: -100px;
    left: -100px;
}

body::after {
    background: radial-gradient(circle, var(--color-success) 0%, transparent 70%);
    bottom: -100px;
    right: -100px;
}

.container {
    width: 90%;
    max-width: 800px;
    margin: 2rem auto;
    padding: 2.5rem;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.container:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 40px var(--accent-glow);
}

.logo-section {
    margin-bottom: 2rem;
}

.logo-section h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    background: linear-gradient(135deg, #a5b4fc 0%, var(--color-primary) 50%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.logo-section p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 300;
}

/* Status badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    margin-bottom: 2.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--text-secondary);
    box-shadow: 0 0 8px var(--text-secondary);
}

.status-badge.online .status-dot {
    background-color: var(--color-success);
    box-shadow: 0 0 12px var(--color-success);
    animation: pulse 2s infinite;
}

.status-badge.offline .status-dot {
    background-color: var(--color-error);
    box-shadow: 0 0 12px var(--color-error);
}

/* Connection Card */
.connection-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.ip-display {
    font-family: monospace;
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.6rem 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.ip-display:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(99, 102, 241, 0.3);
}

.btn-copy {
    background: linear-gradient(135deg, var(--color-primary) 0%, #4f46e5 100%);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 12px;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-copy:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-copy:active {
    transform: translateY(0);
}

/* Info grid */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

@media (max-width: 600px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
}

.info-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: left;
}

.info-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-card p, .info-card li {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.info-card ul {
    list-style-position: inside;
    margin-top: 0.5rem;
}

.info-card li {
    margin-bottom: 0.4rem;
}

/* Footer / copy status */
.copy-tooltip {
    font-size: 0.85rem;
    color: var(--color-success);
    opacity: 0;
    transition: opacity 0.3s ease;
    height: 15px;
}

.copy-tooltip.show {
    opacity: 1;
}

.footer {
    margin-top: 2rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.2);
}

/* Animations */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}
