:root {
    /* Cores Temáticas */
    --mc-green: #2fa52d; /* Verde vibrante oficial do botão */
    --mc-green-dark: #1b631a;
    --mc-black: #111111;
    --mc-dark-grey: #1c1c1c;
    --mc-light-bg: #f2f2f2;
    --mc-bedrock: #222222;
    --mc-text-dark: #222222;
    
    --font-pixel: 'Press Start 2P', monospace;
    --font-body: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--mc-text-dark);
    line-height: 1.6;
    background-color: var(--mc-light-bg);
    overflow-x: hidden;
}

.pixel-text { font-family: var(--font-pixel); line-height: 1.4; font-size: 0.8rem; }
.text-green { color: var(--mc-green); }
.text-white { color: #ffffff; }
.text-gray { color: #aaaaaa; }
.bg-black { background-color: var(--mc-black); }
.bg-dark-grey { background-color: var(--mc-dark-grey); }
.center-text { text-align: center; }
.title-shadow { text-shadow: 2px 2px 0px rgba(0,0,0,0.5); }
.mt-15 { margin-top: 15px; }
.mt-30 { margin-top: 30px; }
.mb-30 { margin-bottom: 30px; }
.py-0 { padding-top: 0 !important; padding-bottom: 0 !important; }

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

/* Botões */
.btn {
    display: inline-block;
    padding: 12px 24px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: filter 0.2s;
}
.btn-green {
    background-color: var(--mc-green);
    color: #fff;
    border-bottom: 3px solid var(--mc-green-dark);
}
.btn-green:hover { filter: brightness(1.1); }
.btn-green:active { border-bottom: 0px; transform: translateY(3px); }
.btn-large { padding: 18px 40px; font-size: 1rem; }

/* 1. Header & Nav */
.top-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 2px solid #000;
}
.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo { font-size: 1.2rem; }
.nav-links { display: flex; list-style: none; gap: 30px; }
.nav-links a { color: #fff; text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.nav-links a:hover { color: var(--mc-green); }

/* Hero Banner */
.hero-section {
    background: linear-gradient(to bottom, #78a7ff, #4e8cfc);
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    position: relative;
}
.hero-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    gap: 40px;
}
.hero-text { flex: 1; }
.hero-text h1 { font-size: 2.5rem; color: #fff; margin-bottom: 20px; line-height: 1.5;}
.hero-text p { font-size: 1.3rem; color: #fff; margin-bottom: 30px; font-weight: 600; }
.hero-image { flex: 1; display: flex; justify-content: flex-end; }
.hero-image img { max-width: 100%; max-height: 350px; width: auto; height: auto; image-rendering: pixelated; filter: drop-shadow(0 10px 10px rgba(0,0,0,0.3)); }

.hero-stair-transition {
    height: 40px;
    width: 100%;
    background-color: var(--mc-light-bg);
    /* Simple stair pattern for hero */
    clip-path: polygon(0 100%, 100% 100%, 100% 0, 95% 0, 95% 25%, 90% 25%, 90% 50%, 85% 50%, 85% 75%, 0 75%);
}

/* Sections */
.section-light { padding: 80px 0; background-color: var(--mc-light-bg); }
.section-dark { padding: 80px 0; }
.section-title { font-size: 1.8rem; margin-bottom: 40px; }

/* Carousels */
.carousel-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.nav-arrow {
    background-color: var(--mc-green);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    border-bottom: 3px solid var(--mc-green-dark);
}
.nav-arrow:active { border-bottom: none; transform: translateY(3px); }

/* 2. Games Grid (Explore) */
.games-grid {
    display: flex;
    gap: 20px;
    flex: 1;
}
.game-card {
    flex: 1;
    background: #fff;
    border: 1px solid #ddd;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.game-img { width: 100%; height: 250px; object-fit: cover; display: block; }
.game-card h3 { padding: 20px 10px 10px 10px; color: var(--mc-green-dark); }
.game-card p { padding: 0 20px 20px 20px; font-size: 0.95rem; }

/* 3. News Grid */
.bedrock-bg {
    background-color: var(--mc-bedrock);
    background-image: radial-gradient(#333 1px, transparent 1px);
    background-size: 10px 10px;
}
.news-grid { display: flex; gap: 20px; flex: 1; align-items: stretch; }
.news-card { flex: 1; background: #1a1a1a; display: flex; flex-direction: column; }
.main-card { flex: 1.5; transform: scale(1.05); z-index: 2; border: 2px solid #444; }
.news-img { width: 100%; height: 180px; object-fit: cover; display: block; }
.main-news { height: 220px; }
.news-tag { align-self: center; background: #fff; color: #000; font-size: 0.7rem; font-weight: bold; padding: 4px 10px; margin-top: -10px; z-index: 3; }
.main-card h3, .main-card p { padding: 0 20px; margin-bottom: 20px;}

/* Jagged Dividers */
.jagged-divider {
    height: 20px;
    width: 100%;
    background-repeat: repeat-x;
    background-size: 20px 20px;
}
.dark-to-light {
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M0 0 L0 10 L10 10 L10 20 L20 20 L20 0 Z" fill="%23222222"/></svg>');
    background-color: var(--mc-light-bg);
}
.light-to-dark {
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M0 20 L0 10 L10 10 L10 0 L20 0 L20 20 Z" fill="%23222222"/></svg>');
    background-color: var(--mc-light-bg);
}

/* 4. Zig-Zag Blocks */
.full-width-blocks { max-width: 1000px; padding: 60px 20px; }
.zigzag-block {
    display: flex;
    align-items: center;
    background: #fff;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.zigzag-block.reverse { flex-direction: row-reverse; }
.block-content { flex: 1; padding: 40px; }
.block-content h2 { font-size: 1.4rem; margin-bottom: 20px; }
.block-content p { font-size: 1.1rem; margin-bottom: 20px; color: #555; }
.text-link { color: var(--mc-green); text-decoration: none; font-size: 0.7rem; }
.text-link:hover { text-decoration: underline; }
.block-image { flex: 1; }
.img-cover { width: 100%; height: 300px; object-fit: cover; display: block; }

/* 5. Community Grid */
.community-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}
.community-item {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border: 2px solid #555;
    transition: filter 0.2s;
}
.community-item:hover { filter: brightness(1.2); }

.dark-hr { border: 0; height: 1px; background: #444; margin: 60px 0; }

/* Newsletter */
.newsletter-wrapper { max-width: 800px; margin: 0 auto; }
.mc-ui-panel { background: #d0d0d0; padding: 20px; border: 4px solid #fff; border-bottom-color: #888; border-right-color: #888; }
.input-row { display: flex; gap: 10px; }
.mc-input { flex: 1; padding: 15px; border: 3px solid #888; border-bottom-color: #fff; border-right-color: #fff; font-family: var(--font-body); font-size: 1rem; outline: none; }
.mc-input:focus { background: #fff; }

/* 6. Footer */
.footer-crossplay { padding: 20px 0; }
.footer-body { padding: 50px 0; }
.social-icons a { color: #fff; text-decoration: none; font-weight: bold; margin-left: 20px; }
.social-icons a:hover { color: var(--mc-green); }
.footer-columns { display: flex; justify-content: space-between; flex-wrap: wrap; margin-top: 40px; }
.footer-col { flex: 1; min-width: 150px; display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { margin-bottom: 10px; font-size: 0.9rem; }
.footer-col a { color: #aaa; text-decoration: none; font-size: 0.9rem; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.brand-col { flex: 2; }
.footer-logo { max-width: 150px; image-rendering: pixelated; }

.footer-bottom { padding: 20px 0; font-size: 0.85rem; }
.flex-space-between { display: flex; justify-content: space-between; align-items: center; }
.legal-links a { color: #aaa; text-decoration: none; margin: 0 5px; }
.legal-links a:hover { color: #fff; }

/* Responsive */
@media (max-width: 900px) {
    .nav-links { display: none; }
    .hero-container { flex-direction: column; text-align: center; }
    .hero-image { justify-content: center; }
    .games-grid, .news-grid { flex-direction: column; }
    .zigzag-block, .zigzag-block.reverse { flex-direction: column; }
    .community-grid { grid-template-columns: repeat(2, 1fr); }
    .input-row { flex-direction: column; }
    .footer-columns { flex-direction: column; gap: 30px; }
    .hero-text h1 { font-size: clamp(1.25rem, 6vw, 2rem); overflow-wrap: anywhere; }
    .hero-text p { font-size: 1rem; }
    .btn-large { padding: 14px 20px; font-size: 0.75rem; }
    .logo .pixel-text { font-size: 0.55rem; }
    .top-nav .btn { padding: 10px 12px; font-size: 0.55rem; }
}
