/* 2D Balık Oyunu - Tasarım ve Cam Efektleri */
:root {
    --primary: #10b981;
    --primary-dark: #059669;
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --bg-dark: #0f172a;
    --glass-bg: rgba(15, 23, 42, 0.78);
    --glass-border: rgba(255, 255, 255, 0.14);
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    user-select: none;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

#game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

#gameCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.top-hud {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
}

.hud-group {
    display: flex;
    gap: 10px;
    pointer-events: auto;
}

.hud-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    font-size: 13px;
    font-weight: 600;
}

.btn-hud {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    color: var(--text-light);
    padding: 8px 14px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    pointer-events: auto;
}

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

.btn-hud.primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
}

.btn-hud.accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border: none;
}

.bottom-controls {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.cast-btn {
    padding: 16px 42px;
    font-size: 18px;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #0284c7, #0369a1);
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 40px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(2, 132, 199, 0.4);
    transition: all 0.25s ease;
}

.cast-btn:hover:not(:disabled) {
    transform: scale(1.06);
}

.cast-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #475569;
}

.cast-btn.fishing-active {
    background: linear-gradient(135deg, #e11d48, #be123c);
}

.bait-selector {
    display: flex;
    gap: 8px;
    background: var(--glass-bg);
    padding: 6px 12px;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.bait-opt {
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.05);
    border: 1px solid transparent;
}

.bait-opt.active {
    background: rgba(16, 185, 129, 0.25);
    border-color: var(--primary);
    font-weight: 700;
}

.log-panel {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 320px;
    max-height: 240px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    padding: 12px;
    z-index: 10;
    display: flex;
    flex-direction: column;
}

.log-header {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}

.log-list {
    overflow-y: auto;
    display: flex;
    flex-direction: column-reverse;
    gap: 6px;
    max-height: 180px;
}

.log-item {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
}

.log-item.catch { border-left: 3px solid #38bdf8; }
.log-item.upgrade { border-left: 3px solid #f59e0b; }
.log-item.sell { border-left: 3px solid #10b981; }
.log-item.system { border-left: 3px solid #a855f7; }

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active { display: flex; }

.modal-card {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    width: 90%;
    max-width: 520px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.shop-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.shop-btn {
    padding: 8px 16px;
    background: var(--accent);
    color: #0f172a;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
}

.inv-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-form input {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 12px;
    border-radius: 8px;
    color: white;
}
