/* e-Şantiyem - ortak stil dosyası (esantiyem.com marka paletiyle uyumlu) */
:root {
  --brand: #f97316;
  --brand-dark: #ea580c;
  --brand-light: #fff1e6;
  --ink: #111827;
  --ink-2: #0f172a;
  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;
  --text: #111827;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --bg: #f8f9fa;
  --card-bg: #ffffff;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 30px rgba(17, 24, 39, 0.08);
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; }
.brand .logo-icon { flex: none; width: 34px; height: 34px; }
.brand .logo-img { flex: none; height: 38px; max-width: 220px; width: auto; object-fit: contain; }
.brand .logo-text {
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand) 30%, var(--ink-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand { white-space: nowrap; flex: none; }
.brand small { display: block; font-size: 11px; font-weight: 400; color: var(--text-muted); }
.main-nav { display: flex; gap: 22px; align-items: center; flex: 1; }
.main-nav a { color: #374151; font-weight: 500; font-size: 14.5px; display: inline-flex; align-items: center; gap: 6px; }
.main-nav a:hover { color: var(--brand); text-decoration: none; }
.main-nav .nav-icon { opacity: .75; }
.header-actions { display: flex; gap: 10px; align-items: center; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--brand-light); color: var(--brand-dark);
  padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 14px;
}
.nav-cta:hover { background: #ffe4cc; text-decoration: none; }
.nav-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; }

@media (max-width: 860px) {
  .main-nav { position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: flex-start; padding: 14px 20px; border-bottom: 1px solid var(--border); display: none; gap: 14px; }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
}
@media (max-width: 480px) {
  .site-header .bar { gap: 6px; }
  .brand { font-size: 15px; gap: 5px; }
  .brand .logo-icon { width: 24px; height: 24px; }
  .nav-toggle { font-size: 20px; padding: 0 2px; }
  .header-actions { gap: 5px; }
  .header-actions .btn { padding: 7px 10px; font-size: 12px; white-space: nowrap; gap: 4px; }
  .header-actions .btn .avatar { width: 24px; height: 24px; }
}

/* Buttons - esantiyem.com'daki gibi tam yuvarlak (pill) düğmeler */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 999px; font-weight: 700; font-size: 14px;
  border: 1.5px solid transparent; cursor: pointer; transition: .15s; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-outline { background: #fff; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand-light); }
.btn-ghost { background: transparent; color: var(--text); border-color: transparent; }
.btn-ghost-gray { background: #fff; color: #1f2937; border-color: var(--border); }
.btn-ghost-gray:hover { background: #f9fafb; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* Hero - esantiyem.com'un sıcak krem arka planlı, turuncu vurgulu tasarımı */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #fff9f5 0%, #fdf5f0 45%, #ffffff 100%);
  color: var(--ink); padding: 80px 0 70px; text-align: center;
}
/* Ayarlar > Görünüm/Hero'dan arka plan "Görsel" seçilince (admin panelinden yönetilir) */
.hero.hero--image { background-size: cover; background-position: center; background-repeat: no-repeat; }
.hero-overlay { position: absolute; inset: 0; background: rgba(15, 15, 20, .42); z-index: 0; }
.hero-inner { position: relative; z-index: 1; }
/* Not: .hero h1/.hero p ile aynı özgüllükte çakışmaması için bileşik seçici (.hero.hero--light) kullanılıyor. */
.hero.hero--light .hero-badge { background: rgba(255, 255, 255, .16); color: #fff; }
.hero.hero--light h1 { color: #fff; }
.hero.hero--light h1 .grad {
  background: linear-gradient(90deg, #ffcf9e 0%, #ffcf9e 25%, #ffffff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero.hero--light p { color: rgba(255, 255, 255, .88); }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand-light); color: var(--brand-dark);
  padding: 8px 18px; border-radius: 999px; font-weight: 700; font-size: 13.5px;
  margin-bottom: 26px;
}
.hero h1 { font-size: 46px; line-height: 1.15; margin: 0 0 20px; font-weight: 800; color: var(--ink); }
.hero h1 .grad {
  display: block;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand) 25%, var(--ink-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { font-size: 17px; color: #4b5563; max-width: 620px; margin: 0 auto; }
.hero-search {
  max-width: 700px; margin: 32px auto 0; background: #fff; border-radius: 999px;
  box-shadow: var(--shadow-lg); border: 1px solid #f1e9e3;
  display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 22px;
}
.hero-search input {
  border: none; flex: 1; font-size: 15px; padding: 8px 0; background: transparent;
}
.hero-search input:focus { outline: none; box-shadow: none; }
.hero-search .search-icon { color: #9ca3af; flex: none; }
.hero-search button { flex: none; }
.hero-actions { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

@media (max-width: 640px) {
  .hero { padding: 56px 0 46px; }
  .hero h1 { font-size: 32px; }
  .hero-search { flex-wrap: wrap; border-radius: var(--radius-lg); padding: 14px; }
  .hero-search input { flex: 1 1 100%; }
}

/* Sections */
.section { padding: 48px 0; }
.section-title { font-size: 24px; margin: 0 0 6px; }
.section-sub { color: var(--text-muted); margin: 0 0 28px; }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Cards */
.card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-body { padding: 20px; }
.job-card, .service-card, .blog-card { display: flex; flex-direction: column; height: 100%; }
.job-card h3, .service-card h3, .blog-card h3 { font-size: 17px; margin: 0 0 8px; }
.job-card .meta, .service-card .meta { color: var(--text-muted); font-size: 13px; margin-bottom: 10px; }
.job-card .desc, .service-card .desc { color: #4b5563; font-size: 14px; flex: 1; margin-bottom: 14px; }
.price-tag { color: var(--brand); font-weight: 700; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge-blue { background: var(--brand-light); color: var(--brand-dark); }
.badge-green { background: #dcfce7; color: #15803d; }
.badge-yellow { background: #fef3c7; color: #92400e; }
.badge-red { background: #fee2e2; color: #b91c1c; }
.badge-gray { background: #f3f4f6; color: #374151; }
.category-icon { font-size: 30px; margin-bottom: 8px; }

/* Kategori ikonu: emoji ya da yüklenmiş görsel, tek "category_icon_size"
   ayarıyla (kaynaklar/css içindeki --cat-icon-size) hepsi birlikte büyüyüp küçülür. */
.cat-icon-emoji { display: inline-block; font-size: var(--cat-icon-size, 30px); line-height: 1; margin-bottom: 8px; }
.cat-icon-img { display: inline-block; width: var(--cat-icon-size, 30px); height: var(--cat-icon-size, 30px); object-fit: contain; margin-bottom: 8px; }
.category-banner .icon-badge .cat-icon-emoji,
.category-banner .icon-badge .cat-icon-img { margin-bottom: 0; }
.category-banner .icon-badge { width: auto; height: auto; padding: 12px; }

.cat-card { text-align: center; padding: 22px 12px; }
.cat-card:hover { border-color: var(--brand); }

.blog-cover, .service-cover { width: 100%; height: 170px; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; background: var(--brand-light); }

/* Forms */
.form-group { margin-bottom: 16px; }
label { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 14.5px; font-family: inherit; background: #fff; color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-light); }
textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form-card { max-width: 480px; margin: 40px auto; }
.form-wide { max-width: 720px; margin: 0 auto; }
.help-text { font-size: 12.5px; color: var(--text-muted); margin-top: 4px; }
.checkbox-row { display: flex; align-items: flex-start; gap: 8px; }
.checkbox-row input { width: auto; margin-top: 3px; }

/* Alerts */
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.alert-error { background: #fee2e2; color: #991b1b; }
.alert-success { background: #dcfce7; color: #166534; }
.alert-info { background: var(--brand-light); color: var(--brand-dark); }

/* Tables (admin) */
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; }
th { background: #f9fafb; font-weight: 700; color: var(--text-muted); font-size: 12.5px; text-transform: uppercase; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }

/* Dashboard layout */
.dash-layout { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
@media (max-width: 800px) { .dash-layout { grid-template-columns: 1fr; } }
.dash-sidebar { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; position: sticky; top: 84px; }
.dash-sidebar a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--text); font-size: 14px; font-weight: 500; }
.dash-sidebar a:hover, .dash-sidebar a.active { background: var(--brand-light); color: var(--brand-dark); text-decoration: none; }
.stat-tile { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.stat-tile .value { font-size: 26px; font-weight: 800; color: var(--brand); }
.stat-tile .label { color: var(--text-muted); font-size: 13px; }

.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--border); margin-bottom: 20px; flex-wrap: wrap; }
.tabs button { background: none; border: none; padding: 10px 16px; font-weight: 600; color: var(--text-muted); cursor: pointer; border-bottom: 2px solid transparent; }
.tabs button.active { color: var(--brand); border-color: var(--brand); }

.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.spinner { border: 3px solid var(--border); border-top-color: var(--brand); border-radius: 50%; width: 26px; height: 26px; animation: spin .7s linear infinite; margin: 30px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 28px; }
.pagination button { border: 1px solid var(--border); background: #fff; padding: 7px 13px; border-radius: 6px; cursor: pointer; }
.pagination button.active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* Footer */
.site-footer { background: #111827; color: #d1d5db; padding: 48px 0 24px; margin-top: 60px; }
.site-footer h4 { color: #fff; font-size: 15px; margin: 0 0 14px; }
.site-footer a { color: #d1d5db; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-bottom { border-top: 1px solid #374151; margin-top: 32px; padding-top: 18px; font-size: 13px; color: #9ca3af; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.social-links { display: flex; gap: 12px; margin-top: 10px; }
.social-links a { width: 34px; height: 34px; border-radius: 50%; background: #1f2937; display: flex; align-items: center; justify-content: center; }

.user-menu { position: relative; }
.user-menu-btn { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px 6px 6px; cursor: pointer; font-weight: 600; font-size: 13.5px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-dropdown { position: absolute; right: 0; top: 46px; background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); min-width: 190px; display: none; overflow: hidden; }
.user-dropdown.open { display: block; }
.user-dropdown a, .user-dropdown button { display: block; width: 100%; text-align: left; padding: 11px 16px; font-size: 14px; background: none; border: none; cursor: pointer; color: var(--text); }
.user-dropdown a:hover, .user-dropdown button:hover { background: var(--brand-light); text-decoration: none; }

.page-head { padding: 30px 0 10px; }
.page-head h1 { font-size: 26px; margin: 0 0 6px; }
.breadcrumb { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }

.filters-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; background: #fff; padding: 14px; border-radius: var(--radius); border: 1px solid var(--border); }
.filters-bar select, .filters-bar input { width: auto; min-width: 140px; }

.rating-stars { color: #f59e0b; font-size: 14px; }
.proposal-item { border: 1px solid var(--border); border-radius: 8px; padding: 14px; margin-bottom: 10px; }
.detail-hero { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; margin-bottom: 20px; }
.two-col { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
/* İki alanın da eşit genişlik/yükseklikte olması gereken kullanımlar için (ör. Hakkımızda: Misyon/Vizyon) */
.two-col.two-col-equal { grid-template-columns: 1fr 1fr; align-items: stretch; }
.two-col.two-col-equal > .card { height: 100%; }

/* İletişim sayfası - iletişim bilgisi kartları + konum haritası */
.contact-info-list { display: flex; flex-direction: column; gap: 14px; }
.contact-info-item {
  display: flex; align-items: flex-start; gap: 16px; padding: 18px;
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
}
.contact-info-item .contact-icon-box {
  flex: none; width: 48px; height: 48px; border-radius: 14px; display: flex;
  align-items: center; justify-content: center; font-size: 21px;
  background: linear-gradient(135deg, var(--brand) 0%, #b45309 100%); color: #fff;
}
.contact-info-item h4 { margin: 0 0 4px; font-size: 15.5px; }
.contact-info-item a.contact-value { color: var(--brand); font-weight: 600; text-decoration: none; word-break: break-word; }
.contact-info-item a.contact-value:hover { text-decoration: underline; }
.contact-info-item .contact-value-text { font-weight: 600; color: var(--ink); }
.contact-info-item .note { color: var(--text-muted); font-size: 12.5px; margin: 4px 0 0; }
.contact-map-card { padding: 0; overflow: hidden; height: 100%; min-height: 340px; }
.contact-map-card iframe { display: block; width: 100%; height: 100%; min-height: 340px; border: 0; }
.contact-map-card .empty-state { padding: 40px 20px; }
@media (max-width: 640px) {
  .contact-info-item { padding: 14px; gap: 12px; }
  .contact-map-card { min-height: 260px; }
  .contact-map-card iframe { min-height: 260px; }
}

/* Anasayfa - "Yakında: Yeni Özellikler" */
.upcoming-card { padding: 26px; position: relative; }
.upcoming-card .icon-box {
  width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center;
  justify-content: center; font-size: 22px; margin-bottom: 14px;
}
.upcoming-card .icon-box.orange { background: var(--brand-light); }
.upcoming-card .icon-box.green { background: #dcfce7; }
.upcoming-card .icon-box img { width: 26px; height: 26px; object-fit: contain; }
.upcoming-card h3 { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 18px; }
.upcoming-card .desc { color: #4b5563; font-size: 14px; margin-bottom: 16px; }
.upcoming-card .feature-list { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.upcoming-card .feature-list li { font-size: 13.5px; color: #374151; display: flex; align-items: center; gap: 8px; }
.upcoming-card .feature-list li::before { content: "✓"; color: var(--success); font-weight: 700; }

/* Anasayfa - tanıtım videosu bölümü */
.video-embed-wrap {
  position: relative; padding-top: 56.25%; border-radius: var(--radius-lg); overflow: hidden;
  background: #0f172a; box-shadow: var(--shadow-lg); max-width: 900px; margin: 0 auto;
}
.video-embed-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-embed-fallback {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 14px; color: #e5e7eb; text-align: center; padding: 20px;
}
.video-embed-fallback .play-dot {
  width: 62px; height: 62px; border-radius: 50%; background: var(--danger);
  display: flex; align-items: center; justify-content: center; font-size: 26px; color: #fff;
}

/* Anasayfa - "Neden e-Şantiyem?" ikon kartları */
.why-icon-card { text-align: center; padding: 26px 16px; }
.why-icon-card .icon-box {
  width: 52px; height: 52px; border-radius: 14px; margin: 0 auto 14px; display: flex;
  align-items: center; justify-content: center; font-size: 24px; color: #fff;
}
.why-icon-card h3 { font-size: 16px; margin: 0 0 8px; }
.why-icon-card p { font-size: 13.5px; color: var(--text-muted); margin: 0; }

/* Anasayfa - "Nasıl Çalışır?" numaralı adımlar */
.step-card { position: relative; text-align: center; padding: 28px 18px; }
.step-card .icon-box {
  width: 60px; height: 60px; border-radius: 16px; background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 26px; margin: 0 auto 16px;
}
.step-card .step-num {
  position: absolute; top: 10px; right: 18px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--ink-2); color: #fff; font-size: 12px; font-weight: 700; display: flex;
  align-items: center; justify-content: center;
}
.step-card h3 { font-size: 16px; margin: 0 0 8px; }
.step-card p { font-size: 13.5px; color: var(--text-muted); margin: 0; }

/* Anasayfa - müşteri yorumları */
.testimonial-card { padding: 24px; }
.testimonial-card .stars { color: #f59e0b; letter-spacing: 2px; margin-bottom: 12px; }
.testimonial-card blockquote { margin: 0 0 18px; font-size: 14.5px; color: #374151; font-style: italic; position: relative; }
.testimonial-card .who { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--border); padding-top: 14px; }
.testimonial-card .who .avatar-circle {
  width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex: none;
  overflow: hidden;
}
.testimonial-card .who .avatar-circle img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-card .who .name { font-weight: 700; font-size: 14px; }
.testimonial-card .who .role { font-size: 12.5px; color: var(--text-muted); }

/* Anasayfa - "Hemen Başlayın" CTA bandı */
.cta-banner {
  background: linear-gradient(90deg, var(--brand) 0%, var(--ink-2) 100%);
  border-radius: var(--radius-lg); padding: 52px 30px; text-align: center; color: #fff;
}
.cta-banner h2 { margin: 0 0 12px; font-size: 26px; }
.cta-banner p { margin: 0 0 24px; opacity: .92; font-size: 15px; }
.cta-banner .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.cta-banner .btn-outline:hover { background: rgba(255,255,255,.12); }

/* Kategori filtreli listeleme sayfaları (ilanlar/hizmetler) - kategori banner'ı */
.category-banner {
  background-size: cover; background-position: center; position: relative;
  margin-bottom: 0;
}
.category-banner .overlay {
  background: linear-gradient(180deg, rgba(17,24,39,.35) 0%, rgba(17,24,39,.75) 100%);
  padding: 46px 0 34px;
}
.category-banner .icon-badge {
  display: inline-flex; align-items: center; justify-content: center; font-size: 26px;
  width: 54px; height: 54px; border-radius: 14px; background: rgba(255,255,255,.16);
  margin-bottom: 12px;
}
.category-banner h1 { color: #fff; margin: 0 0 6px; }
.category-banner p { color: #f3f4f6; margin: 0; max-width: 640px; }
