/* HernoT E-Spor - Ana Stil Dosyası */
* { margin:0; padding:0; box-sizing:border-box; font-family:'Segoe UI', Arial, sans-serif; }

:root{
  --bg: #0f1117;
  --bg-card: #1a1d27;
  --bg-card2: #20242f;
  --accent: #00e0a8;
  --accent2: #6c5ce7;
  --text: #e8e9ed;
  --text-muted: #9aa0ac;
  --border: #2a2e3a;
  --gold:#ffd700;
  --silver:#c0c0c0;
  --bronze:#cd7f32;
}

body{
  background: var(--bg);
  color: var(--text);
  line-height:1.6;
}

a{ color: var(--accent); text-decoration:none; }
a:hover{ text-decoration:underline; }

/* ---------- HEADER / NAV ---------- */
header.site-header{
  background: linear-gradient(135deg, #15182250, #1a1d27);
  border-bottom: 1px solid var(--border);
  position: sticky; top:0; z-index:100;
}
.navbar{
  max-width:1200px; margin:0 auto; padding:14px 20px;
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px;
}
.logo{
  font-size:24px; font-weight:800; letter-spacing:1px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.logo span{ color: var(--text); -webkit-text-fill-color: var(--text); }
.nav-links{ display:flex; gap:22px; align-items:center; flex-wrap:wrap; }
.nav-links a{ color: var(--text); font-weight:500; font-size:15px; }
.nav-links a:hover{ color: var(--accent); text-decoration:none; }
.btn{
  display:inline-block; padding:9px 20px; border-radius:8px; font-weight:600; font-size:14px;
  background: var(--accent); color:#0a0c10; border:none; cursor:pointer; transition:.2s;
}
.btn:hover{ opacity:.85; text-decoration:none; }
.btn-outline{ background:transparent; border:1px solid var(--accent); color: var(--accent); }
.btn-secondary{ background: var(--accent2); color:#fff; }
.btn-danger{ background:#e74c3c; color:#fff; }
.btn-small{ padding:6px 12px; font-size:13px; }

/* ---------- LAYOUT ---------- */
.container{ max-width:1200px; margin:0 auto; padding:30px 20px; }
.page-title{ font-size:28px; margin-bottom:20px; font-weight:700; border-left:4px solid var(--accent); padding-left:14px; }
.section-title{ font-size:22px; margin:30px 0 16px; font-weight:700; color: var(--accent); }

/* ---------- HERO ---------- */
.hero{
  background: linear-gradient(135deg, rgba(0,224,168,.12), rgba(108,92,231,.12));
  border:1px solid var(--border); border-radius:16px; padding:50px 30px; text-align:center; margin-bottom:30px;
}
.hero h1{ font-size:38px; margin-bottom:10px; }
.hero p{ color: var(--text-muted); font-size:16px; max-width:700px; margin:0 auto 20px; }

/* ---------- CARDS ---------- */
.grid{ display:grid; gap:20px; }
.grid-3{ grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); }
.grid-2{ grid-template-columns: repeat(auto-fill, minmax(340px,1fr)); }

.card{
  background: var(--bg-card); border:1px solid var(--border); border-radius:12px; overflow:hidden;
  transition:.2s; display:flex; flex-direction:column;
}
.card:hover{ transform: translateY(-4px); border-color: var(--accent); }
.card-img{ width:100%; height:160px; object-fit:cover; background: var(--bg-card2); }
.card-body{ padding:16px; flex:1; display:flex; flex-direction:column; }
.card-body h3{ margin-bottom:8px; font-size:18px; }
.card-body p{ color: var(--text-muted); font-size:14px; flex:1; }
.card-meta{ font-size:13px; color: var(--text-muted); margin-top:10px; display:flex; justify-content:space-between; align-items:center; }

/* ---------- BADGE / STATUS ---------- */
.badge{ display:inline-block; padding:3px 10px; border-radius:20px; font-size:12px; font-weight:600; }
.badge-bekliyor{ background:#3a3f4b; color:#cfd3da; }
.badge-devam{ background:#6c5ce7; color:#fff; }
.badge-bitti{ background:#2ecc71; color:#06210f; }

/* ---------- ONAY TIK ---------- */
.onay-tik{
  display:inline-flex; align-items:center; justify-content:center;
  width:18px; height:18px; background:#1e9bff; border-radius:50%; color:#fff; font-size:11px; margin-left:5px;
}

/* ---------- FORMS ---------- */
.form-box{
  max-width:440px; margin:40px auto; background: var(--bg-card); border:1px solid var(--border);
  border-radius:14px; padding:34px;
}
.form-box h2{ text-align:center; margin-bottom:24px; }
.form-group{ margin-bottom:16px; }
.form-group label{ display:block; margin-bottom:6px; font-size:14px; color: var(--text-muted); }
.form-group input, .form-group textarea, .form-group select{
  width:100%; padding:11px 14px; border-radius:8px; border:1px solid var(--border);
  background: var(--bg-card2); color: var(--text); font-size:14px; outline:none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus{ border-color: var(--accent); }
.form-box .btn{ width:100%; padding:12px; font-size:15px; margin-top:6px; }
.form-footer{ text-align:center; margin-top:16px; font-size:14px; color: var(--text-muted); }

.alert{ padding:12px 16px; border-radius:8px; margin-bottom:16px; font-size:14px; }
.alert-error{ background:#3a1d1d; color:#ff8585; border:1px solid #5e2b2b; }
.alert-success{ background:#1d3a26; color:#7ee6a8; border:1px solid #2b5e3e; }

/* ---------- PROFILE ---------- */
.profile-header{
  display:flex; gap:24px; align-items:center; background: var(--bg-card); border:1px solid var(--border);
  border-radius:14px; padding:26px; margin-bottom:24px; flex-wrap:wrap;
}
.profile-avatar{
  width:110px; height:110px; border-radius:50%; object-fit:cover; border:3px solid var(--accent);
}
.profile-info h1{ font-size:26px; display:flex; align-items:center; gap:6px; }
.profile-info p{ color: var(--text-muted); margin-top:6px; }
.stats-row{ display:flex; gap:16px; margin-top:14px; flex-wrap:wrap; }
.stat-box{
  background: var(--bg-card2); border:1px solid var(--border); border-radius:10px; padding:12px 18px; text-align:center; min-width:90px;
}
.stat-box .num{ font-size:22px; font-weight:800; }
.stat-box .label{ font-size:12px; color: var(--text-muted); margin-top:4px; }
.stat-box.gold .num{ color: var(--gold); }
.stat-box.silver .num{ color: var(--silver); }
.stat-box.bronze .num{ color: var(--bronze); }

/* ---------- TABLE ---------- */
table{ width:100%; border-collapse:collapse; background: var(--bg-card); border-radius:10px; overflow:hidden; }
table th, table td{ padding:12px 14px; text-align:left; border-bottom:1px solid var(--border); font-size:14px; }
table th{ background: var(--bg-card2); color: var(--accent); font-weight:700; }
table tr:last-child td{ border-bottom:none; }
.rank-1{ color: var(--gold); font-weight:800; }
.rank-2{ color: var(--silver); font-weight:800; }
.rank-3{ color: var(--bronze); font-weight:800; }

/* ---------- SCROLLING PLAYERS ---------- */
.scroll-wrap{ overflow:hidden; position:relative; padding:10px 0; }
.scroll-track{
  display:flex; gap:18px; animation: scrollLeft 40s linear infinite;
  width: max-content;
}
.scroll-wrap:hover .scroll-track{ animation-play-state: paused; }
@keyframes scrollLeft{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}
.player-chip{
  background: var(--bg-card); border:1px solid var(--border); border-radius:12px; padding:14px;
  width:160px; text-align:center; flex-shrink:0;
}
.player-chip img{ width:64px; height:64px; border-radius:50%; object-fit:cover; margin-bottom:8px; border:2px solid var(--accent); }
.player-chip h4{ font-size:14px; display:flex; align-items:center; justify-content:center; gap:4px; }

/* ---------- SEARCH ---------- */
.search-box{ display:flex; gap:10px; margin-bottom:24px; }
.search-box input{ flex:1; padding:12px 16px; border-radius:8px; border:1px solid var(--border); background: var(--bg-card); color: var(--text); font-size:15px; }

/* ---------- FOOTER ---------- */
footer{ text-align:center; padding:30px 20px; color: var(--text-muted); border-top:1px solid var(--border); margin-top:40px; font-size:14px; }

/* ---------- ARTICLE ---------- */
.article-detail{ background: var(--bg-card); border:1px solid var(--border); border-radius:14px; padding:30px; }
.article-detail img{ width:100%; max-height:380px; object-fit:cover; border-radius:10px; margin-bottom:20px; }
.article-detail .meta{ color: var(--text-muted); font-size:13px; margin-bottom:14px; }

/* ---------- ADMIN ---------- */
.admin-wrap{ display:flex; min-height:100vh; }
.admin-sidebar{
  width:240px; background: var(--bg-card); border-right:1px solid var(--border); padding:20px;
}
.admin-sidebar h2{ color: var(--accent); font-size:20px; margin-bottom:24px; }
.admin-sidebar a{
  display:block; padding:11px 14px; border-radius:8px; color: var(--text); margin-bottom:6px; font-size:14px;
}
.admin-sidebar a:hover, .admin-sidebar a.active{ background: var(--bg-card2); color: var(--accent); text-decoration:none; }
.admin-content{ flex:1; padding:30px; max-width:1100px; }
.admin-box{ background: var(--bg-card); border:1px solid var(--border); border-radius:12px; padding:24px; margin-bottom:24px; }

@media(max-width:768px){
  .admin-wrap{ flex-direction:column; }
  .admin-sidebar{ width:100%; }
  .profile-header{ flex-direction:column; text-align:center; }
}
