/* ==========================================================================
   1. Core Setup & Global Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #121824;
    color: #ffffff;
    line-height: 1.6;
}

.container {
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ==========================================================================
   2. Shared Navigation Bar
   ========================================================================== */
.navbar {
    background-color: #1c2638;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid #00f3ff;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 1rem;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff9f00;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #a0aec0;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: #00f3ff;
}

/* ==========================================================================
   3. Home Page Components (Hero, Status, Connections)
   ========================================================================== */
.hero {
    background: radial-gradient(circle, rgba(28,38,56,1) 0%, rgba(18,24,36,1) 100%);
    padding: 6rem 0;
    text-align: center;
}

.hero-logo {
    max-width: 320px;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 20px rgba(0, 243, 255, 0.3));
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.hero p {
    font-size: 1.2rem;
    color: #a0aec0;
    margin-bottom: 2rem;
}

/* Server Status Widget */
.server-status {
    font-size: 1rem;
    color: #a0aec0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 1rem;
}

.status-dot {
    height: 10px;
    width: 10px;
    background-color: #e74c3c;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s, box-shadow 0.3s;
}

/* Buttons */
.btn {
    padding: 0.8rem 1.8rem;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.3s;
}

.btn-primary {
    background-color: #ff9f00;
    color: #121824;
}

.btn-primary:hover {
    transform: scale(1.05);
    background-color: #e08b00;
}

.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
    border-radius: 8px;
}

.btn-secondary {
    background-color: transparent;
    color: #00f3ff;
    border: 1px solid #00f3ff;
}

.btn-secondary:hover {
    background-color: rgba(0, 243, 255, 0.1);
    transform: scale(1.05);
}

/* Cross-Play Connection Styling */
.connection-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.ip-box {
    background-color: #1c2638;
    border: 1px solid #00f3ff;
    padding: 1.5rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    min-width: 280px;
    box-shadow: 0 4px 15px rgba(0, 243, 255, 0.05);
}

.edition-label {
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ff9f00;
}

.port-label {
    color: #a0aec0;
    font-size: 0.95rem;
}

.port-label strong {
    color: #ffffff;
    font-family: monospace;
}

.bedrock-buttons {
    display: flex;
    gap: 0.5rem;
}

/* Features Grid */
.features {
    padding: 5rem 0;
    background-color: #121824;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: #ff9f00;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: #1c2638;
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s, border-color 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: #00f3ff;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.feature-card p {
    color: #a0aec0;
    font-size: 0.95rem;
}

/* ==========================================================================
   4. YouTube Creators Layout
   ========================================================================== */
.youtube-section {
    padding: 4rem 0;
    background-color: #161d2a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.youtube-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.creator-card {
    background-color: #1c2638;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    width: 280px;
    text-decoration: none;
    border: 1px solid rgba(0, 243, 255, 0.1);
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.creator-card:hover {
    transform: translateY(-5px);
    border-color: #00f3ff;
    box-shadow: 0 10px 20px rgba(0, 243, 255, 0.1);
}

.avatar-container {
    width: 90px;
    height: 90px;
    margin: 0 auto 1.5rem auto;
    border-radius: 50%;
    border: 3px solid #ff9f00;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #121824;
}

.creator-pfp {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.creator-card h3 {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.sub-count {
    color: #a0aec0;
    font-size: 0.9rem;
    background-color: rgba(0, 243, 255, 0.05);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    display: inline-block;
    border: 1px solid rgba(0, 243, 255, 0.2);
}

/* ==========================================================================
   5. Global Footer
   ========================================================================== */
.footer {
    background-color: #0d111a;
    text-align: center;
    padding: 2rem 0;
    color: #4a5568;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   6. Responsive Mobile Tweaks
   ========================================================================== */
@media (max-width: 600px) {
    .nav-container {
        justify-content: center;
        text-align: center;
    }
    .nav-links {
        gap: 1rem;
    }
    .hero h1 {
        font-size: 2rem;
    }
}

/* Discord Section Layout */
.discord-section {
    padding: 3rem 0;
    background-color: #1c2638;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.discord-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.discord-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.discord-icon-large {
    font-size: 3rem;
}

.discord-content h2 {
    color: #ffffff;
    font-size: 1.8rem;
    margin-bottom: 0.2rem;
}

.discord-content p {
    color: #a0aec0;
    font-size: 1rem;
}

/* Custom Discord Button Color */
.btn-discord {
    background-color: #5865F2; /* Official Discord Purple */
    color: #ffffff;
    border-radius: 8px;
    padding: 0.8rem 2rem;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s, background-color 0.3s;
}

.btn-discord:hover {
    background-color: #4752C4;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .discord-container {
        flex-direction: column;
        text-align: center;
    }
    .discord-content {
        flex-direction: column;
        gap: 0.5rem;
    }
}