/* Modern Construction Theme & Admin Panel CSS - Fully Responsive */
:root { 
  --primary-color: #f59e0b; 
  --primary-dark: #d97706; 
  --secondary-color: #0f172a; 
  --light-bg: #f8fafc; 
  --text-dark: #334155; 
  --text-light: #94a3b8; 
}

* { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; 
}

body { 
  background-color: var(--light-bg); 
  color: var(--text-dark); 
  line-height: 1.6; 
}

/* Header & Navigation */
header { 
  background: var(--secondary-color); 
  padding: 0.8rem 0; 
  position: sticky; 
  top: 0; 
  z-index: 1000; 
  box-shadow: 0 4px 20px rgba(0,0,0,0.15); 
}

.header-container { 
  max-width: 1200px; 
  margin: 0 auto; 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  padding: 0 1.5rem; 
  position: relative;
}

.logo { 
  font-size: 1.6rem; 
  font-weight: 800; 
  color: #fff; 
  text-decoration: none; 
  letter-spacing: -0.5px; 
  display: flex;
  align-items: center;
}

.logo img {
  max-height: 75px; 
  width: auto;
  object-fit: contain;
  display: block;
}

.logo span { 
  color: var(--primary-color); 
}

/* Mobil Menü Butonu */
.menu-toggle {
  display: none !important;
  font-size: 1.8rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
}

nav ul { 
  display: flex; 
  list-style: none; 
  gap: 2rem; 
  align-items: center; 
}

nav a { 
  color: #f1f5f9; 
  text-decoration: none; 
  font-weight: 600; 
  font-size: 0.95rem; 
  transition: all 0.3s; 
}

nav a:hover { 
  color: var(--primary-color); 
}

/* Dropdown Menu */
.dropdown { 
  position: relative; 
}

.dropdown-menu { 
  display: none; 
  position: absolute; 
  top: 100%; 
  left: 0; 
  background: var(--secondary-color); 
  min-width: 220px; 
  box-shadow: 0 10px 25px rgba(0,0,0,0.2); 
  border-radius: 8px; 
  padding: 0.5rem 0; 
  list-style: none; 
  border: 1px solid rgba(255,255,255,0.05); 
}

.dropdown:hover .dropdown-menu { 
  display: block; 
}

.dropdown-menu a { 
  padding: 0.75rem 1.25rem; 
  display: block; 
  font-size: 0.9rem; 
  border-bottom: 1px solid rgba(255,255,255,0.03); 
}

.dropdown-menu a:hover { 
  background: rgba(255,255,255,0.05); 
}

/* Hero Section & Slider */
.hero { 
  background: linear-gradient(135deg, rgba(15,23,42,0.85), rgba(15,23,42,0.7)), url('https://images.unsplash.com/photo-1541888946425-d0fbb186a5b3?auto=format&fit=crop&w=1600&q=80') center/cover; 
  color: white; 
  text-align: center; 
  padding: 7rem 1.5rem; 
}

.hero h1 { 
  font-size: 3.2rem; 
  font-weight: 800; 
  margin-bottom: 1rem; 
  text-shadow: 0 2px 10px rgba(0,0,0,0.3); 
}

.hero p { 
  font-size: 1.25rem; 
  max-width: 700px; 
  margin: 0 auto 2.5rem; 
  color: #cbd5e1; 
  font-weight: 300; 
}

/* Otomatik Slider Geçiş Stilleri */
.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

/* Buttons */
.btn { 
  display: inline-block; 
  background: var(--primary-color); 
  color: white; 
  padding: 0.85rem 2rem; 
  border-radius: 8px; 
  text-decoration: none; 
  font-weight: 700; 
  border: none; 
  cursor: pointer; 
  transition: all 0.3s; 
  box-shadow: 0 4px 14px rgba(245,158,11,0.4); 
}

.btn:hover { 
  background: var(--primary-dark); 
  transform: translateY(-2px); 
}

/* Grid & Cards */
.container { 
  max-width: 1200px; 
  margin: 4rem auto; 
  padding: 0 1.5rem; 
}

.section-title { 
  text-align: center; 
  font-size: 2.2rem; 
  font-weight: 800; 
  color: var(--secondary-color); 
  margin-bottom: 3rem; 
  position: relative; 
}

.section-title::after { 
  content: ''; 
  display: block; 
  width: 70px; 
  height: 5px; 
  background: var(--primary-color); 
  margin: 10px auto 0; 
  border-radius: 3px; 
}

.grid-3 { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
  gap: 2.5rem; 
}

.card { 
  background: white; 
  border-radius: 12px; 
  overflow: hidden; 
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05); 
  transition: all 0.3s ease; 
  border: 1px solid #e2e8f0; 
}

.card:hover { 
  transform: translateY(-8px); 
  box-shadow: 0 20px 35px -10px rgba(0,0,0,0.12); 
}

/* Proje Kapak Resimlerinin Kesilmesini ve Bozulmasını Önleyen Ayar */
.card-img { 
  width: 100%; 
  height: 280px; 
  background-size: cover; 
  background-position: center; 
  background-repeat: no-repeat;
  display: block;
}

.card-body { 
  padding: 1.75rem; 
}

.card-badge { 
  display: inline-block; 
  background: #fef3c7; 
  color: #b45309; 
  font-size: 0.8rem; 
  font-weight: 700; 
  padding: 0.3rem 0.8rem; 
  border-radius: 20px; 
  margin-bottom: 0.75rem; 
}

.card-title { 
  font-size: 1.3rem; 
  font-weight: 700; 
  color: var(--secondary-color); 
  margin-bottom: 0.5rem; 
}

.card-text { 
  color: #64748b; 
  font-size: 0.95rem; 
  margin-bottom: 1.5rem; 
}

/* Resim Büyütme (Lightbox) Stilleri */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 99999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.lightbox-modal img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.5);
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 25px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}
.lightbox-close:hover {
  color: var(--primary-color);
}
.zoomable-img {
  cursor: pointer;
  transition: opacity 0.2s;
}
.zoomable-img:hover {
  opacity: 0.95;
}

/* Footer & Floating WhatsApp */
footer { 
  background: var(--secondary-color); 
  color: var(--text-light); 
  text-align: center; 
  padding: 2.5rem 1.5rem; 
  margin-top: 5rem; 
  border-top: 1px solid rgba(255,255,255,0.05); 
}

footer a { 
  color: var(--primary-color); 
  text-decoration: none; 
}

.floating-wa {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #25d366;
  color: white;
  border-radius: 50px;
  padding: 12px 20px;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  text-decoration: none;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

/* Admin Dashboard Styles */
.admin-body { 
  display: flex; 
  min-height: 100vh; 
}

.sidebar { 
  width: 250px; 
  background: var(--secondary-color); 
  color: white; 
  padding: 1.5rem; 
  flex-shrink: 0;
}

.sidebar-menu { 
  list-style: none; 
  margin-top: 2rem; 
}

.sidebar-menu a { 
  color: #cbd5e1; 
  text-decoration: none; 
  display: block; 
  padding: 0.5rem 0; 
}

.main-content { 
  flex: 1; 
  padding: 2rem; 
  background: #f1f5f9; 
  overflow-x: hidden;
}

.admin-card { 
  background: white; 
  padding: 1.5rem; 
  border-radius: 8px; 
  margin-bottom: 2rem; 
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
  border: 1px solid #e2e8f0;
}

.form-group { 
  margin-bottom: 1rem; 
}

.form-control { 
  width: 100%; 
  padding: 0.6rem; 
  border: 1px solid #cbd5e1; 
  border-radius: 4px; 
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.table { 
  width: 100%; 
  border-collapse: collapse; 
  margin-top: 1rem; 
}

.table th, .table td { 
  padding: 0.75rem; 
  text-align: left; 
  border-bottom: 1px solid #e2e8f0; 
}

/* ==========================================
    MOBİL KURAL SETLERİ (RESPONSIVE RULES)
   ========================================== */

@media (max-width: 992px) {
  .admin-body {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    padding: 1rem 1.5rem;
  }
  
  .sidebar-menu {
    margin-top: 1rem;
    display: flex;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block !important;
  }

  nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--secondary-color);
    padding: 1.5rem;
    gap: 1rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  }

  nav ul.active {
    display: flex;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    background-color: rgba(255,255,255,0.05);
    margin-top: 0.5rem;
    border-radius: 4px;
    width: 100%;
  }

  .hero {
    padding: 4rem 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .container {
    margin: 2rem auto;
  }

  form[style*="grid-template-columns"],
  div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  .main-content {
    padding: 1rem;
  }

  .floating-wa span {
    display: none;
  }

  .floating-wa {
    padding: 12px;
    border-radius: 50%;
  }
}