/* Custom styles */
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Inter', sans-serif;
    background-color: #111827; /* bg-gray-900 */
    background-image: 
        radial-gradient(circle at 15% 25%, rgba(59, 130, 246, 0.1), transparent 40%),
        radial-gradient(circle at 85% 75%, rgba(139, 92, 246, 0.1), transparent 40%);
}
.font-minecraft {
    font-family: 'Press Start 2P', cursive;
}
.text-glow {
    text-shadow: 0 0 8px rgba(59, 130, 246, 0.6), 0 0 20px rgba(139, 92, 246, 0.4);
}
.card-bg {
    background-color: rgba(31, 41, 55, 0.5); /* bg-gray-800 with opacity */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.btn-primary {
    transition: all 0.3s ease;
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2), 0 6px 6px rgba(139, 92, 246, 0.2);
}
.feature-card, .mod-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover, .mod-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}
.nav-link {
    transition: color 0.3s ease, border-bottom-color 0.3s ease;
    border-bottom: 2px solid transparent;
    padding-bottom: 4px;
}
.nav-link:hover, .nav-link.active {
    color: #60a5fa; /* text-blue-400 */
    border-bottom-color: #60a5fa;
}
/* Mobile menu nav-links */
#mobile-menu .nav-link {
    border-bottom: none;
    padding-bottom: 0;
    width: 100%;
    transition: background-color 0.2s ease-in-out;
}
#mobile-menu .nav-link.active {
     color: #60a5fa;
     background-color: rgba(59, 130, 246, 0.1);
}
#mobile-menu .nav-link:hover {
    color: #93c5fd; /* text-blue-300 */
    background-color: rgba(59, 130, 246, 0.2);
}

/* Mobile Menu Animation */
#mobile-menu {
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, max-height 0.4s ease-in-out;
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    overflow: hidden;
}
#mobile-menu.open {
    max-height: 500px; /* A value larger than the menu's height */
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Loading Spinner */
.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}
#loading-spinner {
    min-height: 80px; /* Ensure the observer has an element to track */
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Style for MOTD */
#server-motd {
    font-family: 'Minecraftia', 'Press Start 2P', monospace;
    text-shadow: 2px 2px #000000a0;
    line-height: 1.5;
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Animation Classes */
.page {
    display: none; /* Hide pages by default */
}
.page.active {
    display: block; /* Show active page */
}
.animated {
    animation-duration: 0.5s;
    animation-fill-mode: both;
}
.fade-in-up {
    animation-name: fadeInUp;
}
.page-fade-in {
    animation: fadeInUp 0.4s ease-out;
}
.page-fade-out {
    animation: fadeOut 0.4s ease-in;
}