@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;700;900&display=swap');

:root {
    --primary: #D4A574;
    --accent: #8B6F47;
    --success: #5A7C3A;
    --dark: #3A4A2A;
    --wood: #6B4E37;
    --stone: #5A5A5A;
    --shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
    --shadow-heavy: 0 8px 16px rgba(0, 0, 0, 0.8);
    --water-color: #2E5A7A;
}

body {
    margin: 0;
    overflow: hidden;
    background-color: #4A5A6A; /* Clash of Clans tarzı koyu arka plan */
    font-family: 'Nunito', sans-serif;
    user-select: none;
    -webkit-user-select: none;
}

#game-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}

#ui-layer {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 10;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    box-sizing: border-box;
}

/* --- ÜST BAR --- */
.top-bar {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    pointer-events: auto;
}

.stats-container {
    position: fixed;
    left: 20px;
    top: 20px;
    display: flex;
    flex-direction: row;
    gap: 12px;
    z-index: 100;
    pointer-events: auto;
}
    
.stat-item {
    display: flex;
    align-items: center;
    gap: 0px;
}

/* --- Stat Badge Stili --- */
.stat-badge {
    background: linear-gradient(135deg, #5A4A3A 0%, #3A2A1A 100%);
    border: 2px solid #8B6F47;
    padding: 8px 14px;
    border-radius: 10px;
    box-shadow: var(--shadow-heavy), inset 0 2px 4px rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 900;
    color: #E8D5B7;
    font-size: 1rem;
    transition: transform 0.1s;
    position: relative;
    overflow: hidden;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    min-width: 100px;
    backdrop-filter: blur(5px);
}
    
/* Kova kartı */
#bucket-badge {
    padding: 0; 
    display: flex; 
    align-items: center;
}

/* İçerik (Kova) */
#bucket-content {
    position: relative;
    z-index: 2; 
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 80px;
    pointer-events: none;
}

/* Kova Su Dolum Katmanı */
#bucket-water-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--water-color);
    transition: height 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
    height: 0%; 
    opacity: 0.6; 
}
    
/* Yükseltme Butonu Stili */
.upgrade-btn {
    position: relative;
    z-index: 3; 
    background: none;
    border: none;
    color: #5A7C3A;
    font-size: 1.2rem;
    font-weight: 900;
    padding: 0 10px 0 0;
    cursor: pointer;
    transition: transform 0.1s, color 0.2s;
    pointer-events: auto;
    text-shadow: 0 0 8px rgba(90,124,58,0.5);
}
    
.upgrade-btn:hover {
    color: #7A9C5A;
    transform: scale(1.1);
    text-shadow: 0 0 12px rgba(122,156,90,0.7);
}
    
.upgrade-btn:disabled {
    color: #95a5a6;
    cursor: not-allowed;
    transform: none;
}

.stat-badge:hover { transform: scale(1.05); box-shadow: var(--shadow-heavy), inset 0 2px 4px rgba(255,255,255,0.2); }
.stat-icon { 
    font-size: 2.5rem; 
    filter: drop-shadow(0 3px 3px rgba(0,0,0,0.6));
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: -8px;
    position: relative;
    z-index: 1;
}
.money-val { color: #FFD700; text-shadow: 0 0 8px rgba(255,215,0,0.5); }
.level-val { color: #87CEEB; text-shadow: 0 0 8px rgba(135,206,235,0.5); }

/* --- DURUM DEĞİŞİM GÖSTERGESİ --- */
.status-change {
    position: absolute;
    top: -10px;
    right: 0px;
    font-size: 0.9rem;
    font-weight: 900;
    color: #27ae60;
    opacity: 0;
    pointer-events: none;
    text-shadow: 0 1px 1px rgba(0,0,0,0.2);
    animation: floatUp 1.5s ease-out forwards;
    white-space: nowrap;
}

.status-change.negative {
    color: #e74c3c;
}

@keyframes floatUp {
    0% { transform: translateY(0); opacity: 1; }
    50% { opacity: 1; }
    100% { transform: translateY(-20px); opacity: 0; }
}

/* --- SAĞ MENÜ BUTONLARI --- */
.menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.circle-btn {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    border: 2px solid #8B6F47;
    background: linear-gradient(135deg, #6B4E37 0%, #4A3A2A 100%);
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow), inset 0 2px 4px rgba(255,255,255,0.1);
    transition: all 0.2s;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.circle-btn:hover { 
    background: linear-gradient(135deg, #8B6F47 0%, #6B4E37 100%); 
    transform: scale(1.1); 
    box-shadow: var(--shadow-heavy), inset 0 2px 4px rgba(255,255,255,0.2);
}
.circle-btn:active { transform: scale(0.9); }
    
.btn-market { 
    background: linear-gradient(135deg, #8B6F47 0%, #6B4E37 100%); 
    color: #FFD700; 
    border: 2px solid #D4A574; 
}
.btn-inv { 
    background: linear-gradient(135deg, #5A7C3A 0%, #4A6C2A 100%); 
    color: #E8D5B7; 
    border: 2px solid #7A9C5A; 
}
.btn-settings { 
    background: linear-gradient(135deg, #5A5A5A 0%, #4A4A4A 100%); 
    color: #E8D5B7; 
    border: 2px solid #7A7A7A; 
}

/* --- TOOLTIP (Sat/Kaldır Menüsü) --- */
.edit-tooltip {
    position: fixed;
    z-index: 1000;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    animation: tooltipFadeIn 0.2s ease-out;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.tooltip-content {
    background: linear-gradient(135deg, #4A3A2A 0%, #3A2A1A 100%);
    border: 3px solid #8B6F47;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.6), inset 0 2px 4px rgba(255,255,255,0.1);
    min-width: 180px;
    pointer-events: auto;
}

.tooltip-header {
    text-align: center;
    border-bottom: 2px solid #8B6F47;
    padding-bottom: 10px;
    margin-bottom: 12px;
}

.tooltip-header span {
    color: #E8D5B7;
    font-size: 1rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.tooltip-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.tooltip-btn {
    flex: 1;
    background: linear-gradient(135deg, #5A4A3A 0%, #4A3A2A 100%);
    border: 2px solid #8B6F47;
    border-radius: 8px;
    padding: 10px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow), inset 0 1px 2px rgba(255,255,255,0.1);
}

.tooltip-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy), inset 0 2px 4px rgba(255,255,255,0.2);
}

.tooltip-btn-sell {
    border-color: #FFD700;
}

.tooltip-btn-sell:hover {
    background: linear-gradient(135deg, #6B5A4A 0%, #5A4A3A 100%);
    border-color: #FFE55C;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4), inset 0 2px 4px rgba(255,255,255,0.2);
}

.tooltip-btn-remove {
    border-color: #e74c3c;
}

.tooltip-btn-remove:hover {
    background: linear-gradient(135deg, #6B5A4A 0%, #5A4A3A 100%);
    border-color: #ec7063;
    box-shadow: 0 0 15px rgba(231, 76, 60, 0.4), inset 0 2px 4px rgba(255,255,255,0.2);
}

.tooltip-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.tooltip-label {
    color: #E8D5B7;
    font-size: 0.85rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* --- DÜZENLEME MODU ENVANTER MENÜSÜ --- */
.edit-inventory-menu {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #4A3A2A 0%, #3A2A1A 100%);
    border: 3px solid #8B6F47;
    border-radius: 15px;
    padding: 15px 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5), inset 0 2px 4px rgba(255,255,255,0.1);
    z-index: 50;
    min-width: 300px;
}

.edit-inventory-header {
    text-align: center;
    border-bottom: 2px solid #8B6F47;
    padding-bottom: 10px;
    margin-bottom: 5px;
}

.edit-inventory-header h3 {
    margin: 0;
    color: #E8D5B7;
    font-size: 1.1rem;
    font-weight: 900;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.edit-inventory-items {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.edit-inventory-item {
    background: linear-gradient(135deg, #5A4A3A 0%, #4A3A2A 100%);
    border: 2px solid #8B6F47;
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 120px;
    box-shadow: var(--shadow), inset 0 1px 2px rgba(255,255,255,0.1);
    position: relative; /* Buton için relative pozisyon */
}

.edit-inventory-item:hover {
    background: linear-gradient(135deg, #6A5A4A 0%, #5A4A3A 100%);
    border-color: #D4A574;
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy), inset 0 2px 4px rgba(255,255,255,0.2);
}

.edit-inventory-item.active {
    background: linear-gradient(135deg, #6B4E37 0%, #5A3E27 100%);
    border-color: #D4A574;
    box-shadow: 0 0 15px rgba(212, 165, 116, 0.5), inset 0 2px 4px rgba(255,255,255,0.2);
}

.edit-item-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.edit-item-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.edit-item-name {
    color: #E8D5B7;
    font-size: 0.9rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.edit-item-count {
    color: #FFD700;
    font-size: 1.2rem;
    font-weight: 900;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* --- DÜZENLEME PANELİ --- */
.edit-panel {
    position: absolute;
    top: 60px;
    right: 0;
    background: linear-gradient(135deg, #4A3A2A 0%, #3A2A1A 100%);
    border: 2px solid #8B6F47;
    border-radius: 10px;
    padding: 15px;
    box-shadow: var(--shadow-heavy), inset 0 2px 4px rgba(255,255,255,0.1);
    z-index: 200;
    pointer-events: auto;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dozer-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 80px;
    height: 80px;
    border-radius: 10px;
    border: 3px solid #f39c12;
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    cursor: pointer;
    font-size: 1.2rem;
    color: white;
    box-shadow: var(--shadow-heavy), inset 0 2px 4px rgba(255,255,255,0.2);
    transition: all 0.3s;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.dozer-btn:hover {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    transform: scale(1.1);
    box-shadow: var(--shadow-heavy), inset 0 2px 4px rgba(255,255,255,0.3);
}

.dozer-btn.active {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    border-color: #2ecc71;
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.5), inset 0 2px 4px rgba(255,255,255,0.3);
}

.dozer-btn.active:hover {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

.dozer-icon {
    font-size: 2rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.dozer-label {
    font-size: 0.9rem;
    font-weight: bold;
}

/* --- TOOLBAR (Üst Konum Sabitlendi) --- */
.toolbar-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 12;
    pointer-events: auto;
}
    
.top-elements-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}
    
.toolbar {
    background: linear-gradient(135deg, #4A3A2A 0%, #3A2A1A 100%);
    padding: 10px 20px;
    border-radius: 8px;
    display: flex;
    gap: 15px;
    box-shadow: var(--shadow-heavy), inset 0 2px 4px rgba(255,255,255,0.1);
    border: 2px solid #8B6F47;
}

/* Yeni: Çapa butonu ve + butonu için grup */
.hoe-tool-group {
    position: relative;
    display: inline-block; /* Konumlandırma için */
}
    
.tool-btn {
    width: 65px;
    height: 65px;
    border: 2px solid #8B6F47;
    border-radius: 8px;
    background: linear-gradient(135deg, #5A4A3A 0%, #4A3A2A 100%);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow), inset 0 2px 4px rgba(255,255,255,0.1);
}

.tool-btn span.emoji { position: relative; z-index: 1; font-size: 26px; margin-bottom: 2px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)); }
.tool-btn span.label { position: relative; z-index: 1; font-size: 10px; font-weight: 800; color: #E8D5B7; text-transform: uppercase; letter-spacing: 0.5px; text-shadow: 1px 1px 2px rgba(0,0,0,0.5); }

.tool-btn:hover { 
    background: linear-gradient(135deg, #6B5A4A 0%, #5A4A3A 100%); 
    transform: translateY(-5px); 
    box-shadow: var(--shadow-heavy), inset 0 2px 4px rgba(255,255,255,0.2);
}
    
.tool-btn.active {
    background: linear-gradient(135deg, #D4A574 0%, #B89564 100%);
    border-color: #FFD700;
    transform: translateY(-10px) scale(1.1);
    box-shadow: var(--shadow-heavy), 0 0 15px rgba(212,165,116,0.5), inset 0 2px 4px rgba(255,255,255,0.3);
}
.tool-btn.active span.label { color: #3A2A1A; text-shadow: none; }
    
/* Kırık çapa görseli */
.tool-btn:disabled {
    opacity: 1; /* Opaklık 1 kalsın, renk değişsin */
    cursor: not-allowed;
    transform: none !important;
    background: linear-gradient(135deg, #8B3A3A 0%, #6B2A2A 100%) !important; /* Kırmızı arka plan */
    border-color: #AB5A5A !important;
    box-shadow: var(--shadow-heavy), 0 0 15px rgba(171,90,90,0.7), inset 0 2px 4px rgba(255,255,255,0.1);
}
.tool-btn:disabled span.label {
    color: #E8D5B7; 
}

/* --- ÇAPA DAYANIKLILIK ÇUBUĞU STİLİ --- */
#hoe-tool-durability-fill {
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%; /* Genişliği sabit */
    height: 100%; /* Yüksekliği azalacak */
    z-index: 0; 
    border-radius: 6px;
    transition: height 0.3s ease-out, background-color 0.3s; /* Geçişi height üzerinden yapıyoruz */
    opacity: 0.8;
    /* İlk renk JS tarafından ayarlanacak */
}
    
/* YENİ: Çapa Yükseltme + Butonu Stili */
.hoe-upgrade-btn {
    position: absolute;
    top: -5px; 
    right: -10px;
    z-index: 15;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: linear-gradient(135deg, #5A7C3A 0%, #4A6C2A 100%);
    color: #E8D5B7;
    font-size: 1rem;
    font-weight: 900;
    border: 2px solid #7A9C5A;
    cursor: pointer;
    box-shadow: var(--shadow), inset 0 1px 2px rgba(255,255,255,0.1);
    transition: transform 0.1s, background 0.2s;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hoe-upgrade-btn:hover {
    background: linear-gradient(135deg, #6A8C4A 0%, #5A7C3A 100%);
    transform: scale(1.2);
    box-shadow: var(--shadow-heavy), inset 0 2px 4px rgba(255,255,255,0.2);
}
/* --- BİTİŞ: ÇAPA DAYANIKLILIK ÇUBUĞU STİLİ --- */


/* --- MODALS (PENCERELER) --- */
.modal-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 100;
    display: none;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
    opacity: 0;
    transition: opacity 0.3s;
}

.modal-window {
    background: linear-gradient(135deg, #5A4A3A 0%, #4A3A2A 100%);
    width: 95%;
    max-width: 1000px;
    max-height: 90vh;
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow-heavy), inset 0 2px 4px rgba(255,255,255,0.1);
    border: 3px solid #8B6F47;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
}

.modal-active { display: flex; opacity: 1; }
.modal-active .modal-window { transform: scale(1); }

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #8B6F47;
    padding-bottom: 15px;
}
    
.modal-title { 
    font-size: 1.5rem; 
    font-weight: 900; 
    color: #E8D5B7; 
    display: flex; 
    align-items: center; 
    gap: 10px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}
.close-modal { 
    background: linear-gradient(135deg, #8B3A3A 0%, #6B2A2A 100%);
    border: 2px solid #AB5A5A;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem; 
    font-weight: bold;
    cursor: pointer; 
    color: #E8D5B7; 
    transition: all 0.2s;
    padding: 0;
    line-height: 1;
    box-shadow: var(--shadow), inset 0 1px 2px rgba(255,255,255,0.1);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}
.close-modal:hover { 
    background: linear-gradient(135deg, #9B4A4A 0%, #7B3A3A 100%);
    color: #FF6B6B; 
    transform: scale(1.1);
    box-shadow: var(--shadow-heavy), inset 0 2px 4px rgba(255,255,255,0.2);
}
.close-modal:active {
    transform: scale(0.95);
}

/* Market Tabs */
.market-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #8B6F47;
    padding-bottom: 10px;
    flex-wrap: wrap;
}

.market-tab {
    background: linear-gradient(135deg, #4A3A2A 0%, #3A2A1A 100%);
    border: 2px solid #8B6F47;
    border-radius: 8px;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #E8D5B7;
    font-weight: bold;
    font-size: 0.95rem;
    box-shadow: var(--shadow), inset 0 1px 2px rgba(255,255,255,0.1);
}

.market-tab:hover {
    background: linear-gradient(135deg, #5A4A3A 0%, #4A3A2A 100%);
    border-color: #D4A574;
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy), inset 0 2px 4px rgba(255,255,255,0.2);
}

.market-tab.active {
    background: linear-gradient(135deg, #6B4E37 0%, #5A3E27 100%);
    border-color: #D4A574;
    box-shadow: var(--shadow-heavy), inset 0 2px 4px rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.tab-icon {
    font-size: 1.3rem;
}

.tab-label {
    font-size: 0.9rem;
}

.market-content {
    min-height: 300px;
}

.market-tab-content {
    display: none;
}

.market-tab-content.active {
    display: block;
}

/* Market Grid - Kategorilere ayrılmış */
.market-grid { 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
}

/* Market Kategorileri */
.market-category {
    background: linear-gradient(135deg, #4A3A2A 0%, #3A2A1A 100%);
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #8B6F47;
    box-shadow: var(--shadow), inset 0 2px 4px rgba(255,255,255,0.1);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid #8B6F47;
}

.category-icon {
    font-size: 2rem;
    background: linear-gradient(135deg, #6B4E37 0%, #5A3E27 100%);
    padding: 10px;
    border-radius: 8px;
    box-shadow: var(--shadow), inset 0 1px 2px rgba(255,255,255,0.1);
    border: 2px solid #8B6F47;
}

.category-title {
    font-size: 1.4rem;
    font-weight: 900;
    color: #E8D5B7;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    flex: 1;
}

.category-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.sales-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.sales-card {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sales-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.4), inset 0 2px 4px rgba(255,255,255,0.3) !important;
}

/* Stok olmayan kartlar için opacity inline style ile ayarlanıyor */

.sell-action-enhanced {
    position: relative;
    overflow: hidden;
}

.sell-action-enhanced::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.sell-action-enhanced:hover::before {
    width: 300px;
    height: 300px;
}

.sales-header {
    animation: fadeInDown 0.5s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
    
.market-card {
    background: linear-gradient(135deg, #4A3A2A 0%, #3A2A1A 100%);
    border-radius: 10px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 2px solid #8B6F47;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow), inset 0 1px 2px rgba(255,255,255,0.1);
    min-height: 80px;
}
.market-card:hover { 
    background: linear-gradient(135deg, #5A4A3A 0%, #4A3A2A 100%); 
    border-color: #D4A574; 
    box-shadow: var(--shadow-heavy), inset 0 2px 4px rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.item-info { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    flex: 1;
}
.item-icon { 
    font-size: 2.5rem; 
    background: linear-gradient(135deg, #6B4E37 0%, #5A3E27 100%); 
    padding: 12px; 
    border-radius: 10px; 
    box-shadow: var(--shadow), inset 0 1px 2px rgba(255,255,255,0.1);
    border: 2px solid #8B6F47;
    min-width: 60px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.item-details { 
    flex: 1;
}
.item-details h4 { 
    margin: 0 0 5px 0; 
    color: #E8D5B7; 
    font-size: 1.2rem; 
    font-weight: 900;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5); 
}
.item-stock { 
    font-size: 0.9rem; 
    color: #B8A897; 
    font-weight: 700; 
}
.item-description {
    font-size: 0.85rem;
    color: #95a5a6;
    margin-top: 3px;
}

.price-tag {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
    
.current-price { 
    font-weight: 900; 
    color: #FFD700; 
    font-size: 1.2rem; 
    display: flex; 
    align-items: center; 
    gap: 5px;
    text-shadow: 0 0 8px rgba(255,215,0,0.5);
}
.trend-up { color: #5A7C3A; font-size: 0.8rem; }
.trend-down { color: #8B3A3A; font-size: 0.8rem; }

.action-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sell-action, .buy-action {
    background: linear-gradient(135deg, #5A4A3A 0%, #4A3A2A 100%);
    color: #E8D5B7;
    border: 2px solid #8B6F47;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--shadow), inset 0 1px 2px rgba(255,255,255,0.1);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}
.sell-action { 
    background: linear-gradient(135deg, #6B5A7A 0%, #5A4A6A 100%); 
    border-color: #8B7A9A;
}
.sell-action:hover { 
    background: linear-gradient(135deg, #7B6A8A 0%, #6A5A7A 100%); 
    box-shadow: var(--shadow-heavy), inset 0 2px 4px rgba(255,255,255,0.2);
}
.buy-action { 
    background: linear-gradient(135deg, #5A7C3A 0%, #4A6C2A 100%); 
    border-color: #7A9C5A;
}
.buy-action:hover { 
    background: linear-gradient(135deg, #6A8C4A 0%, #5A7C3A 100%); 
    box-shadow: var(--shadow-heavy), inset 0 2px 4px rgba(255,255,255,0.2);
}

.sell-action:disabled, .buy-action:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Inventory Grid */
.inv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
}
    
.inv-slot {
    background: linear-gradient(135deg, #4A3A2A 0%, #3A2A1A 100%);
    border-radius: 8px;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 2px solid #8B6F47;
    box-shadow: var(--shadow), inset 0 1px 2px rgba(255,255,255,0.1);
}
.plant-action {
    background: linear-gradient(135deg, #5A7C3A 0%, #4A6C2A 100%);
    color: #E8D5B7;
    border: 2px solid #7A9C5A;
    padding: 5px 10px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 5px;
    box-shadow: var(--shadow), inset 0 1px 2px rgba(255,255,255,0.1);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}
.plant-action:hover { 
    background: linear-gradient(135deg, #6A8C4A 0%, #5A7C3A 100%); 
    box-shadow: var(--shadow-heavy), inset 0 2px 4px rgba(255,255,255,0.2);
}
.plant-action:disabled { opacity: 0.5; cursor: not-allowed; }

/* Settings Grid */
.settings-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    text-align: center;
}
    
.btn-reset {
    background: linear-gradient(135deg, #8B3A3A 0%, #6B2A2A 100%);
    color: #E8D5B7;
    border: 2px solid #AB5A5A;
    padding: 15px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: var(--shadow), inset 0 1px 2px rgba(255,255,255,0.1);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}
.btn-reset:hover { 
    background: linear-gradient(135deg, #9B4A4A 0%, #7B3A3A 100%); 
    box-shadow: var(--shadow-heavy), inset 0 2px 4px rgba(255,255,255,0.2);
}

/* Kamera Listesi Stili */
.camera-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}
.cam-option {
    background: linear-gradient(135deg, #4A3A2A 0%, #3A2A1A 100%);
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    color: #E8D5B7;
    transition: all 0.1s;
    border: 2px solid #8B6F47;
    box-shadow: var(--shadow), inset 0 1px 2px rgba(255,255,255,0.1);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}
.cam-option:hover {
    background: linear-gradient(135deg, #5A4A3A 0%, #4A3A2A 100%);
    border-color: #D4A574;
    box-shadow: var(--shadow-heavy), inset 0 2px 4px rgba(255,255,255,0.2);
}
.cam-option span {
    float: right;
    font-weight: 900;
    color: #FFD700;
    text-shadow: 0 0 8px rgba(255,215,0,0.5);
}

/* --- SEÇİLİ TOHUM GÖSTERGESİ --- */
#seed-indicator-container {
    position: fixed;
    top: 110px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 11;
    pointer-events: none;
    display: none;
    background: linear-gradient(135deg, #4A3A2A 0%, #3A2A1A 100%);
    color: #E8D5B7;
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: 700;
    box-shadow: var(--shadow-heavy), inset 0 2px 4px rgba(255,255,255,0.1);
    border: 2px solid #8B6F47;
    align-items: center;
    gap: 10px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}


.save-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: 1000;
}
    
.save-spinner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #8B6F47;
    border-right-color: #6B4E37;
    border-bottom-color: #4A3A2A;
    border-left-color: #A68B5B;
    animation: spin 1s linear infinite;
}
    
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Notifications */
#notification-area {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    pointer-events: none;
}
    
.toast {
    background: linear-gradient(135deg, #4A3A2A 0%, #3A2A1A 100%);
    color: #E8D5B7;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: var(--shadow-heavy), inset 0 2px 4px rgba(255,255,255,0.1);
    border: 2px solid #8B6F47;
    animation: slideIn 0.3s ease-out, fadeOut 0.5s ease-in 2.5s forwards;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

@keyframes slideIn { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }
    
@keyframes tractorMove {
    0% { 
        right: -100px; 
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
    100% { 
        right: calc(100% + 100px); 
        transform: translateY(0);
    }
}

/* Değirmen Dolum Göstergesi */
#mill-progress-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    pointer-events: none;
    background: linear-gradient(135deg, #4A3A2A 0%, #3A2A1A 100%);
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-heavy), inset 0 2px 4px rgba(255,255,255,0.1);
    border: 2px solid #8B6F47;
    display: none;
    color: #E8D5B7;
    font-weight: 700;
    flex-direction: column;
    align-items: center;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}
#mill-progress-bar {
    width: 200px;
    height: 20px;
    background: #3A2A1A;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 5px;
    border: 2px solid #8B6F47;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}
#mill-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, #2E5A7A, #5A7C3A);
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(90,124,58,0.5);
}
    
/* Yeni Tohum Seçim Modalı Stilleri */
.seed-select-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}
    
.seed-card {
    background: linear-gradient(135deg, #4A3A2A 0%, #3A2A1A 100%);
    padding: 15px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.1s;
    border: 2px solid #8B6F47;
    box-shadow: var(--shadow), inset 0 1px 2px rgba(255,255,255,0.1);
}
.seed-card:hover {
    background: linear-gradient(135deg, #5A4A3A 0%, #4A3A2A 100%);
    transform: translateY(-2px);
    border-color: #D4A574;
    box-shadow: var(--shadow-heavy), inset 0 2px 4px rgba(255,255,255,0.2);
}
.seed-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.seed-card.active {
    border-color: #FFD700;
    box-shadow: var(--shadow-heavy), 0 0 15px rgba(255,215,0,0.5), inset 0 2px 4px rgba(255,255,255,0.3);
}
    
.seed-card .seed-icon {
    font-size: 3rem;
    margin-bottom: 5px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}
.seed-card h5 {
    margin: 0;
    font-size: 1.1rem;
    color: #E8D5B7;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}
.seed-card .seed-count {
    font-size: 0.9rem;
    font-weight: 700;
    color: #FFD700;
    text-shadow: 0 0 8px rgba(255,215,0,0.5);
}

/* Günlük Ödül Butonu */
.daily-reward-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    border: 3px solid #d35400;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-heavy), inset 0 2px 4px rgba(255,255,255,0.2);
    z-index: 100;
    pointer-events: auto;
    transition: all 0.3s;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.daily-reward-button:hover {
    transform: scale(1.15);
    box-shadow: 0 0 20px rgba(243,156,18,0.6), var(--shadow-heavy);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Görevler ve Başarılar Listesi */
.quests-list, .achievements-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    max-height: 70vh;
    overflow-y: auto;
    padding: 10px;
}

.quest-card, .achievement-card {
    transition: all 0.3s;
}

.quest-card:hover, .achievement-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

#farmouse-root {
    position: relative;
    width: 100%;
    height: 100vh;
}
