/* ========================================
   RESET & BASE
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f8f9fa;
  color: #1a1a1a;
  line-height: 1.7;
  transition: background 0.3s, color 0.3s;
}

body.dark {
  background: #121212;
  color: #e0e0e0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5 { font-weight: 700; margin-bottom: 0.5rem; }
h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.4rem; }

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

p { margin-bottom: 1rem; }

img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* ========================================
   BUTTONS & FORMS
   ======================================== */
button, input, textarea, select {
  font-family: inherit;
  border-radius: 8px;
}

input, textarea, select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  background: #fff;
  color: #1a1a1a;
  margin-bottom: 1rem;
  transition: border 0.2s;
}

body.dark input,
body.dark textarea,
body.dark select {
  background: #1e1e1e;
  border-color: #333;
  color: #e0e0e0;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #007bff;
}

button, .btn {
  background: #007bff;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}

button:hover, .btn:hover {
  background: #0056b3;
}

.btn-small {
  padding: 0.4rem 0.8rem;
  font-size: 0.875rem;
}

.red { background: #dc3545; }
.red:hover { background: #c82333; }

/* ========================================
   HEADER
   ======================================== */
.header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

body.dark .header {
  background: #1e1e1e;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  flex-wrap: wrap;
}

.logo h1 {
  font-size: 1.8rem;
  font-weight: 800;
}

.logo span {
  color: #007bff;
}

.nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav a {
  font-weight: 600;
  padding: 0.5rem 0;
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #007bff;
  transition: width 0.3s;
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.search-box {
  position: relative;
  max-width: 200px;
}

.search-box input {
  padding-right: 2.5rem;
  width: 100%;
}

.search-box i {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
}

.icon-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #666;
}

.menu-toggle {
  display: none;
  background: none;
  font-size: 1.5rem;
}

/* ========================================
   HERO SECTION
   ======================================== */


.category {
  background: #dc3545;,
  background: #4335dc;,
  background: #35dcd4;,
  background: #11ed1c;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.side-item {
  display: flex;
  gap: 1rem;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

body.dark .side-item {
  background: #1e1e1e;
}

.side-item img {
  width: 120px;
  height: 80px;
  object-fit: cover;
}

.side-item h3 {
  font-size: 1rem;
  margin: 0;
  padding: 0.5rem;
}

/* ========================================
   NEWS GRID
   ======================================== */
.news-grid {
  padding: 3rem 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.news-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

body.dark .news-card {
  background: #1e1e1e;
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.news-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-card .content {
  padding: 1rem;
}

.news-card h3 {
  margin: 0.5rem 0;
  font-size: 1.2rem;
  line-height: 1.4;
}

.news-card p {
  font-size: 0.95rem;
  color: #555;
}

body.dark .news-card p {
  color: #aaa;
}

.meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: #777;
  margin-top: 0.75rem;
}

body.dark .meta {
  color: #999;
}

.meta i {
  margin-right: 0.25rem;
}

/* ========================================
   HABER DETAY
   ======================================== */
.haber-detay {
  padding: 2rem 0;
  max-width: 800px;
  margin: 0 auto;
}

.haber-detay header {
  margin-bottom: 2rem;
}

.haber-detay .category {
  font-size: 0.9rem;
}

.haber-detay h1 {
  font-size: 2.2rem;
  margin: 1rem 0;
  line-height: 1.3;
}

.haber-resim {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  margin: 1.5rem 0;
  border-radius: 12px;
}

.icerik {
  font-size: 1.1rem;
  line-height: 1.8;
}

.icerik p {
  margin-bottom: 1.5rem;
}

.share {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}

body.dark .share {
  border-color: #333;
}

.share a {
  margin-left: 0.5rem;
  font-size: 1.3rem;
  color: #007bff;
}

/* ========================================
   ADS
   ======================================== */
.ad-leaderboard,
.ad-inline,
.ad-inline-full {
  margin: 2rem 0;
  text-align: center;
  padding: 1rem;
  background: ;
  border-radius: 8px;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #666;
}

body.dark .ad-leaderboard,
body.dark .ad-inline,
body.dark .ad-inline-full {
  background: #1e1e1e;
  color: #aaa;
}

.ad-inline-full {
  grid-column: 1 / -1;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: #1a1a1a;
  color: white;
  padding: 2rem 0;
  margin-top: 4rem;
}

body.dark .footer {
  background: #0d0d0d;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.social a {
  color: white;
  font-size: 1.3rem;
  margin-left: 1rem;
  transition: color 0.2s;
}

.social a:hover {
  color: #007bff;
}

/* ========================================
   ADMIN PANEL
   ======================================== */
.admin {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 250px;
  background: #1a1a1a;
  color: white;
  padding: 1.5rem 0;
}

body.dark .admin-sidebar {
  background: #0d0d0d;
}

.admin-sidebar h3 {
  padding: 0 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.admin-sidebar a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: #ccc;
  transition: background 0.2s;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
  background: #007bff;
  color: white;
}

.admin-content {
  flex: 1;
  padding: 2rem;
  background: #f8f9fa;
}

body.dark .admin-content {
  background: #121212;
}

.haber-form {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.1);
  max-width: 800px;
}

body.dark .haber-form {
  background: #1e1e1e;
}

.haber-form label {
  display: block;
  margin: 1rem 0 0.5rem;
  font-weight: 600;
}

.haber-list {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.haber-list th,
.haber-list td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}

body.dark .haber-list th,
body.dark .haber-list td {
  border-color: #333;
}

.haber-list th {
  background: #f8f9fa;
  font-weight: 600;
}

body.dark .haber-list th {
  background: #1e1e1e;
}

/* ========================================
   LOGIN PAGE
   ======================================== */
.admin-login {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-box {
  background: white;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.login-box h2 {
  margin-bottom: 1.5rem;
  color: #333;
}

.login-box input {
  margin-bottom: 1rem;
}

.login-box button {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
}

.error {
  background: #f8d7da;
  color: #721c24;
  padding: 0.75rem;
  border-radius: 8px;
  margin: 1rem 0;
}

.success {
  background: #d4edda;
  color: #155724;
  padding: 0.75rem;
  border-radius: 8px;
  margin: 1rem 0;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-main img {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .header .container {
    flex-direction: column;
    gap: 1rem;
  }
  .nav ul {
    flex-direction: column;
    width: 100%;
    display: none;
  }
  .nav ul.show {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .haber-detay h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .side-item {
    flex-direction: column;
  }
  .side-item img {
    width: 100%;
    height: 150px;
  }
  .footer .container {
    flex-direction: column;
    text-align: center;
  }
}

.logo img {
  height: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.logo img:hover {
  transform: scale(1.05);
}