/* Temel Değişkenler (Default: Dark) */
:root {
    --bg: #0f172a;
    --card: #1e293b;
    --text: #f1f5f9;
    --muted: #94a3b8;
    --primary: #6366f1;
    --border: #334155;
    --accent: #ec4899;
}

/* Light Tema */
[data-theme="light"] {
    --bg: #f8fafc;
    --card: #ffffff;
    --text: #1e293b;
    --muted: #64748b;
    --primary: #4f46e5;
    --border: #e2e8f0;
}

/* Blue Tema */
[data-theme="blue"] {
    --bg: #0c4a6e;
    --card: #075985;
    --text: #f0f9ff;
    --muted: #7dd3fc;
    --primary: #38bdf8;
    --border: #0369a1;
}

/* Purple Tema */
[data-theme="purple"] {
    --bg: #4c1d95;
    --card: #5b21b6;
    --text: #f5f3ff;
    --muted: #c4b5fd;
    --primary: #a78bfa;
    --border: #6d28d9;
}

/* Green Tema */
[data-theme="green"] {
    --bg: #064e3b;
    --card: #065f46;
    --text: #ecfdf5;
    --muted: #6ee7b7;
    --primary: #10b981;
    --border: #047857;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; transition: background 0.3s, color 0.3s; }
.container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }

header { background: var(--card); padding: 20px 0; border-bottom: 1px solid var(--border); margin-bottom: 30px; }
header .container { display: flex; justify-content: space-between; align-items: center; }
header h1 { font-size: 24px; color: var(--primary); }

.controls { display: flex; justify-content: center; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.btn-small { padding: 5px 10px; border-radius: 5px; border: 1px solid var(--border); background: var(--card); color: var(--text); cursor: pointer; font-size: 12px; text-decoration: none; }
.btn-small.active { border-color: var(--primary); color: var(--primary); }

.search-box { margin-bottom: 30px; display: flex; gap: 10px; }
.search-box input { flex: 1; padding: 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--card); color: var(--text); }
.btn { padding: 10px 20px; border-radius: 8px; border: none; cursor: pointer; font-weight: 600; transition: 0.3s; text-decoration: none; display: inline-block; }
.btn-primary { background: var(--primary); color: white; }
.btn-vote { background: #22c55e; color: white; }
.btn-malicious { background: #ef4444; color: white; }

.sites-list { display: flex; flex-direction: column; gap: 15px; }
.site-card { background: var(--card); padding: 20px; border-radius: 12px; border: 1px solid var(--border); display: flex; align-items: center; gap: 20px; }
.site-rank { font-size: 20px; font-weight: 800; color: var(--muted); min-width: 50px; }
.site-info { flex: 1; }
.site-info h3 a { color: var(--text); text-decoration: none; }
.site-info span { color: var(--muted); font-size: 14px; }
.site-actions { display: flex; gap: 10px; }

.pagination { margin: 40px 0; display: flex; justify-content: center; gap: 10px; align-items: center; }
.btn-current { background: var(--border); color: var(--text); cursor: default; }

.add-site-section { background: var(--card); padding: 30px; border-radius: 12px; border: 1px solid var(--border); margin-top: 50px; }
.add-site-form { display: flex; gap: 10px; margin-top: 15px; }
.add-site-form input { flex: 1; padding: 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); color: var(--text); }

.alert { padding: 15px; border-radius: 8px; margin-bottom: 20px; text-align: center; }
.alert-success { background: rgba(34, 197, 94, 0.2); color: #4ade80; border: 1px solid #22c55e; }

footer { padding: 40px 0; text-align: center; border-top: 1px solid var(--border); margin-top: 50px; color: var(--muted); }
footer a { color: var(--primary); text-decoration: none; }

#back-to-top { position: fixed; bottom: 30px; right: 30px; background: var(--primary); color: white; width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.3); border: none; font-size: 20px; display: none; z-index: 1000; }

@media (max-width: 768px) {
    .site-card { flex-direction: column; align-items: flex-start; }
    .site-actions { width: 100%; justify-content: space-between; }
    .add-site-form { flex-direction: column; }
}
