/* ===== LUXE Studio - Yönetim Paneli ===== */
:root {
    --gold: #F5C518;
    --gold-dark: #c99e0a;
    --black: #0d0d0d;
    --panel: #161616;
    --panel-2: #1e1e1e;
    --border: #2a2a2a;
    --text: #e6e6e6;
    --muted: #8a8a8a;
    --green: #2ecc71;
    --red: #e74c3c;
    --radius: 12px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    background: var(--black);
    color: var(--text);
    font-size: 14px;
}
a { text-decoration: none; color: inherit; }

/* Login */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px;
    background: radial-gradient(circle at 30% 20%, rgba(245,197,24,0.08), transparent 40%), var(--black); }
.login-box { background: var(--panel); border: 1px solid var(--border); border-radius: 18px; padding: 44px; width: 100%; max-width: 400px; box-shadow: 0 30px 80px rgba(0,0,0,0.6); }
.login-box .brand { text-align: center; margin-bottom: 30px; }
.login-box .brand h1 { font-family: 'Playfair Display', serif; color: #fff; font-size: 2rem; }
.login-box .brand h1 span { color: var(--gold); }
.login-box .brand p { color: var(--muted); font-size: 0.85rem; letter-spacing: 2px; text-transform: uppercase; margin-top: 4px; }

/* Layout */
.admin-layout { display: flex; min-height: 100vh; }
.sidebar { width: 260px; background: var(--panel); border-right: 1px solid var(--border); position: fixed; top: 0; bottom: 0; left: 0; display: flex; flex-direction: column; transition: left 0.3s; z-index: 100; }
.sidebar .brand { padding: 26px 24px; border-bottom: 1px solid var(--border); }
.sidebar .brand h1 { font-family: 'Playfair Display', serif; color: #fff; font-size: 1.5rem; }
.sidebar .brand h1 span { color: var(--gold); }
.sidebar .brand p { color: var(--muted); font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; }
.sidebar nav { flex: 1; overflow-y: auto; padding: 16px 0; }
.sidebar nav a { display: flex; align-items: center; gap: 14px; padding: 13px 24px; color: var(--muted); font-size: 0.92rem; transition: all 0.25s; border-left: 3px solid transparent; }
.sidebar nav a i { width: 20px; text-align: center; font-size: 1rem; }
.sidebar nav a:hover { color: var(--text); background: var(--panel-2); }
.sidebar nav a.active { color: var(--gold); background: var(--panel-2); border-left-color: var(--gold); }
.sidebar .side-foot { padding: 18px 24px; border-top: 1px solid var(--border); }
.sidebar .side-foot a { color: var(--red); font-size: 0.9rem; display: flex; align-items: center; gap: 10px; }

.main { flex: 1; margin-left: 260px; display: flex; flex-direction: column; }
.topbar { background: var(--panel); border-bottom: 1px solid var(--border); padding: 16px 30px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 50; }
.topbar h2 { font-size: 1.2rem; color: #fff; font-weight: 600; }
.topbar .right { display: flex; align-items: center; gap: 18px; }
.topbar .right a.view-site { color: var(--gold); font-size: 0.88rem; }
.topbar .user { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.88rem; }
.topbar .user .av { width: 36px; height: 36px; border-radius: 50%; background: var(--gold); color: #000; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.mobile-toggle { display: none; background: none; border: none; color: var(--gold); font-size: 1.4rem; cursor: pointer; }

.content { padding: 30px; flex: 1; }

/* Cards / Stats */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 30px; }
.stat-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; display: flex; align-items: center; gap: 18px; }
.stat-card .ic { width: 54px; height: 54px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; background: rgba(245,197,24,0.12); color: var(--gold); }
.stat-card .info .n { font-size: 1.8rem; font-weight: 700; color: #fff; line-height: 1; }
.stat-card .info .l { color: var(--muted); font-size: 0.85rem; margin-top: 4px; }

.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 24px; overflow: hidden; }
.card-head { padding: 18px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.card-head h3 { font-size: 1.05rem; color: #fff; font-weight: 600; }
.card-body { padding: 24px; }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 7px; font-size: 0.85rem; color: var(--text); font-weight: 500; }
.field .hint { color: var(--muted); font-size: 0.78rem; margin-top: 5px; }
.input, .textarea, .select {
    width: 100%; padding: 11px 14px; background: var(--black); border: 1px solid var(--border);
    border-radius: 9px; color: var(--text); font-family: inherit; font-size: 0.9rem; transition: border 0.25s;
}
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--gold); }
.textarea { resize: vertical; min-height: 90px; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; border-radius: 9px; font-weight: 600; font-size: 0.88rem; cursor: pointer; border: none; transition: all 0.25s; font-family: inherit; }
.btn-gold { background: var(--gold); color: #000; }
.btn-gold:hover { background: var(--gold-dark); }
.btn-dark { background: var(--panel-2); color: var(--text); border: 1px solid var(--border); }
.btn-dark:hover { border-color: var(--gold); color: var(--gold); }
.btn-red { background: rgba(231,76,60,0.15); color: var(--red); border: 1px solid rgba(231,76,60,0.3); }
.btn-red:hover { background: var(--red); color: #fff; }
.btn-sm { padding: 7px 14px; font-size: 0.8rem; }

/* Tables */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; padding: 14px 16px; color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid var(--border); }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 0.9rem; vertical-align: middle; }
.table tr:hover td { background: var(--panel-2); }
.table img.thumb { width: 54px; height: 54px; border-radius: 8px; object-fit: cover; }
.badge { display: inline-block; padding: 4px 11px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.badge-on { background: rgba(46,204,113,0.15); color: var(--green); }
.badge-off { background: rgba(138,138,138,0.15); color: var(--muted); }
.actions { display: flex; gap: 8px; }
.actions a { width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; transition: all 0.2s; }
.actions .edit { background: rgba(245,197,24,0.12); color: var(--gold); }
.actions .edit:hover { background: var(--gold); color: #000; }
.actions .del { background: rgba(231,76,60,0.12); color: var(--red); }
.actions .del:hover { background: var(--red); color: #fff; }

/* Alerts */
.alert { padding: 13px 18px; border-radius: 9px; margin-bottom: 20px; font-size: 0.9rem; }
.alert-success { background: rgba(46,204,113,0.12); color: var(--green); border: 1px solid rgba(46,204,113,0.3); }
.alert-error { background: rgba(231,76,60,0.12); color: var(--red); border: 1px solid rgba(231,76,60,0.3); }

/* Section tabs (settings) */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tab-btn { background: var(--panel); border: 1px solid var(--border); color: var(--muted); padding: 9px 18px; border-radius: 8px; cursor: pointer; font-size: 0.85rem; font-family: inherit; }
.tab-btn.active { background: var(--gold); color: #000; border-color: var(--gold); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* Image preview / picker */
.img-preview { width: 100%; max-width: 260px; border-radius: 10px; margin-top: 10px; border: 1px solid var(--border); }
.media-row { display: flex; gap: 10px; align-items: center; }
.media-row .input { flex: 1; }

/* Pexels grid */
.pexels-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pexels-item { position: relative; border-radius: 10px; overflow: hidden; cursor: pointer; aspect-ratio: 1; border: 2px solid transparent; }
.pexels-item img { width: 100%; height: 100%; object-fit: cover; }
.pexels-item .pick { position: absolute; inset: 0; background: rgba(13,13,13,0.6); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.25s; }
.pexels-item:hover .pick { opacity: 1; }
.pexels-item .pick .btn { transform: scale(0.9); }

.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty i { font-size: 2.5rem; color: var(--border); margin-bottom: 14px; }

@media (max-width: 900px) {
    .sidebar { left: -260px; }
    .sidebar.open { left: 0; }
    .main { margin-left: 0; }
    .mobile-toggle { display: block; }
    .stat-grid, .form-grid { grid-template-columns: 1fr; }
    .pexels-grid { grid-template-columns: repeat(2, 1fr); }
}
