* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Creepster', 'Arial', sans-serif;
    background: linear-gradient(135deg, #000000, #2F2F2F, #8B0000);
    color: #F5F5DC;
    overflow: hidden;
    cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20"><text y="16" font-size="16">💀</text></svg>'), auto;
}

.game-container {
    display: flex;
    height: 100vh;
}

.game-area {
    flex: 1;
    position: relative;
}

#gameCanvas {
    border: 5px solid #8B0000;
    border-radius: 15px;
    background: linear-gradient(to bottom, #2F2F4F 0%, #191970 50%, #000080 100%);
    box-shadow: 0 0 30px rgba(139, 0, 0, 0.8), inset 0 0 20px rgba(0, 0, 0, 0.5);
    animation: bloodPulse 3s infinite;
}

@keyframes bloodPulse {
    0%, 100% { box-shadow: 0 0 30px rgba(139, 0, 0, 0.8), inset 0 0 20px rgba(0, 0, 0, 0.5); }
    50% { box-shadow: 0 0 50px rgba(220, 20, 60, 1), inset 0 0 30px rgba(139, 0, 0, 0.3); }
}

.game-info {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.8);
    padding: 15px;
    border-radius: 10px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.info-item {
    font-weight: bold;
    font-size: 16px;
    color: #FFD700;
}

.right-menu {
    width: 320px;
    background: linear-gradient(135deg, #1C1C1C, #2F2F2F, #8B0000);
    padding: 20px;
    border-left: 5px solid #DC143C;
    overflow-y: auto;
    box-shadow: inset 5px 0 15px rgba(139, 0, 0, 0.3);
}

.right-menu h3 {
    color: #3498db;
    margin-bottom: 20px;
    text-align: center;
    font-size: 24px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.right-menu h4 {
    color: #e74c3c;
    margin: 15px 0 10px 0;
    font-size: 18px;
}

.menu-btn {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.menu-btn:hover {
    background: linear-gradient(135deg, #2980b9, #1f618d);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

.menu-btn:disabled {
    background: #7f8c8d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.start-btn {
    background: linear-gradient(135deg, #27ae60, #229954) !important;
}

.start-btn:hover {
    background: linear-gradient(135deg, #229954, #1e8449) !important;
}

.pause-btn {
    background: linear-gradient(135deg, #f39c12, #e67e22) !important;
}

.pause-btn:hover {
    background: linear-gradient(135deg, #e67e22, #d35400) !important;
}

.sniper-count, .stats-section p {
    color: #ecf0f1;
    margin: 5px 0;
    font-size: 14px;
}

.stats-section {
    background: rgba(0,0,0,0.3);
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.wave-control {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #34495e;
}

.game-over {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.game-over-content {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    border: 3px solid #3498db;
    box-shadow: 0 0 30px rgba(52, 152, 219, 0.5);
}

.game-over-content h2 {
    color: #e74c3c;
    margin-bottom: 20px;
    font-size: 32px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.restart-btn {
    padding: 15px 30px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.restart-btn:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: scale(1.05);
}

.hidden {
    display: none !important;
}

/* Tema değişiklikleri için CSS sınıfları */
.theme-desert {
    background: linear-gradient(to bottom, #FFE4B5 0%, #DEB887 50%, #D2691E 100%) !important;
}

.theme-night {
    background: linear-gradient(to bottom, #191970 0%, #000080 50%, #000000 100%) !important;
}

.theme-winter {
    background: linear-gradient(to bottom, #F0F8FF 0%, #E6E6FA 50%, #B0C4DE 100%) !important;
}

.theme-hell {
    background: linear-gradient(to bottom, #8B0000 0%, #DC143C 50%, #FF4500 100%) !important;
}

.theme-space {
    background: linear-gradient(to bottom, #000000 0%, #1a0033 50%, #330066 100%) !important;
}

.theme-jungle {
    background: linear-gradient(to bottom, #228B22 0%, #006400 50%, #2F4F2F 100%) !important;
}

.theme-volcano {
    background: linear-gradient(to bottom, #FF4500 0%, #8B0000 50%, #000000 100%) !important;
}

/* Boss Uyarısı */
.boss-warning {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #8B0000, #DC143C);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 3px solid #FFD700;
    box-shadow: 0 0 30px rgba(220, 20, 60, 0.8);
    z-index: 100;
    animation: bossWarningPulse 1s infinite;
}

@keyframes bossWarningPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.05); }
}

.boss-warning h2 {
    color: #FFD700;
    font-size: 28px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

/* Menü Sekmeleri */
.menu-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 2px solid #34495e;
}

.tab-btn {
    flex: 1;
    padding: 10px 5px;
    background: #2c3e50;
    color: #ecf0f1;
    border: none;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: #3498db;
    color: white;
}

.tab-btn:hover {
    background: #34495e;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Kule Seçimi */
.tower-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin: 15px 0;
}

.tower-btn {
    padding: 12px 6px;
    background: linear-gradient(135deg, #4B0082, #8B0000);
    color: #F5F5DC;
    border: 2px solid #DC143C;
    border-radius: 10px;
    cursor: pointer;
    font-size: 10px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.tower-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.tower-btn:hover::before {
    left: 100%;
}

.tower-btn:hover {
    background: linear-gradient(135deg, #8B0000, #DC143C);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(220, 20, 60, 0.8);
    border-color: #FFD700;
}

.tower-btn.selected {
    background: linear-gradient(135deg, #FFD700, #FF4500);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.9);
    border-color: #FFFFFF;
    animation: selectedPulse 1s infinite;
}

@keyframes selectedPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Market Butonları */
.market-btn {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.market-btn:hover {
    background: linear-gradient(135deg, #8e44ad, #7d3c98);
    transform: translateY(-2px);
}

.market-btn:disabled {
    background: #7f8c8d;
    cursor: not-allowed;
    transform: none;
}

/* Yetenek Butonları */
.skill-btn {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    position: relative;
}

.skill-btn:hover {
    background: linear-gradient(135deg, #e67e22, #d35400);
    transform: translateY(-2px);
}

.skill-btn:disabled {
    background: #7f8c8d;
    cursor: not-allowed;
    transform: none;
}

.skill-btn.cooling {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
}

/* Pasif Yetenekler */
.passive-skills {
    margin-top: 15px;
}

.passive-skill {
    margin: 10px 0;
}

.skill-progress {
    width: 100%;
    height: 8px;
    background: #34495e;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 5px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2980b9);
    transition: width 0.3s ease;
}

/* Hızlandırma Butonu */
.fast-btn {
    background: linear-gradient(135deg, #e67e22, #d35400) !important;
}

.fast-btn:hover {
    background: linear-gradient(135deg, #d35400, #ba4a00) !important;
}

.fast-btn.active {
    background: linear-gradient(135deg, #c0392b, #a93226) !important;
    box-shadow: 0 0 15px rgba(192, 57, 43, 0.5);
}

/* Satış Butonu */
.sell-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
}

.sell-btn:hover {
    background: linear-gradient(135deg, #c0392b, #a93226) !important;
}

/* Market Bölümleri */
.market-section {
    margin: 20px 0;
    padding: 15px;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    border-left: 4px solid #9b59b6;
}

.skills-section {
    margin: 20px 0;
    padding: 15px;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    border-left: 4px solid #f39c12;
}

/* Cooldown Göstergesi */
.cooldown-timer {
    color: #e74c3c;
    font-weight: bold;
}

/* Animasyonlar */
@keyframes explosion {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.7; }
    100% { transform: scale(2); opacity: 0; }
}

@keyframes hit {
    0% { filter: brightness(1); }
    50% { filter: brightness(2) hue-rotate(90deg); }
    100% { filter: brightness(1); }
}

.explosion {
    animation: explosion 0.3s ease-out;
}

.hit-effect {
    animation: hit 0.2s ease-out;
}