/* Genel stil */
body {
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(160deg, #1a1a2e, #222244);
    color: #fff;
    margin: 0;
    padding: 15px;
    overflow-x: hidden;
}

h1, h2 {
    text-align: center;
}

/* Paneller */
.panel {
    background: rgba(30,30,50,0.9);
    border-radius: 14px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.5);
}

.main-panel {
    background: linear-gradient(135deg, #1a1a2e, #2a2a50);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.6);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s;
}

/* Butonlar */
.btn {
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: #5a5aff;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s, transform 0.1s;
    width: 100%;
}

.btn:hover:not(:disabled) {
    background: #7f7fff;
    transform: translateY(-2px);
}

.btn:disabled {
    background: #444;
    cursor: not-allowed;
}

/* Stat göstergeleri */
.stat {
    font-size: 1.05em;
    margin: 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: transform 0.2s;
}

.stat-icon {
    font-size: 1.2em;
}

.count {
    display: inline-block;
    transition: transform 0.2s;
}

.count.increase {
    transform: scale(1.3);
    color: #ffd700;
}

/* Shop item */
.shop-item {
    background: rgba(40,40,70,0.85);
    border-radius: 10px;
    padding: 12px 15px;
    margin: 8px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    gap: 12px;
    transition: transform 0.2s;
}

.shop-item:hover {
    transform: translateY(-2px);
}

/* Left & right bölümler */
.item-left, .item-right {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.item-left { flex: 1; }
.item-right { flex: 1; text-align: right; }

/* Responsive */
@media (max-width: 600px) {
    .shop-item { flex-direction: column; align-items: flex-start; }
    .item-right { text-align: left; }
    .buy-btn, .sell-btn { width: 100%; }
}

@media (max-width: 400px) {
    .shop-item { padding: 10px; gap: 8px; }
    .item-left, .item-right { width: 100%; }
}

/* Mana ve +1 partiküller */
.particle {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #00ffcc;
    border-radius: 50%;
    pointer-events: none;
    animation: rise 0.6s ease-out forwards;
}

@keyframes rise {
    0% { transform: translateY(0) scale(1); opacity: 1; }
    100% { transform: translateY(-30px) scale(0.5); opacity: 0; }
}

.plus-one {
    position: absolute;
    color: #0f0;
    font-weight: bold;
    font-size: 1em;
    opacity: 1;
    animation: plus1 0.8s ease-out forwards;
    pointer-events: none;
}

@keyframes plus1 {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(-20px); opacity: 0; }
}

/* Toast */
.toast {
    position: fixed;
    top: 15px;
    right: 15px;
    background: #222;
    color: #fff;
    padding: 12px 18px;
    border-radius: 8px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s, transform 0.2s;
    z-index: 999;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Hover kart */
.hover-card {
    position: fixed;
    background: rgba(60,60,100,0.95);
    padding: 10px 15px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    z-index: 10000;
    font-size: 0.9em;
    color: #fff;
    line-height: 1.3em;
}

/* Buy / Sell buttons */
.buy-btn { background: #5a5aff; }
.buy-btn:hover:not(:disabled) { background: #7f7fff; }

.sell-btn { background: #ff5555; margin-top: 4px; }
.sell-btn:hover:not(:disabled) { background: #ff7777; }
.sell-btn:disabled { background: #444; cursor: not-allowed; }
