/* =========================================
   LANDING PAGE STYLES (V6 - Ultimate Animation)
   ========================================= */

/* Thêm vào ngay đầu file landing.css */
* {
    box-sizing: border-box;
}
/* Font & Variables */
@font-face {
    font-family: "Mcten";
    src: url("/public/fonts/mcten.ttf") format("truetype");
}
@font-face {
    font-family: "Minecraft";
    src: url("/public/fonts/minecraft.otf") format("opentype");
}

:root {
    --mc-green: #7ed957;
    --mc-dark: #171516;
    --mc-card-bg: #232323;
    --text-primary: #e6edf3;
    --border: #30363d;
}

body {
    background-color: var(--mc-dark);
    color: var(--text-primary);
    font-family: "Manrope", sans-serif;
    margin: 0;
    box-sizing: border-box;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 1. HERO SECTION --- */
.hero-wrapper {
    position: relative;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin-top: -60px;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}

.hero-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 20px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-family: "Mcten", sans-serif;
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 4px 4px 0 #000;
}

.hero-title .highlight {
    color: var(--mc-green);
    font-size: 4rem;
    display: block;
    position: relative;
    display: inline-block;
}

/* Con trỏ nhấp nháy kiểu console */
.typing-effect::after {
    content: '_';
    animation: blink 1s step-end infinite;
    color: var(--mc-green);
}

.hero-desc {
    font-size: 1.2rem;
    color: #ccc;
    max-width: 600px;
    margin: 0 auto 40px;
    text-shadow: 1px 1px 2px #000;
}

/* Nút bấm phong cách Minecraft */
.hero-btn {
    display: inline-block;
    padding: 15px 40px;
    background-color: #585858;
    border: 3px solid #000;
    color: #fff;
    font-family: "Minecraft", sans-serif;
    font-size: 1.2rem;
    text-decoration: none;
    text-shadow: 2px 2px 0 #000;
    box-shadow: inset 2px 2px 0 rgba(255,255,255,0.2), inset -2px -2px 0 rgba(0,0,0,0.4), 0 5px 0 #000;
    transition: transform 0.1s, box-shadow 0.1s;
    cursor: pointer;
}

.hero-btn:active {
    transform: translateY(4px);
    box-shadow: inset 2px 2px 0 rgba(255,255,255,0.2), inset -2px -2px 0 rgba(0,0,0,0.4), 0 1px 0 #000;
}

/* --- A. MINECRAFT PARTICLES (Hạt bay nền) --- */
#particles {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    bottom: -20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 5px rgba(255,255,255,0.1);
    animation: floatUp linear infinite;
    opacity: 0;
}


/* --- 2. HUB CARDS GRID (BLOCKY STYLE) --- */
.hub-container {
    padding-top: 60px;
    padding-bottom: 100px;
}

.hub-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 30px;
}

/* Card Style (BLOCKY LOOK) */
.hub-card {
    display: flex;
    align-items: center;
    
    border-radius: 0; 
    
    background: var(--mc-card-bg) no-repeat center center;
    background-size: cover;
    
    border: 3px solid #3d3d3d;
    padding: 30px;
    text-decoration: none;
    color: inherit;
    
    box-shadow: 6px 6px 0px 0px rgba(0,0,0,0.8); 
    transition: transform 0.1s, box-shadow 0.1s;
    position: relative;
    overflow: hidden;
}

/* Hiệu ứng Hover - Nút bấm bị 'ấn xuống' và Glow */
.hub-card:hover {
    transform: translate(4px, 4px);
    border-color: var(--mc-green);
    /* Box-shadow khi hover (lún + glow) */
    box-shadow: 
        2px 2px 0px 0px rgba(0,0,0,0.8), 
        0 0 15px var(--mc-green),
        inset 0 0 10px rgba(126, 217, 87, 0.2);
}

/* Lớp phủ Gradient đen */
.hub-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.9) 100%);
    z-index: 1; 
    pointer-events: none;
}

/* --- C. ENCHANTED GLINT (Hiệu ứng quét sáng khi hover) --- */
.hub-card::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.2) 50%, 
        rgba(255,255,255,0) 100%
    );
    transform: skewX(-25deg);
    transition: none;
    z-index: 3;
    pointer-events: none;
}

.hub-card:hover::after {
    animation: shine 0.75s;
}

/* --- TÙY CHỈNH BACKGROUND RIÊNG CHO TỪNG CARD --- */
/* Cần thay thế bằng đường dẫn ảnh blocky của bạn */
.resource-card { 
    background-image: url('/public/assets/overworld.png'); 
}
.skin-card { 
    background-image: url('/public/assets/wallpaper2.png'); 
}
.blog-card { 
    background-image: url('/public/assets/legend_host.png'); 
}


/* Nội dung (Icon, Text) phải nằm trên lớp phủ */
.hub-info, .hub-icon {
    position: relative;
    z-index: 2; 
}

/* Icon bên trái */
.hub-icon {
    width: 80px;
    height: 80px;
    margin-right: 30px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5); 
    border: 2px solid #555;
    border-radius: 0;
    box-shadow: 2px 2px 0 #000;
}

/* --- B. ITEM LEVITATION (Vật phẩm nổi) --- */
.hub-icon img {
    width: 60px;
    height: auto;
    image-rendering: pixelated; 
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
    animation: levitate 3s ease-in-out infinite;
}

/* Làm lệch nhịp nhảy của các icon */
.resource-card .hub-icon img { animation-delay: 0s; }
.skin-card .hub-icon img { animation-delay: 1s; }
.blog-card .hub-icon img { animation-delay: 2s; }


.hub-info h2 {
    font-family: "Minecraft", sans-serif;
    margin: 0 0 10px;
    font-size: 2rem;
    color: #fff;
    text-shadow: 3px 3px 0 #000;
}

.hub-info p {
    margin: 0 0 20px;
    color: #ccc;
    line-height: 1.5;
}

.hub-link {
    font-family: "Minecraft", sans-serif;
    color: var(--mc-green);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hub-card:hover .hub-link {
    color: #fff;
    text-decoration: underline;
}

/* --- RESPONSIVE --- */
@media (min-width: 768px) {
    .hub-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hub-card {
        flex-direction: column; 
        text-align: center;
        padding: 40px 20px;
    }

    .hub-icon {
        margin-right: 0;
        margin-bottom: 20px;
        width: 100px;
        height: 100px;
    }
    
    .hub-icon img {
        width: 70px;
    }

    .hub-info h2 {
        font-size: 1.5rem;
    }
}

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

@keyframes levitate {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes shine {
    100% { left: 150%; }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes floatUp {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 0.8; }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}
/* =========================================
   4. ABOUT SECTION (GIỚI THIỆU NGẮN)
   ========================================= */

.about-section {
    padding: 50px 20px;
    margin-top: 20px;
    margin-bottom: 20px;
    text-align: center;
    
    /* Style Blocky: Nền đen, Viền sáng */
    background: #1e1e1e;
    border: 3px solid #3d3d3d;
    box-shadow: 4px 4px 0px 0px rgba(0,0,0,0.8);
    
    /* Animation khi hiện lên */
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-out 0.5s forwards; 
}

.about-icon-container {
    margin-bottom: 20px;
}

.about-icon {
    width: 80px;
    height: 80px;
    image-rendering: pixelated;
    filter: drop-shadow(0 0 10px rgba(126, 217, 87, 0.5));
}

.about-title {
    font-family: "Minecraft", sans-serif;
    font-size: 2rem;
    color: var(--mc-green);
    text-shadow: 2px 2px 0 #000;
    margin-top: 0;
    margin-bottom: 15px;
}

.about-description {
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.6;
    color: #ccc;
}

/* Các tính năng nổi bật */
.about-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
    font-family: "Minecraft", sans-serif;
    font-size: 0.9rem;
    color: #fff;
}

.about-features span {
    background: #333;
    padding: 8px 15px;
    border: 1px solid var(--mc-green);
    border-radius: 2px;
    box-shadow: 2px 2px 0 #000;
}

/* Nút bấm (Tái sử dụng style Hero Button) */
.about-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #585858;
    border: 3px solid #000;
    color: #fff;
    font-family: "Minecraft", sans-serif;
    font-size: 1rem;
    text-decoration: none;
    text-shadow: 2px 2px 0 #000;
    box-shadow: inset 2px 2px 0 rgba(255,255,255,0.2), inset -2px -2px 0 rgba(0,0,0,0.4), 0 5px 0 #000;
    transition: transform 0.1s, box-shadow 0.1s;
    cursor: pointer;
}

.about-btn:active {
    transform: translateY(4px);
    box-shadow: inset 2px 2px 0 rgba(255,255,255,0.2), inset -2px -2px 0 rgba(0,0,0,0.4), 0 1px 0 #000;
}

/* Responsive cho mobile */
@media (max-width: 768px) {
    .about-title {
        font-size: 1.5rem;
    }
    .about-features {
        flex-direction: column;
        align-items: center;
    }
    .about-features span {
        width: 80%;
    }
}