/* ==========================================
   DESIGN SYSTEM & VARIABLES
   ========================================== */
:root {
    --bg-dark: hsl(0, 10%, 4%);
    --bg-card: hsla(0, 10%, 8%, 0.75);
    --bg-card-hover: hsla(0, 10%, 12%, 0.85);
    
    --color-text-primary: hsl(0, 0%, 97%);
    --color-text-secondary: hsl(0, 5%, 75%);
    --color-text-muted: hsl(0, 5%, 52%);
    
    --color-accent: hsl(15, 90%, 50%); /* Flame Orange-Red */
    --color-accent-glow: hsla(15, 90%, 50%, 0.35);
    
    --color-purple: hsl(345, 80%, 45%); /* Crimson Red */
    --color-purple-glow: hsla(345, 80%, 45%, 0.35);
    
    --color-blue: hsl(0, 95%, 55%); /* Vibrant Neon Red */
    --color-blue-glow: hsla(0, 95%, 55%, 0.35);
    
    --color-discord: hsl(235, 86%, 65%);
    --color-discord-hover: hsl(235, 86%, 58%);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
    
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --container-width: 1200px;
}

/* ==========================================
   BASE STYLES & RESET
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Background Image & Overlay */
.bg-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background-image: url('assets/images/minecraft_bg.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, hsla(0, 10%, 4%, 0.8) 0%, hsl(0, 10%, 4%) 95%);
    z-index: -1;
}

/* Layout Utilities */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

/* Icons */
.icon-svg {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
}

/* ==========================================
   NAVIGATION BAR (STIKCY & GLASSMORPHIC)
   ========================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: hsla(0, 10%, 4%, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid hsla(0, 0%, 100%, 0.05);
    padding: 1rem 0;
    transition: var(--transition-normal);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    letter-spacing: 0.5px;
}

.brand-img {
    height: 38px;
    width: auto;
    border-radius: 8px;
    object-fit: contain;
}

.logo-star {
    color: var(--color-accent);
    text-shadow: 0 0 10px var(--color-accent-glow);
}

.logo-highlight {
    color: var(--color-blue);
    text-shadow: 0 0 10px var(--color-blue-glow);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-item {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
    position: relative;
    padding: 0.5rem 0;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-blue);
    transition: var(--transition-fast);
}

.nav-item:hover {
    color: var(--color-text-primary);
}

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

.discord-nav-btn {
    background-color: hsla(0, 0%, 100%, 0.04);
    border: 1px solid hsla(0, 95%, 55%, 0.4);
    color: var(--color-text-primary) !important;
    padding: 0.6rem 1.2rem;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
}

.discord-nav-btn::after {
    display: none;
}

.discord-nav-btn:hover {
    background-color: var(--color-blue);
    border-color: var(--color-blue);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px hsla(0, 95%, 55%, 0.35);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--color-text-primary);
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
    padding: 6rem 0 4rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 75vh;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* Version Badges */
.badge-container {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
}

.badge {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pc-badge {
    background-color: hsla(270, 80%, 55%, 0.15);
    border: 1px solid var(--color-purple);
    color: hsl(270, 100%, 75%);
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.15);
}

.mobile-badge {
    background-color: hsla(145, 80%, 45%, 0.15);
    border: 1px solid var(--color-accent);
    color: hsl(145, 100%, 75%);
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.15);
}

/* Titles */
.hero-logo-container {
    margin-bottom: 0.5rem;
}

.hero-logo {
    width: 130px;
    height: 130px;
    object-fit: contain;
    border-radius: var(--border-radius-md);
    filter: drop-shadow(0 0 15px hsla(0, 95%, 55%, 0.3));
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
        filter: drop-shadow(0 0 15px hsla(0, 95%, 55%, 0.3));
    }
    50% {
        transform: translateY(-8px);
        filter: drop-shadow(0 0 25px hsla(0, 95%, 55%, 0.5));
    }
    100% {
        transform: translateY(0px);
        filter: drop-shadow(0 0 15px hsla(0, 95%, 55%, 0.3));
    }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    letter-spacing: 4px;
    line-height: 1;
    color: var(--color-text-primary);
    margin: 0;
}

.text-glow {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--color-text-primary);
    filter: drop-shadow(0 0 15px rgba(255,255,255,0.25));
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: var(--color-text-secondary);
    max-width: 600px;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

/* ==========================================
   IP COPY WIDGET (GLASSMORPHISM)
   ========================================== */
.ip-widget {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid hsla(0, 0%, 100%, 0.08);
    border-radius: var(--border-radius-md);
    padding: 1.2rem;
    width: 100%;
    max-width: 550px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: var(--transition-normal);
}

.ip-widget:hover {
    border-color: hsla(0, 95%, 55%, 0.3);
    box-shadow: 0 10px 40px hsla(0, 95%, 55%, 0.18);
}

.ip-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: hsla(0, 0%, 0%, 0.35);
    border-radius: var(--border-radius-sm);
    padding: 0.5rem 0.5rem 0.5rem 1.2rem;
    border: 1px solid hsla(0, 0%, 100%, 0.03);
}

.ip-info-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.ip-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--color-text-muted);
    letter-spacing: 1px;
}

.ip-value {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-primary);
    letter-spacing: 0.5px;
}

/* Buttons */
.btn {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition-normal);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-blue) 0%, hsl(345, 90%, 40%) 100%);
    border: 1px solid hsla(0, 95%, 55%, 0.5);
    color: white;
    box-shadow: 0 4px 15px hsla(0, 95%, 55%, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px hsla(0, 95%, 55%, 0.5);
}

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

.btn-icon {
    width: 18px;
    height: 18px;
}

/* Port Row */
.port-row {
    margin-top: 0.8rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-secondary);
}

.port-value {
    color: var(--color-blue);
    font-weight: 700;
}

/* Live Status indicators */
.server-status {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(0, 0, 0, 0.4);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    border: 1px solid hsla(0, 95%, 55%, 0.2);
    font-size: 0.85rem;
    font-weight: 600;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.status-indicator.loading {
    background-color: var(--color-text-muted);
    animation: blink 1s infinite alternate;
}

.status-indicator.online {
    background-color: var(--color-accent);
    box-shadow: 0 0 10px var(--color-accent);
    animation: pulse-green 1.5s infinite;
}

.status-indicator.offline {
    background-color: hsl(0, 80%, 50%);
    box-shadow: 0 0 10px hsl(0, 80%, 50%);
}

@keyframes blink {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(46, 204, 113, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

/* ==========================================
   INFO SECTION SPLIT
   ========================================== */
.info-section {
    padding: 4rem 0;
}

.info-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
    align-items: start;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--color-blue);
    border-radius: 2px;
    margin-top: 0.5rem;
}

/* Game Modes Cards */
.gamemodes-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.gamemode-card {
    background: var(--bg-card);
    border: 1px solid hsla(0, 0%, 100%, 0.05);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.gamemode-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-4px);
}

/* Card Glow Borders */
.border-glow-blue:hover { border-color: var(--color-blue); box-shadow: 0 5px 25px var(--color-blue-glow); }
.border-glow-purple:hover { border-color: var(--color-purple); box-shadow: 0 5px 25px var(--color-purple-glow); }
.border-glow-green:hover { border-color: var(--color-accent); box-shadow: 0 5px 25px var(--color-accent-glow); }

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blue-icon { background: var(--color-blue-glow); color: var(--color-blue); }
.purple-icon { background: var(--color-purple-glow); color: var(--color-purple); }
.green-icon { background: var(--color-accent-glow); color: var(--color-accent); }

.card-icon svg {
    width: 24px;
    height: 24px;
}

.card-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.card-desc {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.card-tag {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    display: inline-block;
    text-transform: uppercase;
}

.tag-blue { background: var(--color-blue-glow); color: hsl(0, 100%, 75%); }
.tag-purple { background: var(--color-purple-glow); color: hsl(345, 100%, 75%); }
.tag-green { background: var(--color-accent-glow); color: hsl(15, 100%, 75%); }

/* ==========================================
   JOIN GUIDE CARD & TABS
   ========================================== */
.join-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid hsla(0, 0%, 100%, 0.05);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.tabs-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: hsla(0, 0%, 0%, 0.25);
    border-bottom: 1px solid hsla(0, 0%, 100%, 0.05);
}

.tab-btn {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-text-secondary);
    padding: 1.2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition-fast);
}

.tab-btn:hover {
    color: var(--color-text-primary);
    background: hsla(0, 0%, 100%, 0.02);
}

.tab-btn.active {
    color: var(--color-blue);
    background: hsla(0, 0%, 100%, 0.04);
    box-shadow: inset 0 -3px 0 0 var(--color-blue);
}

.tab-icon {
    width: 20px;
    height: 20px;
}

/* Tab Content Panes */
.tabs-content {
    padding: 2rem;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn var(--transition-normal);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Guide list styles */
.guide-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.guide-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.step-num {
    background: var(--color-blue-glow);
    color: var(--color-blue);
    border: 1px solid hsla(0, 95%, 55%, 0.3);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
    font-size: 0.95rem;
    margin-top: 2px;
}

.step-text {
    font-size: 1rem;
    color: var(--color-text-secondary);
}

.step-text strong {
    color: var(--color-text-primary);
    font-weight: 600;
}

.highlight-inline {
    background: var(--color-blue-glow);
    color: hsl(0, 100%, 75%);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    border: 1px solid hsla(0, 95%, 55%, 0.2);
    font-weight: 600;
    font-size: 0.95rem;
}

.sub-step-list {
    margin-top: 0.6rem;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding-left: 0.5rem;
    border-left: 2px solid hsla(0, 0%, 100%, 0.05);
}

.sub-step-list li {
    font-size: 0.9rem;
    gap: 0.3rem;
}

/* ==========================================
   DISCORD BANNER SECTION
   ========================================== */
.discord-section {
    padding: 4rem 0 6rem;
}

.discord-card {
    background: linear-gradient(135deg, hsl(0, 10%, 6%) 0%, hsl(345, 60%, 12%) 100%);
    border: 1px solid hsla(0, 95%, 55%, 0.25);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 15px 40px hsla(0, 95%, 55%, 0.1);
    position: relative;
    overflow: hidden;
}

.discord-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: hsla(0, 95%, 55%, 0.08);
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.discord-info {
    max-width: 600px;
}

.discord-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.5vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 0.8rem;
    color: white;
}

.discord-subtitle {
    color: hsl(0, 10%, 85%);
    font-size: 1rem;
}

.btn-discord {
    background-color: hsla(0, 0%, 100%, 0.04);
    border: 1px solid hsla(0, 95%, 55%, 0.4);
    color: var(--color-text-primary);
    padding: 1rem 2.2rem;
    font-size: 1.05rem;
    border-radius: var(--border-radius-md);
    box-shadow: 0 4px 15px hsla(0, 95%, 55%, 0.1);
    text-decoration: none;
    flex-shrink: 0;
    transition: var(--transition-normal);
}

.btn-discord:hover {
    background-color: var(--color-blue);
    border-color: var(--color-blue);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px hsla(0, 95%, 55%, 0.45);
}

.btn-discord:active {
    transform: translateY(-1px);
}

/* ==========================================
   FOOTER SECTION
   ========================================== */
.footer {
    background: hsl(220, 25%, 4%);
    padding: 3rem 0;
    border-top: 1px solid hsla(0, 0%, 100%, 0.03);
    text-align: center;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.copyright {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
}

.disclaimer {
    color: var(--color-text-muted);
    font-size: 0.8rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================== */
@media (max-width: 992px) {
    .info-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .discord-card {
        flex-direction: column;
        text-align: center;
        padding: 2.5rem;
    }
    
    .discord-info {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    /* Navbar styling on mobile */
    .navbar {
        padding: 0.8rem 0;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: hsla(220, 25%, 5%, 0.96);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid hsla(0, 0%, 100%, 0.05);
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    }
    
    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s forwards ease;
    }
    
    .nav-item {
        font-size: 1.1rem;
        width: 100%;
        text-align: center;
    }
    
    .discord-nav-btn {
        width: 100%;
        justify-content: center;
    }
    
    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    /* Menu Active animation for button */
    .menu-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
    
    /* Hero section refinements */
    .hero-section {
        padding: 4rem 0 3rem;
        min-height: auto;
    }
    
    .ip-widget {
        padding: 1rem;
    }
    
    .ip-row {
        flex-direction: column;
        padding: 1rem;
        gap: 0.8rem;
    }
    
    .ip-info-box {
        align-items: center;
        width: 100%;
    }
    
    .ip-value {
        font-size: 1.15rem;
    }
    
    .btn-primary {
        width: 100%;
    }
    
    .tabs-content {
        padding: 1.2rem;
    }
    
    .guide-list {
        gap: 1.2rem;
    }
    
    .step-num {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
    }
    
    .step-text {
        font-size: 0.95rem;
    }
    
    /* Background adjustments to reduce CPU/GPU on mobile */
    .bg-wrapper {
        background-attachment: scroll;
    }
}
