:root {
    /* Colors */
    --bg-dark: #070a0f;
    --panel-bg: rgba(15, 20, 25, 0.7);
    --panel-border: rgba(0, 240, 255, 0.2);
    --panel-border-hover: rgba(0, 240, 255, 0.6);
    --primary-neon: #00f0ff;
    --primary-neon-dim: rgba(0, 240, 255, 0.3);
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --success: #10b981;
    --danger: #ef4444;
    
    /* Typography */
    --font-main: 'Outfit', sans-serif;
    --font-heading: 'Tektur', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: linear-gradient(to bottom, rgba(7, 10, 15, 0.5), rgba(7, 10, 15, 0.9)), url('mc_better_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    pointer-events: none;
    animation: slowZoom 40s infinite alternate ease-in-out;
}

@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

/* Glassmorphism Panel Base */
.glass-panel {
    background: var(--panel-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--panel-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    border-radius: 6px; 
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(7, 10, 15, 0.8);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    text-shadow: 0 0 15px var(--primary-neon-dim);
}

.logo-accent {
    color: var(--primary-neon);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--primary-neon);
}

.nav-links a[aria-current="page"] {
    color: var(--primary-neon);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-neon);
    transition: width 0.3s ease;
    box-shadow: 0 0 8px var(--primary-neon);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Main Content */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 8rem 2rem 6rem;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 0 0 20px rgba(0,0,0,0.8);
    animation: floatUp 1s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.text-glow {
    color: var(--primary-neon);
    text-shadow: 0 0 15px var(--primary-neon-dim);
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--text-muted);
    margin-bottom: 4rem;
    max-width: 700px;
    font-weight: 400;
    animation: floatUp 1s ease-out 0.2s forwards;
    opacity: 0;
    transform: translateY(20px);
}

/* Home Server IP Button */
.server-ip-container {
    padding: 0.8rem 1.5rem 0.8rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    animation: floatUp 1s ease-out 0.4s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.server-ip-container:hover {
    transform: translateY(-3px);
    border-color: var(--primary-neon);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(0, 240, 255, 0.15);
}

.ip-label {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.ip-address {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--text-main);
    letter-spacing: 1px;
}

.copy-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.6rem;
    border-radius: 4px;
    color: var(--primary-neon);
    transition: all 0.3s ease;
}

.server-ip-container:hover .copy-icon {
    background: var(--primary-neon);
    color: #000;
    box-shadow: 0 0 15px var(--primary-neon-dim);
}

.copy-toast {
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--primary-neon);
    color: #000;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.copy-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Home Servers Section */
.servers-section {
    width: 100%;
    max-width: 1200px;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 4rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.server-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    width: 100%;
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
}

.card {
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-neon), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--panel-border-hover);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 240, 255, 0.1);
}

.card:hover::before {
    opacity: 1;
}

.card-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.1));
}

.card h3 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: #fff;
    letter-spacing: 1px;
}

.card p {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    flex-grow: 1;
    font-size: 1.1rem;
    line-height: 1.6;
}

.card-status {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(255,255,255,0.05);
}

/* Detail Pages Layout */
.detail-hero {
    min-height: auto;
    padding: 6rem 2rem 3rem;
    align-items: flex-start;
    text-align: left;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.detail-hero .hero-title {
    font-size: 4.5rem;
    margin-bottom: 0.5rem;
}

.detail-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem 4rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2.5rem;
}

@media (max-width: 900px) {
    .detail-container {
        grid-template-columns: 1fr;
    }
}

.detail-main-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.detail-section {
    padding: 3rem;
}

.section-heading {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 1.8rem;
    color: #fff;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-heading::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    background: var(--primary-neon);
    box-shadow: 0 0 10px var(--primary-neon-dim);
}

.detail-section p {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-list li {
    background: rgba(255, 255, 255, 0.02);
    border-left: 2px solid var(--primary-neon);
    padding: 1.2rem 1.5rem;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.feature-list li strong {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 0.3rem;
}

/* Sidebar Widgets */
.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.sidebar-widget {
    padding: 2.5rem;
}

.widget-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 1rem;
}

.widget-text {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.sidebar-link-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.sidebar-link-list a {
    color: var(--primary-neon);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: color 0.2s, text-shadow 0.2s;
}

.sidebar-link-list a:hover {
    color: #fff;
    text-shadow: 0 0 12px var(--primary-neon-dim);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.status-label {
    color: var(--text-main);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.status-note {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.45;
    margin-bottom: 1.5rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.status-dot.green {
    background-color: var(--success);
    box-shadow: 0 0 10px var(--success);
}

.status-dot.red {
    background-color: var(--danger);
    box-shadow: 0 0 10px var(--danger);
}

.status-dot.amber {
    background-color: #f59e0b;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.55);
}

.mini-ip {
    padding: 0.8rem 1rem;
    gap: 1rem;
}

.mini-ip .ip-address {
    font-size: 1.2rem;
}

.rules-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rules-list li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.5;
}

.rules-list li::before {
    content: '■';
    position: absolute;
    left: 0;
    color: var(--danger);
    font-size: 0.8rem;
    top: 4px;
}

/* Footer */
footer {
    width: 100%;
    padding: 3rem 2rem;
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
}

.footer-content p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Animations */
@keyframes floatUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title, .detail-hero .hero-title { font-size: 4rem; }
    .nav-links { display: none; }
    .server-ip-container {
        flex-direction: column;
        padding: 1.5rem;
        gap: 0.8rem;
    }
}
