/* src/styles/admin.css - CLEAN & FUNCTIONAL & CURSOR FIX */

/* Fareyi Geri Getir */
body.admin-body, body.admin-body * {
    cursor: auto !important;
}

:root {
    --adm-bg: #121212;
    --adm-panel: #1e1e1e;
    --adm-border: #333;
    --adm-text: #e0e0e0;
    --adm-accent: #d4a017;
    --adm-input-bg: #252525;
}

body.admin-body {
    background-color: var(--adm-bg);
    color: var(--adm-text);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    padding-top: 80px; margin: 0;
    /* Texture */
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h40v40H0V0zm20 20h20v20H20V20zM0 20h20v20H0V20z' fill='%231a1a1a' fill-opacity='0.4'/%3E%3C/svg%3E");
}

.admin-header {
    position: fixed; top: 0; left: 0; width: 100%; height: 70px;
    background: #181818; border-bottom: 1px solid var(--adm-accent);
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 30px; z-index: 1000; box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.logo { font-size: 1.4rem; font-weight: 700; color: var(--adm-accent); letter-spacing: 1px; }

.admin-nav { display: flex; gap: 15px; }
.nav-btn {
    background: transparent; border: 1px solid #444; color: #aaa;
    padding: 8px 16px; border-radius: 4px; cursor: pointer; transition: 0.2s;
    font-size: 0.9rem;
}
.nav-btn:hover { border-color: #fff; color: #fff; }
.nav-btn.active { background: var(--adm-accent); color: #000; border-color: var(--adm-accent); font-weight: bold; }
.nav-btn.special { border-color: #27ae60; color: #27ae60; }
.nav-btn.special:hover { background: #27ae60; color: #fff; }

.admin-main { max-width: 900px; margin: 0 auto; padding: 20px; }

.admin-tab { display: none; animation: fadeIn 0.3s; }
.admin-tab.active { display: block; }
@keyframes fadeIn { from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }

.panel-card {
    background: var(--adm-panel); border: 1px solid var(--adm-border);
    padding: 30px; border-radius: 8px; margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

h2 { border-bottom: 2px solid var(--adm-border); padding-bottom: 15px; margin-bottom: 25px; color: var(--adm-accent); margin-top: 0; }

.row { margin-bottom: 20px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.three-col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }

label { display: block; margin-bottom: 8px; color: #ccc; font-size: 0.9rem; font-weight: 500; }
input[type="text"], input[type="number"], textarea, select, input[type="file"] {
    width: 100%; padding: 12px; background: var(--adm-input-bg);
    border: 1px solid #444; border-radius: 4px; color: #fff;
    font-size: 1rem; transition: 0.2s;
}
input:focus, textarea:focus, select:focus { border-color: var(--adm-accent); outline: none; box-shadow: 0 0 0 2px rgba(212, 160, 23, 0.2); }
textarea { resize: vertical; min-height: 100px; }

.feature-box {
    background: rgba(255,255,255,0.03); 
    border: 1px solid #444; 
    padding: 20px; border-radius: 6px; 
    margin-top: 20px;
}

.checkboxes label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 1rem; color: #fff; }
.checkboxes input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--adm-accent); }

#admin-map-wrapper {
    position: relative; border: 2px solid #555; border-radius: 6px; overflow: hidden; cursor: crosshair;
}
#admin-map-img { width: 100%; display: block; opacity: 0.8; transition: 0.2s; }
#admin-map-wrapper:hover #admin-map-img { opacity: 1; }
#admin-map-pin {
    position: absolute; width: 14px; height: 14px; background: #e74c3c;
    border: 2px solid #fff; border-radius: 50%; pointer-events: none;
    transform: translate(-50%, -50%); display: none;
}

.actions { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--adm-border); }
.btn-save {
    width: 100%; padding: 15px; background: var(--adm-accent); color: #000;
    border: none; border-radius: 6px; font-weight: bold; font-size: 1.1rem;
    cursor: pointer; transition: 0.2s;
}
.btn-save:hover { filter: brightness(1.1); transform: translateY(-2px); }

.data-item {
    background: #2a2a2a; padding: 15px; border-radius: 6px;
    margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center;
    border-left: 4px solid var(--adm-accent);
}
.data-info { display: flex; align-items: center; gap: 15px; }
.data-info img { width: 50px; height: 50px; object-fit: cover; border-radius: 4px; background: #000; }
.btn-del {
    background: #c0392b; color: #fff; border: none; padding: 8px 15px;
    border-radius: 4px; cursor: pointer; transition: 0.2s;
}
.btn-del:hover { background: #a93226; }

.hidden { display: none !important; }
small { color: #777; }

@media (max-width: 768px) {
    .two-col, .three-col { grid-template-columns: 1fr; }
    .admin-header { padding: 0 15px; }
    .logo { font-size: 1.2rem; }
    .nav-btn { padding: 6px 10px; font-size: 0.8rem; }
}

.btn-edit {
    background: #3498db; color: #fff; border: none; padding: 6px 12px;
    border-radius: 4px; cursor: pointer; margin-right: 5px; font-size: 0.9rem;
}
.btn-edit:hover { background: #2980b9; }

/* --- KARAKTER SEÇİCİ (Grid Fix) --- */
.char-selector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    padding: 10px;
    background: #1a1a1a;
    border: 1px solid var(--adm-border);
    border-radius: 6px;
    max-height: 300px;
    overflow-y: auto;
}

.char-check-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #252525;
    padding: 10px;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
    text-align: center;
}

.char-check-item:hover {
    background: #333;
}

.char-check-item.selected {
    border-color: var(--adm-accent);
    background: rgba(212, 160, 23, 0.1);
}

.char-check-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 8px;
    border: 2px solid #555;
}

.char-check-item.selected img {
    border-color: var(--adm-accent);
}

.char-check-item input {
    display: none;
}

.char-check-item span {
    font-size: 0.8rem;
    color: #ccc;
    line-height: 1.2;
}

/* Warning Button (JSON Yükle) */
.nav-btn.warning {
    border-color: #e67e22; color: #e67e22;
}
.nav-btn.warning:hover {
    background: #e67e22; color: #fff;
}