/* Minecraft Modern Style Core CSS */
:root {
    /* Colors - Modern Launcher Palette */
    --mc-green: #3c8527;
    /* Official Launcher Green */
    --mc-green-light: #52a535;
    --mc-green-dark: #2a641c;

    --mc-bg-dark: #1e1e1e;
    /* Smoother dark background */
    --mc-bg-panel: #313233;
    /* Dark grey panel */

    --mc-text-white: #ffffff;
    --mc-text-grey: #d1d1d1;

    --mc-border-light: #48494a;
    --mc-border-dark: #121212;

    /* Accents */
    --mc-gold: #f1c40f;
    /* Softer gold */
    --mc-red: #e74c3c;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 48px;

    /* Layout */
    --container-width: 1100px;
}

/* Font Definition */
@font-face {
    font-family: 'Alibaba PuHuiTi';
    src: url('../font/阿里巴巴普惠体 2.0 35 Thin.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Alibaba PuHuiTi', 'VT323', monospace;
    /* Keep font for identity */
    background-color: var(--mc-bg-dark);
    /* Subtle noise texture instead of harsh dirt */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    color: var(--mc-text-white);
    font-size: 20px;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

a:hover {
    color: var(--mc-green-light);
}

img {
    max-width: 100%;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: normal;
    color: var(--mc-text-white);
    margin-bottom: var(--space-md);
    line-height: 1.2;
}

h1 {
    font-size: 48px;
    text-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5);
}

h2 {
    font-size: 32px;
    border-bottom: 4px solid var(--mc-green);
    display: inline-block;
    padding-bottom: 8px;
}

h3 {
    font-size: 24px;
}

p {
    margin-bottom: var(--space-md);
    color: var(--mc-text-grey);
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section {
    padding: var(--space-xl) 0;
}

.text-center {
    text-align: center;
}

.mb-sm {
    margin-bottom: var(--space-sm);
}

.mb-md {
    margin-bottom: var(--space-md);
}

.mb-lg {
    margin-bottom: var(--space-lg);
}

.mb-xl {
    margin-bottom: var(--space-xl);
}

.text-green {
    color: var(--mc-green-light);
}

.text-gold {
    color: var(--mc-gold);
}

.text-white {
    color: var(--mc-text-white);
}

/* Components */

/* 1. Modern Minecraft Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 20px;
    font-size: 20px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.1s;
    position: relative;
    border: none;

    /* Green Button (Default) */
    background-color: var(--mc-green);
    box-shadow:
        inset 0 4px 0 rgba(255, 255, 255, 0.2),
        inset 0 -4px 0 rgba(0, 0, 0, 0.2),
        0 4px 0 var(--mc-green-dark);
    color: #fff;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.4);
}

.btn:hover {
    background-color: var(--mc-green-light);
    transform: translateY(-2px);
    box-shadow:
        inset 0 4px 0 rgba(255, 255, 255, 0.2),
        inset 0 -4px 0 rgba(0, 0, 0, 0.2),
        0 6px 0 var(--mc-green-dark);
}

.btn:active {
    transform: translateY(2px);
    box-shadow:
        inset 0 4px 0 rgba(0, 0, 0, 0.2),
        0 0 0 var(--mc-green-dark);
}

.btn-secondary {
    background-color: #585858;
    box-shadow:
        inset 0 4px 0 rgba(255, 255, 255, 0.1),
        inset 0 -4px 0 rgba(0, 0, 0, 0.2),
        0 4px 0 #333;
}

.btn-secondary:hover {
    background-color: #666;
    box-shadow:
        inset 0 4px 0 rgba(255, 255, 255, 0.1),
        inset 0 -4px 0 rgba(0, 0, 0, 0.2),
        0 6px 0 #333;
}

.btn-secondary:active {
    box-shadow: inset 0 4px 0 rgba(0, 0, 0, 0.2), 0 0 0 #333;
}

.btn-outline {
    background: transparent;
    border: 3px solid var(--mc-text-white);
    box-shadow: none;
    height: 44px;
    /* Compensate for border */
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: none;
    box-shadow: none;
}

/* 2. Modern Panels */
.mc-panel {
    background-color: var(--mc-bg-panel);
    border: 1px solid var(--mc-border-light);
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s;
}

.mc-panel:hover {
    border-color: var(--mc-green);
    transform: translateY(-4px);
}

.mc-panel h3 {
    color: var(--mc-text-white);
    margin-bottom: var(--space-sm);
}

/* 3. Navbar */
header {
    background-color: rgba(30, 30, 30, 0.95);
    border-bottom: 2px solid var(--mc-green);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

header .container {
    max-width: 100%;
    padding: 0 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.logo img {
    height: 36px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.logo-text {
    font-size: 24px;
    color: var(--mc-text-white);
    font-weight: bold;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 4px;
    align-items: center;
    /* Fix alignment */
}

.nav-link {
    padding: 8px 16px;
    color: var(--mc-text-grey);
    font-size: 18px;
    position: relative;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--mc-green-light);
    background-color: rgba(255, 255, 255, 0.05);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--mc-green);
}

/* Splash Text */
.mc-splash {
    color: #ffff55;
    /* Minecraft Yellow */
    font-size: 24px;
    text-shadow: 2px 2px 0 #3f3f00;
    transform: rotate(-20deg);
    animation: splash-pulse 0.35s infinite alternate;
    display: inline-block;
    margin: 0;
    font-weight: bold;
}

@keyframes splash-pulse {
    from {
        transform: scale(1) rotate(-20deg);
    }

    to {
        transform: scale(1.05) rotate(-20deg);
    }
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    font-size: 28px;
    color: var(--mc-text-white);
    cursor: pointer;
    padding: 8px;
}

.mobile-menu {
    display: none;
    background-color: var(--mc-bg-dark);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    border-bottom: 2px solid var(--mc-green);
    padding: var(--space-md);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.mobile-menu.active {
    display: block;
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.mobile-menu a {
    display: block;
    padding: 12px;
    font-size: 24px;
    color: var(--mc-text-white);
    border-radius: 4px;
}

.mobile-menu a:hover {
    background-color: var(--mc-green);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--mc-bg-panel);
    border: 1px solid var(--mc-border-light);
    min-width: 220px;
    padding: 8px 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    border-radius: 0 0 4px 4px;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--mc-text-grey);
    font-size: 20px;
}

.dropdown-menu a:hover {
    background-color: var(--mc-green);
    color: #fff;
}

/* Footer */
footer {
    background-color: #111;
    border-top: 4px solid var(--mc-green);
    padding: 60px 0;
    margin-top: 60px;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    align-items: center;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    h1 {
        font-size: 42px;
    }

    h2 {
        font-size: 32px;
    }

    .btn {
        width: 100%;
    }

    .navbar {
        align-items: center;
        height: 60px;
    }
}

/* Home Page Specific Styles */

/* Hero Section */
.hero-title {
    font-size: 72px;
    margin-bottom: 24px;
    text-shadow: 0 4px 0 #2a641c;
}


.hero-subtitle {
    border: none;
    font-size: 36px;
    margin-bottom: 32px;
    color: #eee;
}

.hero-splash-container {
    margin-bottom: 64px;
    position: relative;
    display: inline-block;
}

.hero-actions {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 48px;
}

.feature-icon {
    font-size: 48px;
    color: var(--mc-green);
    margin-bottom: 16px;
}

/* Servers Preview Section */
.servers-preview-section {
    background-color: rgba(0, 0, 0, 0.2);
}

.servers-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.preview-card-image {
    height: 180px;
    background-color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    position: relative;
}

.preview-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 2px 8px;
    font-weight: bold;
    font-size: 14px;
    color: #000;
}

.preview-badge.recommend {
    background: var(--mc-gold);
}

.preview-badge.member {
    background: var(--mc-green);
    color: #fff;
}

.preview-card-content {
    padding: 24px;
}

.preview-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.preview-card-title {
    margin: 0;
    font-size: 24px;
}

.preview-card-status {
    font-size: 16px;
}

.preview-card-desc {
    font-size: 18px;
    margin-bottom: 24px;
}

.preview-card-btn {
    width: 100%;
    height: 48px;
    font-size: 20px;
}

/* About Section */
.about-content {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
    align-items: center;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-desc {
    font-size: 22px;
    color: #fff;
}

.about-image-container {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.about-logo {
    max-width: 240px;
    margin: 0 auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

/* Join Section */
.join-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 48px;
}

.join-icon {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--mc-green);
}

.join-list {
    text-align: left;
    margin-bottom: 24px;
    padding-left: 20px;
    color: #ccc;
}

.join-btn {
    width: 100%;
}

/* Stats Section */
.stats-section {
    background-color: #111;
    border-top: 2px solid #333;
    border-bottom: 2px solid #333;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 32px;
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: bold;
    color: var(--mc-green);
}

.stat-label {
    color: #aaa;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.contact-list {
    font-size: 20px;
    color: #ccc;
    list-style: none;
}

.contact-icon {
    width: 30px;
    color: var(--mc-green);
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-btn {
    padding: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}