/* Modern Auto-upgrade buton stilleri */
.game-upgrade-buttons {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.buy-upgrade-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-width: 140px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.buy-upgrade-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;
}

.buy-upgrade-btn:hover::before {
    left: 100%;
}

.buy-upgrade-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a67d8 0%, #667eea 100%);
}

.buy-upgrade-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.buy-upgrade-btn:disabled {
    background: linear-gradient(135deg, #a0aec0, #718096);
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    opacity: 0.6;
}

.auto-upgrade-btn {
    background: linear-gradient(135deg, #4a5568, #2d3748);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-width: 100px;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.auto-upgrade-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.auto-upgrade-on {
    background: linear-gradient(135deg, #48bb78, #38a169);
    box-shadow: 0 0 20px rgba(72, 187, 120, 0.4);
    animation: pulseGlow 2s ease-in-out infinite;
}

.auto-upgrade-off {
    background: linear-gradient(135deg, #4a5568, #2d3748);
}

.auto-upgrade-on:hover {
    background: linear-gradient(135deg, #38a169, #2f855a);
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 15px 40px rgba(72, 187, 120, 0.5);
}

.auto-upgrade-off:hover {
    background: linear-gradient(135deg, #2d3748, #1a202c);
    transform: translateY(-3px) scale(1.05);
}

@keyframes pulseGlow {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(72, 187, 120, 0.4);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 30px rgba(72, 187, 120, 0.6);
        transform: scale(1.02);
    }
}

/* Kompakt Oyun Container */
.game-inline {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
    margin: 15px 0;
    max-width: 900px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: gameSlideDown 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.game-inline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57);
    animation: gradientShift 3s ease-in-out infinite;
}

.game-inline::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

@keyframes gameSlideDown {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

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

/* Kritik hit animasyonu */
@keyframes criticalFloat {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.5);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -60%) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -80%) scale(1);
    }
}

/* Upgrade efekti animasyonu */
@keyframes upgradeSlideIn {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Tıklama efekti */
.game-clicker.clicked {
    animation: clickPulse 0.2s ease-out;
}

@keyframes clickPulse {
    0% { transform: scale(1); }
    50% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

/* Başarı animasyonu */
@keyframes achievementSlide {
    0% {
        transform: translateX(-50%) translateY(-100px);
        opacity: 0;
    }
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}


.game-inline-header {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: white;
    padding: 12px 18px;
    border-radius: 14px 14px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.3);
}

.game-inline-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.15), transparent, rgba(255,255,255,0.05));
    pointer-events: none;
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.game-inline-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 0.5px;
}

.game-toggle {
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.2);
}

.game-toggle:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.game-inline-body {
    padding: 18px;
    color: white;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
}

.game-main {
    flex: 1;
    min-width: 180px;
    text-align: center;
}

.game-sidebar {
    flex: 1;
    min-width: 180px;
}

#gameScore, .game-score {
    font-size: 36px;
    margin: 12px 0;
    color: #ffd700;
    font-weight: 900;
    text-align: center;
    text-shadow: 0 4px 8px rgba(255, 215, 0, 0.5);
    background: linear-gradient(135deg, #ffd700, #ffed4e, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: scoreGlow 2s ease-in-out infinite alternate;
    letter-spacing: 1px;
    position: relative;
}

#gameScore::after, .game-score::after {
    content: '💰';
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    animation: bounce 1s ease-in-out infinite;
}

@keyframes scoreGlow {
    from { 
        text-shadow: 0 6px 12px rgba(255, 215, 0, 0.5);
        transform: scale(1);
    }
    to { 
        text-shadow: 0 8px 16px rgba(255, 215, 0, 0.8);
        transform: scale(1.02);
    }
}

@keyframes bounce {
    0%, 100% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-50%) scale(1.2); }
}

#gameClicker, .game-clicker {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 50%, #ff6b6b 100%);
    color: white;
    border-radius: 50%;
    line-height: 100px;
    font-size: 18px;
    font-weight: 800;
    margin: 0 auto 15px;
    cursor: pointer;
    user-select: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

#gameClicker::before, .game-clicker::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

#gameClicker::after, .game-clicker::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    border-radius: 50%;
    z-index: -1;
    animation: rotate 3s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#gameClicker:hover, .game-clicker:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.6);
    background: linear-gradient(135deg, #ff5252 0%, #d32f2f 50%, #ff5252 100%);
}

#gameClicker:hover::before, .game-clicker:hover::before {
    width: 100px;
    height: 100px;
}

#gameClicker:hover::after, .game-clicker:hover::after {
    opacity: 1;
}

#gameClicker:active, .game-clicker:active {
    transform: scale(0.95);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}


/* Kompakt New Game Butonu */
.new-game-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 12px;
    margin-top: 8px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.new-game-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;
}

.new-game-btn:hover::before {
    left: 100%;
}

.new-game-btn:hover {
    background: linear-gradient(135deg, #ff5252, #d32f2f);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.5);
}

.new-game-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.game-upgrade {
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
    padding: 12px;
    margin: 8px 0;
    border-radius: 12px;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    min-height: 60px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

.game-upgrade::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    border-radius: 2px;
}

.game-upgrade::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.game-upgrade:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    border-color: rgba(255,255,255,0.5);
    background: linear-gradient(135deg, rgba(255,255,255,0.3), rgba(255,255,255,0.2));
}

.game-upgrade:hover::before {
    transform: scaleX(1);
}

.game-upgrade:hover::after {
    opacity: 1;
}

.game-upgrade button {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    font-size: 11px;
    min-width: 70px;
    min-height: 30px;
    position: relative;
    z-index: 10;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(102, 126, 234, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.game-upgrade button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.game-upgrade button:disabled {
    background: linear-gradient(135deg, #a0aec0, #718096);
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    opacity: 0.6;
}

.game-upgrade-info {
    flex-grow: 1;
    padding-right: 10px;
}

.game-upgrade-name {
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 2px;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 0.5px;
}

.game-upgrade-desc {
    font-size: 11px;
    color: rgba(255,255,255,0.8);
    line-height: 1.2;
    font-weight: 500;
}

.game-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    margin-top: 15px;
    font-size: 11px;
}

.game-stat-item {
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
    padding: 6px 10px;
    border-radius: 6px;
    text-align: left;
    box-shadow: 0 3px 12px rgba(0,0,0,0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(255,255,255,0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.game-stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.game-stat-item:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border-color: rgba(255,255,255,0.5);
}

.game-stat-item:hover::before {
    opacity: 1;
}

.game-stat-item span {
    color: rgba(255,255,255,0.9);
    font-weight: 600;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.game-stat-item {
    color: white;
    font-weight: 700;
    font-size: 11px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Modern Oyun butonu stili */
.game-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

/* Oyun açık olduğunda buton stili */
.game-button.game-active {
    background: linear-gradient(135deg, #48bb78, #38a169);
    box-shadow: 0 6px 20px rgba(72, 187, 120, 0.4);
    animation: gameActivePulse 2s ease-in-out infinite;
}

@keyframes gameActivePulse {
    0%, 100% { 
        box-shadow: 0 6px 20px rgba(72, 187, 120, 0.4);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 8px 25px rgba(72, 187, 120, 0.6);
        transform: scale(1.05);
    }
}

.game-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.game-button:hover {
    background: linear-gradient(135deg, #ff5252, #d32f2f);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.5);
}

.game-button:hover::before {
    opacity: 1;
}

.game-button i {
    font-size: 20px;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.game-button:hover i {
    transform: scale(1.1);
}

/* Dark theme uyumluluğu - Modern tasarım zaten dark theme uyumlu */
[data-theme="dark"] .game-inline {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .game-inline-header {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
}

[data-theme="dark"] .game-inline-body {
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
}

[data-theme="dark"] .game-upgrade {
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .game-stat-item {
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border-color: rgba(255, 255, 255, 0.2);
}

/* Kompakt Responsive tasarım */
@media (max-width: 768px) {
    .game-inline {
        margin: 10px 0;
        max-width: none;
        border-radius: 16px;
    }
    
    .game-inline-body {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .game-main, .game-sidebar {
        min-width: auto;
    }
    
    #gameClicker, .game-clicker {
        width: 80px;
        height: 80px;
        line-height: 80px;
        font-size: 14px;
    }
    
    .game-stats {
        grid-template-columns: 1fr;
        gap: 4px;
        margin-top: 10px;
    }
    
    .game-stat-item {
        min-width: auto;
    }
    
    .game-upgrade-buttons {
        flex-direction: column;
        gap: 6px;
    }
    
    .buy-upgrade-btn, .auto-upgrade-btn {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .game-inline-header {
        padding: 10px 15px;
    }
    
    .game-inline-header h3 {
        font-size: 16px;
    }
    
    .game-inline-body {
        padding: 12px;
    }
    
    #gameClicker, .game-clicker {
        width: 70px;
        height: 70px;
        line-height: 70px;
        font-size: 12px;
    }
    
    .game-upgrade {
        padding: 10px;
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .game-upgrade-info {
        padding-right: 0;
    }
    
    .game-upgrade button {
        padding: 8px 12px;
        font-size: 10px;
        min-width: 100%;
    }
    
    .game-upgrade-name {
        font-size: 12px;
    }
    
    .game-upgrade-desc {
        font-size: 10px;
    }
    
    #gameScore, .game-score {
        font-size: 28px;
    }
    
    .game-stats {
        gap: 4px;
        margin-top: 8px;
    }
    
    .game-stat-item {
        padding: 4px 8px;
        font-size: 10px;
    }
}
