:root {
  --primary: #1e3a8a;
  --primary-light: #3b82f6;
  --secondary: #facc15;
  --dark: #0f172a;
  --light: #f8fafc;
  --text: #334155;
  --font-main: 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: hidden; width: 100%; }
body { 
  font-family: var(--font-main); 
  color: var(--text); 
  background-color: var(--light); 
  background-image: 
    repeating-linear-gradient(23deg, rgba(0,0,0,0.05) 0px, rgba(0,0,0,0.05) 1px, transparent 1px, transparent 137px),
    repeating-linear-gradient(-47deg, rgba(0,0,0,0.05) 0px, rgba(0,0,0,0.05) 1px, transparent 1px, transparent 211px),
    repeating-linear-gradient(78deg, rgba(0,0,0,0.04) 0px, rgba(0,0,0,0.04) 1px, transparent 1px, transparent 313px),
    repeating-linear-gradient(-12deg, rgba(0,0,0,0.03) 0px, rgba(0,0,0,0.03) 2px, transparent 2px, transparent 409px),
    repeating-linear-gradient(54deg, rgba(0,0,0,0.04) 0px, rgba(0,0,0,0.04) 1px, transparent 1px, transparent 193px);
  line-height: 1.6; 
}
a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

header {
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner { display: flex; justify-content: space-between; align-items: center; min-height: 90px; padding: 1rem 0; }
.logo { font-size: 1.5rem; font-weight: 800; color: var(--dark); }
.logo span { color: var(--primary); }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { font-weight: 500; transition: color 0.3s; }
.nav-links a:hover { color: var(--primary); }

.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 600;
  max-height: 600px;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-color: transparent;
  background-size: cover; background-position: center;
  z-index: -1;
}
.hero-content {
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
  position: relative;
  z-index: 10;
}
.hero-content h1 { font-size: 3rem; margin-bottom: 1rem; }

/* Slider Styles */
.slider-container { position: relative; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.5s ease-in-out; display: flex; align-items: center; justify-content: center; z-index: 1; }
.slide.active { opacity: 1; z-index: 2; }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.5); color: white; border: none; padding: 1rem; cursor: pointer; z-index: 10; font-size: 1.5rem; transition: background 0.3s; }
.slider-btn:hover { background: rgba(0,0,0,0.8); }
.slider-btn.prev { left: 1rem; }
.slider-btn.next { right: 1rem; }
.slider-dots { position: absolute; bottom: 2rem; width: 100%; text-align: center; z-index: 10; }
.dot { display: inline-block; width: 12px; height: 12px; margin: 0 5px; background: rgba(255,255,255,0.5); border-radius: 50%; cursor: pointer; transition: background 0.3s; }
.dot.active { background: white; }

.btn {
  display: inline-block; padding: 0.8rem 2rem; background: var(--primary);
  color: white; border-radius: 5px; font-weight: bold; transition: background 0.3s;
}
.btn:hover { background: var(--primary-light); }

.section { padding: 5rem 0; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 3rem; color: var(--dark); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.card {
  background: white; border-radius: 10px; overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05); transition: transform 0.3s;
}
.card:hover { transform: translateY(-5px); }
.card img { width: 100%; height: 250px; object-fit: cover; }
.card-content { padding: 1.5rem; }
.card-content h3 { margin-bottom: 0.5rem; color: var(--dark); }

footer { background: var(--dark); color: #cbd5e1; padding: 4rem 0 0 0; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 3rem; margin-bottom: 3rem; }
.footer-bottom { background: #0b1120; padding: 1.5rem 0; text-align: center; font-size: 0.9rem; }
.social-icons { display: flex; gap: 1rem; margin-top: 1rem; }
.social-icons a { color: white; font-size: 1.5rem; }

/* Admin styles */
.admin-container { padding: 2rem; max-width: 1000px; margin: 0 auto; }
.admin-card { background: white; padding: 2rem; border-radius: 10px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); margin-bottom: 2rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; }
.form-control { width: 100%; padding: 0.75rem; border: 1px solid #ccc; border-radius: 5px; }
.admin-list { list-style: none; margin-top: 1rem; }
.admin-item { display: flex; align-items: center; gap: 1rem; padding: 1rem; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 5px; margin-bottom: 0.5rem; }
.admin-item img { width: 80px; height: 60px; object-fit: cover; border-radius: 5px; }
.admin-item-actions { margin-left: auto; display: flex; gap: 0.5rem; }
.btn-danger { background: #ef4444; }
.btn-secondary { background: #64748b; }

/* Mobil Uyumluluk */
@media (max-width: 768px) {
  .header-inner { flex-direction: column; gap: 1rem; text-align: center; }
  .nav-links { flex-wrap: wrap; justify-content: center; gap: 1rem; }
  .nav-links a { font-size: 0.95rem; }
  .logo { font-size: 1.3rem; }
  .logo img { max-height: 50px !important; }
  
  /* Banner Mobil Uyum */
  .hero { min-height: unset; aspect-ratio: 1920 / 600; }
  .slider-btn { padding: 0.5rem; font-size: 1rem; }
  
  .hero-content h1 { font-size: 2rem; }
  .section-title { font-size: 2rem; }
  .grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
  .social-icons { justify-content: center; }
  
  /* Admin Paneli Mobil */
  .admin-item { flex-direction: column; align-items: flex-start; }
  .admin-item-actions { margin-left: 0; margin-top: 1rem; width: 100%; display: flex; flex-wrap: wrap; gap: 0.5rem; }
  .admin-item-actions button { flex: 1; }
  .tab-btn { margin-bottom: 0.5rem; }
}
