/* Block Page Styles - Brown/Golden Theme (matches item_page.css) */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Hide scrollbar but allow scrolling */
html {
    overflow-y: scroll;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

html::-webkit-scrollbar {
    display: none !important;
}

body {
    font-family: 'Courier New', monospace;
    background: #3a3545;
    min-height: 100vh;
    color: #fff;
    position: relative;
    overflow-x: hidden;
    animation: backgroundShift 20s ease infinite;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding-top: 0;
}

body::-webkit-scrollbar {
    display: none !important;
}

@keyframes backgroundShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Pixelated background pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 16px, rgba(0,0,0,0.05) 16px, rgba(0,0,0,0.05) 32px),
        repeating-linear-gradient(90deg, transparent, transparent 16px, rgba(0,0,0,0.05) 16px, rgba(0,0,0,0.05) 32px);
    pointer-events: none;
    z-index: 0;
}

/* Floating particles effect */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(2px 2px at 90% 60%, white, transparent),
        radial-gradient(1px 1px at 33% 80%, white, transparent);
    background-size: 200% 200%;
    animation: particles 30s linear infinite;
    opacity: 0.3;
    pointer-events: none;
    z-index: 1;
}

@keyframes particles {
    0% { transform: translateY(0); }
    100% { transform: translateY(-100%); }
}

/* Main content wrapper */
#main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
    position: relative;
    z-index: 10;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
    position: relative;
    z-index: 10;
}

/* Breadcrumb Styling */
.breadcrumb-container {
    background: linear-gradient(145deg, #2c3e50 0%, #34495e 100%);
    border: 4px solid #1a252f;
    box-shadow: 
        inset 2px 2px 0 rgba(255,255,255,0.2),
        inset -2px -2px 0 rgba(0,0,0,0.3),
        4px 4px 0 rgba(0,0,0,0.3);
    padding: 10px 18px;
    margin: 0 auto 20px;
    max-width: 1200px;
    font-size: 0.85rem;
    position: relative;
    z-index: 10;
}

.breadcrumb-wrapper {
    max-width: 100%;
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.breadcrumb-item:not(:last-child)::after {
    content: '»';
    margin-left: 10px;
    margin-right: 10px;
    color: #ffd700;
    font-weight: bold;
}

.breadcrumb-link,
.breadcrumb-item a {
    color: #ffd700;
    text-decoration: none;
    font-weight: bold;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.7);
    transition: all 0.2s;
}

.breadcrumb-link:hover,
.breadcrumb-item a:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255,215,0,0.6);
}

.breadcrumb-separator {
    color: #ffffff;
    margin: 0 4px;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.5);
}

.breadcrumb-current,
.breadcrumb-item.active span {
    color: #ffffff;
    font-weight: bold;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.7);
}

.breadcrumb,
.breadcrumb a {
    color: #ffd700;
    text-decoration: none;
    font-weight: bold;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.7);
    transition: all 0.2s;
}

.breadcrumb a:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255,215,0,0.6);
}

.breadcrumb span {
    color: #ffffff;
    margin: 0 8px;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.5);
}

.breadcrumb .current {
    color: #ffffff;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.5);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #8B4513 0%, #654321 100%);
    border: 4px solid #3d2817;
    box-shadow: 
        inset 2px 2px 0 rgba(255,255,255,0.2),
        inset -2px -2px 0 rgba(0,0,0,0.3),
        8px 8px 0 rgba(0,0,0,0.3);
    padding: 24px;
    margin: 0 auto 20px;
    max-width: 1200px;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255,255,255,0.1),
        transparent
    );
    transform: rotate(45deg);
    transition: all 0.6s;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 24px;
}

.page-header .block-image {
    flex-shrink: 0;
    background: #ffffff;
    padding: 8px;
    border: 4px solid #3d2817;
    box-shadow: 
        inset 2px 2px 0 rgba(255,255,255,0.3),
        4px 4px 0 rgba(0,0,0,0.3);
}

.page-header .block-image img {
    width: 128px;
    height: 128px;
    image-rendering: pixelated;
    display: block;
}

.page-header .no-image {
    width: 128px;
    height: 128px;
    background: #7f7f7f;
    border: 4px solid #3d2817;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 
        inset 2px 2px 0 rgba(255,255,255,0.2),
        inset -2px -2px 0 rgba(0,0,0,0.3),
        4px 4px 0 rgba(0,0,0,0.3);
}

.header-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.header-text h1 {
    font-size: 2rem;
    color: #D4A574;
    text-shadow: 0 0 10px rgba(212, 165, 116, 0.5), 2px 2px 0 rgba(0,0,0,0.7);
    margin: 0 0 8px 0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.header-text p {
    color: #ffffff;
    font-size: 0.9rem;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.5);
    margin: 0;
}

.minecraft-id-badge {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    margin-top: 12px;
    background: linear-gradient(135deg, #263238 0%, #37474f 100%);
    padding: 8px 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 3px solid #546e7a;
    border-radius: 4px;
    box-shadow: 
        inset 1px 1px 0 rgba(255,255,255,0.1),
        3px 3px 0 rgba(0,0,0,0.3);
}

.minecraft-id-badge .id-icon {
    width: 16px;
    height: 16px;
    opacity: 0.9;
    image-rendering: pixelated;
    filter: drop-shadow(0 0 2px rgba(255, 193, 7, 0.5));
}

.minecraft-id-badge .id-text {
    color: #81c784;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 0 0 8px rgba(129, 199, 132, 0.5);
}

/* Action Buttons */
.action-buttons {
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    border: 4px solid #3d2817;
    box-shadow: 
        inset 2px 2px 0 rgba(255,255,255,0.2),
        inset -2px -2px 0 rgba(0,0,0,0.3),
        8px 8px 0 rgba(0,0,0,0.3);
    padding: 20px;
    margin: 0 auto 20px;
    max-width: 1200px;
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

.action-btn {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    font-weight: bold;
    padding: 12px 24px;
    border: 3px solid #3d2817;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 
        inset 2px 2px 0 rgba(255,255,255,0.2),
        3px 3px 0 rgba(0,0,0,0.3);
}

.action-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 
        inset 2px 2px 0 rgba(255,255,255,0.2),
        5px 5px 0 rgba(0,0,0,0.3);
}

.action-btn:active {
    transform: translate(1px, 1px);
    box-shadow: 
        inset 2px 2px 0 rgba(255,255,255,0.2),
        2px 2px 0 rgba(0,0,0,0.3);
}

.report-btn {
    background: linear-gradient(135deg, #DC143C 0%, #8B0000 100%);
    color: white;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.7);
}

.crafting-btn {
    background: linear-gradient(135deg, #DAA520 0%, #B8860B 100%);
    color: #000;
    text-shadow: 1px 1px 0 rgba(255,255,255,0.3);
}

.enchanting-btn {
    background: linear-gradient(135deg, #8B2AC4 0%, #7C1BAA 100%);
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

.smelting-btn {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

.stonecutting-btn {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

/* Main Content */
.page-content {
    background: rgba(0, 0, 0, 0.3) !important;
    border: 4px solid #DAA520 !important;
    box-shadow: 
        inset 2px 2px 0 rgba(255,255,255,0.1),
        inset -2px -2px 0 rgba(0,0,0,0.3),
        8px 8px 0 rgba(0,0,0,0.3) !important;
    padding: 20px;
    margin: 0 auto 20px;
    max-width: 1170px;
    position: relative;
    z-index: 10;
}

.page-content h2 {
    color: #ffd700 !important;
    text-shadow: 3px 3px 0 rgba(0,0,0,0.7);
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
}

/* Block Info Grid */
.block-info {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    align-items: start;
    margin-bottom: 0;
}

/* Block Details */
.block-details {
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.block-details h2 {
    font-size: 1.5rem;
    color: #37474f;
    margin: 0 0 0 0;
    letter-spacing: 1px;
    text-shadow: 1px 1px 0 rgba(255,255,255,0.5);
    display: none;
}

.info-section {
    margin-bottom: 0;
    margin-top: 0;
    padding: 0;
    background: rgba(60, 45, 80, 0.6);
    border: 4px solid #3d2817;
    box-shadow: 
        inset 2px 2px 0 rgba(255,255,255,0.1),
        inset -2px -2px 0 rgba(0,0,0,0.3),
        4px 4px 0 rgba(0,0,0,0.3);
    overflow: hidden;
}

.info-section h3 {
    font-size: 1.1rem;
    color: #ffd700;
    margin: 0;
    letter-spacing: 1px;
    border-bottom: 4px solid rgba(0,0,0,0.3);
    padding: 15px 18px;
    text-shadow: 3px 3px 0 rgba(0,0,0,0.7);
    font-weight: bold;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.3);
}

.info-section p {
    line-height: 1.6;
    color: #ffffff;
    font-size: 0.9rem;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.5);
    padding: 18px;
    margin: 0;
}

/* Properties Sidebar */
.block-properties {
    background: rgba(0, 0, 0, 0.3);
    border: 4px solid #3d2817;
    padding: 0;
    box-shadow: 
        inset 2px 2px 0 rgba(255,255,255,0.1),
        inset -2px -2px 0 rgba(0,0,0,0.3),
        4px 4px 0 rgba(0,0,0,0.3);
    align-self: start;
    overflow: hidden;
}

.block-properties h3 {
    font-size: 1.1rem;
    color: #ffd700;
    margin-bottom: 0;
    letter-spacing: 1px;
    text-align: center;
    border-bottom: 4px solid rgba(0,0,0,0.3);
    padding: 15px 18px;
    text-shadow: 3px 3px 0 rgba(0,0,0,0.7);
    font-weight: bold;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.3);
}

.block-properties ul {
    list-style: none;
    padding: 18px;
}

.block-properties li {
    margin-bottom: 8px;
    padding: 10px 12px;
    background: #ffffff;
    border: 2px solid #3d2817;
    font-size: 0.85rem;
    color: #000000;
    text-shadow: none;
    box-shadow: inset 1px 1px 0 rgba(255,255,255,0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.block-properties li span {
    display: flex;
    align-items: center;
    flex: 1;
}

.property-status {
    padding: 4px 12px;
    border: 2px solid;
    font-weight: bold;
    font-size: 0.85rem;
    text-align: center;
    min-width: 40px;
    box-shadow: inset 1px 1px 0 rgba(255,255,255,0.2);
}

.property-status.yes {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    border-color: #1e8449;
    color: transparent;
    position: relative;
    overflow: hidden;
}

.property-status.yes::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.5));
}

.property-status.no {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border-color: #a93226;
    color: transparent;
    position: relative;
    overflow: hidden;
}

.property-status.no::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.5));
}

.property-status.info {
    background: linear-gradient(135deg, #DAA520 0%, #B8860B 100%);
    border-color: #8b6508;
    color: #000000;
    text-shadow: 1px 1px 0 rgba(255,255,255,0.3);
}

.block-properties li:last-child {
    margin-bottom: 0;
}

/* Stonecutting Info Section */
.stonecutting-info-section {
    max-width: 1170px;
    margin: 0 auto 20px;
    padding: 20px;
    background: linear-gradient(135deg, #FF6B6B 0%, #C92A2A 100%);
    border: 4px solid #A61E1E;
    box-shadow: 
        inset 2px 2px 0 rgba(255,255,255,0.2),
        inset -2px -2px 0 rgba(0,0,0,0.3),
        8px 8px 0 rgba(0,0,0,0.3);
    position: relative;
    z-index: 10;
}

.stonecutting-info-section h3 {
    font-size: 1.2rem;
    color: #FFFFFF;
    margin-bottom: 12px;
    letter-spacing: 1px;
    text-align: left;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.7);
    text-transform: uppercase;
    font-weight: bold;
}

.stonecutting-info-section p {
    font-size: 0.9rem;
    color: #FFFFFF;
    line-height: 1.6;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.5);
    margin: 0;
}

.stonecutting-info-section strong {
    color: #FFD700;
    font-weight: bold;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.7);
}

/* Recipes Section */
.recipes-section {
    max-width: 1170px;
    margin: 0 auto 20px;
    padding: 0;
    background: linear-gradient(135deg, #DAA520 0%, #B8860B 100%) !important;
    border: 4px solid #8b6508 !important;
    box-shadow: 
        inset 2px 2px 0 rgba(255,255,255,0.2),
        inset -2px -2px 0 rgba(0,0,0,0.3),
        8px 8px 0 rgba(0,0,0,0.3) !important;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.recipes-section h2 {
    font-size: 1.3rem;
    color: #000000 !important;
    margin-bottom: 0;
    letter-spacing: 1px;
    text-align: center;
    text-shadow: 1px 1px 0 rgba(255,255,255,0.3);
    padding: 15px 18px;
    border-bottom: 4px solid rgba(0,0,0,0.3) !important;
    text-transform: uppercase;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.3);
}

.recipes-grid {
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.recipe-card {
    background: rgba(0, 0, 0, 0.4);
    border: 3px solid #3d2817;
    padding: 20px;
    box-shadow: 
        inset 1px 1px 0 rgba(255,255,255,0.1),
        4px 4px 0 rgba(0,0,0,0.3);
    max-width: 100%;
    margin: 0 auto;
}

.recipe-type-header h4 {
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    font-weight: bold;
    color: #000000;
    text-shadow: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #ffffff;
    border: 4px solid #3d2817;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 
        inset 2px 2px 0 rgba(255,255,255,0.5),
        2px 2px 0 rgba(0,0,0,0.3);
}

/* Food Stats Section */
.hunger-stats {
    background: rgba(0, 0, 0, 0.3);
    border: 3px solid #3d2817;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 
        inset 2px 2px 0 rgba(255,255,255,0.1),
        inset -2px -2px 0 rgba(0,0,0,0.3),
        4px 4px 0 rgba(0,0,0,0.3);
    align-self: start;
}

.hunger-stats h3 {
    font-size: 1.2rem;
    color: #ffd700;
    margin-bottom: 16px;
    letter-spacing: 1px;
    text-align: center;
    border-bottom: 2px solid #8b6508;
    padding-bottom: 8px;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.7);
}

/* Damage Stats & Armor Stats Sections - Styled like Food Stats */
.damage-stats, .armor-stats {
    background: rgba(0, 0, 0, 0.3);
    border: 3px solid #3d2817;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 
        inset 2px 2px 0 rgba(255,255,255,0.1),
        inset -2px -2px 0 rgba(0,0,0,0.3),
        4px 4px 0 rgba(0,0,0,0.3);
    align-self: start;
}

.damage-stats h3, .armor-stats h3 {
    font-size: 1.2rem;
    color: #ffd700;
    margin-bottom: 16px;
    letter-spacing: 1px;
    text-align: center;
    border-bottom: 2px solid #8b6508;
    padding-bottom: 8px;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.7);
}

.damage-stats ul, .armor-stats ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.damage-stats li, .armor-stats li {
    margin-bottom: 10px;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid #8b6508;
    font-size: 0.85rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    box-shadow: 
        inset 1px 1px 0 rgba(255,255,255,0.1),
        2px 2px 0 rgba(0,0,0,0.3);
}

.damage-stats li:last-child, .armor-stats li:last-child {
    margin-bottom: 0;
}

/* Edition Tabs */
.edition-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}

.edition-tab {
    flex: 1;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #2c3e50;
    color: #ecf0f1;
    text-align: center;
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.7);
    box-shadow: inset 1px 1px 0 rgba(255,255,255,0.1);
}

.edition-tab:hover {
    background: rgba(52, 73, 94, 0.6);
    border-color: #34495e;
    color: #ffffff;
}

.edition-tab.active {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-color: #1a252f;
    color: #DAA520;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.5);
    box-shadow: 
        inset 2px 2px 0 rgba(255,255,255,0.1),
        2px 2px 0 rgba(0,0,0,0.3);
}

/* Edition Content */
.edition-content {
    display: none;
}

.edition-content.active {
    display: block;
}

.hunger-stats ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hunger-stats li {
    margin-bottom: 10px;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid #8b6508;
    font-size: 0.85rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    box-shadow: 
        inset 1px 1px 0 rgba(255,255,255,0.1),
        2px 2px 0 rgba(0,0,0,0.3);
}

.hunger-stats li:last-child {
    margin-bottom: 0;
}

.hunger-stats li img {
    image-rendering: pixelated;
    flex-shrink: 0;
}

.recipe-header-icon {
    width: 32px;
    height: 32px;
    image-rendering: pixelated;
    filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.5));
}

/* Classic Minecraft Crafting Table */
.visual-crafting-table {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: #C6C6C6 !important;
    padding: 20px;
    border: 2px solid #000000;
    border-top-color: #FFFFFF;
    border-left-color: #FFFFFF;
    border-right-color: #373737;
    border-bottom-color: #373737;
    margin: 20px 0;
    overflow: visible;
    box-shadow: 
        inset 2px 2px 0 rgba(255,255,255,0.8),
        inset -2px -2px 0 rgba(0,0,0,0.5);
    background-image: none !important;
    position: relative;
    z-index: 1;
}

.visual-crafting-table::before {
    display: none !important;
}

.crafting-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: #8B8B8B !important;
    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;
    background-image: none !important;
    position: relative;
    z-index: 1;
}

.crafting-grid::before {
    display: none !important;
}

.crafting-slot,
.grid-slot {
    width: 48px;
    height: 48px;
    background: #C6C6C6 !important;
    background-image: none !important;
    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;
    z-index: 1;
}

.crafting-slot::before,
.grid-slot::before {
    display: none !important;
}

.crafting-slot::after,
.grid-slot::after {
    display: none;
}

.crafting-slot img,
.grid-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;
}

.no-item-image {
    width: 32px;
    height: 32px;
    background: #5A5A5A;
    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);
}

.grid-slot .item-count,
.crafting-slot .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: 2px 2px 0 rgba(0,0,0,1);
    pointer-events: none;
    z-index: 2;
}

.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 !important;
    background-image: none !important;
    padding: 6px;
    border: 2px solid #000000;
    border-top-color: #000000;
    border-left-color: #000000;
    border-right-color: #000000;
    border-bottom-color: #000000;
    position: relative;
    z-index: 1;
}

.crafting-result::before {
    display: none !important;
}

.crafting-result .crafting-slot,
.crafting-result .grid-slot {
    width: 48px;
    height: 48px;
    background: #C6C6C6 !important;
    background-image: none !important;
    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::before,
.crafting-result .grid-slot::before {
    display: none !important;
}

.crafting-result .crafting-slot img,
.crafting-result .grid-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;
}

.crafting-result .no-item-image {
    width: 32px;
    height: 32px;
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.8;
    }
    50% { 
        transform: scale(1.1);
        opacity: 1;
    }
}

.ingredient-name {
    font-size: 0.9rem;
    color: #ffffff;
    text-align: center;
    margin-top: 5px;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.7);
}

/* Recipe Ingredients Bottom */
.recipe-ingredients-bottom {
    margin-top: 10px;
    padding: 10px 15px;
    background: #C6C6C6 !important;
    background-image: none !important;
    border: 2px solid #373737;
    border-top-color: #FFFFFF;
    border-left-color: #FFFFFF;
    border-right-color: #000000;
    border-bottom-color: #000000;
    color: #000000;
    font-size: 0.8rem;
    text-align: center;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    line-height: 1.5;
    box-shadow: 
        inset 2px 2px 0 rgba(255,255,255,0.5),
        inset -2px -2px 0 rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.recipe-ingredients-bottom::before {
    display: none !important;
}

/* Classic Minecraft Smelting Table */
.visual-smelting-table {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: #C6C6C6 !important;
    background-image: none !important;
    padding: 20px;
    border: 2px solid #000000;
    border-top-color: #FFFFFF;
    border-left-color: #FFFFFF;
    border-right-color: #373737;
    border-bottom-color: #373737;
    margin: 20px 0;
    overflow: visible;
    box-shadow: 
        inset 2px 2px 0 rgba(255,255,255,0.8),
        inset -2px -2px 0 rgba(0,0,0,0.5);
    position: relative;
    z-index: 1;
}

.visual-smelting-table::before {
    display: none !important;
}

/* Classic Minecraft Blasting Table (Blast Furnace) */
.visual-blasting-table {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: #C6C6C6 !important;
    background-image: none !important;
    padding: 20px;
    border: 2px solid #000000;
    border-top-color: #FFFFFF;
    border-left-color: #FFFFFF;
    border-right-color: #373737;
    border-bottom-color: #373737;
    margin: 20px 0;
    overflow: visible;
    box-shadow: 
        inset 2px 2px 0 rgba(255,255,255,0.8),
        inset -2px -2px 0 rgba(0,0,0,0.5);
    position: relative;
    z-index: 1;
}

.visual-blasting-table::before {
    display: none !important;
}

.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 Smoking Table (Smoker) */
.visual-smoking-table {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: #C6C6C6 !important;
    background-image: none !important;
    padding: 20px;
    border: 2px solid #000000;
    border-top-color: #FFFFFF;
    border-left-color: #FFFFFF;
    border-right-color: #373737;
    border-bottom-color: #373737;
    margin: 20px 0;
    overflow: visible;
    box-shadow: 
        inset 2px 2px 0 rgba(255,255,255,0.8),
        inset -2px -2px 0 rgba(0,0,0,0.5);
    position: relative;
    z-index: 1;
}

.visual-smoking-table::before {
    display: none !important;
}

.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 Campfire Table */
.visual-campfire-table {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: #C6C6C6 !important;
    background-image: none !important;
    padding: 20px;
    border: 2px solid #000000;
    border-top-color: #FFFFFF;
    border-left-color: #FFFFFF;
    border-right-color: #373737;
    border-bottom-color: #373737;
    margin: 20px 0;
    overflow: visible;
    box-shadow: 
        inset 2px 2px 0 rgba(255,255,255,0.8),
        inset -2px -2px 0 rgba(0,0,0,0.5);
    position: relative;
    z-index: 1;
}

.visual-campfire-table::before {
    display: none !important;
}

.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);
}

.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);
}

/* Smithing Table */
.visual-smithing-table {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: #C6C6C6;
    padding: 20px;
    border: 2px solid #000000;
    margin: 20px 0;
    overflow: visible;
}

.smithing-template,
.smithing-base,
.smithing-addition,
.smithing-result {
    background: #8B8B8B;
    padding: 6px;
    border: 2px solid #000000;
}

/* Stonecutter */
.visual-stonecutter-table {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: #C6C6C6;
    padding: 20px;
    border: 2px solid #000000;
    margin: 20px 0;
    overflow: visible;
}

/* Craftable Section */
.craftable-section {
    max-width: 1170px;
    margin: 0 auto 20px;
    padding: 0;
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%) !important;
    border: 4px solid #1B5E20 !important;
    box-shadow: 
        inset 2px 2px 0 rgba(255,255,255,0.2),
        inset -2px -2px 0 rgba(0,0,0,0.3),
        8px 8px 0 rgba(0,0,0,0.3) !important;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.craftable-section h2 {
    font-size: 1.3rem;
    color: #000000 !important;
    margin-bottom: 0;
    letter-spacing: 1px;
    text-align: center;
    text-shadow: 1px 1px 0 rgba(255,255,255,0.3);
    padding: 15px 18px;
    border-bottom: 4px solid rgba(0,0,0,0.3) !important;
    text-transform: uppercase;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.3);
}

.craftable-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
}

/* Enchanting Section */
.enchanting-section {
    max-width: 1170px;
    margin: 0 auto 20px;
    padding: 0;
    background: linear-gradient(135deg, #8B2AC4 0%, #7C1BAA 100%) !important;
    border: 4px solid #6a1b9a !important;
    box-shadow: 
        inset 2px 2px 0 rgba(255,255,255,0.2),
        inset -2px -2px 0 rgba(0,0,0,0.3),
        8px 8px 0 rgba(0,0,0,0.3) !important;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.enchanting-section h2 {
    font-size: 1.3rem;
    color: #ffffff !important;
    margin-bottom: 0;
    letter-spacing: 1px;
    text-align: center;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.7);
    padding: 15px 18px;
    border-bottom: 4px solid rgba(0,0,0,0.3) !important;
    text-transform: uppercase;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.3);
}

.enchanting-grid {
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
}

/* Enchantments Grid Layout */
.enchantments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
}

/* Enchantment Card Styling - Grid Cards */
.enchantment-card {
    background: rgba(0, 0, 0, 0.5);
    border: 3px solid #6a1b9a;
    padding: 20px;
    box-shadow: 
        inset 1px 1px 0 rgba(255,255,255,0.1),
        inset -1px -1px 0 rgba(0,0,0,0.3),
        4px 4px 0 rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.enchantment-card:hover {
    transform: translateY(-4px);
    border-color: #8e44ad;
    box-shadow: 
        inset 1px 1px 0 rgba(255,255,255,0.1),
        inset -1px -1px 0 rgba(0,0,0,0.3),
        6px 6px 0 rgba(0,0,0,0.4);
}

.enchantment-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 64px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid #4a148c;
    padding: 8px;
}

.enchantment-icon img {
    max-width: 48px;
    max-height: 48px;
    image-rendering: pixelated;
}

.enchant-placeholder {
    font-size: 2rem;
    color: #8e44ad;
    font-weight: bold;
}

.enchantment-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.enchantment-name {
    color: #e1bee7;
    font-size: 1.1rem;
    margin: 0;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.7);
    letter-spacing: 0.5px;
    text-align: center;
    font-weight: bold;
}

.enchantment-levels {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.level-badge {
    padding: 4px 10px;
    border: 2px solid;
    font-size: 0.9rem;
    font-weight: bold;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.7);
    box-shadow: inset 1px 1px 0 rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

/* Colorful level badges - different color for each level */
.level-badge.level-1,
.level-badge.level-single {
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    border-color: #1B5E20;
    color: #ffffff;
}

.level-badge.level-2 {
    background: linear-gradient(135deg, #2196F3 0%, #1565C0 100%);
    border-color: #0D47A1;
    color: #ffffff;
}

.level-badge.level-3 {
    background: linear-gradient(135deg, #9C27B0 0%, #6A1B9A 100%);
    border-color: #4A148C;
    color: #ffffff;
}

.level-badge.level-4 {
    background: linear-gradient(135deg, #FF9800 0%, #E65100 100%);
    border-color: #BF360C;
    color: #ffffff;
}

.level-badge.level-5 {
    background: linear-gradient(135deg, #F44336 0%, #C62828 100%);
    border-color: #B71C1C;
    color: #ffffff;
}

.level-badge:hover {
    transform: scale(1.1);
    box-shadow: inset 1px 1px 0 rgba(255,255,255,0.2), 2px 2px 4px rgba(0,0,0,0.5);
}

.enchantment-description {
    color: #ffffff;
    font-size: 0.85rem;
    line-height: 1.5;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.5);
    margin: 0;
    text-align: center;
}

.enchantment-details {
    display: flex;
    justify-content: center;
    padding-top: 8px;
    border-top: 1px solid rgba(225, 190, 231, 0.2);
}

.max-level {
    color: #ce93d8;
    font-size: 0.9rem;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.5);
}

.craftable-item {
    background: rgb(228, 230, 162);
    border: 3px solid #3d2817;
    padding: 12px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 
        inset 1px 1px 0 rgba(255,255,255,0.1),
        2px 2px 0 rgba(0,0,0,0.3);
    font-family: 'Courier New', monospace;
}

.craftable-item:hover {
    transform: translateY(-2px);
    border-color: #8b6508;
    box-shadow: 
        inset 1px 1px 0 rgba(255,255,255,0.1),
        4px 4px 0 rgba(0,0,0,0.3);
}

.craftable-item img {
    width: 64px;
    height: 64px;
    image-rendering: pixelated;
    margin-bottom: 8px;
}

.craftable-item a {
    color: #000000;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: bold;
    display: block;
    font-family: 'Courier New', monospace;
}

.craftable-item a:hover {
    color: #FFD700;
    text-decoration: underline;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(135deg, #8B4513 0%, #654321 100%);
    border: 4px solid #3d2817;
    margin: 0;
    padding: 30px;
    width: 90%;
    max-width: 600px;
    box-shadow: 
        inset 2px 2px 0 rgba(255,255,255,0.2),
        inset -2px -2px 0 rgba(0,0,0,0.3),
        8px 8px 0 rgba(0,0,0,0.5);
}

.modal h2 {
    color: #ffd700;
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.7);
}

.modal label {
    display: block;
    color: #ffffff;
    margin-bottom: 5px;
    font-size: 0.9rem;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.5);
}

.modal input,
.modal textarea,
.modal select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    background: rgba(0, 0, 0, 0.4);
    border: 3px solid #3d2817;
    color: #fff;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

.modal input:focus,
.modal textarea:focus,
.modal select:focus {
    outline: none;
    border-color: #8b6508;
    box-shadow: 0 0 10px rgba(218, 165, 32, 0.5);
}

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.submit-btn {
    background: linear-gradient(135deg, #DAA520 0%, #B8860B 100%);
    border: 3px solid #8b6508;
    color: #000;
    padding: 10px 25px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
    text-shadow: 1px 1px 0 rgba(255,255,255,0.3);
    box-shadow: 
        inset 2px 2px 0 rgba(255,255,255,0.2),
        3px 3px 0 rgba(0,0,0,0.3);
    transition: all 0.2s;
}

.cancel-btn {
    background: linear-gradient(135deg, #DC143C 0%, #8B0000 100%);
    border: 3px solid #5a0000;
    color: #fff;
    padding: 10px 25px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.7);
    box-shadow: 
        inset 2px 2px 0 rgba(255,255,255,0.2),
        3px 3px 0 rgba(0,0,0,0.3);
    transition: all 0.2s;
}

.submit-btn:hover,
.cancel-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 
        inset 2px 2px 0 rgba(255,255,255,0.2),
        5px 5px 0 rgba(0,0,0,0.3);
}

/* Responsive */
@media (max-width: 768px) {
    #main-content {
        padding: 15px 10px;
    }

    .page-header,
    .action-buttons,
    .page-content {
        margin-left: 10px;
        margin-right: 10px;
        max-width: calc(100% - 20px);
    }

    .block-info {
        grid-template-columns: 1fr;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-btn {
        width: 100%;
        justify-content: center;
    }

    .recipes-grid {
        grid-template-columns: 1fr;
    }
}
