/* ═══════════════════════════════════════════════════════════════
   Yeşil Koru Kent Sitesi — Ana Stil Dosyası
   Koyu tema, glassmorphism, emerald green vurgular
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ─── CSS Değişkenler ─── */
:root {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-input: #f8fafc;
  --border-color: #e2e8f0;
  --border-focus: #10B981;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --green-400: #059669;
  --green-500: #10B981;
  --green-600: #047857;
  --green-700: #065f46;
  --red-500: #ef4444;
  --blue-500: #3b82f6;
  --purple-500: #8b5cf6;
  --yellow-500: #d97706;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-glow: 0 4px 20px rgba(16, 185, 129, 0.15);
  --shadow-card: 0 10px 15px -3px rgba(15, 23, 42, 0.05), 0 4px 6px -4px rgba(15, 23, 42, 0.05);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ─── Reset & Base ─── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--green-400); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--green-500); }

/* ─── Animated Background Particles ─── */
.bg-particles {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-particles::before,
.bg-particles::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: 0.03;
  animation: float 20s ease-in-out infinite;
}

.bg-particles::before {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--green-500), transparent 70%);
  top: -200px; right: -200px;
}

.bg-particles::after {
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--blue-500), transparent 70%);
  bottom: -100px; left: -100px;
  animation-delay: -10s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ─── Container ─── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* ─── Navigation ─── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0;
}

.navbar-brand {
  font-size: 1.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--green-400), var(--green-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.navbar-links a, .navbar-links button {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font);
}

.navbar-links a:hover, .navbar-links button:hover {
  color: var(--text-primary);
  background: var(--bg-card);
}

.navbar-links a.active {
  color: var(--green-400);
  background: rgba(16, 185, 129, 0.1);
}

.navbar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.navbar-user .user-name {
  color: var(--green-400);
  font-weight: 600;
}

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ─── Page Wrapper ─── */
.page-wrapper {
  padding-top: 84px;
  padding-bottom: 40px;
  min-height: 100vh;
}

/* ─── Glassmorphism Card ─── */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
  animation: fadeIn 0.5s ease;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(16, 185, 129, 0.25);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--green-500), var(--green-600));
  color: white;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
  color: white;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--green-500);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
}

.btn-danger:hover {
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.1rem;
}

.btn-block {
  width: 100%;
}

.btn:disabled, .btn.loading {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.btn.loading::after {
  content: '';
  width: 16px; height: 16px;
  border: 2px solid white;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* ─── Form Elements ─── */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 40px;
}

.form-select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-error {
  color: var(--red-500);
  font-size: 0.85rem;
  margin-top: 8px;
  display: none;
}

.form-error.show {
  display: block;
  animation: shake 0.4s ease;
}

/* ─── Grid System ─── */
.grid {
  display: grid;
  gap: 20px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ─── Badges ─── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-mutahhit {
  background: rgba(59, 130, 246, 0.15);
  color: var(--blue-500);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-mimar {
  background: rgba(139, 92, 246, 0.15);
  color: var(--purple-500);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.badge-admin {
  background: rgba(234, 179, 8, 0.15);
  color: var(--yellow-500);
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.badge-aktif {
  background: rgba(16, 185, 129, 0.15);
  color: var(--green-500);
}

.badge-pasif {
  background: rgba(239, 68, 68, 0.15);
  color: var(--red-500);
}

/* ─── Teklif Cards ─── */
.teklif-card {
  position: relative;
  overflow: hidden;
}

.teklif-card .card-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--green-400);
  margin: 12px 0;
}

.teklif-card .card-duration {
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.teklif-card.selected {
  border-color: var(--green-500);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.25);
}

.teklif-card.selected::before {
  content: '✓';
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: var(--green-500);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  animation: scaleIn 0.3s ease;
}

.teklif-card .card-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

/* ─── Modal ─── */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 32px;
  max-width: 750px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  animation: scaleIn 0.3s ease;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
}

.modal-close:hover {
  background: rgba(239, 68, 68, 0.2);
  color: var(--red-500);
  border-color: var(--red-500);
}

.modal-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-right: 40px;
}

/* ─── Toast Notifications ─── */
.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 14px 20px;
  border-radius: var(--radius-md);
  color: white;
  font-size: 0.9rem;
  font-weight: 500;
  min-width: 280px;
  max-width: 420px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  animation: slideInRight 0.4s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast-success {
  background: linear-gradient(135deg, #059669, #047857);
  border-left: 4px solid var(--green-400);
}

.toast-error {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  border-left: 4px solid #f87171;
}

.toast-info {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-left: 4px solid #60a5fa;
}

.toast.removing {
  animation: slideOutRight 0.3s ease forwards;
}

/* ─── Tables ─── */
.table-container {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

thead {
  background: linear-gradient(135deg, var(--green-600), var(--green-700));
}

thead th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  color: white;
  white-space: nowrap;
}

tbody tr {
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

tbody tr:hover {
  background: rgba(16, 185, 129, 0.05);
}

tbody td {
  padding: 12px 16px;
  color: var(--text-secondary);
}

/* ─── Stats Cards ─── */
.stat-card {
  text-align: center;
  padding: 24px;
}

.stat-card .stat-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.stat-card .stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--green-400);
  line-height: 1;
}

.stat-card .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ─── Page Header ─── */
.page-header {
  text-align: center;
  margin-bottom: 40px;
  animation: fadeIn 0.6s ease;
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--green-400), var(--green-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* ─── Vote Status Banner ─── */
.vote-banner {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: slideUp 0.4s ease;
}

.vote-banner.no-vote {
  background: rgba(234, 179, 8, 0.1);
  border-color: rgba(234, 179, 8, 0.3);
}

/* ─── Chart Container ─── */
.chart-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.chart-container canvas {
  width: 100% !important;
  max-height: 400px;
}

/* ─── Toggle Switch ─── */
.toggle-switch {
  position: relative;
  width: 52px;
  height: 28px;
  display: inline-block;
}

.toggle-switch input {
  display: none;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  transition: var(--transition);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 22px; height: 22px;
  left: 2px; top: 2px;
  background: white;
  border-radius: 50%;
  transition: var(--transition);
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--green-500);
  border-color: var(--green-600);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(24px);
}

/* ─── Skeleton Loading ─── */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, rgba(255,255,255,0.08) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

.skeleton-text { height: 16px; margin-bottom: 8px; }
.skeleton-title { height: 24px; width: 60%; margin-bottom: 16px; }
.skeleton-card { height: 200px; }

/* ─── Hero Section ─── */
.hero {
  text-align: center;
  padding: 40px 0;
}

.hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.hero .welcome-name {
  color: var(--green-400);
}

/* ─── Video Container ─── */
.video-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto 40px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  background: var(--bg-card);
}

.video-container .video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.video-container .video-wrapper iframe,
.video-container .video-wrapper video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

.video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
  color: var(--text-muted);
  text-align: center;
}

.video-placeholder .icon {
  font-size: 4rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

/* ─── Info Cards ─── */
.info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 40px 0;
}

.info-card {
  text-align: center;
  padding: 32px 24px;
}

.info-card .info-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.info-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.info-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ─── CTA Button ─── */
.cta-section {
  text-align: center;
  padding: 20px 0 40px;
}

/* ─── Footer ─── */
.footer {
  text-align: center;
  padding: 24px 0;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 60px;
}

/* ─── Admin Layout ─── */
.admin-nav {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  animation: fadeIn 0.4s ease;
}

.admin-nav a {
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
}

.admin-nav a:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.admin-nav a.active {
  background: linear-gradient(135deg, var(--green-500), var(--green-600));
  color: white;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-header h2 {
  font-size: 1.4rem;
  font-weight: 700;
}

/* ─── Search Input ─── */
.search-box {
  position: relative;
  max-width: 320px;
}

.search-box input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
}

.search-box input:focus {
  border-color: var(--green-500);
}

.search-box::before {
  content: '🔍';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
}

/* ─── Login Page ─── */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.login-card {
  max-width: 440px;
  width: 100%;
  padding: 40px;
  text-align: center;
  animation: scaleIn 0.5s ease;
}

.login-logo {
  font-size: 3rem;
  margin-bottom: 16px;
}

.login-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 4px;
  background: linear-gradient(135deg, var(--green-400), var(--green-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 32px;
}

.login-card .form-group {
  text-align: left;
}

/* ─── Confirm Dialog ─── */
.confirm-dialog {
  text-align: center;
}

.confirm-dialog p {
  margin-bottom: 24px;
  font-size: 1rem;
  color: var(--text-secondary);
}

.confirm-dialog .btn-group {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* ─── Progress Bar ─── */
.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--bg-input);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green-500), var(--green-400));
  border-radius: 4px;
  transition: width 0.5s ease;
}

/* ─── Detail List ─── */
.detail-list {
  list-style: none;
  padding: 0;
}

.detail-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.detail-list li::before {
  content: '•';
  color: var(--green-500);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1;
  flex-shrink: 0;
}

.detail-list li:last-child {
  border-bottom: none;
}

/* ─── Animations ─── */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(100px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideOutRight {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(100px); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ─── Formül Kartları ─── */
.formul-card {
  padding: 0;
  overflow: hidden;
  transition: var(--transition);
}
.formul-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.formul-card.selected { border-color: var(--green-500); box-shadow: 0 0 20px rgba(16,185,129,0.2); }

.formul-img {
  position: relative;
  overflow: hidden;
  height: 200px;
}
.formul-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.formul-card:hover .formul-img img { transform: scale(1.05); }

.formul-badge {
  position: absolute; top: 12px; left: 12px;
  padding: 6px 14px; border-radius: 20px;
  font-weight: 800; font-size: 0.75rem; letter-spacing: 1px;
}
.badge-alt1 { background: var(--green-500); color: white; }
.badge-alt2 { background: #f59e0b; color: #1a1a2e; }

.formul-voted {
  position: absolute; top: 12px; right: 12px;
  background: var(--green-500); color: white;
  padding: 6px 12px; border-radius: 20px;
  font-weight: 700; font-size: 0.8rem;
}

.formul-body { padding: 24px; }
.formul-title { font-size: 1.2rem; font-weight: 800; color: var(--text-primary); margin-bottom: 8px; }
.formul-desc { color: var(--text-muted); font-size: 0.9rem; line-height: 1.5; margin-bottom: 20px; }

.formul-equation {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 20px;
}

.formul-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0;
}
.formul-row + .formul-row { border-top: 1px solid rgba(255,255,255,0.04); }

.formul-label { color: var(--text-muted); font-size: 0.9rem; }
.formul-value { font-weight: 700; color: var(--text-primary); font-size: 0.95rem; }
.formul-value.green { color: var(--green-400); }
.formul-value.big { color: var(--green-400); font-size: 1.3rem; font-weight: 800; }

.formul-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green-500), transparent);
  margin: 4px 0;
}

.formul-highlight {
  background: rgba(16,185,129,0.08);
  margin: 0 -16px; padding: 12px 16px !important;
  border-radius: var(--radius-md);
}

.formul-actions { display: flex; flex-direction: column; gap: 0; }

/* ─── Tapu Form ─── */
.tapu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.tapu-field label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 600;
}
.tapu-field input {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: var(--transition);
}
.tapu-field input:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.15);
}

/* ─── Firma Banner ─── */
.firma-banner {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 24px;
  height: 300px;
}

.firma-banner-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: brightness(0.5);
}

.firma-banner-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
}

.firma-banner-overlay h1 {
  font-size: 1.8rem;
  font-weight: 800;
  color: white;
  margin: 8px 0;
}

.firma-meta {
  display: flex;
  gap: 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
  flex-wrap: wrap;
}

/* ─── Detay Grid ─── */
.detay-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.detay-baslik {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--green-400);
  padding: 12px 0 6px;
  margin-top: 8px;
  border-bottom: 1px solid var(--border-color);
}

.detay-madde {
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

/* ─── Teklif Link Card ─── */
.teklif-link-card {
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.teklif-link-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-500);
}

.teklif-link-card .card-actions {
  margin-top: auto;
  padding-top: 12px;
}

.btn-block {
  display: block;
  width: 100%;
}

/* ─── Vote Card ─── */
.vote-card {
  border: 2px solid var(--border-color);
  transition: var(--transition);
}

.vote-card:hover {
  border-color: var(--green-500);
}

.no-vote {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
}

/* ─── Satellite Container ─── */
.satellite-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

/* ─── Teklif Render Image ─── */
.teklif-render {
  margin: -20px -20px 16px -20px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
}

.teklif-render img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.teklif-card:hover .teklif-render img {
  transform: scale(1.05);
}

/* ─── Gallery ─── */
.gallery-section {
  margin: 40px 0;
}

/* ─── Location ─── */
.location-section {
  margin: 40px 0;
}

.location-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  min-height: 350px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  min-height: 350px;
}

.location-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.location-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.location-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.location-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.location-row > span:last-child {
  font-size: 0.95rem;
  color: var(--text-primary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  transition: var(--transition);
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-500);
}

.gallery-item.gallery-featured {
  grid-column: 1 / -1;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.gallery-item:not(.gallery-featured) img {
  height: 240px;
  object-fit: cover;
}

.gallery-caption {
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  background: rgba(0, 0, 0, 0.2);
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .info-cards { grid-template-columns: 1fr; }
  
  .navbar-links { display: none; }
  .navbar-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-card);
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    z-index: 999;
  }
  .navbar-links.open a,
  .navbar-links.open button {
    padding: 12px 16px;
    width: 100%;
    text-align: left;
  }

  .nav-mobile-toggle { display: block; }

  .page-header h1 { font-size: 1.5rem; }
  .page-header p { font-size: 0.9rem; }
  .hero h1 { font-size: 1.5rem; }
  .hero p { font-size: 0.9rem; }
  .login-card { padding: 24px; max-width: 100%; }
  .login-title { font-size: 1.4rem; }
  .login-logo { font-size: 2.5rem; }
  .modal-content { padding: 20px; margin: 10px; max-height: 90vh; border-radius: var(--radius-lg); }
  .modal-title { font-size: 1.1rem; }
  .admin-header { flex-direction: column; align-items: flex-start; }
  
  .stat-card .stat-value { font-size: 1.4rem; }
  .stat-card .stat-icon { font-size: 1.5rem; }
  .stat-card { padding: 16px; }

  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }

  .vote-banner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .teklif-card .card-actions {
    flex-direction: column;
  }
  .teklif-card .card-price { font-size: 1.3rem; }

  .admin-nav {
    gap: 4px;
    padding: 12px;
  }
  .admin-nav a {
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item:not(.gallery-featured) img { height: 200px; }

  .location-grid { grid-template-columns: 1fr; }
  .detay-grid { grid-template-columns: 1fr; }
  .firma-banner { height: 200px; }
  .firma-banner-overlay h1 { font-size: 1.3rem; }
  .firma-banner-overlay { padding: 20px; }
  .firma-meta { gap: 12px; font-size: 0.85rem; }
  .map-container { min-height: 250px; }
  .map-container iframe { min-height: 250px; }

  table { font-size: 0.8rem; }
  thead th { padding: 10px 12px; }
  tbody td { padding: 10px 12px; }

  .video-container { border-radius: var(--radius-lg); }

  .btn { padding: 10px 20px; font-size: 0.9rem; }
  .btn-lg { padding: 14px 28px; font-size: 1rem; }
  .btn-sm { padding: 7px 12px; font-size: 0.8rem; }

  .form-input, .form-select, .form-textarea {
    padding: 10px 14px;
    font-size: 16px; /* iOS zoom önleme */
  }

  .search-box { max-width: 100%; }

  .chart-container { padding: 16px; }
  .chart-container canvas { max-height: 250px; }

  .footer { margin-top: 40px; }

  /* Modal içi grid'ler tek kolona düşsün */
  .modal-content .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 10px; }
  .card { padding: 14px; }
  .btn { padding: 10px 16px; font-size: 0.85rem; }
  .navbar-brand { font-size: 0.95rem; }
  .page-wrapper { padding-top: 74px; padding-bottom: 20px; }

  .grid-3, .grid-4 { grid-template-columns: 1fr; }

  .login-card { padding: 20px; }
  .login-title { font-size: 1.2rem; }
  .login-subtitle { font-size: 0.85rem; margin-bottom: 24px; }

  .hero { padding: 20px 0; }
  .hero h1 { font-size: 1.3rem; }

  .info-card { padding: 20px 16px; }
  .info-card .info-icon { font-size: 2rem; }

  .admin-nav { flex-direction: column; }
  .admin-nav a { text-align: center; }

  .teklif-card .card-price { font-size: 1.1rem; }
  .stat-card .stat-value { font-size: 1.2rem; }
  .stat-card .stat-label { font-size: 0.75rem; }

  .toast { min-width: auto; max-width: calc(100vw - 40px); font-size: 0.85rem; }
  .toast-container { right: 10px; left: 10px; }

  table { font-size: 0.75rem; }
  thead th { padding: 8px 8px; }
  tbody td { padding: 8px 8px; }
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--bg-card-hover); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ─── Selection ─── */
::selection {
  background: rgba(16, 185, 129, 0.3);
  color: white;
}

/* ─── Oda Ölçüleri Grid ─── */
.oda-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
}
.oda-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 6px;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  transition: all 0.2s;
  text-align: center;
}
.oda-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--green-400);
  transform: translateY(-2px);
}
.oda-icon { font-size: 1.3rem; margin-bottom: 4px; }
.oda-adi { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 2px; }
.oda-m2 { font-size: 0.85rem; font-weight: 700; color: var(--green-400); }

/* ─── Image Zoom ─── */
img.zoomed {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  max-width: 90vw;
  max-height: 90vh;
  z-index: 9999;
  border-radius: var(--radius-lg);
  box-shadow: 0 0 80px rgba(0,0,0,0.8);
  object-fit: contain;
  cursor: zoom-out;
}
img.zoomed ~ *, img.zoomed + * { pointer-events: none; }

@media (max-width: 768px) {
  .oda-grid { grid-template-columns: repeat(3, 1fr); }
}
