/* Minecraft Retro Theme - Block Page Styles */
body {
    background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAOwgAADsIBFShKgAAAABl0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMC4xNkRpr/UAAABZSURBVChTY2CgG2BhYmJi+P//PwM2wMjIyMDOzs7AxsZGPcDGxsYgKyvLwM7Ozs/Ozv6fgYmJCWQ0TDYrKyvgDYyMjCDZrKys4A2MjIwg2ays7P8ZGBgYAABc5QX9U7qhAAAAAElFTkSuQmCC') repeat;
    min-height: 100vh;
    position: relative;
    /* Hide scrollbar but allow scrolling */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

/* Hide scrollbar for Chrome, Safari and Opera */
body::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for all elements but keep scrolling */
* {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

*::-webkit-scrollbar {
    display: none;
}Page */

/* Color palette inspired by Minecraft */
:root {
    --mc-green: #67c23a;
    --mc-green-dark: #4aa92a;
    --mc-green-light: #7dd855;
    --mc-brown: #8b4513;
    --mc-stone: #7f7f7f;
    --mc-dirt: #8b4513;
    --mc-grass: #7bb247;
    --mc-wood: #deb887;
    --mc-border: #4a4a4a;
    --mc-border-light: #6a6a6a;
    --mc-shadow: rgba(0,0,0,0.3);
    --mc-highlight: #ffffff;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Ensure navbar gets proper styling after reset */
.navbar {
    box-sizing: border-box !important;
    /* Removed border-bottom override to maintain consistency across pages */
}

/* Fix navbar button height to match other pages */
.navbar .nav-link {
    line-height: 1.4 !important;
}

body {
    font-family: 'Tahoma', sans-serif;
    line-height: 1.6;
    color: #000000;
    background: #8f918e !important;
    min-height: 100vh;
    position: relative;
    padding-top: 80px !important;
}

/* Pixelated background pattern to match other pages */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(0deg, rgba(255,255,255,0.03) 0, rgba(255,255,255,0.03) 2px, transparent 2px, transparent 8px),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0, rgba(255,255,255,0.03) 2px, transparent 2px, transparent 8px);
    z-index: -1;
    pointer-events: none;
}

/* Navbar elements now excluded from global reset above - no overrides needed */

/* Header */
.page-header {
    max-width: 1200px !important;
    width: 100% !important;
    margin: 0 auto !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border: 4px solid var(--mc-border, #4a4a4a) !important;
    border-radius: 0 !important;
    box-shadow: 
        inset 2px 2px 0 var(--mc-highlight, #ffffff),
        inset -2px -2px 0 var(--mc-shadow, rgba(0,0,0,0.3)),
        4px 4px 0 rgba(0,0,0,0.2) !important;
    padding: 24px !important;
    color: #000000;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 24px;
}

.page-header .block-image {
    flex-shrink: 0;
}

.page-header .block-image img {
    width: 128px;
    height: 128px;
    image-rendering: pixelated;
    border: 4px solid var(--mc-border, #4a4a4a);
    border-radius: 0;
    box-shadow: 
        inset 2px 2px 0 var(--mc-highlight, #ffffff),
        inset -2px -2px 0 var(--mc-shadow, rgba(0,0,0,0.3)),
        4px 4px 0 rgba(0,0,0,0.2);
}

.page-header .no-image {
    width: 128px;
    height: 128px;
    background: var(--mc-stone);
    border: 4px solid var(--mc-border, #4a4a4a);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: 'Tahoma', sans-serif;
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 
        inset 2px 2px 0 var(--mc-highlight),
        inset -2px -2px 0 var(--mc-shadow),
        4px 4px 0 rgba(0,0,0,0.2);
}

.header-text {
    flex: 1;
}

.page-header h1 {
    font-family: 'Tahoma', sans-serif !important;
    font-size: 2rem !important;
    font-weight: 900 !important;
    color: #000000 !important;
    margin-bottom: 8px !important;
    letter-spacing: 1px !important;
}

.page-header p {
    color: var(--mc-brown) !important;
    font-family: 'Tahoma', sans-serif !important;
    font-size: 1rem;
}

/* Action Buttons Container */
.action-buttons {
    max-width: 1200px;
    width: 100%;
    margin: 20px auto;
    display: flex;
    gap: 16px;
    justify-content: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95) !important;
    border: 4px solid var(--mc-border, #4a4a4a) !important;
    border-radius: 0 !important;
    box-shadow: 
        inset 2px 2px 0 var(--mc-highlight, #ffffff),
        inset -2px -2px 0 var(--mc-shadow, rgba(0,0,0,0.3)),
        4px 4px 0 rgba(0,0,0,0.2) !important;
}

.action-btn {
    font-family: 'Tahoma', sans-serif;
    font-size: 0.9rem;
    font-weight: bold;
    padding: 12px 24px;
    border: 4px solid var(--mc-border, #4a4a4a);
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--mc-stone);
    box-shadow: 
        inset 2px 2px 0 var(--mc-highlight, #ffffff),
        inset -2px -2px 0 var(--mc-shadow, rgba(0,0,0,0.3)),
        4px 4px 0 rgba(0,0,0,0.2);
}

.report-btn {
    background: #e74c3c;
    background-image: 
        repeating-linear-gradient(0deg, rgba(255,255,255,0.1) 0, rgba(255,255,255,0.1) 1px, transparent 1px, transparent 16px),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.1) 0, rgba(255,255,255,0.1) 1px, transparent 1px, transparent 16px);
    color: white;
}

.report-btn:hover {
    background: #c0392b;
    background-image: 
        repeating-linear-gradient(0deg, rgba(255,255,255,0.1) 0, rgba(255,255,255,0.1) 1px, transparent 1px, transparent 16px),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.1) 0, rgba(255,255,255,0.1) 1px, transparent 1px, transparent 16px);
    transform: translateY(1px);
    box-shadow: 
        inset 2px 2px 0 var(--mc-highlight),
        inset -2px -2px 0 var(--mc-shadow),
        2px 2px 0 rgba(0,0,0,0.2);
}

.crafting-btn {
    background: var(--mc-green);
    background-image: 
        repeating-linear-gradient(0deg, rgba(255,255,255,0.1) 0, rgba(255,255,255,0.1) 1px, transparent 1px, transparent 16px),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.1) 0, rgba(255,255,255,0.1) 1px, transparent 1px, transparent 16px);
    color: white;
}

.crafting-btn:hover {
    background: var(--mc-green-dark);
    background-image: 
        repeating-linear-gradient(0deg, rgba(255,255,255,0.1) 0, rgba(255,255,255,0.1) 1px, transparent 1px, transparent 16px),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.1) 0, rgba(255,255,255,0.1) 1px, transparent 1px, transparent 16px);
    transform: translateY(1px);
    box-shadow: 
        inset 2px 2px 0 var(--mc-highlight),
        inset -2px -2px 0 var(--mc-shadow),
        2px 2px 0 rgba(0,0,0,0.2);
}

button.action-btn.enchanting-btn {
    background: #8B2AC4 !important;
    background-image: 
        repeating-linear-gradient(0deg, rgba(255,255,255,0.1) 0, rgba(255,255,255,0.1) 1px, transparent 1px, transparent 16px),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.1) 0, rgba(255,255,255,0.1) 1px, transparent 1px, transparent 16px),
        linear-gradient(135deg, #8B2AC4, #A855C7) !important;
    color: white !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

button.action-btn.enchanting-btn:hover {
    background: #7C1BAA !important;
    background-image: 
        repeating-linear-gradient(0deg, rgba(255,255,255,0.15) 0, rgba(255,255,255,0.15) 1px, transparent 1px, transparent 16px),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.15) 0, rgba(255,255,255,0.15) 1px, transparent 1px, transparent 16px),
        linear-gradient(135deg, #7C1BAA, #9333B8) !important;
    transform: translateY(1px);
    box-shadow: 
        inset 2px 2px 0 rgba(255,255,255,0.2),
        inset -2px -2px 0 rgba(0,0,0,0.3),
        2px 2px 0 rgba(0,0,0,0.2);
}

.smelting-btn {
    background: #e67e22;
    color: white;
}

.smelting-btn:hover {
    background: #d35400;
    transform: translateY(1px);
    box-shadow: 
        inset 2px 2px 0 var(--mc-highlight),
        inset -2px -2px 0 var(--mc-shadow),
        2px 2px 0 rgba(0,0,0,0.2);
}

.stonecutting-btn {
    background: #95a5a6;
    color: white;
}

.stonecutting-btn:hover {
    background: #7f8c8d;
    transform: translateY(1px);
    box-shadow: 
        inset 2px 2px 0 var(--mc-highlight),
        inset -2px -2px 0 var(--mc-shadow),
        2px 2px 0 rgba(0,0,0,0.2);
}

.dyeing-btn {
    background: #9b59b6;
    color: white;
}

.dyeing-btn:hover {
    background: #8e44ad;
    transform: translateY(1px);
    box-shadow: 
        inset 2px 2px 0 var(--mc-highlight),
        inset -2px -2px 0 var(--mc-shadow),
        2px 2px 0 rgba(0,0,0,0.2);
}

/* Modal Action Buttons */
.cancel-btn {
    background: #e74c3c !important;
    background-image: 
        repeating-linear-gradient(0deg, rgba(255,255,255,0.1) 0, rgba(255,255,255,0.1) 1px, transparent 1px, transparent 16px),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.1) 0, rgba(255,255,255,0.1) 1px, transparent 1px, transparent 16px) !important;
    color: white !important;
}

.cancel-btn:hover {
    background: #c0392b !important;
    background-image: 
        repeating-linear-gradient(0deg, rgba(255,255,255,0.1) 0, rgba(255,255,255,0.1) 1px, transparent 1px, transparent 16px),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.1) 0, rgba(255,255,255,0.1) 1px, transparent 1px, transparent 16px) !important;
    transform: translateY(1px);
    box-shadow: 
        inset 2px 2px 0 var(--mc-highlight),
        inset -2px -2px 0 var(--mc-shadow, rgba(0,0,0,0.3)),
        2px 2px 0 rgba(0,0,0,0.2) !important;
}

.submit-btn {
    background: var(--mc-green) !important;
    background-image: 
        repeating-linear-gradient(0deg, rgba(255,255,255,0.1) 0, rgba(255,255,255,0.1) 1px, transparent 1px, transparent 16px),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.1) 0, rgba(255,255,255,0.1) 1px, transparent 1px, transparent 16px) !important;
    color: white !important;
}

.submit-btn:hover {
    background: var(--mc-green-dark) !important;
    background-image: 
        repeating-linear-gradient(0deg, rgba(255,255,255,0.1) 0, rgba(255,255,255,0.1) 1px, transparent 1px, transparent 16px),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.1) 0, rgba(255,255,255,0.1) 1px, transparent 1px, transparent 16px) !important;
    transform: translateY(1px);
    box-shadow: 
        inset 2px 2px 0 var(--mc-highlight),
        inset -2px -2px 0 var(--mc-shadow, rgba(0,0,0,0.3)),
        2px 2px 0 rgba(0,0,0,0.2) !important;
}

/* Main content */
.page-content {
    max-width: 1200px !important;
    width: 100% !important;
    margin: 20px auto 40px auto !important;
    padding: 20px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border: 4px solid var(--mc-border) !important;
    border-radius: 0 !important;
    box-shadow: 
        inset 2px 2px 0 var(--mc-highlight),
        inset -2px -2px 0 var(--mc-shadow),
        4px 4px 0 rgba(0,0,0,0.2) !important;
    position: relative !important;
}

/* Block Information Section - match index.css container borders */
.block-info {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    align-items: start;
    background: rgba(255, 255, 255, 0.95) !important;
    border: 4px solid var(--mc-border, #4a4a4a) !important;
    border-radius: 0 !important;
    box-shadow: 
        inset 2px 2px 0 var(--mc-highlight, #ffffff),
        inset -2px -2px 0 var(--mc-shadow, rgba(0,0,0,0.3)),
        4px 4px 0 rgba(0,0,0,0.2) !important;
    border: 4px solid var(--mc-border, #4a4a4a) !important;
    border-radius: 0 !important;
    box-shadow: 
        inset 2px 2px 0 var(--mc-highlight, #ffffff),
        inset -2px -2px 0 var(--mc-shadow, rgba(0,0,0,0.3)),
        4px 4px 0 rgba(0,0,0,0.2) !important;
    padding: 24px !important;
    margin-bottom: 24px !important;
}

.block-image {
    text-align: center;
    position: relative;
}

.block-image img {
    width: 128px;
    height: 128px;
    image-rendering: pixelated;
    border: 4px solid var(--mc-border, #4a4a4a);
    border-radius: 0;
    box-shadow: 
        inset 2px 2px 0 var(--mc-highlight),
        inset -2px -2px 0 var(--mc-shadow),
        4px 4px 0 rgba(0,0,0,0.2);
}

.no-image {
    width: 128px;
    height: 128px;
    background: var(--mc-stone);
    border: 4px solid var(--mc-border, #4a4a4a);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    font-family: 'Tahoma', sans-serif;
    box-shadow: 
        inset 2px 2px 0 var(--mc-highlight),
        inset -2px -2px 0 var(--mc-shadow),
        4px 4px 0 rgba(0,0,0,0.2);
}

.block-details h2 {
    font-family: 'Tahoma', sans-serif !important;
    font-size: 1.5rem !important;
    font-weight: 900 !important;
    color: #000000 !important;
    margin-bottom: 16px !important;
    letter-spacing: 1px !important;
    padding-bottom: 8px;
}

.block-details h2:empty {
    display: none;
    margin: 0;
    padding: 0;
}

.block-details {
    align-self: start;
}

.info-section {
    margin-bottom: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.9) !important;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(0,0,0,0.05) 2px, rgba(0,0,0,0.05) 4px),
        repeating-linear-gradient(0deg, rgba(255,255,255,0.06) 0, rgba(255,255,255,0.06) 2px, transparent 2px, transparent 8px),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.06) 0, rgba(255,255,255,0.06) 2px, transparent 2px, transparent 8px) !important;
    border: 4px solid var(--mc-border, #4a4a4a);
    border-radius: 0;
    box-shadow: 
        inset 2px 2px 0 var(--mc-highlight),
        inset -2px -2px 0 var(--mc-shadow),
        4px 4px 0 rgba(0,0,0,0.2);
}

.info-section:first-of-type,
.block-details .info-section:first-child {
    margin-top: 0 !important;
}

.info-section h3 {
    font-family: 'Tahoma', sans-serif !important;
    font-size: 1.1rem !important;
    font-weight: 900 !important;
    color: #000000 !important;
    margin-bottom: 8px !important;
    letter-spacing: 1px !important;
    border-bottom: 2px solid var(--mc-border);
    padding-bottom: 4px;
}

.info-section p {
    font-family: 'Tahoma', sans-serif !important;
    line-height: 1.6;
    color: #000000;
    font-size: 0.9rem;
}

/* Properties Sidebar */
.block-properties {
    background: rgba(255, 255, 255, 0.9) !important;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(0,0,0,0.05) 2px, rgba(0,0,0,0.05) 4px),
        repeating-linear-gradient(0deg, rgba(255,255,255,0.06) 0, rgba(255,255,255,0.06) 2px, transparent 2px, transparent 8px),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.06) 0, rgba(255,255,255,0.06) 2px, transparent 2px, transparent 8px) !important;
    border: 4px solid var(--mc-border, #4a4a4a);
    border-radius: 0;
    padding: 16px;
    box-shadow: 
        inset 2px 2px 0 var(--mc-highlight),
        inset -2px -2px 0 var(--mc-shadow),
        4px 4px 0 rgba(0,0,0,0.2);
}

.block-properties h3 {
    font-family: 'Tahoma', sans-serif !important;
    font-size: 1.2rem !important;
    font-weight: 900 !important;
    color: #000000 !important;
    margin-bottom: 16px !important;
    letter-spacing: 1px !important;
    text-align: center;
    border-bottom: 2px solid var(--mc-border);
    padding-bottom: 8px;
}

.block-properties ul {
    list-style: none;
}

.block-properties li {
    margin-bottom: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid var(--mc-border-light);
    border-radius: 0;
    font-family: 'Tahoma', sans-serif;
    font-size: 0.9rem;
    color: #000000;
    box-shadow: 
        inset 2px 2px 0 var(--mc-highlight, #ffffff),
        inset -2px -2px 0 var(--mc-shadow, rgba(0,0,0,0.3)),
        1px 1px 0 rgba(0,0,0,0.2);
}



.block-properties li:last-child {
    margin-bottom: 0;
}

/* Recipes Section - match index.css container borders */
.recipes-section {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 4px solid var(--mc-border, #4a4a4a) !important;
    border-radius: 0 !important;
    box-shadow: 
        inset 2px 2px 0 var(--mc-highlight, #ffffff),
        inset -2px -2px 0 var(--mc-shadow, rgba(0,0,0,0.3)),
        4px 4px 0 rgba(0,0,0,0.2) !important;
    padding: 24px !important;
    margin-bottom: 24px !important;
}

.recipes-section h2 {
    font-family: 'Tahoma', sans-serif !important;
    font-size: 1.5rem !important;
    font-weight: 900 !important;
    color: white !important;
    margin-bottom: 16px !important;
    letter-spacing: 1px !important;
    text-align: center;
    border-bottom: 2px solid var(--mc-border);
    padding: 12px;
    margin: -24px -24px 16px -24px;
    border-bottom: 3px solid #2980b9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    background: #3498db !important;
    background-image: 
        repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0, rgba(255,255,255,0.04) 2px, transparent 2px, transparent 8px),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0, rgba(255,255,255,0.04) 2px, transparent 2px, transparent 8px) !important;
}

/* 2-Column Grid for Recipes */
.recipes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.recipe-card {
    background: rgba(255, 255, 255, 0.9);
    background-image: 
        repeating-linear-gradient(0deg, rgba(255,255,255,0.08) 0, rgba(255,255,255,0.08) 2px, transparent 2px, transparent 8px),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.08) 0, rgba(255,255,255,0.08) 2px, transparent 2px, transparent 8px);
    border: 4px solid var(--mc-border, #4a4a4a);
    border-radius: 0;
    padding: 20px;
    box-shadow: 
        inset 2px 2px 0 var(--mc-highlight, #ffffff),
        inset -2px -2px 0 var(--mc-shadow, rgba(0,0,0,0.3)),
        4px 4px 0 rgba(0,0,0,0.2);
    position: relative;
}

/* Recipe Type Headers - Minecraft Style */
.recipe-type-header h4 {
    margin: 0;
    font-family: 'Tahoma', Arial, sans-serif;
    font-size: 16px;
    font-weight: bold;
    color: var(--mc-brown, #8B4513);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 0;
    border-bottom: 2px solid var(--mc-border, #4a4a4a);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Recipe Header Icons */
.recipe-header-icon {
    width: 32px;
    height: 32px;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    flex-shrink: 0;
}

/* Recipe action styles removed - enchant button moved to main action buttons */

.recipe-card h3 {
    color: #495057;
    margin-bottom: 1rem;
}

.recipe-type {
    background: #17a2b8;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.recipe-json {
    margin-top: 1rem;
}

.recipe-json h4 {
    color: #6c757d;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

/* Classic Minecraft Crafting Table */
.visual-crafting-table {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: #C6C6C6;
    padding: 20px;
    border: 2px solid #000000;
    border-top-color: #000000;
    border-left-color: #000000;
    border-right-color: #000000;
    border-bottom-color: #000000;
    margin: 20px 0;
    overflow: visible;
}

.crafting-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: #8B8B8B;
    padding: 6px;
    border: 2px solid #373737;
    border-top-color: #000000;
    border-left-color: #000000;
    border-right-color: #FFFFFF;
    border-bottom-color: #FFFFFF;
    box-shadow: 
        inset 1px 1px 0 rgba(0,0,0,0.8),
        inset -1px -1px 0 rgba(255,255,255,0.8);
    overflow: visible;
}

.crafting-slot {
    width: 48px;
    height: 48px;
    background: #C6C6C6;
    background-image: 
        repeating-linear-gradient(45deg, rgba(0,0,0,0.05) 0, rgba(0,0,0,0.05) 2px, transparent 2px, transparent 4px);
    border: 2px solid #373737;
    border-top-color: #000000;
    border-left-color: #000000;
    border-right-color: #FFFFFF;
    border-bottom-color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 
        inset 1px 1px 0 rgba(0,0,0,0.3),
        inset -1px -1px 0 rgba(255,255,255,0.3);
    image-rendering: pixelated;
}

.crafting-slot img {
    width: 32px;
    height: 32px;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    /* Force consistent sizing */
    min-width: 32px;
    min-height: 32px;
    max-width: 32px;
    max-height: 32px;
    object-fit: contain;
}

/* Clickable items styling */
.clickable-item {
    cursor: pointer !important;
    transition: filter 0.1s ease;
}

.clickable-item:hover {
    filter: brightness(1.2);
}

.no-item-image {
    width: 32px;
    height: 32px;
    background: #5A5A5A;
    background-image: 
        repeating-linear-gradient(45deg, rgba(255,255,255,0.1) 0, rgba(255,255,255,0.1) 2px, transparent 2px, transparent 4px);
    color: #CCCCCC;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.8);
}

.item-count {
    position: absolute;
    bottom: 1px;
    right: 1px;
    background: none;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    line-height: 1;
    text-shadow: 1px 1px 0 rgba(0,0,0,1);
    pointer-events: none;
}

/* Cycling Image Container */
.cycling-image-container {
    position: relative;
    width: 32px;
    height: 32px;
    overflow: hidden;
}

.cycling-image {
    width: 32px;
    height: 32px;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    transition: opacity 0.3s ease-in-out;
    /* Force consistent sizing during transitions */
    min-width: 32px;
    min-height: 32px;
    max-width: 32px;
    max-height: 32px;
    object-fit: contain;
}

.cycling-image.no-item-image {
    background: #5A5A5A;
    background-image: 
        repeating-linear-gradient(45deg, rgba(255,255,255,0.1) 0, rgba(255,255,255,0.1) 2px, transparent 2px, transparent 4px);
    color: #CCCCCC;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.8);
}



.crafting-arrow {
    font-size: 1.5rem;
    color: #373737;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    text-shadow: 1px 1px 0 rgba(255,255,255,0.5);
}

.crafting-result {
    background: #8B8B8B;
    padding: 6px;
    border: 2px solid #000000;
    border-top-color: #000000;
    border-left-color: #000000;
    border-right-color: #000000;
    border-bottom-color: #000000;
    
}

.crafting-result .crafting-slot {
    width: 48px;
    height: 48px;
    background: #C6C6C6;
    background-image: 
        repeating-linear-gradient(45deg, rgba(0,0,0,0.05) 0, rgba(0,0,0,0.05) 2px, transparent 2px, transparent 4px);
    border: 2px solid #373737;
    border-top-color: #000000;
    border-left-color: #000000;
    border-right-color: #FFFFFF;
    border-bottom-color: #FFFFFF;
    box-shadow: 
        inset 1px 1px 0 rgba(0,0,0,0.3),
        inset -1px -1px 0 rgba(255,255,255,0.3);
}

.crafting-result .crafting-slot img {
    width: 32px;
    height: 32px;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    /* Force consistent sizing for result images */
    min-width: 32px;
    min-height: 32px;
    max-width: 32px;
    max-height: 32px;
    object-fit: contain;
}

.crafting-result .no-item-image {
    width: 32px;
    height: 32px;
}

.crafting-result .item-count {
    color: #FFFFFF;
    font-size: 14px;
    text-shadow: 1px 1px 0 rgba(0,0,0,1);
}

/* Recipe Ingredients at Bottom */
.recipe-ingredients-bottom {
    background: #8B8B8B;
    border: 2px solid #373737;
    border-top-color: #000000;
    border-left-color: #000000;
    border-right-color: #FFFFFF;
    border-bottom-color: #FFFFFF;
    padding: 8px 12px;
    margin-top: 10px;
    color: #ffffff;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    text-shadow: 1px 1px 0 rgba(0,0,0,1);
    text-align: center;
    box-shadow: 
        inset 1px 1px 0 rgba(0,0,0,0.8),
        inset -1px -1px 0 rgba(255,255,255,0.8);
}

/* Classic Minecraft Smelting Table */
.visual-smelting-table {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: #C6C6C6;
    padding: 20px;
    border: 2px solid #000000;
    border-top-color: #000000;
    border-left-color: #000000;
    border-right-color: #000000;
    border-bottom-color: #000000;
    margin: 20px 0;
    overflow: visible;
}

.smelting-input, .smelting-result {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.smelting-fire {
    display: flex;
    align-items: center;
    justify-content: center;
}

.furnace-image {
    width: 32px;
    height: 32px;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    filter: none;
}

@keyframes flicker {
    0% { 
        opacity: 1; 
        color: #FF6600;
        text-shadow: 1px 1px 0 rgba(0,0,0,0.8);
    }
    50% { 
        opacity: 0.8; 
        color: #FF3300;
        text-shadow: 1px 1px 0 rgba(0,0,0,1);
    }
    100% { 
        opacity: 1; 
        color: #FF6600;
        text-shadow: 1px 1px 0 rgba(0,0,0,0.8);
    }
}

.smelting-arrow {
    font-size: 1.5rem;
    color: #373737;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    text-shadow: 1px 1px 0 rgba(255,255,255,0.5);
}

/* Classic Minecraft Campfire Cooking Table */
.visual-campfire-table {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: #C6C6C6;
    padding: 20px;
    border: 2px solid #000000;
    border-top-color: #000000;
    border-left-color: #000000;
    border-right-color: #000000;
    border-bottom-color: #000000;
    margin: 20px 0;
    overflow: visible;
}

.campfire-input, .campfire-result {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.campfire-fire {
    display: flex;
    align-items: center;
    justify-content: center;
}

.campfire-image {
    width: 32px;
    height: 32px;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    filter: none;
}

.campfire-arrow {
    font-size: 1.5rem;
    color: #373737;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    text-shadow: 1px 1px 0 rgba(255,255,255,0.5);
}

/* Classic Minecraft Smithing Table */
.visual-smithing-table {
    display: grid;
    grid-template-columns: 64px 20px 64px;
    grid-template-rows: 64px 64px 64px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #C6C6C6;
    padding: 20px;
    border: 2px solid #000000;
    border-top-color: #000000;
    border-left-color: #000000;
    border-right-color: #000000;
    border-bottom-color: #000000;
    margin: 20px 0;
    overflow: visible;
}

.smithing-template {
    grid-row: 1;
    grid-column: 1;
}

.smithing-base {
    grid-row: 2;
    grid-column: 1;
}

.smithing-addition {
    grid-row: 3;
    grid-column: 1;
}

.smithing-arrow {
    grid-row: 2;
    grid-column: 2;
    font-size: 1.5rem;
    color: #373737;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    text-shadow: 1px 1px 0 rgba(255,255,255,0.5);
    justify-self: center;
}

.smithing-result {
    grid-row: 2;
    grid-column: 3;
}

/* Classic Minecraft Smoking Table */
.visual-smoking-table {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: #C6C6C6;
    padding: 20px;
    border: 2px solid #000000;
    border-top-color: #000000;
    border-left-color: #000000;
    border-right-color: #000000;
    border-bottom-color: #000000;
    margin: 20px 0;
    overflow: visible;
}

.smoking-input, .smoking-result {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.smoking-fire {
    display: flex;
    align-items: center;
    justify-content: center;
}

.smoker-image {
    width: 32px;
    height: 32px;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    filter: none;
}

.smoking-arrow {
    font-size: 1.5rem;
    color: #373737;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    text-shadow: 1px 1px 0 rgba(255,255,255,0.5);
}

/* Classic Minecraft Blasting Table */
.visual-blasting-table {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: #C6C6C6;
    padding: 20px;
    border: 2px solid #000000;
    border-top-color: #000000;
    border-left-color: #000000;
    border-right-color: #000000;
    border-bottom-color: #000000;
    margin: 20px 0;
    overflow: visible;
}

.blasting-input, .blasting-result {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.blasting-fire {
    display: flex;
    align-items: center;
    justify-content: center;
}

.blast-furnace-image {
    width: 32px;
    height: 32px;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    filter: none;
}

.blasting-arrow {
    font-size: 1.5rem;
    color: #373737;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    text-shadow: 1px 1px 0 rgba(255,255,255,0.5);
}

/* Classic Minecraft Stonecutter Table */
.visual-stonecutter-table {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: #C6C6C6;
    padding: 20px;
    border: 2px solid #000000;
    border-top-color: #000000;
    border-left-color: #000000;
    border-right-color: #000000;
    border-bottom-color: #000000;
    margin: 20px 0;
    overflow: visible;
}

.stonecutter-input, .stonecutter-result {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stonecutter-input .crafting-slot, .stonecutter-result .crafting-slot {
    width: 48px;
    height: 48px;
    background: #C6C6C6;
    background-image: 
        repeating-linear-gradient(45deg, rgba(0,0,0,0.05) 0, rgba(0,0,0,0.05) 2px, transparent 2px, transparent 4px);
    border: 2px solid #373737;
    border-top-color: #000000;
    border-left-color: #000000;
    border-right-color: #FFFFFF;
    border-bottom-color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 
        inset 1px 1px 0 rgba(0,0,0,0.3),
        inset -1px -1px 0 rgba(255,255,255,0.3);
    image-rendering: pixelated;
}

.stonecutter-input .crafting-slot img, .stonecutter-result .crafting-slot img {
    width: 32px;
    height: 32px;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    min-width: 32px;
    min-height: 32px;
    max-width: 32px;
    max-height: 32px;
    object-fit: contain;
}

.stonecutter-machine {
    display: flex;
    align-items: center;
    justify-content: center;
}

.stonecutter-image {
    width: 32px;
    height: 32px;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    filter: none;
}

.stonecutter-arrow {
    font-size: 1.5rem;
    color: #373737;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    text-shadow: 1px 1px 0 rgba(255,255,255,0.5);
}

/* Dyeing Section Styles */
.dyeing-section {
    background: rgba(255, 255, 255, 0.9) !important;
    background-image: 
        repeating-linear-gradient(0deg, rgba(255,255,255,0.08) 0, rgba(255,255,255,0.08) 2px, transparent 2px, transparent 8px),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.08) 0, rgba(255,255,255,0.08) 2px, transparent 2px, transparent 8px) !important;
    border: 4px solid var(--mc-border, #4a4a4a) !important;
    border-radius: 0 !important;
    box-shadow: 
        inset 2px 2px 0 var(--mc-highlight, #ffffff),
        inset -2px -2px 0 var(--mc-shadow, rgba(0,0,0,0.3)),
        4px 4px 0 rgba(0,0,0,0.2) !important;
    padding: 24px !important;
    margin-bottom: 24px !important;
}

.dyeing-section h2 {
    font-family: 'Tahoma', sans-serif !important;
    font-size: 1.5rem !important;
    font-weight: 900 !important;
    color: white !important;
    margin-bottom: 16px !important;
    letter-spacing: 1px !important;
    text-align: center;
    border-bottom: 2px solid var(--mc-border);
    padding: 12px;
    margin: -24px -24px 16px -24px;
    border-bottom: 3px solid #8e44ad;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    background: #9b59b6 !important;
    background-image: 
        repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0, rgba(255,255,255,0.04) 2px, transparent 2px, transparent 8px),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0, rgba(255,255,255,0.04) 2px, transparent 2px, transparent 8px) !important;
}

.dyeing-info {
    text-align: center;
}

.dye-colors {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.dye-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid var(--mc-border);
    border-radius: 0;
    box-shadow: 
        inset 2px 2px 0 var(--mc-highlight, #ffffff),
        inset -2px -2px 0 var(--mc-shadow, rgba(0,0,0,0.3)),
        2px 2px 0 rgba(0,0,0,0.2);
}

.dye-color {
    width: 40px;
    height: 40px;
    border: 2px solid var(--mc-border);
    border-radius: 0;
    box-shadow: 
        inset 2px 2px 0 var(--mc-highlight, #ffffff),
        inset -2px -2px 0 var(--mc-shadow, rgba(0,0,0,0.3));
}

.dye-item span {
    font-family: 'Tahoma', sans-serif;
    font-size: 0.85rem;
    font-weight: bold;
    color: #000;
}

/* Smelting Section Header */
.smelting-section h2 {
    font-family: 'Tahoma', sans-serif !important;
    font-size: 1.5rem !important;
    font-weight: 900 !important;
    color: white !important;
    margin-bottom: 16px !important;
    letter-spacing: 1px !important;
    text-align: center;
    border-bottom: 2px solid var(--mc-border);
    padding: 12px;
    margin: -24px -24px 16px -24px;
    border-bottom: 3px solid #d35400;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    background: #e67e22 !important;
    background-image: 
        repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0, rgba(255,255,255,0.04) 2px, transparent 2px, transparent 8px),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0, rgba(255,255,255,0.04) 2px, transparent 2px, transparent 8px) !important;
}

/* Stonecutting Section Header */
.stonecutting-section h2 {
    font-family: 'Tahoma', sans-serif !important;
    font-size: 1.5rem !important;
    font-weight: 900 !important;
    color: white !important;
    margin-bottom: 16px !important;
    letter-spacing: 1px !important;
    text-align: center;
    border-bottom: 2px solid var(--mc-border);
    padding: 12px;
    margin: -24px -24px 16px -24px;
    border-bottom: 3px solid #7f8c8d;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    background: #95a5a6 !important;
    background-image: 
        repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0, rgba(255,255,255,0.04) 2px, transparent 2px, transparent 8px),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0, rgba(255,255,255,0.04) 2px, transparent 2px, transparent 8px) !important;
}

/* Craftable Section - match index.css container borders */
.craftable-section {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 4px solid var(--mc-border, #4a4a4a) !important;
    border-radius: 0 !important;
    box-shadow: 
        inset 2px 2px 0 var(--mc-highlight, #ffffff),
        inset -2px -2px 0 var(--mc-shadow, rgba(0,0,0,0.3)),
        4px 4px 0 rgba(0,0,0,0.2) !important;
    padding: 24px !important;
    margin-bottom: 24px !important;
}

.craftable-section h2 {
    font-family: 'Tahoma', sans-serif !important;
    font-size: 1.5rem !important;
    font-weight: 900 !important;
    color: white !important;
    margin-bottom: 16px !important;
    letter-spacing: 1px !important;
    text-align: center;
    border-bottom: 2px solid var(--mc-border);
    padding: 12px;
    margin: -24px -24px 16px -24px;
    border-bottom: 3px solid var(--mc-green-dark);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    background: var(--mc-green) !important;
    background-image: 
        repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0, rgba(255,255,255,0.04) 2px, transparent 2px, transparent 8px),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0, rgba(255,255,255,0.04) 2px, transparent 2px, transparent 8px) !important;
}

/* 5 Column Grid for Craftable Items */
.craftable-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.craftable-item {
    background: rgba(255, 255, 255, 0.9) !important;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(0,0,0,0.05) 2px, rgba(0,0,0,0.05) 4px),
        repeating-linear-gradient(0deg, rgba(255,255,255,0.06) 0, rgba(255,255,255,0.06) 2px, transparent 2px, transparent 8px),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.06) 0, rgba(255,255,255,0.06) 2px, transparent 2px, transparent 8px) !important;
    border: 4px solid var(--mc-border, #4a4a4a);
    border-radius: 0;
    padding: 16px;
    text-align: center;
    box-shadow: 
        inset 2px 2px 0 var(--mc-highlight),
        inset -2px -2px 0 var(--mc-shadow),
        4px 4px 0 rgba(0,0,0,0.2);
    /* only transition visual properties that do not affect layout to avoid hover movement */
    transition: box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
    text-decoration: none !important;
    color: inherit !important;
    display: block;
}

.craftable-item:hover .item-name {
    color: #000000;
    /* keep font weight stable to avoid width/height shifts on hover */
}

.craftable-item img {
    width: 64px;
    height: 64px;
    image-rendering: pixelated;
    margin-bottom: 8px;
    border: 2px solid var(--mc-border);
    border-radius: 0;
    box-shadow: 
        inset 2px 2px 0 var(--mc-highlight, #ffffff),
        inset -2px -2px 0 var(--mc-shadow, rgba(0,0,0,0.3)),
        2px 2px 0 rgba(0,0,0,0.2);
}

.craftable-item .no-image {
    width: 64px;
    height: 64px;
    background: var(--mc-stone);
    border: 2px solid var(--mc-border);
    margin: 0 auto 8px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border-radius: 0;
    font-family: 'Tahoma', sans-serif;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 
        inset 2px 2px 0 var(--mc-highlight, #ffffff),
        inset -2px -2px 0 var(--mc-shadow, rgba(0,0,0,0.3)),
        2px 2px 0 rgba(0,0,0,0.2);
}

.item-name {
    display: block;
    font-size: 0.85rem;
    font-weight: bold;
    color: #000000;
    line-height: 1.3;
    font-family: 'Tahoma', sans-serif;
}

.craftable-item:hover {
    /* highlight border color only, keep border width constant so items do not shift */
    border-color: #FFD700;
    box-shadow: 
        inset 2px 2px 0 var(--mc-highlight),
        inset -2px -2px 0 var(--mc-shadow),
        6px 6px 0 rgba(0,0,0,0.3);
}

/* Stonecutting Label for Craftable Items */
.has-stonecutting {
    position: relative;
}

.stonecutting-label {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: #888888;
    color: white;
    padding: 2px 6px;
    font-size: 0.7rem;
    border: 1px solid var(--mc-border);
    font-family: 'Tahoma', sans-serif;
    font-weight: bold;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
    border-radius: 2px;
}

.has-stonecutting:hover .stonecutting-label {
    background: #666666;
}

/* Stonecutting Information Section - Minecraft Style */
.stonecutting-info-section {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 4px solid var(--mc-border, #4a4a4a) !important;
    border-radius: 0 !important;
    box-shadow: 
        inset 2px 2px 0 var(--mc-highlight, #ffffff),
        inset -2px -2px 0 var(--mc-shadow, rgba(0,0,0,0.3)),
        4px 4px 0 rgba(0,0,0,0.2) !important;
    padding: 16px !important;
    margin: 16px 0 24px 0 !important;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(0,0,0,0.05) 2px, rgba(0,0,0,0.05) 4px),
        repeating-linear-gradient(0deg, rgba(255,255,255,0.06) 0, rgba(255,255,255,0.06) 2px, transparent 2px, transparent 8px),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.06) 0, rgba(255,255,255,0.06) 2px, transparent 2px, transparent 8px) !important;
}

.stonecutting-info-section h3 {
    font-family: 'Tahoma', sans-serif !important;
    font-size: 1.1rem !important;
    font-weight: 900 !important;
    color: #888888 !important; /* Stone gray */
    margin: 0 0 8px 0 !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3) !important;
    border-bottom: 2px solid #888888 !important;
    padding-bottom: 4px !important;
}

.stonecutting-info-section p {
    font-family: 'Tahoma', sans-serif !important;
    font-size: 0.9rem !important;
    color: #333333 !important;
    margin: 0 !important;
    line-height: 1.4 !important;
}

/* Enchanting Section */
.enchanting-section {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 4px solid var(--mc-border, #4a4a4a) !important;
    border-radius: 0 !important;
    box-shadow: 
        inset 2px 2px 0 var(--mc-highlight, #ffffff),
        inset -2px -2px 0 var(--mc-shadow, rgba(0,0,0,0.3)),
        4px 4px 0 rgba(0,0,0,0.2) !important;
    padding: 24px !important;
    margin-bottom: 24px !important;
}

.enchanting-section h2 {
    font-family: 'Tahoma', sans-serif !important;
    font-size: 1.5rem !important;
    font-weight: 900 !important;
    color: white !important;
    margin-bottom: 16px !important;
    letter-spacing: 1px !important;
    text-align: center;
    border-bottom: 2px solid var(--mc-border);
    padding: 12px;
    margin: -24px -24px 16px -24px;
    border-bottom: 3px solid #8B4513;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    background: #DEB887 !important;
    background-image: 
        repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0, rgba(255,255,255,0.04) 2px, transparent 2px, transparent 8px),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0, rgba(255,255,255,0.04) 2px, transparent 2px, transparent 8px) !important;
}

.enchantments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.enchantment-card {
    background: rgba(255, 255, 255, 0.9) !important;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(139, 69, 19, 0.05) 2px, rgba(139, 69, 19, 0.05) 4px),
        repeating-linear-gradient(0deg, rgba(255,255,255,0.06) 0, rgba(255,255,255,0.06) 2px, transparent 2px, transparent 8px),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.06) 0, rgba(255,255,255,0.06) 2px, transparent 2px, transparent 8px) !important;
    border: 3px solid var(--mc-border, #4a4a4a);
    border-radius: 0;
    padding: 16px;
    box-shadow: 
        inset 2px 2px 0 var(--mc-highlight),
        inset -2px -2px 0 var(--mc-shadow),
        3px 3px 0 rgba(0,0,0,0.2);
    transition: all 0.2s ease;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.enchantment-card:hover {
    border-color: #8B4513;
    transform: translateY(-1px);
    box-shadow: 
        inset 2px 2px 0 var(--mc-highlight),
        inset -2px -2px 0 var(--mc-shadow),
        4px 4px 0 rgba(0,0,0,0.3);
}

.enchantment-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.enchantment-icon img {
    width: 32px;
    height: 32px;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.enchant-placeholder {
    font-size: 24px;
    color: #8B4513;
}

.enchantment-info {
    flex: 1;
}

.enchantment-name {
    font-family: 'Tahoma', sans-serif;
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
    margin: 0 0 8px 0;
    text-shadow: 1px 1px 0 rgba(255,255,255,0.8);
}

.enchantment-levels {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.level-badge {
    background: linear-gradient(135deg, #8B4513, #A0522D);
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: bold;
    border: 1px solid #654321;
    box-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
    min-width: 20px;
    text-align: center;
}

.level-badge.level-1 { background: linear-gradient(135deg, #666, #888); }
.level-badge.level-2 { background: linear-gradient(135deg, #4CAF50, #66BB6A); }
.level-badge.level-3 { background: linear-gradient(135deg, #2196F3, #42A5F5); }
.level-badge.level-4 { background: linear-gradient(135deg, #9C27B0, #BA68C8); }
.level-badge.level-5 { background: linear-gradient(135deg, #FF9800, #FFB74D); }

.level-badge.level-single {
    background: linear-gradient(135deg, #FF5722, #FF7043);
}

.enchantment-description {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
    margin: 0 0 8px 0;
}

.enchantment-details {
    font-size: 0.8rem;
    color: #777;
}

.max-level {
    background: rgba(139, 69, 19, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid rgba(139, 69, 19, 0.2);
}

.enchanting-info {
    background: rgba(139, 69, 19, 0.1);
    border: 2px solid rgba(139, 69, 19, 0.3);
    border-radius: 4px;
    padding: 12px;
    margin-top: 16px;
}

.enchanting-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #444;
    line-height: 1.4;
}

.enchanting-info strong {
    color: #8B4513;
}

/* Footer */
.page-footer {
    background: linear-gradient(135deg, #2c3e50, #34495e, #2c3e50);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.2);
}

.page-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #f5576c);
    background-size: 300% 100%;
    animation: gradientShift 6s ease infinite;
}

.page-footer::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1), transparent);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .craftable-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.2rem;
    }
    
    .block-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .block-properties {
        margin-top: 1rem;
    }
    
    .action-buttons {
        padding: 15px;
        margin: 15px auto;
    }
}

@media (max-width: 768px) {
    .craftable-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    /* Make recipes single column on mobile */
    .recipes-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .recipe-card {
        padding: 15px;
    }
    
    .page-content {
        padding: 0 15px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        padding: 15px;
    }
    
    .action-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .craftable-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .craftable-item {
        padding: 0.8rem;
    }
    
    .craftable-item img,
    .craftable-item .no-image {
        width: 48px;
        height: 48px;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .block-info,
    .recipes-section,
    .craftable-section {
        padding: 1.5rem;
    }
    
    .action-btn {
        font-size: 0.8rem;
        padding: 10px 20px;
    }
}

/* Hide scrollbars but keep scrolling functionality */
html {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

html::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

body {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

body::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Report Button Styling */
.report-button {
    background: var(--mc-green) !important;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(0,0,0,0.1) 2px, rgba(0,0,0,0.1) 4px),
        repeating-linear-gradient(0deg, rgba(255,255,255,0.1) 0, rgba(255,255,255,0.1) 2px, transparent 2px, transparent 8px),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.1) 0, rgba(255,255,255,0.1) 2px, transparent 2px, transparent 8px) !important;
    color: white !important;
    border: 3px solid var(--mc-green-dark) !important;
    border-radius: 0 !important;
    padding: 12px 24px !important;
    font-family: 'Tahoma', sans-serif !important;
    font-size: 0.9rem !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    cursor: pointer !important;
    margin: 20px auto !important;
    display: block !important;
    box-shadow: 
        inset 2px 2px 0 var(--mc-highlight, #ffffff),
        inset -2px -2px 0 var(--mc-shadow, rgba(0,0,0,0.3)),
        2px 2px 0 rgba(0,0,0,0.3) !important;
    transition: all 0.2s ease !important;
}

.report-button:hover {
    background: var(--mc-green-light) !important;
    transform: translateY(-1px) !important;
    box-shadow: 
        inset 2px 2px 0 var(--mc-highlight, #ffffff),
        inset -2px -2px 0 var(--mc-shadow, rgba(0,0,0,0.3)),
        3px 3px 0 rgba(0,0,0,0.4) !important;
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(2px);
}

.modal-hidden {
    display: none !important;
}

.modal.show {
    display: block !important;
}

.modal-content {
    background: rgba(255, 255, 255, 0.95) !important;
    background-image: 
        repeating-linear-gradient(0deg, rgba(255,255,255,0.08) 0, rgba(255,255,255,0.08) 2px, transparent 2px, transparent 8px),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.08) 0, rgba(255,255,255,0.08) 2px, transparent 2px, transparent 8px) !important;
    border: 4px solid var(--mc-border) !important;
    border-radius: 0 !important;
    box-shadow: 
        inset 2px 2px 0 var(--mc-highlight),
        inset -2px -2px 0 var(--mc-shadow),
        8px 8px 0 rgba(0,0,0,0.3) !important;
    margin: 10% auto;
    padding: 30px;
    width: 90%;
    max-width: 600px;
}

.modal-content h2 {
    font-family: 'Tahoma', sans-serif !important;
    color: #000000 !important;
    margin-bottom: 20px !important;
    font-size: 1.5rem !important;
    font-weight: 900 !important;
    text-align: center;
    border-bottom: 2px solid var(--mc-border);
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-family: 'Tahoma', sans-serif !important;
    font-weight: bold;
    color: #000000;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 4px solid var(--mc-border, #4a4a4a);
    border-radius: 0;
    font-family: 'Tahoma', sans-serif !important;
    font-size: 0.9rem;
    box-shadow: 
        inset 2px 2px 0 var(--mc-shadow),
        inset -2px -2px 0 var(--mc-highlight);
}

.form-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 24px;
}

.btn {
    padding: 12px 24px !important;
    font-family: 'Tahoma', sans-serif !important;
    font-size: 0.9rem !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    cursor: pointer !important;
    border: 4px solid var(--mc-border, #4a4a4a) !important;
    border-radius: 0 !important;
    box-shadow: 
        inset 2px 2px 0 var(--mc-highlight, #ffffff),
        inset -2px -2px 0 var(--mc-shadow, rgba(0,0,0,0.3)),
        2px 2px 0 rgba(0,0,0,0.3) !important;
    transition: all 0.2s ease !important;
    /* Add pixelated texture pattern */
    background-image: 
        repeating-linear-gradient(0deg, rgba(255,255,255,0.03) 0, rgba(255,255,255,0.03) 2px, transparent 2px, transparent 8px),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0, rgba(255,255,255,0.03) 2px, transparent 2px, transparent 8px) !important;
}

.btn-primary {
    background: var(--mc-green) !important;
    color: white !important;
    border-color: var(--mc-green-dark) !important;
}

.btn-secondary {
    background: var(--mc-stone) !important;
    color: white !important;
    border-color: var(--mc-border) !important;
}

/* Stylish Minecraft Tooltips */
[data-tooltip] {
    position: relative;
    cursor: pointer;
}

[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -150%);
    background: #2D2D2D;
    background-image: 
        repeating-linear-gradient(0deg, rgba(255,255,255,0.05) 0, rgba(255,255,255,0.05) 1px, transparent 1px, transparent 4px),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.05) 0, rgba(255,255,255,0.05) 1px, transparent 1px, transparent 4px);
    color: #FFFFFF;
    padding: 8px 12px;
    border: 2px solid #000000;
    border-top-color: #555555;
    border-left-color: #555555;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    font-weight: bold;
    text-shadow: 1px 1px 0 rgba(0,0,0,1);
    white-space: nowrap;
    z-index: 999999;
    pointer-events: none;
    box-shadow: 
        inset 1px 1px 0 rgba(255,255,255,0.2),
        inset -1px -1px 0 rgba(0,0,0,0.8),
        3px 3px 8px rgba(0,0,0,0.9);
    animation: tooltipFadeIn 0.3s ease-out;
}

[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    bottom: calc(120% - 4px);
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border: 5px solid transparent;
    border-top-color: #000000;
    z-index: 99998;
    pointer-events: none;
    animation: tooltipFadeIn 0.2s ease-out;
}

@keyframes tooltipFadeIn {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(5px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 
        inset 2px 2px 0 var(--mc-highlight, #ffffff),
        inset -2px -2px 0 var(--mc-shadow, rgba(0,0,0,0.3)),
        3px 3px 0 rgba(0,0,0,0.4) !important;
}

/* Responsive Modal Styling */
@media (max-width: 768px) {
    .modal-content {
        margin: 5% auto;
        padding: 20px;
        width: 95%;
        max-width: 95%;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .form-actions .action-btn {
        width: 100%;
    }
}

/* Global fix for all recipe result images to prevent sizing issues */
[class*="result"] .crafting-slot img,
[class*="output"] .crafting-slot img,
.smelting-result img,
.smoking-result img,
.blasting-result img,
.smithing-result img {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    object-fit: contain !important;
    image-rendering: pixelated !important;
}

.action-btn.enchanting-btn {
    --mc-stone: transparent;
    background: linear-gradient(135deg, #8B2AC4, #A855C7) !important;
    background-image: 
        repeating-linear-gradient(0deg, rgba(255,255,255,0.1) 0, rgba(255,255,255,0.1) 1px, transparent 1px, transparent 16px),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.1) 0, rgba(255,255,255,0.1) 1px, transparent 1px, transparent 16px) !important;
    color: white !important;
}
