:root {
    --primary-color: #f39c12;
    /* AltÄ±n sarÄ±sÄ± - Zafer/SavaÅŸ */
    --secondary-color: #2c3e50;
    /* Koyu lacivert - KÃ¶y/Sistem */
    --accent-color: #e74c3c;
    /* KÄ±rmÄ±zÄ± - SavaÅŸ/Tehlike */
    --text-color: #ecf0f1;
    --bg-dark: #121212;
    --glass-bg: rgba(20, 20, 20, 0.85);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Cinzel', serif;
    --font-body: 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-color);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

#app {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Backgrounds */
#bg-container,
#dynamic-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.8)), url('../img/home-bg.png');
    background-size: cover;
    background-position: center;
    transition: background-image 0.5s ease;
}

/* Screens */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: scale(0.95);
    padding: 2rem;
}

.screen.active {
    opacity: 1;
    pointer-events: all;
    transform: scale(1);
    z-index: 10;
}

.screen.hidden {
    display: none;
    /* Performans iÃ§in */
}

/* Main Menu */
.game-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    text-shadow: 0 0 20px rgba(243, 156, 18, 0.5);
    margin-bottom: 3rem;
    text-align: center;
    letter-spacing: 2px;
}

.game-title .highlight {
    color: var(--primary-color);
}

.menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: 300px;
}

.btn {
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    cursor: pointer;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-color);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
    border-color: var(--primary-color);
}

.btn.primary {
    background: rgba(243, 156, 18, 0.2);
    border-color: var(--primary-color);
}

.btn.primary:hover {
    background: rgba(243, 156, 18, 0.4);
}

.btn.secondary {
    background: rgba(44, 62, 80, 0.4);
}

.btn.tertiary {
    font-size: 1rem;
    padding: 0.8rem;
    opacity: 0.8;
}

/* KÃ¼Ã§Ã¼k Danger Butonu (SaÄŸ Alt) */
.btn.danger-small {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: var(--accent-color);
    font-size: 0.7rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    opacity: 0.6;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    backdrop-filter: blur(2px);
    font-family: var(--font-body);
}

.btn.danger-small:hover {
    background: rgba(231, 76, 60, 0.4);
    opacity: 1;
    transform: scale(1.05);
}

/* Header Bar */
.header-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent);
    z-index: 20;
}

.header-bar h2 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 2rem;
    margin-right: 2rem;
}

.btn-back {
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s;
}

.btn-back:hover {
    transform: translateX(-5px);
    color: var(--primary-color);
}

/* Campaign Map */
#campaign-map {
    justify-content: flex-start;
    padding-top: 5rem;
    overflow: hidden;
}

.map-container {
    width: 100%;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
    border-top: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    background: #111;
    /* Scrollbar styling */
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #333;
}

.map-container::-webkit-scrollbar {
    height: 8px;
}

.map-container::-webkit-scrollbar-track {
    background: #333;
}

.map-container::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 4px;
}

.map-scroll {
    position: relative;
    height: 100%;
    /* Harita gÃ¶rselinin oranÄ±na gÃ¶re geniÅŸlik (YaklaÅŸÄ±k 1920x1080 oranÄ±nda ise ve yÃ¼kseklik %100 ise geniÅŸlik ona gÃ¶re artmalÄ±.
       Ancak yatay scroll istediÄŸimiz iÃ§in geniÅŸliÄŸi manuel artÄ±racaÄŸÄ±z. */
    width: 200vh;
    /* Ekran yÃ¼ksekliÄŸinin 2 katÄ± geniÅŸlik (GeniÅŸ harita hissi) */
    min-width: 1500px;
    background: url('../img/campaign-map.jpg') no-repeat left center;
    background-size: 100% 100%;
    /* KapsayÄ±cÄ±ya tam sÄ±ÄŸdÄ±r */
    display: block;
    /* Flex'i kaldÄ±rdÄ±k, absolute node'lar kullanacaÄŸÄ±z */
}

.level-node {
    width: 60px;
    height: 60px;
    background: #444;
    border: 3px solid #666;
    border-radius: 50%;
    position: absolute;
    /* ArtÄ±k serbest konumlanacak */
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: bold;
    color: #aaa;
    z-index: 5;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

/* Ã‡izgileri kaldÄ±rdÄ±k Ã§Ã¼nkÃ¼ gÃ¶rselde yol var */
.level-node::after {
    display: none;
}

.level-node.locked {
    background: #222;
    border-color: #333;
    cursor: not-allowed;
    color: #444;
}

.level-node.unlocked {
    background: var(--secondary-color);
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 0 15px rgba(243, 156, 18, 0.3);
}

.level-node.unlocked:hover {
    transform: scale(1.2);
    background: var(--primary-color);
    color: #000;
}

.level-node.completed {
    background: #2ecc71;
    border-color: #27ae60;
    color: #fff;
}

/* Village Screen & Buildings */
#village-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: url('../img/village-bg.jpg') no-repeat center center;
    background-size: cover;
    overflow: hidden;
}

/* Building Hitboxes (Ä°nteraktif Alanlar) */
.building-hitbox {
    position: absolute;
    width: 100px;
    /* Sabit boyut */
    height: 100px;
    /* Sabit boyut */
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
    /* Ã‡ok hafif dolgu */
    border-radius: 50%;
    /* Tam daire */
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    transform: translate(-50%, -50%);
    /* Merkezden konumlandÄ±rma */
    z-index: 10;

    /* Ä°kon ekleyelim (Opsiyonel, CSS ile basit ÅŸekil) */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* SÃ¼rekli "Nefes Alma" Animasyonu */
.building-hitbox {
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0% {
        border-color: rgba(255, 255, 255, 0.3);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.2);
    }

    50% {
        border-color: rgba(255, 255, 255, 0.6);
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }

    100% {
        border-color: rgba(255, 255, 255, 0.3);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.building-hitbox:hover {
    background: rgba(243, 156, 18, 0.2);
    border-color: #f39c12;
    box-shadow: 0 0 30px rgba(243, 156, 18, 0.6), inset 0 0 20px rgba(243, 156, 18, 0.3);
    transform: translate(-50%, -50%) scale(1.15);
    /* BÃ¼yÃ¼me efekti */
    animation: none;
    /* Hoverdayken animasyon dursun, sabit parlasÄ±n */
}

/* Bina Ä°sim Etiketi */
.building-hitbox::after {
    content: attr(title);
    position: absolute;
    bottom: -35px;
    /* AltÄ±na alalÄ±m */
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(0, 0, 0, 0.9);
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 20px;
    /* Yuvarlak etiket */
    font-family: var(--font-heading);
    font-size: 0.9rem;
    border: 1px solid var(--primary-color);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
    z-index: 15;
}

.building-hitbox:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Konumlar (Merkez noktalarÄ±na gÃ¶re ayarlandÄ±) */
#building-muhtar {
    top: 48%;
    left: 27%;
}

#building-kisla {
    top: 25%;
    left: 49%;
}

#building-okul {
    top: 42%;
    left: 75%;
}

#building-magaza {
    top: 75%;
    left: 63%;
}

/* Notification */
#notification-area {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 100;
}

.toast {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 1rem 1.5rem;
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
    opacity: 0;
    transform: translateX(100%);
    animation: slideIn 0.5s forwards, fadeOut 0.5s forwards 2.5s;
    font-family: var(--font-body);
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(20px);
    }
}

/* Placeholders */
.placeholder-overlay {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    font-size: 0.8rem;
    color: #aaa;
    pointer-events: none;
    border-radius: 4px;
}

/* Barracks Screen */
.units-container {
    display: flex;
    /* Grid yerine flex kullanarak ortalayalÄ±m, az birim var */
    justify-content: center;
    gap: 2rem;
    padding-top: 5rem;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1200px;
}

.unit-card {
    background: linear-gradient(145deg, #2c3e50, #1a252f);
    border: 2px solid #34495e;
    border-radius: 12px;
    width: 280px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.unit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
    border-color: var(--primary-color);
}

.unit-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    background-color: #000;
    object-fit: cover;
    margin-bottom: 0.5rem;
    box-shadow: 0 0 15px rgba(243, 156, 18, 0.3);
}

.unit-info h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-align: center;
}

.unit-stats {
    width: 100%;
    font-size: 0.9rem;
    color: #bdc3c7;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.2rem;
}

.unit-level {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    color: #000;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.btn-upgrade {
    width: 100%;
    padding: 0.8rem;
    margin-top: 1rem;
    background: #27ae60;
    border: none;
    color: white;
    font-family: var(--font-heading);
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-upgrade:hover {
    background: #2ecc71;
}

.btn-upgrade:disabled {
    background: #7f8c8d;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Locked Card Style - ArtÄ±k JS ile yÃ¶netiliyor */
/* .unit-card.locked { ... } kaldÄ±rÄ±ldÄ± */
/* Battle Screen */
#battle-screen {
    background: #2c3e50;
    /* Fallback */
    background-image: url('../img/campaign-map.jpg');
    /* GeÃ§ici olarak map resmini kullanalÄ±m, sonra deÄŸiÅŸir */
    background-size: cover;
    background-position: center;
}

.battle-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    z-index: 20;
    color: white;
    font-family: var(--font-heading);
}

.tower-hp {
    display: flex;
    flex-direction: column;
    width: 300px;
    gap: 5px;
}

.player-hp {
    align-items: flex-start;
}

.enemy-hp {
    align-items: flex-end;
}

.hp-bar {
    width: 100%;
    height: 15px;
    background: #333;
    border: 1px solid #555;
    border-radius: 5px;
    overflow: hidden;
}

#player-tower-hp-bar {
    background: #27ae60;
    transition: width 0.2s;
}

#enemy-tower-hp-bar {
    background: #c0392b;
    transition: width 0.2s;
}

.battle-timer {
    font-size: 2rem;
    font-weight: bold;
    color: #f1c40f;
}

/* Battle Field */
#battle-field {
    position: relative;
    width: 100%;
    height: calc(100% - 180px);
    /* Header ve Footer payÄ± */
    top: 60px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.tower {
    font-size: 5rem;
    position: absolute;
    bottom: 30%;
    /* Yol hizasÄ± */
    z-index: 5;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.8));
}

#player-tower {
    left: 20px;
}

#enemy-tower {
    right: 20px;
    transform: scaleX(-1);
    /* YÃ¶nÃ¼ Ã§evir */
}

#battle-lane {
    position: absolute;
    bottom: 30%;
    /* Kulelerle aynÄ± hiza */
    left: 0;
    width: 100%;
    height: 1px;
    /* GÃ¶rÃ¼nmez hat, birimler buraya basarak yÃ¼rÃ¼yecek */
    background: rgba(255, 255, 255, 0.1);
}

/* Battle HUD (Alt Bar) */
.battle-hud {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
    gap: 2rem;
    border-top: 2px solid var(--primary-color);
}

.silver-display {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #bdc3c7;
    min-width: 120px;
}

.spawn-controls {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 5px;
}

.spawn-btn {
    position: relative;
    width: 70px;
    height: 70px;
    border: 2px solid #555;
    background: #333;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s;
}

.spawn-btn:hover:not(:disabled) {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.spawn-btn:disabled {
    opacity: 0.5;
    filter: grayscale(100%);
    cursor: not-allowed;
}

.spawn-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spawn-cost {
    position: absolute;
    bottom: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 0.7rem;
    padding: 2px 4px;
    border-top-left-radius: 4px;
}

/* SavaÅŸ Birimleri */
.battle-unit {
    position: absolute;
    bottom: 25%;
    /* Yolun ortasÄ±na otursun */
    width: 70px;
    /* BÃ¼yÃ¼tÃ¼ldÃ¼ */
    height: 70px;
    /* BÃ¼yÃ¼tÃ¼ldÃ¼ */
    transform: translate(-50%, 50%);
    /* Merkezden basÄ±yorlar */
    transition: left 0.1s linear;
    /* JS ile hareket ettireceÄŸiz */
    z-index: 10;
}

.battle-unit.boss {
    width: 150px;
    height: 150px;
    z-index: 20;
    bottom: 30%;
    /* Biraz daha yukarÄ±da dursun devasa olduÄŸu iÃ§in */
    filter: drop-shadow(0 0 10px red);
    /* Boss olduÄŸunu belli et */
}

.battle-unit.enemy {
    transform: translate(50%, 50%) scaleX(-1);
    /* KarÅŸÄ±dan gelenler Ã§evrili */
    filter: hue-rotate(180deg);
    /* DÃ¼ÅŸmanlarÄ± farklÄ± renk yapalÄ±m (basitÃ§e) */
}

/* Can BarÄ± (Birim ÃœstÃ¼nde) */
.unit-hp-bar {
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background: red;
    border: 1px solid black;
}

.unit-hp-current {
    height: 100%;
    background: #2ecc71;
}

/* Hasar YazÄ±larÄ± */
.damage-text {
    position: absolute;
    color: #e74c3c;
    font-weight: bold;
    font-size: 1.5rem;
    pointer-events: none;
    animation: floatUp 1s forwards;
    text-shadow: 2px 2px 0 #000;
    z-index: 100;
    font-family: var(--font-heading);
}

.damage-text.crit {
    color: #f1c40f;
    font-size: 2rem;
}

@keyframes floatUp {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(-50px) scale(1.2);
    }
}

/* Speed Controls */
.speed-controls {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
    /* SaÄŸa yasla */
    margin-right: 1rem;
}

.btn-speed {
    background: #333;
    border: 1px solid #555;
    color: #bdc3c7;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-speed:hover {
    background: #444;
    color: white;
}

.btn-speed.active {
    background: var(--primary-color);
    color: black;
    border-color: var(--primary-color);
    font-weight: bold;
}

/* Tutorial Overlay */
#tutorial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.tutorial-box {
    background: linear-gradient(135deg, #2c3e50, #000);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 0 30px rgba(243, 156, 18, 0.4);
    animation: popIn 0.3s ease-out;
}

@keyframes popIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

#tutorial-title {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #555;
    padding-bottom: 0.5rem;
}

#tutorial-text {
    font-size: 1.1rem;
    color: #ecf0f1;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.tutorial-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.tutorial-buttons button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

#tutorial-next-btn {
    background: var(--primary-color);
    color: #2c3e50;
}

#tutorial-next-btn:hover {
    background: #f1c40f;
    transform: scale(1.05);
}

#tutorial-skip-btn:hover {
    background: #e74c3c !important;
    transform: scale(1.05);
}

/* Shop Screen */
.shop-currency {
    font-size: 1.2rem;
    font-weight: bold;
    font-family: var(--font-heading);
}

.shop-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding-top: 5rem;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1200px;
}

.shop-item {
    background: linear-gradient(145deg, #34495e, #2c3e50);
    border: 3px solid #7f8c8d;
    border-radius: 12px;
    width: 260px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.shop-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

/* Nadirlik (Rarity) Ã‡erÃ§eveleri */
.shop-item.rare {
    border-color: #3498db;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
}

.shop-item.epic {
    border-color: #9b59b6;
    box-shadow: 0 0 15px rgba(155, 89, 182, 0.4);
}

.shop-item.legendary {
    border-color: #f1c40f;
    box-shadow: 0 0 20px rgba(241, 196, 15, 0.5);
}

.item-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
    filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.5));
}

.item-info {
    text-align: center;
}

.item-info h3 {
    color: white;
    font-family: var(--font-heading);
    margin-bottom: 5px;
}

.item-price {
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 10px;
}

.price-gold {
    color: #f1c40f;
}

.price-voucher {
    color: #ff00ff;
}

.btn-buy {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
    text-transform: uppercase;
}

.btn-buy.gold {
    background: #f39c12;
    color: #2c3e50;
}

.btn-buy.gold:hover {
    background: #f1c40f;
}

.btn-buy.voucher {
    background: #9b59b6;
    color: white;
}

.btn-buy.voucher:hover {
    background: #8e44ad;
}

.btn-buy:disabled {
    background: #7f8c8d;
    cursor: not-allowed;
    opacity: 0.6;
}

.owned-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #27ae60;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}
/* Hava Olaylarý */
.weather-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Týklamayý engelleme */
    z-index: 1000;
    opacity: 0.6;
    animation: fadeInOut 1s ease-in-out;
}

.weather-effect.arrow {
    background-image: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.8) 50%, rgba(0,0,0,0.1) 100%);
    background-size: 10px 100%; /* Çizgili görünüm */
}

.weather-effect.acid {
    background: radial-gradient(circle, rgba(46, 204, 113, 0.4) 0%, rgba(39, 174, 96, 0.8) 100%);
    box-shadow: inset 0 0 100px #2ecc71;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    20% { opacity: 0.8; }
    80% { opacity: 0.8; }
    100% { opacity: 0; }
}


#tutorial-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

#tutorial-close:hover {
    color: #e74c3c;
}

.tutorial-box {
    position: relative; /* Kapatma butonu için */
}


/* Tutorial Z-Index Fix */
#tutorial-overlay { z-index: 2000 !important; }
#tutorial-close { z-index: 2001 !important; pointer-events: all; }


/* BÝRÝM BOYUTLARINI BÜYÜTME (2x) */
.battle-unit {
    width: 120px !important; /* Eskiden 60-70px civarýydý */
    height: 120px !important;
    background-size: cover;
}

/* Boss daha da büyük */
.battle-unit.boss {
    width: 300px !important;
    height: 300px !important;
    z-index: 50; /* Diðerlerinin önünde */
}

/* Kuleler de büyüsün ki orantýlý olsun */
.tower {
    font-size: 8rem !important; /* Eskiden 4-5rem idi */
    bottom: 40px !important; 
}

/* Can barlarý da geniþlesin */
.hp-bar-mini {
    width: 100px !important;
    left: 10px !important;
}


/* VURUÞ EFEKTLERÝ */
.hit-effect {
    position: absolute;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, #fff700, #ff4500, transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 1;
    z-index: 100;
    pointer-events: none;
    animation: hitPop 0.3s ease-out forwards;
}

@keyframes hitPop {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.5); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

/* Hasar Metni Animasyonu (Mevcut, ama geliþtirelim) */
.damage-text {
    font-size: 1.5rem !important;
    font-weight: bold;
    text-shadow: 0 0 5px #000;
    animation: floatUp 1s ease-out forwards !important;
}

@keyframes floatUp {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(-50px); opacity: 0; }
}


/* --- KIÞLA EFEKTLERÝ --- */
.unit-card {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Yaylanma efekti */
    position: relative;
    overflow: hidden;
    border: 2px solid #555;
    background: #222;
}

.unit-card:hover {
    transform: scale(1.1); /* Büyüme */
    z-index: 10;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6); /* Altýn parýltý */
    border-color: #ffd700;
}

/* Kilitli Birim Efektleri */
.unit-card.locked {
    filter: grayscale(100%) brightness(0.6);
    opacity: 0.8;
    border-color: #444;
}

.unit-card.locked:hover {
    filter: grayscale(0%) brightness(1.2); /* Renklen ve parla */
    opacity: 1;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.8), inset 0 0 20px rgba(255, 255, 255, 0.2);
    border-color: #fff;
    cursor: pointer;
}

/* Kilit ikonu animasyonu */
.unit-card.locked::after {
    content: '??';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    opacity: 0.7;
    transition: transform 0.3s ease;
}

.unit-card.locked:hover::after {
    transform: translate(-50%, -50%) scale(1.5) rotate(-15deg); /* Kilit oynasýn */
    opacity: 0.2; /* Kilit silikleþsin, birim görünsün */
}


/* --- MAÐAZA (BAKKAL) NADÝRLÝK RENKLERÝ --- */
.shop-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-width: 3px;
    border-style: solid;
    position: relative;
}

.shop-item:hover {
    transform: translateY(-5px) scale(1.03);
}

/* Common (Sýradan) */
.shop-item.common {
    border-color: #95a5a6;
    box-shadow: 0 0 5px #95a5a6;
}

/* Rare (Nadir) - Mavi */
.shop-item.rare {
    border-color: #3498db;
    background: linear-gradient(135deg, #222 60%, rgba(52, 152, 219, 0.2));
    box-shadow: 0 0 10px #3498db;
}

/* Epic (Epik) - Mor */
.shop-item.epic {
    border-color: #9b59b6;
    background: linear-gradient(135deg, #222 60%, rgba(155, 89, 182, 0.2));
    box-shadow: 0 0 15px #9b59b6;
}
.shop-item.epic:hover {
    box-shadow: 0 0 25px #9b59b6, inset 0 0 10px #9b59b6;
}

/* Legendary (Efsanevi) - Altýn/Turuncu */
.shop-item.legendary {
    border-color: #f1c40f;
    background: linear-gradient(135deg, #222 60%, rgba(241, 196, 15, 0.2));
    box-shadow: 0 0 20px #f1c40f;
    animation: legendaryPulse 2s infinite;
}

.shop-item.legendary:hover {
    box-shadow: 0 0 40px #f1c40f, inset 0 0 20px #f1c40f;
    border-color: #ffeba7;
}

@keyframes legendaryPulse {
    0% { box-shadow: 0 0 15px #f1c40f; border-color: #f39c12; }
    50% { box-shadow: 0 0 25px #f39c12; border-color: #f1c40f; }
    100% { box-shadow: 0 0 15px #f1c40f; border-color: #f39c12; }
}

/* Sahip Olunan Ürün Rozeti */
.owned-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #27ae60;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: bold;
    transform: rotate(15deg);
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    z-index: 5;
}


/* TOWER HEALTH BAR COLORS (User Request) */
#player-tower-hp-bar { background-color: #2ecc71 !important; }
#enemy-tower-hp-bar { background-color: #e74c3c !important; }

/* ROBUST HEALTH BAR FIX */
.hp-bar { width: 100%; height: 20px; background-color: #333; border: 2px solid #fff; border-radius: 10px; overflow: hidden; margin-top: 5px; }
#player-tower-hp-bar { height: 100%; background-color: #2ecc71 !important; transition: width 0.3s; }
#enemy-tower-hp-bar { height: 100%; background-color: #e74c3c !important; transition: width 0.3s; }
