/* Premium Hytale.LK Styles */
:root {
    --hytale-bg-dark: #0d131f;
    --hytale-bg-darker: #090d15;
    --hytale-bg-footer: #05080c;
    --hytale-gold: #dfa947;
    --hytale-gold-light: #ffe08a;
    --hytale-border-gold: #382c16;
    --hytale-text: #f0f4f8;
    --hytale-text-muted: #94a3b8;
    --discord: #5865F2;
    --discord-hover: #4752C4;
    --glass-bg: #090d15;
    --glass-border: #1a2233;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body.dark-theme {
    font-family: 'Inter', sans-serif;
    background-color: var(--hytale-bg-dark);
    color: var(--hytale-text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .nav-brand-text {
    font-family: 'Lexend', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Typography Utilities */
.text-muted { color: var(--hytale-text-muted); margin-bottom: 1.5rem; }
.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.mt-12 { margin-top: 3rem; }

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* === Navbar === */
.header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 100;
    background: transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    background: var(--glass-bg);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    max-width: 1440px;
    margin: 0 auto;
    position: relative;
}

.nav-logo {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-logo img {
    height: 45px;
    object-fit: contain;
}

.nav-brand-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--hytale-gold);
    letter-spacing: 1px;
}

.desktop-nav {
    display: none;
    background: #0d131f;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 0.4rem 0.8rem;
}

@media (min-width: 992px) {
    .desktop-nav { 
        display: block; 
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
}

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

.nav-item {
    padding: 0.6rem 1.25rem;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 8px;
    color: var(--hytale-text-muted);
    transition: all 0.3s ease;
    position: relative;
}

.nav-item:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
}

.nav-item.active {
    color: var(--hytale-gold);
    background: rgba(223, 169, 71, 0.1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-btn-primary {
    background: var(--hytale-gold);
    color: #000;
    font-family: 'Lexend', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    transition: background 0.2s ease;
    border: 2px solid #b8862f;
}

.nav-btn-primary:hover {
    background: var(--hytale-gold-light);
}

/* Mobile Nav */
.mobile-toggle {
    display: block;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (min-width: 992px) {
    .mobile-toggle { display: none; }
}

.mobile-nav {
    display: none;
    background: #090d15;
    position: absolute;
    top: 100%; left: 0; width: 100%;
    border-top: 1px solid var(--glass-border);
}

.mobile-nav.open {
    display: block;
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-nav ul {
    list-style: none;
    padding: 1rem;
}

.mobile-nav-item {
    display: block;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mobile-nav-item.active {
    color: var(--hytale-gold);
}

/* === Upper Section / Hero === */
.upper-section {
    position: relative;
    padding-bottom: 8rem;
    border-bottom: 1px solid var(--hytale-border-gold);
    overflow: hidden;
}

.hero-wrapper {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 7rem 0 3rem;
}

.hero-bg {
    background-image: url('public/hytale_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(13, 19, 31, 0.2) 0%, var(--hytale-bg-dark) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.hero-logo {
    max-width: 220px;
    width: 100%;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.8));
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 2rem;
    letter-spacing: 2px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.8);
    color: #ffffff;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .hero-title { font-size: 3rem; }
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--hytale-text-muted);
    max-width: 650px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    font-weight: 400;
}

.hero-cta-container {
    margin-top: 0.5rem;
    padding: 1rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    width: 100%;
}

.countdown-container {
    display: flex;
    gap: 1rem;
    background: #0d131f;
    border: 2px solid var(--hytale-border-gold);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 50px;
}

.countdown-value {
    font-family: 'Lexend', sans-serif;
    font-weight: 700;
    color: #fff;
    font-size: 1.25rem;
    letter-spacing: 1px;
    line-height: 1;
}

.countdown-label {
    color: var(--hytale-gold);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.3rem;
}

.button-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--hytale-gold);
    color: #000;
    font-family: 'Lexend', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0.9rem 2rem;
    border: 2px solid #b8862f;
    border-radius: 4px;
    transition: background 0.2s ease;
    cursor: pointer;
}

.button-gold:hover {
    background: var(--hytale-gold-light);
}

/* About Split Section */
.about-container {
    position: relative;
    z-index: 2;
    margin-top: 6rem;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

@media (min-width: 992px) {
    .about-container {
        flex-direction: row;
        align-items: center;
    }
    .about-text { width: 45%; padding-right: 3rem; }
    .about-media { width: 55%; }
}

.section-heading {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.button-outline {
    display: inline-block;
    border: 2px solid var(--hytale-border-gold);
    color: var(--hytale-gold);
    padding: 0.8rem 2rem;
    font-family: 'Lexend', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.2s ease;
    background: transparent;
}

.button-outline:hover {
    background: var(--hytale-border-gold);
    color: #fff;
}

.video-placeholder {
    position: relative;
    border: 2px solid var(--glass-border);
    padding: 10px;
    background: #090d15;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
}

.video-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 4px;
}

.video-thumbnail img {
    width: 100%; height: 100%;
    object-fit: cover;
}

/* === Lower Section (News) === */
.lower-section {
    background-color: var(--hytale-bg-darker);
    padding: 6rem 0;
    position: relative;
}

.lower-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--hytale-border-gold), transparent);
}

.gold-divider {
    border: none;
    height: 3px;
    background: linear-gradient(90deg, var(--hytale-gold) 0%, transparent 100%);
    margin-bottom: 3rem;
    width: 120px;
    border-radius: 3px;
}

.news-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .news-list {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

.news-item {
    background: #0d131f;
    border: 2px solid var(--glass-border);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.news-item:hover {
    border-color: var(--hytale-gold);
}

.news-link {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-thumbnail {
    height: 200px;
    overflow: hidden;
    position: relative;
    border-bottom: 2px solid var(--glass-border);
}

.news-thumbnail img {
    width: 100%; height: 100%; object-fit: cover;
}

.news-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-title {
    color: var(--hytale-gold);
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

.news-excerpt {
    color: var(--hytale-text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* === Footer === */
.footer {
    background: var(--hytale-bg-footer);
    text-align: center;
    border-top: 1px solid #10161e;
}

.footer-top {
    padding: 4rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.footer-heading {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.social-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px; height: 45px;
    background: #1a2233;
    color: #fff;
    border-radius: 4px;
    font-size: 1.3rem;
    transition: background 0.2s ease;
}

.social-links a:hover {
    background: var(--discord);
}

.footer-bottom {
    padding: 5rem 1rem;
    background: url('https://hytale.com/images/footer.webp') top center/auto repeat;
    position: relative;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(5, 8, 12, 0.95);
    z-index: 0;
}

.footer-bottom > * {
    position: relative;
    z-index: 1;
}

.footer-brand {
    font-family: 'Lexend', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 2px;
    margin-bottom: 2.5rem;
    display: block;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.footer-links a {
    color: var(--hytale-text-muted);
    font-size: 0.95rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.footer-links a:hover { color: var(--hytale-gold); }

.footer-legal {
    color: rgba(255,255,255,0.3);
    font-size: 0.85rem;
    line-height: 1.8;
}



/* Particles from previous */
.particles {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0; pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(223, 169, 71, 0.4);
    animation: floatUp linear infinite;
}

@keyframes floatUp {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateY(-100px) rotate(90deg); opacity: 0; }
}
