/* ============================================ */
/* FARMLORD - MODERN & RESPONSIVE CSS */
/* ============================================ */

/* CSS Variables - Renk Paleti ve Standartlar */
:root {
    /* Ferah Ortaçağ Renk Paleti */
    --color-bg-primary: #f5e6d3;
    --color-bg-secondary: #e8d5bd;
    --color-bg-card: #fef8f0;
    --color-bg-overlay: rgba(0, 0, 0, 0.6);

    /* Text Renkleri - Daha Açık ve Ferah */
    --color-text-primary: #5a4530;
    --color-text-secondary: #7a6550;
    --color-text-muted: #8b7a68;
    --color-text-light: #f5e6d3;

    /* Vurgu Renkleri - Sıcak ve Canlı */
    --color-accent-green: #6fa67d;
    --color-accent-green-dark: #4a7c59;
    --color-accent-gold: #d4a574;
    --color-accent-gold-dark: #b8935f;
    --color-accent-terracotta: #c88a65;
    --color-accent-sage: #a4b494;
    --color-accent-red: #c74a4a;
    --color-accent-blue: #7a9eb5;

    /* Border Renkleri */
    --color-border-light: #d4c5b0;
    --color-border-medium: #c4a57b;
    --color-border-dark: #a08968;

    /* Header ve Menü */
    --color-header-bg: #a08060;
    --color-header-bg-dark: #8b7355;
    --color-menu-bg: linear-gradient(180deg, #a08060 0%, #8b7355 100%);

    /* Spacing Standardı */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 12px;
    --spacing-lg: 20px;
    --spacing-xl: 30px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 15px;
    --radius-circle: 50%;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.4s ease;

    /* Font Sizes - Mobil Öncelikli */
    --font-size-xs: 11px;
    --font-size-sm: 13px;
    --font-size-md: 14px;
    --font-size-lg: 16px;
    --font-size-xl: 20px;
    --font-size-2xl: 24px;
}

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

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: linear-gradient(135deg, var(--color-bg-primary) 0%, var(--color-bg-secondary) 100%);
    color: var(--color-text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

#gameContainer {
    max-width: 100vw;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================ */
/* HEADER & LOGO STYLES */
/* ============================================ */

#header {
    background: linear-gradient(180deg, #8b7355 0%, #6d5a47 100%);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

#logo {
    text-align: center;
    padding: 15px 10px;
    background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 100%);
    border-bottom: 2px solid rgba(255,255,255,0.2);
}

.lord-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

.lord-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #ffd700;
    object-fit: cover;
    box-shadow: 0 3px 10px rgba(0,0,0,0.4);
}

.lord-text-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.lord-name {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    letter-spacing: 1px;
}

.lord-name span {
    color: #ffd700;
    font-size: 22px;
}

.village-name {
    font-size: 16px;
    color: rgba(255,255,255,0.9);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    font-style: italic;
}

.village-name span {
    color: #d4a574;
    font-weight: 600;
}

.logout-btn {
    background: rgba(199, 74, 74, 0.8);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    font-family: 'Georgia', 'Times New Roman', serif;
}

.logout-btn:hover {
    background: rgba(199, 74, 74, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.game-logo {
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* ============================================ */
/* TOP BAR - RESOURCES */
/* ============================================ */

#topBar {
    padding: 8px 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.resource-item {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 10px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.resource-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

.resource-item span {
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    min-width: 30px;
}

/* Altın (Premium) Para */
.resource-item.gold-resource {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3) 0%, rgba(255, 193, 7, 0.2) 100%);
    border: 2px solid rgba(255, 215, 0, 0.6);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.resource-item.gold-resource span {
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7), 0 0 10px rgba(255, 215, 0, 0.5);
}

/* ============================================ */
/* MAIN CONTENT LAYOUT */
/* ============================================ */

#mainContent {
    display: flex;
    flex: 1;
    min-height: calc(100vh - 150px);
}

/* ============================================ */
/* LEFT MENU STYLES */
/* ============================================ */

#leftMenu {
    background: linear-gradient(180deg, #a08060 0%, #8b7355 100%);
    width: 100px;
    display: flex;
    flex-direction: column;
    padding: 10px 5px;
    gap: 10px;
    box-shadow: 4px 0 8px rgba(0,0,0,0.2);
}

.menu-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 12px 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.menu-btn img {
    width: 100%;
    max-width: 60px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.menu-btn span {
    color: #fff;
    font-size: 11px;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    font-weight: 600;
}

.menu-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.menu-btn.active {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Menu Spacer - Pushes logout to bottom */
.menu-spacer {
    flex: 1;
    min-height: 10px;
}

/* Logout Button in Menu */
.logout-menu-btn {
    background: linear-gradient(135deg, #c74a4a 0%, #a03030 100%) !important;
    border: 2px solid #ff6b6b !important;
    margin-top: auto;
}

.logout-menu-btn:hover {
    background: linear-gradient(135deg, #d65a5a 0%, #b04040 100%) !important;
}

.logout-menu-btn span {
    color: #fff !important;
}

/* ============================================ */
/* RIGHT PANEL & CONTENT SECTIONS */
/* ============================================ */

#rightPanel {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f5e6d3;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
    animation: fadeIn 0.3s;
}

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

/* ============================================ */
/* TYPOGRAPHY - Daha Açık ve Ferah Renkler */
/* ============================================ */

h2 {
    color: var(--color-text-primary);
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-lg);
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.08);
    border-bottom: 3px solid var(--color-accent-gold);
    padding-bottom: var(--spacing-md);
}

h3 {
    color: var(--color-text-primary);
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-md);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.08);
}

h4 {
    color: var(--color-text-primary);
    font-size: var(--font-size-lg);
    margin: var(--spacing-md) 0;
}

/* ============================================ */
/* CARDS & CONTAINERS - Daha Ferah ve Standart */
/* ============================================ */

.info-card {
    background: linear-gradient(135deg, var(--color-bg-card) 0%, var(--color-bg-secondary) 100%);
    border: 2px solid var(--color-border-medium);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.info-card:hover {
    box-shadow: var(--shadow-lg);
}

/* ============================================ */
/* OPTIMIZED ACCORDION SYSTEM - SMOOTH ANIMATION */
/* ============================================ */

.accordion {
    margin-bottom: 15px;
}

.accordion-header {
    background: linear-gradient(135deg, #d4a574 0%, #b8935f 100%);
    border: 2px solid #8b7355;
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s;
    position: relative;
}

.accordion-header:hover {
    background: linear-gradient(135deg, #e0b580 0%, #c49f6b 100%);
    transform: translateY(-2px);
}

.accordion-header img {
    width: 80px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.accordion-header-info {
    flex: 1;
}

.accordion-header-info h3 {
    margin: 0;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.accordion-header-info p {
    margin: 5px 0 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.accordion-header::after {
    content: '▼';
    position: absolute;
    right: 15px;
    font-size: 18px;
    color: #fff;
    transition: transform 0.3s ease;
}

.accordion-header.active::after {
    transform: rotate(180deg);
}

/* YENİ SMOOTH ACCORDION CONTENT - ESKİ AKIŞKANLIK İÇİN */
.accordion-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 0 0 10px 10px;
    visibility: hidden;
}

.accordion-content.open {
    max-height: none;
    opacity: 1;
    transform: translateY(0);
    padding: 20px;
    border: 2px solid #d4a574;
    border-top: none;
    visibility: visible;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* PERFORMANS İÇİN HARDWARE ACCELERATION */
.accordion-content {
    backface-visibility: hidden;
    perspective: 1000px;
    transform-style: preserve-3d;
}

/* MOBİL İÇİN OPTIMIZASYON */
@media (max-width: 768px) {
    .accordion-content {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .accordion-content.open {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .accordion-header img {
        width: 80px;
    }
}

/* ============================================ */
/* POPULATION SYSTEM */
/* ============================================ */

.population-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.pop-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: rgba(139, 115, 85, 0.1);
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #c4a57b;
}

.pop-icon {
    width: 100%;
    max-width: 80px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.pop-item span {
    font-size: 14px;
    color: #4a3520;
}

.pop-item strong {
    color: #2c1810;
    font-size: 18px;
}

.capacity-info {
    display: flex;
    justify-content: space-around;
    padding: 15px;
    background: rgba(139, 115, 85, 0.15);
    border-radius: 10px;
    gap: 20px;
}

.capacity-info span {
    font-size: 14px;
    color: #4a3520;
}

.capacity-info strong {
    color: #2c1810;
    font-size: 16px;
}

/* ============================================ */
/* BUTTON STYLES - Standartlaştırılmış */
/* ============================================ */

/* Temel Buton - Ana Renk */
.action-btn {
    background: linear-gradient(180deg, var(--color-accent-gold) 0%, var(--color-accent-gold-dark) 100%);
    color: var(--color-text-light);
    border: 2px solid var(--color-border-dark);
    border-radius: var(--radius-sm);
    padding: 10px var(--spacing-lg);
    font-size: var(--font-size-md);
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition-normal);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    font-family: 'Georgia', 'Times New Roman', serif;
    box-shadow: var(--shadow-sm);
    min-height: 40px;
    touch-action: manipulation;
}

.action-btn:hover {
    background: linear-gradient(180deg, #e0b580 0%, var(--color-accent-gold) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.action-btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.action-btn:disabled {
    background: var(--color-border-light);
    color: var(--color-text-muted);
    cursor: not-allowed;
    opacity: 0.6;
    transform: none !important;
}

/* Büyük Buton */
.action-btn-large {
    background: linear-gradient(180deg, var(--color-accent-gold) 0%, var(--color-accent-gold-dark) 100%);
    color: var(--color-text-light);
    border: 2px solid var(--color-border-dark);
    border-radius: var(--radius-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: var(--font-size-lg);
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition-normal);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    font-family: 'Georgia', 'Times New Roman', serif;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-sm);
    min-height: 48px;
    touch-action: manipulation;
}

.action-btn-large:hover {
    background: linear-gradient(180deg, #e0b580 0%, var(--color-accent-gold) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.action-btn-large:disabled {
    background: var(--color-border-light);
    color: var(--color-text-muted);
    cursor: not-allowed;
    opacity: 0.6;
}

/* ============================================ */
/* LIST ITEMS & CARDS - Daha Ferah Renkler */
/* ============================================ */

.list-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), var(--color-bg-card));
    border: 2px solid var(--color-border-medium);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    transition: var(--transition-fast);
}

.list-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent-gold);
}

.list-item img {
    width: 100%;
    max-width: 80px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

.list-item-info {
    flex: 1;
}

.list-item-info h4 {
    margin: 0 0 5px 0;
    color: var(--color-text-primary);
}

.list-item-info p {
    margin: 0;
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

.list-item-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ============================================ */
/* ANIMAL CARDS */
/* ============================================ */

.animals-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 15px;
}

.animal-card {
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid #c4a57b;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 0;
}

.animal-card img {
    width: 100%;
    max-width: 90px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    margin-bottom: 10px;
}

.animal-card-info {
    flex: 1;
    width: 100%;
}

.animal-card-info h4 {
    margin: 0 0 5px 0;
}

.animal-card-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-top: 10px;
}

.animal-card-actions .action-btn {
    width: 100%;
}

/* ============================================ */
/* TARIM SİSTEMİ */
/* ============================================ */

.land-certificate-card {
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
    border: 3px solid #4caf50;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 20px;
}

.land-certificate-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.land-certificate-info h3 {
    margin: 0;
    color: #2e7d32;
    font-size: 20px;
}

.agriculture-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
}

.crop-card, .field-card {
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid #c4a57b;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.crop-card img, .field-card img {
    width: 100%;
    max-width: 80px;
    height: auto;
    object-fit: contain;
    margin-bottom: 10px;
}

.crop-card-info, .field-card-info {
    flex: 1;
    width: 100%;
}

.crop-card-info h4, .field-card-info h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #4a3520;
}

.crop-card-info p, .field-card-info p {
    margin: 4px 0;
    font-size: 14px;
    color: #6d5a47;
}

.crop-card-actions, .field-card-actions {
    margin-top: 10px;
    width: 100%;
}

.crop-card-actions .action-btn, .field-card-actions .action-btn {
    width: 100%;
}

.empty-field-card {
    background: rgba(139, 115, 85, 0.05) !important;
    border: 2px dashed #c4a57b !important;
}

.empty-field-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Seed Selection Modal */
.seed-selection-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 15px 0;
}

.seed-card {
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid #c4a57b;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.seed-card:hover:not(.disabled-seed) {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-color: #4a7c59;
}

.seed-card img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 8px;
}

.seed-card h4 {
    margin: 5px 0;
    font-size: 14px;
    font-weight: 600;
    color: #4a3520;
}

.seed-card .seed-amount {
    margin: 5px 0 0 0;
    font-size: 13px;
    color: #6d5a47;
    font-weight: 500;
}

.seed-card.disabled-seed {
    opacity: 0.4;
    cursor: not-allowed;
    background: rgba(139, 115, 85, 0.1);
}

.seed-card.disabled-seed:hover {
    transform: none;
    box-shadow: none;
}

/* ============================================ */
/* PRODUCTION SYSTEM */
/* ============================================ */

.production-slot {
    background: rgba(139, 115, 85, 0.1);
    border: 2px solid #c4a57b;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 0;
}

.production-slot img {
    width: 100%;
    max-width: 80px;
    height: auto;
    object-fit: contain;
    margin-bottom: 10px;
}

.production-slot .slot-info {
    flex: 1;
    margin-left: 0;
    width: 100%;
}

.production-slot .slot-info span {
    font-size: 16px;
    font-weight: 600;
    color: #4a3520;
    display: block;
    margin-bottom: 8px;
}

.production-slot .slot-info small {
    display: block;
    margin-top: 5px;
    color: #6d5a47;
}

.production-slot .action-btn {
    margin-top: 10px;
    width: 100%;
}

/* Üretilebilir ürünler grid düzeni */
.recipes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 15px;
}

.recipe-item {
    background: rgba(139, 115, 85, 0.1);
    border: 1px solid #c4a57b;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
}

.recipe-item img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    align-self: center;
    margin-bottom: 8px;
}

.recipe-item-info {
    flex: 1;
}

.recipe-item-info h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #4a3520;
}

.recipe-item-info p {
    margin: 2px 0;
    font-size: 12px;
    color: #6d5a47;
}

.recipe-item-actions {
    margin-top: 10px;
    text-align: center;
}

/* ============================================ */
/* REPORTS SYSTEM */
/* ============================================ */

.reports-list {
    max-height: 500px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.report-item {
    background: rgba(255, 255, 255, 0.7);
    border-left: 4px solid #8b7355;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.report-item.positive {
    border-left-color: #4a7c59;
}

.report-item.negative {
    border-left-color: #c74a4a;
}

.report-item.neutral {
    border-left-color: #d4a574;
}

.report-content {
    flex: 1;
}

.report-content p {
    margin: 0 0 5px 0;
    color: #4a3520;
    font-size: 14px;
}

.report-time {
    font-size: 11px;
    color: #8b7355;
    white-space: nowrap;
    margin-left: 15px;
}

/* ============================================ */
/* NOTIFICATION SYSTEM - Ferah ve Modern */
/* ============================================ */

.notification {
    position: fixed;
    top: 100px;
    right: var(--spacing-lg);
    z-index: 1000;
    max-width: 350px;
    transform: translateX(400px);
    transition: var(--transition-normal);
}

.notification.show {
    transform: translateX(0);
}

.notification-item {
    background: linear-gradient(135deg, var(--color-accent-green-dark) 0%, var(--color-accent-green) 100%);
    color: var(--color-text-light);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-md);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    animation: notificationSlide 0.3s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.notification-item.error {
    background: linear-gradient(135deg, var(--color-accent-red) 0%, #e06767 100%);
}

@keyframes notificationSlide {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ============================================ */
/* MODAL SYSTEM - Standartlaştırılmış */
/* ============================================ */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-bg-overlay);
    backdrop-filter: blur(3px);
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: modalFadeIn 0.2s ease-out;
}

/* Standart Modal İçerik */
.modal-content {
    background: linear-gradient(135deg, var(--color-bg-card) 0%, var(--color-bg-secondary) 100%);
    border: 3px solid var(--color-border-medium);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow-lg);
    max-height: 80vh;
    overflow-y: auto;
    animation: modalSlideUp 0.3s ease-out;
}

/* Modal Varyasyonları - Modifier Classes */
.modal-content.modal-lg {
    max-width: 700px;
}

.modal-content.modal-sm {
    max-width: 400px;
}

/* Geriye Dönük Uyumluluk için Eski Class'lar */
.battle-report-modal {
    max-width: 700px;
}

.chest-modal-content,
.tutorial-modal-content,
.hint-modal-content {
    background: linear-gradient(145deg, var(--color-bg-card) 0%, var(--color-bg-secondary) 100%);
    border: 3px solid var(--color-border-medium);
}

/* Modal Butonları */
.modal-buttons {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    justify-content: center;
    flex-wrap: wrap;
}

/* Modal Header ve Close Button */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.modal-header h3 {
    margin: 0;
    color: var(--color-text-primary);
}

.modal-close-btn {
    background: var(--color-accent-red);
    color: white;
    border: none;
    border-radius: var(--radius-circle);
    width: 35px;
    height: 35px;
    min-width: 35px;
    min-height: 35px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-base);
    line-height: 1;
    padding: 0;
    font-weight: bold;
}

.modal-close-btn:hover {
    background: #a72727;
    transform: scale(1.1);
}

.modal-close-btn:active {
    transform: scale(0.95);
}

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

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

/* ============================================ */
/* FORM ELEMENTS */
/* ============================================ */

input[type="number"] {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 2px solid #c4a57b;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: #4a3520;
    font-family: 'Georgia', 'Times New Roman', serif;
    margin-top: 10px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}

input[type="number"]:focus {
    outline: none;
    border-color: #8b7355;
    box-shadow: 0 0 0 4px rgba(139, 115, 85, 0.2);
    transform: scale(1.02);
    transition: all 0.2s;
}

/* ============================================ */
/* PROGRESS BAR SYSTEM */
/* ============================================ */

.progress-bar-container {
    width: 100%;
    margin: 8px 0;
}

.progress-bar {
    position: relative;
    width: 100%;
    height: 25px;
    background: rgba(139, 115, 85, 0.2);
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #c4a57b;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #4a7c59 0%, #6fa67d 100%);
    transition: width 0.3s ease;
    border-radius: 10px;
    animation: progressPulse 2s ease-in-out infinite;
}

.progress-bar-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-weight: bold;
    font-size: 13px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    z-index: 1;
}

.progress-container {
    width: 100%;
}

@keyframes progressPulse {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.1);
    }
}

/* ============================================ */
/* EQUIPMENT & MILITIA SYSTEMS - MOBILE FIRST */
/* ============================================ */

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 12px 0;
}

.equipment-card {
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid #c4a57b;
    border-radius: 10px;
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 180px;
}

.equipment-card:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.equipment-card img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 8px;
}

.equipment-card h4 {
    margin: 8px 0 4px 0;
    font-size: 13px;
    line-height: 1.2;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.equipment-card p {
    margin: 2px 0;
    font-size: 11px;
    color: #6d5a47;
}

.equipment-card .action-btn {
    margin-top: auto;
    padding: 6px 8px;
    font-size: 11px;
    width: 100%;
}

.militia-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 12px 0;
}

.militia-card {
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid #c4a57b;
    border-radius: 10px;
    padding: 12px 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 160px;
}

.militia-card img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 8px;
}

.militia-card h4 {
    margin: 4px 0;
    font-size: 13px;
}

.militia-card p {
    margin: 2px 0;
    font-size: 11px;
    color: #6d5a47;
}

/* Villager selection cards for mobile */
.villager-select-card {
    width: 100px;
    padding: 8px;
    border: 2px solid #c4a46d;
    border-radius: 8px;
    background: #f8f2e0;
    cursor: pointer;
    transition: 0.2s;
}

.villager-select-card:hover {
    transform: scale(1.03);
    background: #f0e5c8;
}

.villager-select-card img {
    width: 100%;
}

/* Tablet and desktop improvements */
@media (min-width: 768px) {
    .equipment-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
    
    .militia-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .equipment-card {
        min-height: 200px;
        padding: 15px;
    }
    
    .militia-card {
        min-height: 180px;
        padding: 15px;
    }
}

/* Disabled state improvements */
.equipment-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.equipment-card.disabled:hover {
    background: rgba(255, 255, 255, 0.7);
    box-shadow: none;
}

/* Modal content improvements for mobile */
@media (max-width: 480px) {
    .villager-select-card {
        width: 90px;
        padding: 6px;
    }
    
    .villager-select-card h4 {
        font-size: 12px;
    }
}

/* Empty state styling */
.empty-message {
    text-align: center;
    color: #8d7b68;
    font-style: italic;
    padding: 20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    margin: 10px 0;
}

/* Küçük action butonları */
.action-btn-small {
    background: linear-gradient(135deg, #c74a4a 0%, #e06767 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    font-family: 'Georgia', 'Times New Roman', serif;
    transition: all 0.2s;
    width: 100%;
}

.action-btn-small:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(199, 74, 74, 0.3);
}

.action-btn-small:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Garnizon istatistikleri */
.garrison-stats {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
    padding: 10px;
    background: rgba(255,255,255,0.5);
    border-radius: 8px;
    border: 2px solid #c4a57b;
}
/* ============================================ */
/* BATTLE & ENEMY SYSTEM */
/* ============================================ */

.enemy-card {
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid #c74a4a;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.enemy-card img {
    width: 100%;
    max-width: 120px;
    height: auto;
    object-fit: contain;
}

.enemy-card.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.enemy-info {
    flex: 1;
}

.enemy-info h3 {
    margin: 0 0 10px 0;
    color: #c74a4a;
}

.enemy-info p {
    margin: 5px 0;
    font-size: 14px;
}

/* ============================================ */
/* ENEMY ACCORDION SYSTEM */
/* ============================================ */

.battle-warning {
    background: rgba(199, 74, 74, 0.15);
    border: 2px solid #c74a4a;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 15px;
    text-align: center;
}

.battle-warning p {
    color: #c74a4a;
    font-weight: bold;
    margin: 0;
}

.enemy-accordion {
    background: rgba(255, 255, 255, 0.85);
    border: 2px solid #8b4513;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.enemy-accordion:hover {
    border-color: #c74a4a;
    box-shadow: 0 4px 12px rgba(199, 74, 74, 0.2);
}

.enemy-accordion.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.enemy-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    cursor: pointer;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.1) 0%, rgba(139, 69, 19, 0.05) 100%);
    transition: background 0.3s ease;
}

.enemy-accordion-header:hover {
    background: linear-gradient(135deg, rgba(199, 74, 74, 0.15) 0%, rgba(199, 74, 74, 0.05) 100%);
}

.enemy-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.enemy-header-left img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 8px;
    border: 2px solid #8b4513;
    background: rgba(255, 255, 255, 0.5);
    padding: 3px;
}

.enemy-header-info h4 {
    margin: 0 0 4px 0;
    color: #2c1810;
    font-size: 15px;
}

.enemy-level {
    display: inline-block;
    background: #c74a4a;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    margin-top: 4px;
}

/* Recete emoji stilleri */
.recipe-emoji {
    font-size: 14px;
    margin-left: 4px;
    cursor: help;
    transition: all 0.3s ease;
}

.recipe-emoji.available {
    filter: none;
    animation: recipeGlow 2s ease-in-out infinite;
}

.recipe-emoji.collected {
    filter: grayscale(100%) opacity(0.4);
}

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

.enemy-stats {
    margin: 0;
    font-size: 12px;
    color: #666;
}

.enemy-header-right {
    display: flex;
    align-items: center;
}

.accordion-arrow {
    font-size: 14px;
    color: #8b4513;
    transition: transform 0.3s ease;
}

.enemy-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    background: rgba(255, 255, 255, 0.5);
    padding: 0 15px;
}

.enemy-accordion-body.open {
    max-height: 400px;
    padding: 15px;
    border-top: 1px solid rgba(139, 69, 19, 0.2);
}

.enemy-details {
    margin-bottom: 15px;
}

.enemy-details p {
    margin: 6px 0;
    font-size: 13px;
    color: #2c1810;
}

.enemy-attack-btn {
    width: 100%;
    background: linear-gradient(135deg, #c74a4a 0%, #a03030 100%);
    border: none;
    padding: 12px;
    font-size: 15px;
    font-weight: bold;
}

.enemy-attack-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #d65a5a 0%, #b04040 100%);
    transform: translateY(-2px);
}

.enemy-attack-btn:disabled {
    background: #888;
    cursor: not-allowed;
}

/* ============================================ */
/* YENİ SAVAŞ BÖLÜMÜ TASARIMI */
/* ============================================ */

.active-battles-banner {
    background: linear-gradient(135deg, rgba(199, 74, 74, 0.2) 0%, rgba(160, 48, 48, 0.15) 100%);
    border: 2px solid #c74a4a;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.active-battles-banner h3 {
    color: #c74a4a;
    margin: 0 0 15px 0;
    font-size: 18px;
    text-align: center;
}

.battle-level-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.battle-tab {
    padding: 12px 24px;
    background: rgba(139, 69, 19, 0.1);
    border: 2px solid #8b4513;
    border-radius: 8px;
    color: #2c1810;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.battle-tab:hover {
    background: rgba(139, 69, 19, 0.2);
    transform: translateY(-2px);
}

.battle-tab.active {
    background: linear-gradient(135deg, #8b4513 0%, #654321 100%);
    color: #f5e6d3;
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.4);
}

.battle-enemies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
    padding: 15px;
}

@media (max-width: 768px) {
    .battle-enemies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 10px;
    }
}

.battle-warning-banner {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(199, 74, 74, 0.15) 0%, rgba(160, 48, 48, 0.1) 100%);
    border: 2px solid #c74a4a;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    margin-bottom: 10px;
}

.battle-warning-banner p {
    color: #c74a4a;
    font-weight: bold;
    margin: 0;
}

.enemy-card {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 230, 211, 0.98) 100%);
    border: 3px solid #8b4513;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.2);
    display: flex;
    flex-direction: column;
}

.enemy-card:hover:not(.disabled) {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 12px 28px rgba(139, 69, 19, 0.4);
    border-color: #d4a574;
}

.enemy-card:active:not(.disabled) {
    transform: translateY(-8px) scale(1.01);
}

.enemy-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(50%);
}

.enemy-recipe-badge {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 10;
    padding: 6px 10px;
    border-radius: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #e6e6e6, #ffffff); /* koyu beyaz → parlak beyaz */
}

.enemy-card-image {
    flex: 1;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 140px;
    background: transparent;
}

.enemy-card-image img {
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.enemy-card:hover:not(.disabled) .enemy-card-image img {
    transform: scale(1.08);
}

.enemy-card-name-bar {
    padding: 10px 8px;
    background: transparent;
    border-top: 1px solid rgba(139, 69, 19, 0.25);
    text-align: center;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.enemy-card-name-bar h4 {
    margin: 0;
    color: #2c1810;
    font-size: 14px;
    font-weight: bold;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .enemy-card-image {
        min-height: 120px;
        padding: 15px;
    }

    .enemy-card-image img {
        max-height: 130px;
    }

    .enemy-card-name-bar h4 {
        font-size: 13px;
    }
}

.enemy-modal-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.enemy-modal-stats span {
    background: rgba(139, 69, 19, 0.1);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
}

/* Düşman Hikayesi - Ortaçağ Temalı Yazı Stili */
.enemy-story-text {
    font-family: 'MedievalSharp', cursive;
    font-size: 15px;
    line-height: 1.9;
    color: #4a3520;
    text-align: justify;
    margin: 20px 0;
    padding: 25px 20px 20px 20px;
    background: linear-gradient(135deg, #fef8f0 0%, #f5e6d3 100%);
    border: 2px solid #c4a57b;
    border-radius: 8px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
    position: relative;
    overflow: visible;
}

/* Illuminated Initial (Drop Cap) - Baş Harf Büyük */
.enemy-story-text::first-letter {
    font-family: 'MedievalSharp', cursive;
    font-size: 5em;
    line-height: 1;
    float: left;
    margin: -0.1em 0.15em 0 0;
    padding-top: 0.05em;
    color: #b33030;
    text-shadow:
        2px 2px 0px rgba(139, 26, 26, 0.3),
        3px 3px 4px rgba(0, 0, 0, 0.2),
        0px 0px 8px rgba(179, 48, 48, 0.4);
    font-weight: normal;
}

/* Tırnak İşaretleri Stili */
.enemy-story-text::before {
    content: '"';
    font-family: 'MedievalSharp', cursive;
    font-size: 2.5em;
    color: #c4a57b;
    position: absolute;
    top: 5px;
    left: 8px;
    opacity: 0.25;
}

.enemy-story-text::after {
    content: '"';
    font-family: 'MedievalSharp', cursive;
    font-size: 2.5em;
    color: #c4a57b;
    position: absolute;
    bottom: 5px;
    right: 8px;
    opacity: 0.25;
}

/* ============================================ */
/* MARKET SYSTEM */
/* ============================================ */

.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.market-item {
    background: rgba(255, 255, 255, 0.9);
    border: 3px solid #d4a574;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s;
}

.market-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    border-color: #b8935f;
}

.market-item img {
    width: 100%;
    max-width: 80px;
    height: auto;
    object-fit: contain;
    margin-bottom: 10px;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.2));
}

.market-item h4 {
    margin: 10px 0 5px 0;
    font-size: 15px;
    color: #4a3520;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.market-stock {
    font-size: 13px;
    margin: 8px 0;
    padding: 5px;
    background: rgba(139, 115, 85, 0.1);
    border-radius: 6px;
}

.market-prices {
    margin: 10px 0;
    padding: 10px 0;
    border-top: 2px solid rgba(139, 115, 85, 0.2);
    border-bottom: 2px solid rgba(139, 115, 85, 0.2);
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 13px;
}

.price-row span:first-child {
    color: #6d5a47;
}

.market-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.market-actions .action-btn {
    flex: 1;
    padding: 8px 12px;
    font-size: 12px;
}

/* ============================================ */
/* AVATAR SELECTION */
/* ============================================ */

.avatar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
}

.avatar-option {
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #c4a57b;
    background: rgba(255, 255, 255, 0.9);
}

.avatar-option:hover {
    border-color: #ffd700;
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.5);
}

.avatar-option img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ============================================ */
/* UTILITY CLASSES */
/* ============================================ */

.empty-message {
    text-align: center;
    color: #8b7355;
    font-style: italic;
    padding: 20px;
}

.cooldown-display {
    background: rgba(74, 124, 89, 0.2);
    border: 2px solid #4a7c59;
    border-radius: 8px;
    padding: 8px;
    margin-top: 8px;
    text-align: center;
}

.cooldown-display span {
    color: #4a7c59;
    font-weight: bold;
    font-size: 14px;
}

/* ============================================ */
/* RESPONSIVE DESIGN - Mobil Öncelikli ve Birleştirilmiş */
/* ============================================ */

/* Tablet ve Mobil (768px ve altı) */
@media (max-width: 768px) {
    /* Ana Bileşenler */
    .game-logo {
        max-width: 150px;
    }

    #topBar {
        padding: var(--spacing-md) var(--spacing-sm);
    }

    #leftMenu {
        width: 80px;
        padding: var(--spacing-sm) 3px;
        gap: var(--spacing-sm);
    }

    #rightPanel {
        padding: var(--spacing-md) var(--spacing-md);
    }

    /* Resource Bar */
    .resource-item {
        padding: 6px var(--spacing-md);
        gap: 5px;
    }

    .resource-icon {
        width: 32px;
        height: 32px;
    }

    .resource-item span {
        font-size: var(--font-size-md);
    }

    /* Menu Buttons */
    .menu-btn {
        padding: var(--spacing-md) 5px;
    }

    .menu-btn img {
        max-width: 45px;
    }

    .menu-btn span {
        font-size: var(--font-size-xs);
    }

    /* Typography */
    h2 {
        font-size: var(--font-size-xl);
    }

    h3 {
        font-size: var(--font-size-lg);
    }

    /* Cards */
    .info-card {
        padding: var(--spacing-md);
    }

    .accordion-header img {
        width: 80px;
    }

    .list-item img,
    .animal-card img {
        max-width: 80px;
    }

    /* Buttons - Touch Friendly */
    .action-btn {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: var(--font-size-sm);
        min-height: 44px;
    }

    .action-btn-large {
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: var(--font-size-md);
        min-height: 48px;
    }

    /* Market Mobile */
    .market-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: var(--spacing-md);
    }

    .market-item {
        padding: var(--spacing-md) var(--spacing-sm);
    }

    .market-item img {
        max-width: 80px;
    }

    .market-item h4 {
        font-size: var(--font-size-sm);
        min-height: 32px;
    }

    .market-actions {
        flex-direction: column;
        gap: 5px;
    }

    /* Avatar */
    .lord-avatar {
        width: 45px;
        height: 45px;
        border-width: 2px;
    }

    .lord-info {
        gap: var(--spacing-md);
    }

    .avatar-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-md);
    }

    /* Modal ve Chat Mobile */
    .modal-content {
        padding: var(--spacing-lg) var(--spacing-md);
        max-width: 95%;
        max-height: 90vh;
    }

    .chat-container {
        width: 95%;
        max-width: none;
    }

    .chat-messages {
        height: 280px;
    }

    .chat-message-avatar {
        width: 28px;
        height: 28px;
    }

    .chat-message-avatar img.avatar {
        width: 24px;
        height: 24px;
    }

    .chat-message-avatar img.frame {
        width: 28px;
        height: 28px;
    }

    /* Input Alanları - iOS Zoom Engelleme */
    input[type="text"],
    input[type="number"],
    select {
        font-size: 16px !important;
        padding: var(--spacing-md);
    }
}

/* Küçük Mobil (480px ve altı) */
@media (max-width: 480px) {
    /* Menu daha da küçük */
    #leftMenu {
        width: 70px;
        padding: var(--spacing-xs) 2px;
    }

    .menu-btn img {
        max-width: 40px;
    }

    .menu-btn span {
        font-size: 9px;
    }

    /* Layout Değişiklikleri */
    .house-header,
    .house-info {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-md);
    }

    .list-item,
    .animal-card {
        flex-direction: column;
        text-align: center;
    }

    .list-item-actions,
    .animal-card-actions {
        width: 100%;
        justify-content: center;
    }

    /* Market Çok Küçük Ekran */
    .market-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }

    .market-item {
        padding: var(--spacing-md) 6px;
    }

    .market-item img {
        max-width: 50px;
    }

    .market-item h4 {
        font-size: var(--font-size-sm);
        min-height: 28px;
    }

    .price-row,
    .market-stock {
        font-size: var(--font-size-xs);
    }

    /* Modal Küçük Ekran */
    .modal-content {
        padding: var(--spacing-md) var(--spacing-md);
        border-radius: var(--radius-md);
    }

    /* Typography Küçük */
    h2 {
        font-size: var(--font-size-xl);
    }

    h3 {
        font-size: var(--font-size-lg);
    }

    /* Cards Küçük */
    .info-card {
        padding: var(--spacing-md) var(--spacing-md);
    }

    /* Battle Tabs */
    .battle-tab {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: var(--font-size-sm);
    }

    /* Resources Çok Küçük */
    .resource-item {
        padding: 5px var(--spacing-sm);
    }

    .resource-icon {
        width: 28px;
        height: 28px;
    }

    .resource-item span {
        font-size: var(--font-size-sm);
    }

    /* Buttons Daha Büyük Touch Target */
    .action-btn,
    .action-btn-large {
        min-height: 48px;
    }
}

/* Hover Effects - Sadece Mouse/Trackpad için */
@media (hover: none) {
    .accordion-header:hover,
    .menu-btn:hover,
    .action-btn:hover,
    .action-btn-large:hover,
    .market-item:hover,
    .equipment-card:hover,
    .list-item:hover,
    .info-card:hover {
        transform: none;
    }
}

/* Touch Feedback - Mobil için Active States */
@media (max-width: 768px) {
    .action-btn:active,
    .action-btn-large:active,
    .menu-btn:active,
    .accordion-header:active,
    .list-item:active,
    .market-item:active {
        transform: scale(0.97);
        transition: transform 0.1s;
    }
}

/* PvP player cards - Mobile responsive */
@media (max-width: 640px) {
    /* PvP oyuncu kartları küçük ekranlarda dikey düzen */
    #pvpSearchResults > div > div {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px;
    }

    #pvpSearchResults button {
        width: 100%;
    }

    /* PvP arama input */
    #pvpSearchInput {
        font-size: 16px !important;
    }

    /* PvP vergi borcu kartı */
    .info-card > div[style*="display: flex"] {
        flex-wrap: wrap;
        gap: 10px;
    }
}

/* Landscape mode optimizations for mobile */
@media (max-width: 768px) and (orientation: landscape) {
    #leftMenu {
        width: 70px;
        padding: 5px 2px;
    }

    .menu-btn {
        padding: 8px 3px;
    }

    .menu-btn img {
        max-width: 40px;
    }

    .menu-btn span {
        font-size: 9px;
    }

    #topBar {
        padding: 8px;
    }

    .resource-item {
        padding: 5px 8px;
    }

    .modal-content {
        max-height: 85vh;
        max-width: 90%;
    }

    .chat-container {
        max-width: 400px;
    }

    .chat-messages {
        height: 250px;
    }
}

/* Custom scrollbar */
#rightPanel::-webkit-scrollbar {
    width: 10px;
}

#rightPanel::-webkit-scrollbar-track {
    background: rgba(139, 115, 85, 0.1);
    border-radius: 10px;
}

#rightPanel::-webkit-scrollbar-thumb {
    background: rgba(139, 115, 85, 0.5);
    border-radius: 10px;
}

#rightPanel::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 115, 85, 0.7);
}

/* Stock animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

/* Loading Screen Styles */
#loadingScreen {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, #1a2f28 0%, #2a4d42 50%, #1a2f28 100%);
    position: relative;
    overflow: hidden;
}

.loading-background {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(120, 90, 60, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(120, 90, 60, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.5;
}

.loading-castle {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(transparent, rgba(20, 30, 25, 0.7));
    z-index: 1;
}

.loading-content {
    text-align: center;
    z-index: 2;
    background: rgba(248, 244, 233, 0.9);
    padding: 40px 30px;
    border-radius: 8px;
    border: 8px solid transparent;
    border-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><path d="M10,10 L90,10 L90,90 L10,90 Z" fill="none" stroke="%238b7355" stroke-width="8"/></svg>') 25 stretch;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    max-width: 300px;
}

.loading-logo {
    max-width: 150px;
    margin-bottom: 15px;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 6px solid rgba(139, 115, 85, 0.2);
    border-top-color: #8b7355;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loading-text {
    color: #5a4530;
    font-size: 18px;
    font-family: 'Georgia', 'Times New Roman', serif;
    margin: 0;
    font-weight: bold;
}

.loading-subtitle {
    color: #8b7355;
    font-size: 14px;
    font-family: 'Georgia', 'Times New Roman', serif;
    margin-top: 5px;
    font-style: italic;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================ */
/* 2.5D SPRITE ENHANCEMENT (3D efekti için) */
/* ============================================ */

.sprite-3d,
.pop-icon,
.resource-icon,
.market-item img,
.animal-card img,
.enemy-card img,
.list-item img,
.production-slot img,
.crop-card img,
.field-card img {
    filter: 
        drop-shadow(0px 10px 8px rgba(0,0,0,0.35))
        brightness(1.05)
        contrast(1.15)
        saturate(1.10);
    transform: translateY(0);
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* Hafif idle animasyonu (nefes alır gibi) */
.sprite-3d,
.pop-icon,
.animal-card img {
    animation: idleFloat 2.2s ease-in-out infinite;
}

@keyframes idleFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
}

/* ============================================ */
/* SPECIAL POPULATION STYLES */
/* ============================================ */

.special-population {
    margin-top: 10px;
}

.pop-item-hero {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 193, 7, 0.1) 100%);
    border-color: #ffc107;
}

.pop-item-priest {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.15) 0%, rgba(186, 104, 200, 0.1) 100%);
    border-color: #9c27b0;
}

.pop-item-wanderer {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15) 0%, rgba(129, 199, 132, 0.1) 100%);
    border-color: #4caf50;
}

.pop-bonus {
    display: block;
    font-size: 11px;
    color: #6d5a47;
    margin-top: 5px;
    font-style: italic;
}

.pop-item-hero .pop-bonus {
    color: #b8860b;
}

.pop-item-priest .pop-bonus {
    color: #7b1fa2;
}

.pop-item-wanderer .pop-bonus {
    color: #388e3c;
}

/* Hero Dual Equipment Militia Card */
.militia-card-hero {
    border: 2px solid #ffc107;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 255, 255, 0.7) 100%);
}

.militia-card-hero .dual-equipment {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 10px 0;
}

.militia-card-hero .dual-equipment img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.militia-card-priest {
    border: 2px solid #9c27b0;
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.1) 0%, rgba(255, 255, 255, 0.7) 100%);
}

.militia-card-wanderer {
    border: 2px solid #4caf50;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(255, 255, 255, 0.7) 100%);
}

.militia-card-male {
    border: 2px solid #2196f3;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.1) 0%, rgba(255, 255, 255, 0.7) 100%);
}

.militia-card-female {
    border: 2px solid #e91e63;
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.1) 0%, rgba(255, 255, 255, 0.7) 100%);
}

/* ============================================ */
/* AVATAR FRAME & RANK STYLES */
/* ============================================ */

.avatar-container {
    position: relative;
    width: 60px;
    height: 60px;
}

.lord-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.lord-frame {
    width: 60px;
    height: 60px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    pointer-events: none;
}

.rank-title {
    color: #b8860b;
    font-weight: bold;
}

/* ============================================ */
/* CLAN STYLES */
/* ============================================ */

.clan-header-card {
    background: linear-gradient(135deg, rgba(139, 115, 85, 0.1) 0%, rgba(196, 165, 123, 0.2) 100%);
    border-color: #8b7355;
}

.gender-select-card:hover {
    transform: scale(1.05);
    border-color: #8b7355;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Klan Alanları Grid */
.clan-areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

/* Klan Alan Kartı */
.clan-area-card {
    background: linear-gradient(145deg, #f5e6d3 0%, #e8d5c4 100%);
    border: 2px solid #c4a57b;
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.clan-area-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.clan-area-card.rented {
    border-color: #4a7c59;
    background: linear-gradient(145deg, #e8f5e9 0%, #c8e6c9 100%);
}

.clan-area-card.rented::before {
    content: '✓ Aktif';
    position: absolute;
    top: 10px;
    right: 10px;
    background: #4a7c59;
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
}

.clan-area-card.locked {
    opacity: 0.6;
    background: linear-gradient(145deg, #e0e0e0 0%, #bdbdbd 100%);
    border-color: #9e9e9e;
}

.clan-area-card.locked::before {
    content: '🔒 Kilitli';
    position: absolute;
    top: 10px;
    right: 10px;
    background: #757575;
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
}

/* Alan Görseli */
.clan-area-card .area-image {
    width: 100%;
    height: 150px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 12px;
    border: 2px solid #c4a57b;
    background: rgba(255, 255, 255, 0.5);
    transition: filter 0.3s ease;
}

.clan-area-card .area-image.grayscale {
    filter: grayscale(100%);
}

.clan-area-card.rented .area-image {
    filter: none;
    border-color: #4a7c59;
}

/* Alan Bilgileri */
.clan-area-card .area-info h4 {
    color: #4a3520;
    margin: 0 0 10px 0;
    font-size: 1.1em;
}

.clan-area-card .area-info p {
    margin: 5px 0;
    font-size: 0.85em;
    color: #6d5a47;
}

.clan-area-card .area-cost {
    color: #b8860b !important;
    font-weight: bold;
}

.clan-area-card .area-rank {
    color: #8b4513 !important;
}

.clan-area-card .area-rewards {
    color: #4a7c59 !important;
}

.clan-area-card .area-bonus {
    color: #9c27b0 !important;
}

.clan-area-card .area-destruction {
    color: #c74a4a !important;
}

.clan-area-card .area-timer {
    color: #1976d2 !important;
    font-weight: bold;
}

/* Alan Butonları */
.clan-area-card .area-actions {
    margin-top: 12px;
    text-align: center;
}

.clan-area-card .area-actions .action-btn {
    width: 100%;
    padding: 10px;
}

/* Karavan Görev Kartları - Klan Alanlarıyla Aynı Stil */
.caravan-missions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.caravan-mission-card {
    background: linear-gradient(145deg, #f5e6d3 0%, #e8d5c4 100%);
    border: 2px solid #c4a57b;
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.caravan-mission-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.caravan-mission-card .mission-image {
    width: 100%;
    height: 150px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 12px;
    border: 2px solid #c4a57b;
    background: rgba(255, 255, 255, 0.5);
}

.caravan-mission-card .mission-info h4 {
    color: #4a3520;
    margin: 0 0 10px 0;
    font-size: 1.1em;
}

.caravan-mission-card .mission-info p {
    margin: 5px 0;
    font-size: 0.85em;
    color: #6d5a47;
}

.caravan-mission-card .mission-rewards {
    color: #4a7c59 !important;
    font-weight: bold;
}

.caravan-mission-card .mission-cost {
    color: #b8860b !important;
}

.caravan-mission-card .mission-actions {
    margin-top: 12px;
    text-align: center;
}

.caravan-mission-card .mission-actions .action-btn {
    width: 100%;
    padding: 10px;
}

/* Klan Görev Badge */
.list-item.clan-mission {
    background: linear-gradient(145deg, #e8f5e9 0%, #c8e6c9 100%);
    border-left: 4px solid #4a7c59;
}

.list-item.clan-mission h4 {
    color: #2e7d32;
}

/* Klan Alanları Bölümü */
.clan-areas-section {
    background: linear-gradient(145deg, rgba(139, 115, 85, 0.05) 0%, rgba(196, 165, 123, 0.1) 100%);
}

/* ============================================ */
/* CHAT STYLES - Güncellenmiş ve Ferah */
/* ============================================ */

.chat-container {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    z-index: 1000;
    font-family: inherit;
}

.chat-header {
    background: linear-gradient(135deg, var(--color-header-bg) 0.95, var(--color-header-bg-dark) 0.95);
    color: var(--color-text-light);
    padding: var(--spacing-md) var(--spacing-md);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    border: 2px solid var(--color-border-dark);
    border-bottom: none;
    backdrop-filter: blur(10px);
}

.chat-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-icon {
    width: 24px;
    height: 24px;
}

.chat-online-count {
    font-size: 11px;
    color: #589550;
    background: rgba(76, 175, 80, 0.2);
    padding: 2px 8px;
    border-radius: 10px;
}

.chat-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-toggle-btn {
    background: none;
    border: none;
    color: #f5e6d3;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.3s;
    padding: 5px;
}

.chat-container.minimized .chat-toggle-btn {
    transform: rotate(180deg);
}

.chat-body {
    background: rgba(245, 230, 211, 0.95);
    border: 2px solid #8b7355;
    border-top: none;
    border-radius: 0 0 12px 12px;
    backdrop-filter: blur(10px);
    transition: max-height 0.3s ease, opacity 0.3s ease;
    max-height: 500px;
    opacity: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.chat-container.minimized .chat-body {
    max-height: 0;
    opacity: 0;
    border: none;
}

.chat-container.minimized .chat-header {
    border-radius: 12px;
    border-bottom: 2px solid #8b7355;
}

.chat-messages {
    height: 400px;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(139, 115, 85, 0.1);
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #c4a57b;
    border-radius: 3px;
}

.chat-message {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-sm);
    animation: messageSlide 0.3s ease;
    transition: var(--transition-fast);
}

.chat-message:hover {
    background: rgba(255, 255, 255, 0.85);
}

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

/* Avatar Container - Frame ve Avatar için */
.chat-message-avatar {
    position: relative;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

/* Avatar - Arkada */
.chat-message-avatar img.avatar {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-circle);
    object-fit: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

/* Frame - Avatarın Üstünde (Dünya sohbeti gibi) */
.chat-message-avatar img.frame {
    width: 32px;
    height: 32px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 2;
}

.chat-message-content {
    flex: 1;
    min-width: 0;
}

.chat-message-header {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.chat-message-rank {
    font-size: 10px;
    font-weight: bold;
    padding: 1px 6px;
    border-radius: 4px;
}

/* Rütbe renkleri */
.chat-rank-0 { background: #6d5a47; color: #fff; } /* Lord/Leydi */
.chat-rank-1 { background: #1565c0; color: #fff; } /* Baron */
.chat-rank-2 { background: #7b1fa2; color: #fff; } /* Kont */
.chat-rank-3 { background: #23b100; color: #fff; } /* Kral */
.chat-rank-4 { background: #ff8f00; color: #fff; } /* İmparator */

.chat-message-name {
    font-weight: bold;
    font-size: 12px;
}

.chat-current-user {
    color: var(--color-text-muted);
    font-size: 11px;
    margin-left: 6px;
    font-weight: normal;
}

/* Mesaj renkleri rütbeye göre */
.chat-name-0 { color: #5a4530; } /* Lord/Leydi */
.chat-name-1 { color: #1565c0; } /* Baron */
.chat-name-2 { color: #7b1fa2; } /* Kont */
.chat-name-3 { color: #23b100; } /* Kral */
.chat-name-4 { color: #ff8f00; } /* İmparator */

.chat-message-text {
    font-size: var(--font-size-sm);
    color: var(--color-text-primary);
    word-wrap: break-word;
    line-height: 1.5;
    margin-top: 2px;
}

/* Mesaj metni renkleri rütbeye göre - Daha ferah tonlar */
.chat-text-0 { color: var(--color-text-primary); }
.chat-text-1 { color: var(--color-accent-blue); }
.chat-text-2 { color: #9c4db5; }
.chat-text-3 { color: var(--color-accent-green-dark); }
.chat-text-4 { color: var(--color-accent-terracotta); }

.chat-input-area {
    display: flex;
    gap: 8px;
    padding: 10px;
    background: rgba(196, 165, 123, 0.3);
    border-top: 1px solid #c4a57b;
}

.chat-input-area input {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #c4a57b;
    border-radius: 20px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.9);
    outline: none;
    transition: border-color 0.2s;
}

.chat-input-area input:focus {
    border-color: #8b7355;
}

.chat-send-btn {
    background: linear-gradient(135deg, #4a7c59 0%, #3d6b4a 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.chat-send-btn:hover {
    background: linear-gradient(135deg, #3d6b4a 0%, #2d5a3a 100%);
    transform: scale(1.02);
}

.chat-send-btn:active {
    transform: scale(0.98);
}

/* ============================================ */
/* SANDIK SİSTEMİ */
/* ============================================ */

.chest-item {
    position: relative;
    overflow: hidden;
}

.chest-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(212, 165, 116, 0.4);
    border-color: #d4a574 !important;
}

.chest-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: 0.5s;
}

.chest-item:hover::after {
    left: 100%;
}

.chest-modal-content {
    text-align: center;
    padding: 10px;
}

.chest-preview {
    margin-bottom: 15px;
}

.chest-preview .chest-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    animation: chestBounce 1s ease-in-out infinite;
}

@keyframes chestBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.chest-rewards-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

.chest-reward-item {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid #c4a57b;
    border-radius: 10px;
    padding: 10px;
    min-width: 80px;
    text-align: center;
}

.chest-reward-item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.chest-reward-item span {
    display: block;
    font-size: 11px;
    color: #4a3520;
    margin-top: 5px;
}

.chest-reward-item small {
    display: block;
    font-size: 10px;
    color: #888;
}

.chest-silver-bonus-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 15px;
    margin: 10px 0;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 193, 7, 0.1) 100%);
    border: 2px solid #ffc107;
    border-radius: 10px;
}

.chest-silver-bonus-preview img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.chest-silver-bonus-preview span {
    font-size: 14px;
    font-weight: bold;
    color: #b8860b;
}

/* Sandık Açılma Animasyonu */
.chest-open-animation {
    text-align: center;
    padding: 20px;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.chest-opening {
    position: relative;
    width: 150px;
    height: 150px;
    margin-bottom: 20px;
}

.chest-opening .chest-closed-img,
.chest-opening .chest-open-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    object-fit: contain;
    transition: all 0.5s ease;
}

.chest-opening .chest-closed-img {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.chest-opening .chest-open-img {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
}

.chest-opening.opened .chest-closed-img {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.2) rotate(10deg);
    animation: chestShake 0.4s ease;
}

.chest-opening.opened .chest-open-img {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

@keyframes chestShake {
    0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
    20% { transform: translate(-50%, -50%) rotate(-10deg); }
    40% { transform: translate(-50%, -50%) rotate(10deg); }
    60% { transform: translate(-50%, -50%) rotate(-5deg); }
    80% { transform: translate(-50%, -50%) rotate(5deg); }
}

.chest-reward-reveal {
    opacity: 0;
    transform: translateY(30px) scale(0.5);
    transition: all 0.5s ease;
    position: relative;
}

.chest-reward-reveal.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.chest-reward-reveal .reward-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    animation: glowPulse 1.5s ease-in-out infinite;
    z-index: -1;
}

@keyframes glowPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

.chest-reward-reveal .reward-item-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.6));
    animation: rewardFloat 2s ease-in-out infinite;
}

@keyframes rewardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.chest-reward-reveal .reward-text {
    margin-top: 15px;
    font-size: 20px;
    color: #4a7c59;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.silver-bonus-reveal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 193, 7, 0.1) 100%);
    border: 2px solid #ffc107;
    border-radius: 20px;
    animation: silverPulse 1s ease-in-out infinite;
}

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

.silver-bonus-reveal .silver-bonus-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.silver-bonus-reveal span {
    font-size: 16px;
    font-weight: bold;
    color: #b8860b;
}

/* Mobil uyumluluk */
@media (max-width: 768px) {
    .chat-container {
        width: 95%;
        max-width: none;
    }

    .chat-messages {
        height: 280px;
    }

    .chat-message-avatar {
        width: 28px;
        height: 28px;
    }

    .chat-message-avatar img.avatar {
        width: 24px;
        height: 24px;
    }

    .chat-message-avatar img.frame {
        width: 28px;
        height: 28px;
    }

    /* Modal mobil iyileştirmeleri */
    .modal-content {
        padding: 20px 15px;
        max-width: 95%;
        max-height: 90vh;
    }

    .battle-report-modal {
        max-width: 95%;
        padding: 15px 10px;
    }

    /* Battle tabs mobil */
    .battle-tab {
        padding: 10px 15px;
        font-size: 13px;
    }

    /* Input alanları mobil */
    input[type="text"], input[type="number"], select {
        font-size: 16px; /* iOS zoom'u engellemek için */
        padding: 10px;
    }

    /* Butonlar daha touch-friendly */
    .action-btn, .action-btn-large {
        min-height: 44px; /* Apple'ın önerdiği minimum touch target */
        touch-action: manipulation; /* Double-tap zoom'u engelle */
    }
}

/* ============================================
   ADMIN PANEL STİLLERİ
   ============================================ */

.admin-menu-btn {
    background: linear-gradient(135deg, #ffd700 0%, #b8860b 100%) !important;
    border: 2px solid #ffd700 !important;
}

.admin-menu-btn span {
    color: #1a1510 !important;
    font-weight: bold;
}

.admin-panel {
    padding: 20px;
}

.admin-title {
    color: #ffd700;
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.admin-section {
    background: linear-gradient(135deg, #2a2215 0%, #1a1510 100%);
    border: 2px solid #d4af37;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.admin-section h3 {
    color: #ffd700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #d4af37;
}

.admin-section h4 {
    color: #c4a57b;
    margin-bottom: 10px;
}

.admin-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.admin-select, .admin-input {
    padding: 10px;
    border: 2px solid #d4af37;
    border-radius: 8px;
    background: #1a1510;
    color: #ffd700;
    font-size: 14px;
}

.admin-select {
    min-width: 200px;
}

.admin-input {
    width: 120px;
}

.admin-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.admin-btn-add {
    background: linear-gradient(135deg, #4a7c59 0%, #3d6b4a 100%);
    color: white;
}

.admin-btn-save {
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    color: #1a1510;
}

.admin-btn-warning {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
}

.admin-btn-success {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
}

.admin-btn-danger {
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
    color: white;
}

.admin-btn-refresh {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.admin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.admin-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.admin-item-card {
    background: linear-gradient(135deg, #3a3225 0%, #2a2215 100%);
    border: 2px solid #d4af37;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
}

.admin-item-card.inactive {
    opacity: 0.6;
    border-color: #666;
}

.admin-item-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
}

.admin-item-info h5 {
    color: #ffd700;
    margin: 10px 0 5px;
}

.admin-item-price {
    color: #4a7c59;
    font-weight: bold;
}

.admin-item-stock {
    color: #c4a57b;
    font-size: 12px;
}

.admin-item-sales {
    color: #3498db;
    font-size: 12px;
}

.admin-item-actions {
    display: flex;
    gap: 5px;
    margin-top: 10px;
    justify-content: center;
}

.admin-item-actions .admin-btn {
    padding: 5px 10px;
    font-size: 12px;
}

.admin-exchange-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.exchange-rate-input {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #c4a57b;
}

.exchange-rate-input label {
    min-width: 150px;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.admin-stat-card {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid #d4af37;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.admin-stat-img {
    width: 30px;
    height: 30px;
}

.stat-name {
    color: #ffd700;
    font-size: 12px;
}

.stat-count {
    color: #4a7c59;
    font-weight: bold;
}

.stat-revenue {
    color: #c4a57b;
    font-size: 11px;
}

.admin-stat-total {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    padding: 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    color: #1a1510;
    font-weight: bold;
}

.admin-quick-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-empty {
    color: #8b7355;
    text-align: center;
    padding: 20px;
}

/* System Management Styles */
.system-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.system-control-item {
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid #d4af37;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.control-info {
    flex: 1;
}

.control-info h4 {
    color: #ffd700;
    margin: 0 0 5px 0;
    font-size: 16px;
}

.control-info p {
    margin: 0;
    font-size: 12px;
}

.admin-btn-primary {
    background: linear-gradient(135deg, #8e44ad 0%, #9b59b6 100%);
    color: white;
}

/* Kraliyet Pazari Header Stili */
.royal-market-header {
    background: linear-gradient(135deg, #d4af37 0%, #bb9a2c 100%) !important;
    border: 2px solid #1a1510 !important;
}

.exchange-header {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%) !important;
    border: 2px solid #c0c0c0 !important;
}

/* ============================================
   KRALIYET PAZARI STILLERI
   ============================================ */

.royal-market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.royal-item-card {
    background: linear-gradient(145deg, #f5e6d3 0%, #ead5b8 50%, #f5e6d3 100%);
    border: 2px solid #d4af37;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.royal-item-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
}

.royal-item-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    border-color: #ffd700;
    background: linear-gradient(145deg, #f8ecd9 0%, #f0ddc4 50%, #f8ecd9 100%);
}

.royal-item-img {
    width: 55px;
    height: 55px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(139, 69, 19, 0.3));
    margin-bottom: 5px;
}

.royal-item-name {
    color: #8b4513;
    margin: 8px 0 4px;
    font-size: 13px;
    font-weight: bold;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
}

.royal-item-desc {
    color: #6b5542;
    font-size: 10px;
    margin-bottom: 8px;
    min-height: 24px;
    line-height: 1.3;
}

.royal-item-stock {
    font-size: 11px;
    margin-bottom: 8px;
    color: #4a7c59;
    background: rgba(74, 124, 89, 0.15);
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.royal-item-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 10px;
    background: rgba(212, 175, 55, 0.25);
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid rgba(212, 175, 55, 0.5);
}

.royal-item-price img {
    width: 20px;
    height: 20px;
    filter: drop-shadow(0 1px 3px rgba(139, 69, 19, 0.4));
}

.royal-item-price span {
    color: #b8860b;
    font-weight: bold;
    font-size: 15px;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
}

.royal-buy-btn {
    background: linear-gradient(135deg, #d4af37 0%, #c9a929 100%);
    border: 1px solid #b8960b;
    color: #3d2817;
    font-weight: bold;
    width: 100%;
    padding: 10px;
    font-size: 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.royal-buy-btn:hover {
    background: linear-gradient(135deg, #ffd700 0%, #d4af37 100%);
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

/* ============================================
   DOVIZCI STILLERI
   ============================================ */

.exchange-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px;
}

.exchange-card {
    border-radius: 10px;
    padding: 12px;
    text-align: center;
}

.exchange-card.silver-card {
    background: linear-gradient(135deg, #c0c0c0 0%, #a8a8a8 100%);
}

.exchange-card.gold-card {
    background: linear-gradient(135deg, #ffd700 0%, #daa520 100%);
}

.exchange-card h4 {
    color: #2a2215;
    margin-bottom: 10px;
    font-size: 13px;
}

.exchange-rate-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.exchange-rate-display img {
    width: 22px;
    height: 22px;
}

.exchange-rate-display span {
    color: #2a2215;
    font-weight: bold;
    font-size: 13px;
}

.exchange-balance {
    color: #4a4a4a;
    font-size: 11px;
    margin-bottom: 8px;
}

.exchange-input-row {
    display: flex;
    gap: 6px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.exchange-input-row input {
    width: 70px;
    padding: 6px;
    border: 2px solid #888;
    border-radius: 6px;
    text-align: center;
    font-size: 12px;
}

.exchange-btn {
    padding: 6px 12px !important;
    font-size: 11px !important;
}

.exchange-btn.gold-btn {
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    border: none;
    color: #1a1510;
}

.exchange-btn.silver-btn {
    background: linear-gradient(135deg, #888 0%, #666 100%);
    border: none;
    color: #fff;
}

/* ============================================
   MOBIL UYUMLULUK
   ============================================ */

@media (max-width: 600px) {
    /* Top Bar */
    #topBar {
        padding: 5px 8px;
        gap: 5px;
    }

    .resource-item {
        padding: 3px 6px;
        gap: 3px;
    }

    .resource-icon {
        width: 18px;
        height: 18px;
    }

    .resource-item span {
        font-size: 12px;
        min-width: 20px;
    }

    /* Left Menu */
    #leftMenu {
        width: 70px;
        padding: 5px 3px;
        gap: 5px;
    }

    .menu-btn {
        padding: 8px 4px;
    }

    .menu-btn img {
        max-width: 40px;
    }

    .menu-btn span {
        font-size: 9px;
    }

    /* Right Panel */
    #rightPanel {
        padding: 10px;
    }

    /* Exchange */
    .exchange-container {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .exchange-card {
        padding: 10px;
    }

    /* Royal Market */
    .royal-market-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .royal-item-card {
        padding: 8px;
    }

    .royal-item-img {
        width: 40px;
        height: 40px;
    }

    .royal-item-name {
        font-size: 11px;
    }

    .royal-item-desc {
        font-size: 9px;
    }

    /* Admin */
    .admin-form {
        flex-direction: column;
    }

    .admin-select, .admin-input {
        width: 100%;
        min-width: unset;
    }

    .admin-items-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Admin Exchange Form - Mobil */
    .admin-exchange-form {
        gap: 10px;
    }

    .exchange-rate-input {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .exchange-rate-input label {
        min-width: unset;
        font-size: 13px;
    }

    .exchange-rate-input .admin-input {
        width: 100%;
    }

    .exchange-rate-input span {
        font-size: 12px;
    }

    /* Admin Stats - Mobil */
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-stat-card {
        padding: 8px;
    }

    .admin-stat-total {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    /* Admin Quick Buttons - Mobil */
    .admin-quick-btns {
        flex-direction: column;
    }

    .admin-quick-btns .admin-btn {
        width: 100%;
    }

    /* Admin Item Card - Mobil */
    .admin-item-card {
        padding: 10px;
    }

    .admin-item-img {
        width: 40px;
        height: 40px;
    }

    .admin-item-info h5 {
        font-size: 12px;
    }

    .admin-item-actions {
        flex-direction: column;
    }

    .admin-item-actions .admin-btn {
        width: 100%;
    }
}

/* ============================================ */
/* TUTORIAL SİSTEMİ */
/* ============================================ */

.tutorial-modal-content {
    max-width: 600px;
    background: linear-gradient(145deg, #fff9f0 0%, #f5e6d3 100%);
    border: 4px solid #d4af37;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.4);
}

.tutorial-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #c4a57b;
}

.tutorial-header h3 {
    color: #4a3520;
    font-size: 24px;
    margin: 0 0 15px 0;
    text-align: center;
}

.tutorial-progress {
    margin-top: 10px;
}

.tutorial-progress span {
    display: block;
    text-align: center;
    color: #6b5542;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: bold;
}

.tutorial-progress-bar {
    width: 100%;
    height: 20px;
    background: linear-gradient(135deg, #e0d5c7 0%, #c4a57b 100%);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.tutorial-progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #4a7c59 0%, #6fa67d 100%);
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(74, 124, 89, 0.5);
}

.tutorial-body {
    margin: 20px 0;
}

.tutorial-description {
    color: #5a4530;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
    white-space: pre-line;
    text-align: justify;
}

.tutorial-objective {
    margin-top: 15px;
}

.tutorial-continue-btn {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    background: linear-gradient(135deg, #4a7c59 0%, #6fa67d 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.tutorial-continue-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #5a8c69 0%, #7fb68d 100%);
}

.tutorial-continue-btn:active {
    transform: translateY(0);
}

/* Tutorial disabled menu */
.tutorial-disabled {
    pointer-events: none !important;
    opacity: 0.5 !important;
    filter: grayscale(50%);
}

@media (max-width: 768px) {
    .tutorial-modal-content {
        max-width: 95%;
        padding: 20px;
    }

    .tutorial-header h3 {
        font-size: 20px;
    }

    .tutorial-description {
        font-size: 14px;
    }

    .tutorial-continue-btn {
        font-size: 16px;
        padding: 12px;
    }
}

/* ============================================ */
/* HINT MODAL */
/* ============================================ */

.hint-icon {
    display: inline-block;
    font-size: 18px;
    color: #8b7355;
    background: linear-gradient(135deg, #f4e7d7 0%, #dcc9b3 100%);
    border: 2px solid #c4a57b;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    line-height: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 8px;
    vertical-align: middle;
}

.hint-icon:hover {
    background: linear-gradient(135deg, #e6d5c2 0%, #d4b89e 100%);
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hint-modal-content {
    max-width: 700px;
    background: linear-gradient(145deg, #fff9f0 0%, #f5e6d3 100%);
    border: 3px solid #c4a57b;
}

.hint-modal-content h3 {
    color: #4a3520;
    font-size: 22px;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid #c4a57b;
    padding-bottom: 15px;
}

.hint-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.hint-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #fef8f0 100%);
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #e6d5c2;
    transition: all 0.3s ease;
}

.hint-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #c4a57b;
}

.hint-item img.hint-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
}

.hint-info h4 {
    margin: 0 0 8px 0;
    color: #5a4530;
    font-size: 16px;
}

.hint-info p {
    margin: 0;
    color: #6b5542;
    font-size: 13px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .hint-grid {
        grid-template-columns: 1fr;
    }

    .hint-modal-content {
        max-width: 95%;
        padding: 20px;
    }

    .hint-item img.hint-icon {
        width: 40px;
        height: 40px;
    }

    .hint-info h4 {
        font-size: 14px;
    }

    .hint-info p {
        font-size: 12px;
    }
}

/* ============================================ */
/* NOTIFICATION ANIMATIONS */
/* ============================================ */

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.notification-item {
    margin-bottom: 5px;
}

/* ============================================ */
/* HINT CONTENT STYLES */
/* ============================================ */

.hint-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hint-section {
    background: linear-gradient(135deg, #ffffff 0%, #fef8f0 100%);
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #e6d5c2;
}

.hint-section h4 {
    margin: 0 0 12px 0;
    color: #5a4530;
    font-size: 16px;
    border-bottom: 2px solid #c4a57b;
    padding-bottom: 8px;
}

.hint-section p {
    margin: 8px 0;
    color: #6b5542;
    font-size: 14px;
    line-height: 1.6;
    padding-left: 8px;
}

@media (max-width: 768px) {
    .hint-section p {
        font-size: 13px;
    }
}

/* ============================================
   YENİ ÖZELLİK: Quantity Selector (+/- Butonlar)
   ============================================ */
.quantity-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.quantity-btn {
    width: 50px;
    height: 50px;
    border: 3px solid #c4a57b;
    border-radius: 12px;
    background: linear-gradient(135deg, #8b7355 0%, #6b5542 100%);
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

.quantity-btn:hover {
    background: linear-gradient(135deg, #a08968 0%, #8b7355 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.quantity-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.quantity-display {
    min-width: 80px;
    height: 50px;
    background: linear-gradient(135deg, #f5e6d3 0%, #e8dcc8 100%);
    border: 3px solid #c4a57b;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: #4a3520;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .quantity-selector {
        gap: 10px;
    }

    .quantity-btn {
        width: 45px;
        height: 45px;
        font-size: 24px;
    }

    .quantity-display {
        min-width: 70px;
        height: 45px;
        font-size: 20px;
    }
}

/* ============================================
   YENİ ÖZELLİK: Completion Indicator (Tamamlanma Sinyali)
   ============================================ */
.completion-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.8), 0 0 12px rgba(76, 175, 80, 0.4);
    animation: pulse-glow 2s ease-in-out infinite;
    z-index: 10;
}

@keyframes pulse-glow {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 8px rgba(76, 175, 80, 0.8), 0 0 12px rgba(76, 175, 80, 0.4);
    }
    50% {
        transform: scale(1.15);
        box-shadow: 0 0 12px rgba(76, 175, 80, 1), 0 0 20px rgba(76, 175, 80, 0.6);
    }
}

/* Accordion header için completion dot */
.accordion-header {
    position: relative;
}

.accordion-header .completion-dot {
    top: 50%;
    right: 40px;
    transform: translateY(-50%);
}

@media (max-width: 768px) {
    .completion-dot {
        width: 10px;
        height: 10px;
        top: 6px;
        right: 6px;
    }

    .accordion-header .completion-dot {
        right: 35px;
    }
}