/* Minecraft Guide Styles */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Roboto:wght@400;500;700&display=swap');

:root {
    --grass: #5d9e3b;
    --dirt: #8b6914;
    --stone: #7f7f7f;
    --obsidian: #1a1a2e;
    --emerald: #17d63c;
    --diamond: #4aedd9;
    --gold: #ffcc00;
    --redstone: #ff0000;
    --lava: #ff5500;
    --water: #3f76e4;
    --sky: #87ceeb;
    --dark-bg: #1e1e2e;
    --card-bg: #2a2a3a;
    --text: #e0e0e0;
    --text-muted: #a0a0a0;
    --border: #444;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background: var(--dark-bg);
    color: var(--text);
    line-height: 1.6;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1a472a 0%, #2d5016 50%, #1a3a1a 100%);
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32"><rect width="32" height="32" fill="%231a472a"/><rect x="0" y="0" width="8" height="8" fill="%232d5016" opacity="0.3"/><rect x="16" y="16" width="8" height="8" fill="%232d5016" opacity="0.3"/></svg>');
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.title-block h1 {
    font-family: 'Press Start 2P', cursive;
    font-size: clamp(1.5rem, 4vw, 3rem);
    color: var(--emerald);
    text-shadow: 3px 3px 0 #1a3a1a;
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--sky);
    text-shadow: 2px 2px 0 #000;
}

/* Pixel Dirt Blocks */
.pixel-dirt {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 2rem;
}

.dirt-block, .grass-block {
    width: 40px;
    height: 40px;
    image-rendering: pixelated;
}

.dirt-block {
    background: 
        linear-gradient(180deg, #8b6914 0%, #6b4f10 50%, #8b6914 100%);
    border: 2px solid #5a4010;
}

.grass-block {
    background: 
        linear-gradient(180deg, #5d9e3b 0%, #4a8a2a 30%, #8b6914 30%, #6b4f10 100%);
    border: 2px solid #3a6a1a;
}

/* Sidebar Navigation */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 260px;
    height: 100vh;
    background: #12121a;
    padding: 1rem;
    overflow-y: auto;
    z-index: 1000;
    border-right: 3px solid var(--grass);
    transition: transform 0.3s ease;
}

.nav-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    background: var(--grass);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    z-index: 1001;
    font-size: 1.5rem;
}

.sidebar h2 {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.9rem;
    color: var(--emerald);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--grass);
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin: 0.5rem 0;
}

.sidebar a {
    color: var(--text);
    text-decoration: none;
    display: block;
    padding: 0.6rem 0.8rem;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.sidebar a:hover {
    background: var(--grass);
    color: white;
    transform: translateX(5px);
}

/* Main Content */
.content {
    margin-left: 260px;
    padding: 2rem;
    max-width: 1200px;
}

.section {
    margin-bottom: 4rem;
    animation: fadeIn 0.5s ease;
}

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

.section h2 {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.5rem;
    color: var(--emerald);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--grass);
}

/* Cards */
.info-card {
    background: linear-gradient(135deg, var(--card-bg) 0%, #1a1a2a 100%);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--grass);
    margin-bottom: 1.5rem;
}

.card, .dark {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.dark {
    background: #15151f;
    border-color: var(--redstone);
}

.card h3 {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.9rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.card ul {
    list-style: none;
}

.card li {
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.card li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--grass);
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Steps */
.steps-container {
    position: relative;
}

.step {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 8px;
    border-left: 4px solid var(--grass);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--grass);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Press Start 2P', cursive;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
}

.step-content h3 {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.85rem;
    color: var(--emerald);
    margin-bottom: 0.5rem;
}

/* Controls Grid */
.controls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.control-item {
    background: var(--card-bg);
    padding: 1rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--border);
}

.key {
    background: linear-gradient(180deg, #4a4a4a 0%, #2a2a2a 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
    min-width: 50px;
    text-align: center;
    border: 2px solid #555;
    box-shadow: 0 3px 0 #333;
}

.action {
    font-size: 0.9rem;
}

/* Recipe Cards */
.recipe-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.recipe-card h4 {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.75rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.recipe-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin-bottom: 1rem;
}

.recipe-grid div {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.recipe-grid .filled {
    background: var(--stone);
    border: 2px solid #666;
    border-radius: 4px;
}

.recipe-grid .empty {
    background: #333;
    border: 2px dashed #444;
    border-radius: 4px;
}

.result {
    color: var(--emerald);
    font-weight: bold;
}

/* Data Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.data-table th,
.data-table td {
    padding: 0.7rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    background: var(--grass);
    color: white;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
}

.data-table tr:hover {
    background: rgba(93, 158, 59, 0.1);
}

/* Tip Box */
.tip-box {
    background: rgba(74, 237, 217, 0.1);
    border: 2px solid var(--diamond);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.tip-box h4 {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    color: var(--diamond);
    margin-bottom: 0.5rem;
}

/* Warning Box */
.warning-box {
    background: rgba(255, 85, 0, 0.1);
    border: 2px solid var(--lava);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    font-weight: bold;
}

/* Tip Card */
.tip-card {
    background: linear-gradient(135deg, var(--card-bg) 0%, #2a2a4a 100%);
    border-color: var(--gold);
}

/* Code */
code {
    background: #333;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: monospace;
    color: var(--emerald);
}

/* Footer */
.footer {
    text-align: center;
    padding: 3rem 1rem;
    background: #0a0a12;
    margin-top: 4rem;
    border-top: 3px solid var(--grass);
}

.footer p {
    color: var(--text-muted);
    margin: 0.5rem 0;
}

.version {
    font-size: 0.8rem;
    color: var(--grass);
}

/* Responsive */
@media (max-width: 900px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .nav-toggle {
        display: block;
    }
    
    .content {
        margin-left: 0;
        padding: 1rem;
        padding-top: 4rem;
    }
    
    .hero {
        padding: 2rem 1rem;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--grass);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--emerald);
}

/* Mob Tip */
.mob-tip {
    background: rgba(93, 158, 59, 0.1);
    border-left: 3px solid var(--grass);
    padding: 0.5rem 0.8rem;
    margin-top: 0.8rem;
    font-size: 0.8rem;
    color: var(--emerald);
    border-radius: 0 4px 4px 0;
}

/* Mob Cards */
.mob-category {
    font-family: 'Press Start 2P', cursive;
    font-size: 1rem;
    color: var(--gold);
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gold);
}

.mob-card {
    border-left: 4px solid var(--border);
    transition: box-shadow 0.2s;
    overflow: hidden;
}

.mob-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.mob-card.passive {
    border-left-color: var(--grass);
}

.mob-card.passive:hover {
    box-shadow: 0 8px 20px rgba(93, 158, 59, 0.3);
}

.mob-card.neutral {
    border-left-color: var(--gold);
}

.mob-card.neutral:hover {
    box-shadow: 0 8px 20px rgba(255, 204, 0, 0.3);
}

.mob-card.hostile {
    border-left-color: var(--redstone);
}

.mob-card.hostile:hover {
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.3);
}

.mob-card.boss {
    border-left-color: var(--lava);
    background: linear-gradient(135deg, var(--card-bg) 0%, #2a1a1a 100%);
}

.mob-card.boss:hover {
    box-shadow: 0 8px 20px rgba(255, 85, 0, 0.4);
}

.mob-card p {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

/* Accordion */
.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 0.8rem 1rem;
    background: rgba(255,255,255,0.03);
    border-radius: 6px;
    transition: background 0.2s;
    user-select: none;
}

.accordion-header:hover {
    background: rgba(255,255,255,0.08);
}

.accordion-header h3 {
    margin: 0 !important;
    font-size: 0.85rem !important;
    flex: 1;
}

.accordion-arrow {
    font-size: 0.7rem;
    color: var(--text-muted);
    transition: transform 0.3s ease;
    margin-left: 0.5rem;
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 0.5rem;
}

.mob-card.open .accordion-arrow {
    transform: rotate(90deg);
}

.mob-card.open .accordion-body {
    max-height: 2000px;
    padding: 0.5rem 0.5rem 1rem;
}

.accordion-body p {
    line-height: 1.7;
}

/* Unofficial Mob Card */
.mob-card.unofficial {
    border-left-color: #9b59b6;
    background: linear-gradient(135deg, var(--card-bg) 0%, #2a1a3a 100%);
}

.mob-card.unofficial:hover {
    box-shadow: 0 8px 20px rgba(155, 89, 182, 0.3);
}

.accordion-header.unofficial-header h3 {
    color: #bb86fc;
}

.mob-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    padding-top: 0.8rem;
    margin-top: auto;
}

.mob-stats span {
    background: rgba(255,255,255,0.05);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
}

/* Bedrock Info */
.bedrock-info {
    border-left-color: var(--water);
    background: linear-gradient(135deg, rgba(63, 118, 228, 0.15) 0%, var(--card-bg) 100%);
}

.bedrock-info h3 {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.85rem;
    color: var(--water);
    margin-bottom: 1rem;
}

.bedrock-info ul {
    list-style: none;
    margin-top: 0.8rem;
}

.bedrock-info li {
    padding: 0.3rem 0;
    padding-left: 1.2rem;
    position: relative;
}

.bedrock-info li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--water);
}

/* Legacy Console Edition */
.legacy-info {
    border-left-color: #e67e22;
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.15) 0%, var(--card-bg) 100%);
}

.legacy-info h3 {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.85rem;
    color: #e67e22;
    margin-bottom: 1rem;
}

.legacy-info ul {
    list-style: none;
    margin-top: 0.8rem;
}

.legacy-info li {
    padding: 0.3rem 0;
    padding-left: 1.2rem;
    position: relative;
}

.legacy-info li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #e67e22;
}

/* Official Link */
.official-link {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.official-link a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--grass) 0%, #4a8a2a 100%);
    color: white;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s;
    border: 2px solid var(--emerald);
}

.official-link a:hover {
    background: linear-gradient(135deg, #4a8a2a 0%, var(--grass) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(93, 158, 59, 0.4);
}

/* Selection */
::selection {
    background: var(--grass);
    color: white;
}