* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-user-select: none;
}

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #fff;
}

#render-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* UI & HUD */
#hud {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

#hud.hidden, .hidden {
    display: none !important;
}

#crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

#crosshair::before, #crosshair::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.8);
}

#crosshair::before {
    top: 7px;
    left: 0;
    width: 16px;
    height: 2px;
}

#crosshair::after {
    top: 0;
    left: 7px;
    width: 2px;
    height: 16px;
}

#display-text-overlay {
    position: absolute;
    top: 38%;
    left: 50%;
    width: min(900px, 88vw);
    transform: translate(-50%, -50%) scale(0.96);
    text-align: center;
    opacity: 0;
    transition: opacity 180ms ease, transform 180ms ease;
    text-shadow: 0 3px 3px rgba(0, 0, 0, 0.9), 0 0 12px rgba(0, 0, 0, 0.65);
}

#display-text-overlay.visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

#display-text-title {
    color: var(--display-title-color, #fff);
    font-size: clamp(30px, 5vw, 62px);
    font-weight: 800;
    line-height: 1.1;
}

#display-text-subtitle {
    color: var(--display-text-color, #fff);
    margin-top: 10px;
    font-size: clamp(17px, 2.2vw, 28px);
    font-weight: 500;
    line-height: 1.3;
}

#debug-info {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 10px 14px;
    border-radius: 6px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.5;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.8);
    color: #e2e8f0;
    pointer-events: none;
    user-select: none;
    z-index: 50;
    max-width: 520px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

/* Can, Oksijen ve Açlık Barları (Hotbar Üzerinde İki Yanlı) */
#status-bars-container {
    position: absolute;
    bottom: 74px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 452px;
    pointer-events: none;
    z-index: 40;
}

.status-bars-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
}

.status-bars-right {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
}

.status-bar {
    display: flex;
    gap: 3px;
    align-items: center;
}

.heart-icon, .hunger-icon, .bubble-icon, .fuel-icon {
    font-size: 13.5px;
    line-height: 1;
    filter: drop-shadow(1px 1px 1px rgba(0,0,0,0.9));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

/* Hasar Ekran Parlaması (Damage Flash) */
#damage-flash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.15) 30%, rgba(220, 38, 38, 0.55) 100%);
    opacity: 0;
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9998;
}
#damage-flash.active {
    opacity: 1;
    transition: none;
}

/* Minecraft Tarzı Ölüm Ekranı */
#death-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(120, 0, 0, 0.72);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.death-title {
    font-size: 48px;
    font-weight: 900;
    color: #ef4444;
    text-shadow: 2px 2px 0 #000, -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.death-cause {
    font-size: 18px;
    color: #f1f5f9;
    text-shadow: 1px 1px 2px #000;
    margin-bottom: 24px;
}

.death-btn {
    background: #dc2626 !important;
    border-color: #ef4444 !important;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.6);
}

.death-btn:hover {
    background: #b91c1c !important;
}

/* Hotbar (Minecraft Alt Çubuk) */
#hotbar-container {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: auto;
}

#hotbar {
    display: flex;
    gap: 4px;
    background: rgba(20, 20, 20, 0.75);
    padding: 4px;
    border: 2px solid #3c4856;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.hotbar-slot, .inv-slot {
    width: 44px;
    height: 44px;
    background: #2b3542;
    border: 2px solid #1a222c;
    border-radius: 4px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.05s ease;
}

.hotbar-slot.active {
    border-color: #f1f5f9;
    box-shadow: 0 0 6px rgba(255,255,255,0.7);
    transform: scale(1.06);
    background: #3b4756;
}

.inv-slot:hover {
    background: #3b4756;
    border-color: #64748b;
}

.inv-slot[draggable="true"] {
    cursor: grab;
}

.inv-slot[draggable="true"]:active {
    cursor: grabbing;
}

.item-icon {
    width: 26px;
    height: 26px;
    border-radius: 3px;
    box-shadow: inset 0 0 4px rgba(0,0,0,0.4);
    pointer-events: none;
}

.item-count {
    position: absolute;
    bottom: 2px;
    right: 4px;
    font-size: 11px;
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 2px #000;
    pointer-events: none;
}

/* Alet Dayanıklılık Çizgisi (Durability Bar) */
.durability-bar {
    position: absolute;
    bottom: 3px;
    left: 4px;
    right: 4px;
    height: 3px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 1px;
    overflow: hidden;
    pointer-events: none;
}

.durability-fill {
    height: 100%;
    transition: width 0.1s ease;
}

/* Envanter Modalı (E Tuşu) */
.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 20, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.inventory-card {
    background: rgba(30, 36, 44, 0.95);
    border: 2px solid #475569;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    position: relative;
}

.inventory-preview-card {
    width: min(460px, calc(100vw - 24px));
}

.inventory-preview-updated {
    color: #94a3b8;
    font-size: 12px;
    margin-bottom: 12px;
}

.inventory-preview-grid .inv-slot {
    cursor: default;
}

.inventory-preview-equipment {
    grid-template-columns: repeat(1, 42px);
}

.inv-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.inv-header {
    font-size: 18px;
    font-weight: bold;
    color: #4ade80;
    letter-spacing: 1px;
}

.trash-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #ef4444;
    color: #fff;
    border: 2px solid #b91c1c;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.15s ease;
}

.trash-btn:hover {
    background: #dc2626;
    transform: scale(1.05);
}

.inv-section-title {
    font-size: 12px;
    color: #94a3b8;
    margin: 10px 0 6px 0;
    text-transform: uppercase;
}

.inv-grid {
    display: grid;
    grid-template-columns: repeat(9, 44px);
    gap: 4px;
}

.hotbar-grid {
    border-top: 1px solid #475569;
    padding-top: 8px;
}

.inv-equipment-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0 4px 0;
}

.inv-equipment-label {
    font-size: 12px;
    color: #94a3b8;
    text-transform: uppercase;
    white-space: nowrap;
}

.inv-equipment-slots {
    display: flex;
    gap: 6px;
}

.equipment-slot {
    width: 44px;
    height: 44px;
    border: 2px dashed #475569;
    background: #1e2633;
    position: relative;
}

.equipment-slot:hover {
    border-color: #8b5cf6;
    background: #2a1f3d;
}

.equipment-slot.equipped {
    border-style: solid;
    border-color: #8b5cf6;
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.4);
}

.equipment-placeholder {
    width: 22px;
    height: 22px;
    color: #475569;
    pointer-events: none;
    position: absolute;
}

.equipment-slot .item-icon {
    position: relative;
    z-index: 1;
}

.equipment-slot .equipment-placeholder {
    display: flex;
}

.equipment-slot:has(.item-icon) .equipment-placeholder {
    display: none;
}

/* Minecraft Sohbet ve Komut Arayüzü */
#chat-container {
    position: absolute;
    bottom: 80px;
    left: 20px;
    width: 440px;
    z-index: 60;
    display: flex;
    flex-direction: column;
    opacity: 1;
    transition: opacity 0.5s ease;
}

#chat-container.fade-out {
    opacity: 0;
}

#chat-messages {
    user-select: text;
    -webkit-user-select: text;
    max-height: 180px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 6px;
    pointer-events: none;
}

.chat-msg {
    user-select: text;
    -webkit-user-select: text;
    cursor: text;
    background: rgba(0, 0, 0, 0.65);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.4;
    text-shadow: 1px 1px 1px #000;
}

#chat-input {
    background: rgba(15, 23, 42, 0.85);
    border: 2px solid #475569;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
}

#chat-input:focus {
    border-color: #4ade80;
}

/* Menü Tasarımı */
.menu-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 22, 28, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.menu-card {
    background: rgba(30, 36, 44, 0.95);
    border: 2px solid #3c4856;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    padding: 36px 48px;
    border-radius: 8px;
    text-align: center;
    min-width: 380px;
    max-width: 460px;
}

.game-title {
    font-size: 28px;
    letter-spacing: 3px;
    font-weight: 800;
    color: #4ade80;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.4);
    margin-bottom: 4px;
}

.game-subtitle {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 28px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.menu-title {
    font-size: 22px;
    margin-bottom: 24px;
    color: #f1f5f9;
}

.menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mc-btn {
    background: #334155;
    color: #f8fafc;
    border: 2px solid #1e293b;
    border-bottom: 4px solid #0f172a;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.1s ease;
    text-transform: uppercase;
}

.mc-btn:hover {
    background: #475569;
    border-color: #334155;
    transform: translateY(-1px);
}

.mc-btn:active {
    transform: translateY(2px);
    border-bottom: 2px solid #0f172a;
}

.setting-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
    text-align: left;
}

.setting-item label {
    font-size: 13px;
    color: #cbd5e1;
    display: flex;
    justify-content: space-between;
}

.setting-item input[type="range"] {
    accent-color: #4ade80;
    cursor: pointer;
}

.setting-item select {
    background: #1e293b;
    color: #f8fafc;
    border: 1px solid #475569;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
}

/* Katkıda Bulunanlar (Credits) Stilleri */
.credits-content {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid #334155;
    border-radius: 6px;
    padding: 16px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-size: 13px;
    line-height: 1.5;
    color: #cbd5e1;
}

.credit-item h3 {
    font-size: 14px;
    color: #38bdf8;
    margin-bottom: 6px;
}

.credit-item p {
    margin-bottom: 4px;
}

.license-badge {
    display: inline-block;
    background: #1e293b;
    border: 1px solid #4ade80;
    color: #4ade80 !important;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    margin-top: 4px;
}

.credit-source a {
    color: #38bdf8;
    text-decoration: underline;
}

.credit-source a:hover {
    color: #7dd3fc;
}

/* Yükleme Ekranı (Loading Screen) */
.loading-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #090d16;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-card {
    background: rgba(30, 36, 44, 0.95);
    border: 2px solid #334155;
    padding: 24px 32px;
    border-radius: 8px;
    text-align: center;
    min-width: 320px;
    max-width: 520px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}

.loading-minigame-container {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #090e17;
    border: 1px solid #1e293b;
    border-radius: 8px;
    padding: 10px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6);
}

#loading-minigame-canvas {
    width: 100%;
    max-width: 460px;
    height: 130px;
    background: #0b1120;
    border-radius: 4px;
    image-rendering: pixelated;
    cursor: pointer;
    display: block;
}

.loading-minigame-hint {
    margin-top: 8px;
    font-size: 13px;
    color: #94a3b8;
    font-weight: 600;
    letter-spacing: 0.5px;
    user-select: none;
    transition: color 0.2s ease;
}

.loading-minigame-hint.active {
    color: #38bdf8;
}

.loading-minigame-hint.gameover {
    color: #f87171;
}

.loading-title {
    font-size: 20px;
    font-weight: 800;
    color: #4ade80;
    letter-spacing: 2px;
    margin-bottom: 6px;
}

.loading-subtitle {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 20px;
}

.loading-progress-bg {
    width: 100%;
    height: 12px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
}

.loading-progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #0284c7, #4ade80);
    transition: width 0.15s ease-out;
}

.loading-percentage {
    font-size: 12px;
    font-weight: bold;
    color: #e2e8f0;
}

/* Crafting (Üretim) Alanı Stilleri */
.crafting-area-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.crafting-title {
    font-size: 13px;
    font-weight: bold;
    color: #38bdf8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.crafting-workbench {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(15, 23, 42, 0.6);
    padding: 8px 12px;
    border: 2px solid #334155;
    border-radius: 6px;
}

.crafting-grid {
    display: grid;
    grid-template-columns: repeat(2, 44px);
    grid-template-rows: repeat(2, 44px);
    gap: 4px;
}

.crafting-arrow {
    font-size: 22px;
    color: #94a3b8;
    font-weight: bold;
    user-select: none;
}

.crafting-output-slot {
    width: 52px;
    height: 52px;
    background: #1e293b;
    border: 2px solid #38bdf8;
    border-radius: 6px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.3);
    transition: transform 0.1s ease;
}

.crafting-output-slot:hover {
    background: #334155;
    transform: scale(1.06);
}

.crafting-output-slot .item-icon {
    width: 32px;
    height: 32px;
}

/* Minecraft Tarzı İmlece Yapışan Eşya Sürükleme İkonu */
#cursor-item {
    position: fixed;
    width: 36px;
    height: 36px;
    pointer-events: none;
    z-index: 100;
    display: none;
    transform: translate(-50%, -50%);
}

#cursor-item .item-icon {
    width: 100%;
    height: 100%;
}

#cursor-item .item-count {
    position: absolute;
    bottom: -2px;
    right: -2px;
    font-size: 13px;
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 2px #000, -1px -1px 2px #000, 1px -1px 2px #000, -1px 1px 2px #000;
}

/* Fırın (Furnace) UI Stilleri */
.furnace-header {
    font-size: 16px;
    font-weight: bold;
    color: #f97316;
    letter-spacing: 1px;
}

.furnace-workstation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: rgba(15, 23, 42, 0.6);
    padding: 12px 24px;
    border: 2px solid #334155;
    border-radius: 6px;
    margin-bottom: 12px;
}

.furnace-column-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.furnace-flame-wrapper {
    position: relative;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.furnace-flame-bg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    filter: grayscale(100%) brightness(35%);
    opacity: 0.45;
}

.furnace-flame {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    filter: grayscale(0%);
    opacity: 0;
    text-shadow: 0 0 8px #f97316, 0 0 16px #ef4444;
    clip-path: inset(100% 0 0 0);
    transition: clip-path 0.05s linear;
}

.furnace-flame.burning {
    opacity: 1;
    animation: flame-flicker 0.4s infinite alternate;
}

@keyframes flame-flicker {
    0% { transform: scale(0.96); }
    100% { transform: scale(1.08); }
}

.furnace-arrow-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.furnace-cook-arrow {
    font-size: 24px;
    color: #94a3b8;
    user-select: none;
}

.furnace-progress {
    width: 36px;
    height: 6px;
    background: #1e293b;
    border: 1px solid #475569;
    border-radius: 3px;
    overflow: hidden;
}

.furnace-progress-fill {
    width: 0%;
    height: 100%;
    background: #f97316;
    transition: width 0.1s linear;
}

.furnace-column-right {
    display: flex;
    align-items: center;
}

/* Minecraft Tarzı Hover İpucu (Tooltip) */
#item-tooltip {
    position: fixed;
    background: rgba(16, 2, 28, 0.94);
    color: #ffffff;
    border: 2px solid #5b21b6;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 13px;
    font-weight: bold;
    pointer-events: none;
    z-index: 120;
    display: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.8);
    text-shadow: 1px 1px 1px #000;
    white-space: nowrap;
}

/* Hotbar Üzerinde 1 Saniye Beliren Eşya İsmi */
#hotbar-item-name {
    position: absolute;
    bottom: 106px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #f1f5f9;
    padding: 4px 14px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px #000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 45;
}

#hotbar-item-name.show {
    opacity: 1;
}

/* Model Seçici Modal */
#model-spawner-modal {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.model-modal-card {
    background: #1e1e24;
    border: 3px solid #38bdf8;
    border-radius: 8px;
    width: 650px;
    max-width: 90vw;
    height: 520px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    overflow: hidden;
}

.model-modal-header {
    background: #0f172a;
    color: #38bdf8;
    padding: 12px 18px;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #334155;
}

.model-search-bar {
    padding: 10px 18px;
    background: #18181b;
    border-bottom: 1px solid #27272a;
}

.model-search-input {
    width: 100%;
    background: #09090b;
    border: 1px solid #3f3f46;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
}

.model-search-input:focus {
    border-color: #38bdf8;
}

.model-list-grid {
    flex: 1;
    overflow-y: auto;
    padding: 14px 18px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
}

.model-card-item {
    background: #27272a;
    border: 2px solid #3f3f46;
    border-radius: 6px;
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.model-card-item:hover {
    border-color: #38bdf8;
    background: #334155;
    transform: translateY(-2px);
}

.model-card-icon {
    width: 32px;
    height: 32px;
    background-image: url('./assets/textures/items/model_item.png');
    background-size: cover;
    image-rendering: pixelated;
    margin-bottom: 6px;
}

.model-card-name {
    font-size: 12px;
    font-weight: 500;
    color: #f1f5f9;
    word-break: break-word;
    line-height: 1.3;
}

.model-close-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
}

.model-close-btn:hover {
    color: #ef4444;
}

/* Model Kartı İkonu ve 1 Saniyelik Önizleme Animasyonu */
.model-card-icon {
    width: 48px;
    height: 48px;
    background-image: url('./assets/textures/items/model_item.png');
    background-size: 32px 32px;
    background-repeat: no-repeat;
    background-position: center;
    image-rendering: auto;
    margin-bottom: 6px;
    transition: transform 0.2s ease;
}

.model-card-item:hover .model-card-icon {
    transform: scale(1.1);
}

.model-card-icon.loading-preview {
    opacity: 0.6;
    animation: pulse 1s infinite alternate;
}

@keyframes pulse {
    from { opacity: 0.4; }
    to { opacity: 1.0; }
}

.creative-card {
    max-width: 520px;
    width: 95%;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
}

.creative-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.creative-title-group {
    display: flex;
    flex-direction: column;
}

.creative-title {
    font-family: 'Minecraft', monospace;
    font-size: 14px;
    font-weight: bold;
    color: #f1f5f9;
    text-shadow: 2px 2px #000;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.creative-item-count {
    font-family: 'Minecraft', monospace;
    font-size: 10px;
    color: #94a3b8;
    text-shadow: 1px 1px #000;
    margin-top: 1px;
}

.creative-search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.creative-search-box input {
    background: #0f172a;
    border: 2px solid #334155;
    border-radius: 4px;
    padding: 5px 28px 5px 10px;
    color: #f8fafc;
    font-size: 12px;
    outline: none;
    width: 150px;
    transition: border-color 0.2s;
}

.creative-search-box input:focus {
    border-color: #38bdf8;
}

.creative-search-clear {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    padding: 2px 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.creative-search-clear:hover {
    color: #f8fafc;
}

.creative-search-clear.hidden {
    display: none !important;
}

.creative-tabs {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding-bottom: 4px;
    border-bottom: 2px solid #334155;
    margin-bottom: 8px;
}

.creative-tab {
    background: #1e293b;
    border: 2px solid #334155;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    color: #94a3b8;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.creative-tab:hover {
    background: #334155;
    color: #f8fafc;
}

.creative-tab.active {
    background: #38bdf8;
    border-color: #38bdf8;
    color: #0f172a;
    font-weight: bold;
}

.creative-item-grid {
    display: grid;
    grid-template-columns: repeat(9, 44px);
    gap: 4px;
    justify-content: center;
    max-height: 250px;
    overflow-y: auto;
    padding: 6px;
    background: rgba(15, 23, 42, 0.6);
    border: 2px solid #334155;
    border-radius: 6px;
    margin-bottom: 10px;
}

.creative-item-grid::-webkit-scrollbar {
    width: 6px;
}

.creative-item-grid::-webkit-scrollbar-track {
    background: #0f172a;
}

.creative-item-grid::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 3px;
}

.creative-item-grid::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* ===================================================
   TARİF ARAYÜZÜ (RECIPE MODAL)
=================================================== */
.recipe-card {
    max-width: 500px;
    width: 95%;
    background: #1e1b4b;
    border: 3px solid #6366f1;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), inset 0 0 15px rgba(99, 102, 241, 0.2);
    display: flex;
    flex-direction: column;
    padding: 14px;
    gap: 12px;
}

.recipe-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #4338ca;
    padding-bottom: 10px;
}

.recipe-title-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.recipe-heading-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.recipe-title {
    font-family: 'Minecraft', monospace;
    font-size: 16px;
    font-weight: bold;
    color: #f8fafc;
    text-shadow: 2px 2px #000;
}

.recipe-badge {
    background: #3730a3;
    color: #c7d2fe;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid #6366f1;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.recipe-subtitle {
    font-family: 'Minecraft', monospace;
    font-size: 12px;
    color: #a5b4fc;
    text-shadow: 1px 1px #000;
}

.recipe-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.recipe-btn-back {
    background: #312e81;
    border: 2px solid #6366f1;
    border-radius: 4px;
    color: #f8fafc;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 8px;
    cursor: pointer;
    transition: background 0.15s;
}

.recipe-btn-back:hover {
    background: #4338ca;
}

.recipe-pager {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #0f172a;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #334155;
}

.recipe-page-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.recipe-page-btn:hover {
    color: #f8fafc;
}

.recipe-page-num {
    font-family: 'Minecraft', monospace;
    font-size: 11px;
    color: #e2e8f0;
}

.recipe-close-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    transition: color 0.15s;
}

.recipe-close-btn:hover {
    color: #ef4444;
}

.recipe-preview-container {
    background: rgba(15, 23, 42, 0.7);
    border: 2px solid #312e81;
    border-radius: 6px;
    padding: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 140px;
}

.recipe-view-mode {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Crafting View */
.recipe-crafting-panel {
    display: flex;
    align-items: center;
    gap: 16px;
}

.recipe-grid-3x3 {
    display: grid;
    grid-template-columns: repeat(3, 44px);
    grid-template-rows: repeat(3, 44px);
    gap: 4px;
}

.recipe-grid-3x3 .inv-slot {
    cursor: pointer;
    transition: transform 0.1s, border-color 0.1s;
}

.recipe-grid-3x3 .inv-slot:hover {
    border-color: #818cf8;
    transform: scale(1.05);
}

.recipe-flow-arrow {
    font-size: 26px;
    color: #818cf8;
    text-shadow: 0 0 8px rgba(129, 140, 248, 0.5);
    user-select: none;
}

.recipe-result-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.recipe-output-slot {
    width: 52px;
    height: 52px;
    border: 2px solid #818cf8 !important;
    background: #1e1b4b !important;
    box-shadow: 0 0 10px rgba(129, 140, 248, 0.4);
}

/* Furnace View */
.recipe-furnace-panel {
    display: flex;
    align-items: center;
    gap: 20px;
}

.recipe-furnace-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.recipe-furnace-fire {
    font-size: 20px;
    animation: fireFlicker 1s infinite alternate;
}

@keyframes fireFlicker {
    0% { transform: scale(0.9); opacity: 0.8; }
    100% { transform: scale(1.15); opacity: 1.0; }
}

.furnace-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.furnace-arrow-icon {
    font-size: 26px;
    color: #f97316;
}

.furnace-time-label {
    font-family: 'Minecraft', monospace;
    font-size: 11px;
    color: #fdba74;
}

/* Natural / Gathering View */
.recipe-natural-panel {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 0 10px;
}

.recipe-natural-icon-box {
    font-size: 38px;
    background: #312e81;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 2px solid #6366f1;
}

.recipe-natural-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.recipe-natural-heading {
    font-family: 'Minecraft', monospace;
    font-size: 14px;
    font-weight: bold;
    color: #f8fafc;
}

.recipe-natural-tool {
    font-size: 12px;
    color: #fbbf24;
    font-weight: 600;
}

/* Description Box */
.recipe-description-box {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid #334155;
    border-radius: 6px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.recipe-desc-title {
    font-family: 'Minecraft', monospace;
    font-size: 12px;
    font-weight: bold;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.recipe-desc-text {
    color: #e2e8f0;
    font-size: 13px;
    line-height: 1.5;
}

/* Footer */
.recipe-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.recipe-footer-status {
    font-size: 11px;
    color: #94a3b8;
    font-style: italic;
    flex: 1;
}

.recipe-take-btn {
    background: #2563eb;
    border-color: #1d4ed8;
    color: #ffffff;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
}

.recipe-take-btn:hover {
    background: #1d4ed8;
}

#Customizer, #CustomizerBtn, #CustomizerModalOverlay, #GoUpBtn {
    display: none !important;
}
.traffic-sign-modal {
    position: fixed; inset: 0; z-index: 11000; background: rgba(0, 0, 0, 0.8);
    display: flex; align-items: center; justify-content: center;
}
.traffic-sign-card {
    width: min(620px, 92vw); max-height: 85vh; padding: 20px; overflow: auto;
    background: #0f172a; color: #f1f5f9; border: 2px solid #64748b; border-radius: 8px;
}
.traffic-sign-card header, .traffic-sign-card footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.traffic-sign-card h2 { font-size: 20px; margin: 0; }
.traffic-sign-card input { width: 100%; box-sizing: border-box; padding: 10px; margin: 8px 0 16px; background: #1e293b; color: #fff; border: 1px solid #64748b; }
.traffic-sign-card button { padding: 10px; background: #1e293b; color: #fff; border: 2px solid #475569; cursor: pointer; }
.traffic-sign-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.traffic-sign-grid button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 120px; }
.traffic-sign-grid button.selected { border-color: #38bdf8; background: #164e63; }
.traffic-sign-grid img { width: 80px; height: 70px; object-fit: contain; }
.traffic-sign-error { color: #f87171; min-height: 20px; }
.traffic-sign-card button:disabled { opacity: 0.5; cursor: wait; }
