/* ====================================================
   TURİS PORTAL - ANA STİL DOSYASI
   Modern, profesyonel kurumsal tasarım
   ==================================================== */

:root {
  --primary: #0f4c75;
  --primary-dark: #0a3a5c;
  --primary-light: #3282b8;
  --accent: #bbe1fa;
  --accent-warm: #d4a574;
  --dark: #1b262c;
  --gray-900: #1a1a1a;
  --gray-700: #4a4a4a;
  --gray-500: #8a8a8a;
  --gray-300: #d4d4d4;
  --gray-100: #f5f7fa;
  --gray-50: #fafbfc;
  --white: #ffffff;
  --success: #2d7d46;
  --danger: #c53030;
  --warning: #d69e2e;
  --info: #2b6cb0;

  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 16px 40px rgba(0, 0, 0, 0.12);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--gray-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* ===== TİPOGRAFİ ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.25;
  margin-bottom: 0.5em;
}

h1 { font-size: 2.5rem; letter-spacing: -0.02em; }
h2 { font-size: 2rem; letter-spacing: -0.01em; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1em; }

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--primary-light); }

/* ===== KONTEYNER ===== */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-sm { max-width: 720px; }
.container-md { max-width: 960px; }

/* ===== TOP BAR ===== */
.topbar {
  background: var(--dark);
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  padding: 8px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.topbar a { color: rgba(255,255,255,0.85); margin-left: 16px; }
.topbar a:hover { color: var(--accent); }

/* ===== HEADER ===== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-300);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 24px;
}

.logo {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-mark {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  font-weight: 800;
}
.logo-sub {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  color: var(--gray-500);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
  margin-top: -4px;
}

.main-nav {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
}
.main-nav a {
  padding: 10px 16px;
  border-radius: var(--radius);
  color: var(--gray-700);
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s;
}
.main-nav a:hover { background: var(--gray-100); color: var(--primary); }
.main-nav a.active { color: var(--primary); background: var(--gray-100); }

.header-actions { display: flex; gap: 8px; align-items: center; }

/* ===== BUTONLAR ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); color: white; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-secondary { background: var(--gray-100); color: var(--gray-900); }
.btn-secondary:hover { background: var(--gray-300); }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #9b2424; color: white; }
.btn-success { background: var(--success); color: white; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(187,225,250,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-content { position: relative; max-width: 720px; }
.hero h1 {
  color: white;
  font-size: 3.25rem;
  margin-bottom: 16px;
  line-height: 1.1;
}
.hero .lead {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 32px;
  line-height: 1.6;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.2);
}
.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--accent);
}
.hero-stat span { font-size: 14px; color: rgba(255,255,255,0.8); }

/* ===== KARTLAR ===== */
.section { padding: 72px 0; }
.section-light { background: var(--gray-50); }

.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header .eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 12px;
}
.section-header h2 { margin-bottom: 12px; }
.section-header p { color: var(--gray-700); font-size: 17px; max-width: 640px; margin: 0 auto; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: white;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.3s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}
.card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary-light) 100%);
  color: var(--primary-dark);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
}
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--gray-700); font-size: 14px; margin: 0; }

/* ===== ÜRÜN KARTLARI (Hal sistemi) ===== */
.urun-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.urun-kart {
  background: white;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}
.urun-kart:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}
.urun-gorsel {
  height: 180px;
  background: var(--gray-100);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--gray-300);
}
.urun-gorsel img { width: 100%; height: 100%; object-fit: cover; }
.urun-rozet {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent-warm);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.urun-icerik { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.urun-kategori { font-size: 11px; color: var(--primary-light); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.urun-ad { font-family: var(--font-body); font-size: 15px; font-weight: 600; color: var(--gray-900); margin-bottom: 4px; line-height: 1.3; }
.urun-aciklama { font-size: 13px; color: var(--gray-500); margin-bottom: 14px; flex: 1; }
.urun-fiyat { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--primary); margin-bottom: 12px; }
.urun-fiyat small { font-family: var(--font-body); font-size: 12px; color: var(--gray-500); font-weight: 400; }
.urun-aksiyon { display: flex; gap: 8px; }

/* ===== FORM ===== */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}
.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="url"],
select,
textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus,
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(50, 130, 184, 0.15);
}
textarea { min-height: 100px; resize: vertical; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* ===== UYARI/ALERT ===== */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 18px;
  font-size: 14px;
  border-left: 4px solid;
}
.alert-success { background: #f0fdf4; color: #166534; border-color: var(--success); }
.alert-danger,
.alert-error { background: #fef2f2; color: #991b1b; border-color: var(--danger); }
.alert-warning { background: #fffbeb; color: #92400e; border-color: var(--warning); }
.alert-info { background: #eff6ff; color: #1e40af; border-color: var(--info); }

/* ===== TABLO ===== */
.tablo {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.tablo thead { background: var(--primary); color: white; }
.tablo th {
  text-align: left;
  padding: 14px 16px;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.tablo td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-100);
  font-size: 14px;
}
.tablo tbody tr:hover { background: var(--gray-50); }
.tablo tbody tr:last-child td { border-bottom: none; }

/* ===== ROZET ===== */
.rozet {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.rozet-aktif { background: #d1fae5; color: #065f46; }
.rozet-beklemede { background: #fef3c7; color: #92400e; }
.rozet-pasif { background: #fee2e2; color: #991b1b; }
.rozet-onaylandi { background: #dbeafe; color: #1e40af; }
.rozet-kargoda { background: #e0e7ff; color: #4338ca; }
.rozet-teslim { background: #d1fae5; color: #065f46; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  padding: 64px 0 24px;
  margin-top: 80px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .logo { color: white; margin-bottom: 16px; }
.site-footer h4 {
  color: white;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer ul a { color: rgba(255,255,255,0.7); font-size: 14px; }
.site-footer ul a:hover { color: var(--accent); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* ===== DASHBOARD LAYOUT ===== */
.panel-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 80px);
}
@media (max-width: 900px) { .panel-layout { grid-template-columns: 1fr; } }

.panel-sidebar {
  background: var(--dark);
  color: rgba(255,255,255,0.85);
  padding: 32px 0;
}
.panel-sidebar .sidebar-title {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0 24px 12px;
  margin-top: 24px;
}
.panel-sidebar .sidebar-title:first-child { margin-top: 0; }
.panel-sidebar nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 24px;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: all 0.2s;
}
.panel-sidebar nav a:hover { background: rgba(255,255,255,0.05); color: white; }
.panel-sidebar nav a.active {
  background: rgba(50, 130, 184, 0.15);
  color: var(--accent);
  border-left-color: var(--accent);
}
.panel-sidebar nav a .icon { font-size: 18px; width: 22px; text-align: center; }

.panel-content { padding: 32px; background: var(--gray-50); }
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}
.panel-header h1 { margin: 0; font-size: 1.75rem; }

/* ===== İSTATİSTİK KART ===== */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-bottom: 32px; }
.stat-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 22px;
  border: 1px solid var(--gray-300);
  display: flex;
  align-items: center;
  gap: 16px;
}
.stat-card .stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.stat-icon-primary { background: #e0eaf5; color: var(--primary); }
.stat-icon-success { background: #d1fae5; color: var(--success); }
.stat-icon-warning { background: #fef3c7; color: var(--warning); }
.stat-icon-danger { background: #fee2e2; color: var(--danger); }
.stat-card .stat-value {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1;
}
.stat-card .stat-label { font-size: 13px; color: var(--gray-500); margin-top: 4px; }

/* ===== SAYFA BAŞLIĞI ===== */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 56px 0;
}
.page-hero h1 { color: white; }
.page-hero .breadcrumb { font-size: 13px; color: rgba(255,255,255,0.7); margin-bottom: 12px; }
.page-hero .breadcrumb a { color: var(--accent); }

/* ===== AUTH (Giriş/Kayıt) ===== */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--gray-50);
}
@media (max-width: 800px) { .auth-page { grid-template-columns: 1fr; } }

.auth-side {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
@media (max-width: 800px) { .auth-side { display: none; } }
.auth-side::before {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(187,225,250,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.auth-side h2 { color: white; font-size: 2.5rem; margin-bottom: 16px; position: relative; }
.auth-side p { color: rgba(255,255,255,0.9); font-size: 17px; position: relative; }
.auth-side .auth-features { list-style: none; margin-top: 32px; position: relative; }
.auth-side .auth-features li {
  padding: 8px 0 8px 32px;
  position: relative;
  color: rgba(255,255,255,0.9);
}
.auth-side .auth-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  width: 22px;
  height: 22px;
  background: var(--accent);
  color: var(--primary-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
}

.auth-form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}
.auth-form { width: 100%; max-width: 420px; }
.auth-form h1 { font-size: 2rem; margin-bottom: 8px; }
.auth-form .auth-sub { color: var(--gray-700); margin-bottom: 32px; }

/* ===== UTILS ===== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-2 { gap: 16px; }
.hidden-mobile { display: block; }
@media (max-width: 768px) { .hidden-mobile { display: none; } }

/* ===== MOBİL HAMBURGER ===== */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--primary);
}
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .main-nav { display: none; width: 100%; flex-direction: column; padding: 16px 0; }
  .main-nav.active { display: flex; }
  .main-nav a { width: 100%; }
  .header-inner { flex-wrap: wrap; }
  .hero h1 { font-size: 2.25rem; }
  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.5rem; }
}

/* ===== SEPET ===== */
.sepet-rozet {
  position: relative;
}
.sepet-sayac {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--danger);
  color: white;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== HİZMET KART ===== */
.hizmet-kart {
  background: white;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}
.hizmet-kart::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
}
.hizmet-kart:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}
.hizmet-kategori {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 12px;
}
.hizmet-fiyat-blok {
  margin: 24px 0;
  padding: 20px 0;
  border-top: 1px solid var(--gray-300);
  border-bottom: 1px solid var(--gray-300);
}
.hizmet-fiyat {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}
.hizmet-fiyat-tip { font-size: 14px; color: var(--gray-500); margin-left: 4px; }

/* ===== SAYFA ANİMASYONU ===== */
.fade-in { animation: fadeIn 0.4s ease-out; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
