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

:root {
  --primary: #0b6e4f;
  --primary-dark: #095a41;
  --accent: #f4a261;
  --accent-dark: #e8914e;
  --bg: #f7f9f8;
  --text: #1f2d2a;
  --muted: #6b7c78;
  --card: #ffffff;
  --border: #e2e8e5;
  --radius: 12px;
  --danger: #d94f4f;
  --warn: #c47a2c;
  --header-bg: #ffffff;
  --shadow: rgba(0,0,0,.06);
}

[data-theme="dark"] {
  --primary: #14a374;
  --primary-dark: #0e8a63;
  --accent: #f4a261;
  --accent-dark: #e8914e;
  --bg: #0f1714;
  --text: #e8f0ed;
  --muted: #8fa39d;
  --card: #1a2622;
  --border: #2a3a34;
  --danger: #ef6b6b;
  --warn: #f0a860;
  --header-bg: #131e1a;
  --shadow: rgba(0,0,0,.3);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--text); line-height: 1.5; display: flex; flex-direction: column; min-height: 100vh; transition: background .3s, color .3s; }
main { flex: 1; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
a { color: inherit; }

/* ============================================
   HEADER
   ============================================ */
header { 
  background: var(--header-bg); 
  border-bottom: 1px solid var(--border); 
  position: sticky; 
  top: 0; 
  z-index: 50; 
  transition: background .3s;
}
.nav { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  height: 64px;
  gap: 12px; 
  max-width: 100%;
}
.logo { 
  font-weight: 800; 
  font-size: 1.2rem; 
  color: var(--primary); 
  letter-spacing: -.5px; 
  text-decoration: none; 
  white-space: nowrap; 
  flex-shrink: 0;
}
.logo span { color: var(--accent); }

.nav-links { 
  display: flex; 
  gap: 10px; 
  align-items: center; 
  flex-wrap: nowrap;
  padding: 4px 0;
  min-width: 0; 
}

.nav-link-item {
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  padding: 4px 0;
}
.nav-link-item:hover { color: var(--primary); }
.nav-link-item img {
  width: 16px; 
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-right-group {
  display: flex;
  align-items: center;
  gap: 6px; 
  flex-shrink: 1; 
  margin-left: 6px; 
  border-left: 1px solid var(--border);
  padding-left: 8px; 
  background: var(--header-bg);
  z-index: 10;
  white-space: nowrap;
}

.nav-user { 
  display: flex; 
  align-items: center; 
  gap: 4px; 
  font-size: 0.75rem; 
  color: var(--muted);
  white-space: nowrap;
}
.nav-user .who-name { 
  font-weight: 600; 
  color: var(--text); 
  max-width: 90px; 
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-user .role-badge { 
  font-size: 0.55rem; 
  padding: 2px 4px; 
  border-radius: 20px; 
  font-weight: 700; 
  text-transform: uppercase; 
}
.role-arayan { background: #e3f4ec; color: var(--primary); }
.role-veren { background: #e3edf9; color: #2a5bd7; }
.role-master { background: #fdf0e3; color: var(--warn); }
[data-theme="dark"] .role-arayan { background: #143b2f; color: #4ade80; }
[data-theme="dark"] .role-veren { background: #1e3a5f; color: #60a5fa; }
[data-theme="dark"] .role-master { background: #4a3423; color: #fbbf24; }

.nav-right-group .btn {
  padding: 6px 10px;
  font-size: 0.75rem;
  white-space: nowrap;
}

/* THEME TOGGLE */
.theme-toggle { 
  background: transparent; 
  border: none; 
  width: auto; 
  height: auto; 
  padding: 2px; 
  cursor: pointer; 
  display: grid; 
  place-items: center; 
  transition: transform 0.2s; 
  flex-shrink: 0; 
}
.theme-toggle:hover { 
  transform: scale(1.1); 
}
.theme-toggle img {
  width: 32px; 
  height: 32px; 
  object-fit: contain;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn { display: inline-block; padding: 10px 18px; border-radius: 8px; font-weight: 600; font-size: .9rem; cursor: pointer; border: none; text-decoration: none; transition: .2s; font-family: inherit; text-align: center; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { opacity: .85; }
.btn-ghost { background: transparent; color: var(--muted); border: none; }
.btn-ghost:hover { color: var(--text); }
.btn-sm { padding: 7px 14px; font-size: .8rem; }
.btn-block { display: block; width: 100%; }
.nav-links .btn { padding: 7px 14px; font-size: .8rem; }

/* ============================================
   HERO & SEARCH
   ============================================ */
.hero { 
  background: linear-gradient(135deg, #0b6e4f 0%, #0e8a63 60%, #14a374 100%); 
  color: #fff; 
  padding: 64px 0 96px; 
  text-align: center; 
  position: relative;
  border-bottom-left-radius: 50% 40px; 
  border-bottom-right-radius: 50% 40px;
  box-shadow: 0 15px 30px -10px rgba(11, 110, 79, 0.3);
}
.hero h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 8px; letter-spacing: -.5px; }
.hero p { opacity: .9; margin-bottom: 32px; font-size: .95rem; }

.search-card { background: var(--card); border-radius: var(--radius); padding: 20px; box-shadow: 0 10px 30px rgba(0,0,0,.15); text-align: left; color: var(--text); border-top: 4px solid var(--accent); }
.search-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 14px; }
.field label { display: block; font-size: .75rem; font-weight: 600; color: var(--muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .3px; }
.field input, .field select, .field textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: .9rem; background: var(--card); color: var(--text); font-family: inherit; transition: .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--primary); border-color: transparent; }
.search-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.hint { font-size: .8rem; color: var(--muted); margin-top: 8px; }

.search-actions .btn-primary {
  background: var(--accent) !important;
  color: #fff !important;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(244, 162, 97, 0.3);
}
.search-actions .btn-primary:hover {
  background: var(--accent-dark) !important;
}

/* Turuncu İpucu Kutusu & Animasyon */
.hint-box {
  border-left: 3px solid var(--accent);
  padding: 10px 12px;
  background: #fffaf0;
  border-radius: 6px;
  font-size: .85rem;
  color: var(--muted);
  margin-top: 12px;
  height: 40px;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
}
[data-theme="dark"] .hint-box { background: #2a2018; }

.hint-text {
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  display: inline-block;
  width: 100%;
}
.hint-text.slide-down { opacity: 1; transform: translateY(0); }
.hint-text.slide-up { opacity: 0; transform: translateY(-20px); }

/* ============================================
   STATS (Turuncu Rakamlar)
   ============================================ */
.stats { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); 
  gap: 16px; 
  margin: -40px auto 48px;
  position: relative; 
  z-index: 2; 
}
.stat { background: var(--card); border-radius: var(--radius); padding: 20px 16px; text-align: center; box-shadow: 0 4px 14px var(--shadow); border: 1px solid var(--border); transition: .2s; }
.stat .num { font-size: 1.6rem; font-weight: 800; color: var(--accent); }
.stat .lbl { font-size: .8rem; color: var(--muted); }

/* ============================================
   SECTIONS
   ============================================ */
.section { margin-bottom: 56px; }
.section-head { display: flex !important; align-items: center !important; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; padding: 0 !important; }
.section-head h2 { display: flex !important; align-items: center !important; gap: 10px; margin: 0 !important; padding: 0 !important; line-height: 1.2; font-size: 1.35rem; }
.section-head h2 img { width: 32px !important; height: 32px !important; object-fit: contain; flex-shrink: 0; display: block; margin: 0 !important; }
.section-head a { color: var(--primary); font-size: .85rem; font-weight: 600; text-decoration: none; }

.bg-alt { background: #e8f3ee; border-radius: var(--radius); margin-bottom: 24px; border: 1px solid #cfe3d9; padding: 0; }
[data-theme="dark"] .bg-alt { background: #162a23; border: 1px solid #2a3a34; }
.bg-alt .section-head { padding: 24px 16px 0 16px !important; margin: 0 !important; }
.bg-alt .jobs-grid, .bg-alt .table-wrap, .bg-alt .testi-grid { padding: 0 16px 24px 16px; }
.section:not(.bg-alt) .section-head { padding-left: 16px !important; }
.section:not(.bg-alt) .table-wrap, .section:not(.bg-alt) .testi-grid, .section:not(.bg-alt) #blogContainer, .section:not(.bg-alt) .marquee-wrap { padding-left: 16px; padding-right: 16px; }

/* ============================================
   MARQUEE (Kayan Logolar)
   ============================================ */
.marquee-wrap { overflow: hidden; position: relative; background: transparent; border: none; padding: 20px 0; width: 100%; }
.marquee-wrap::before, .marquee-wrap::after { content: ""; position: absolute; top: 0; bottom: 0; width: 60px; z-index: 2; pointer-events: none; }
.marquee-wrap::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee-wrap::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.marquee { display: flex; gap: 24px; width: max-content; animation: scroll 15s linear infinite; will-change: transform; }
.marquee-wrap:hover .marquee { animation-play-state: paused; }

.brand-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; width: 180px; flex-shrink: 0; box-shadow: 0 2px 8px var(--shadow); transition: .2s; }
.brand-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px var(--shadow); border-color: var(--primary); }
.brand-logo { width: 60px; height: 60px; border-radius: 50%; background: var(--bg); display: flex; align-items: center; justify-content: center; overflow: hidden; border: 2px solid var(--border); }
.brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.brand-logo span { font-size: 1.5rem; font-weight: 800; color: var(--primary); }
.brand-name { font-size: 0.85rem; font-weight: 700; color: var(--text); text-align: center; white-space: nowrap; max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================
   JOBS
   ============================================ */
.jobs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.job-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 10px; transition: .2s; box-shadow: 0 2px 8px var(--shadow); }
.job-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px var(--shadow); border-color: var(--primary); }
.job-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.job-title { font-size: 1rem; font-weight: 700; color: var(--text); }
.job-company { font-size: .82rem; color: var(--muted); }

.badge { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; padding: 4px 8px; border-radius: 20px; white-space: nowrap; }
.badge-green { background: #0b6e4f !important; color: #fff !important; border: none; }
.badge-orange { background: #f4a261 !important; color: #fff !important; border: none; }
[data-theme="dark"] .badge-green { background: #14a374 !important; }
[data-theme="dark"] .badge-orange { background: #f4a261 !important; }

.job-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.chip { font-size: .72rem; color: var(--muted); background: var(--bg); border: 1px solid var(--border); padding: 3px 9px; border-radius: 20px; }
.job-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); padding-top: 10px; margin-top: 4px; }
.job-date { font-size: .72rem; color: var(--muted); }

/* ============================================
   EMPTY
   ============================================ */
.empty { text-align: center; padding: 48px 16px; color: var(--muted); background: var(--card); border: 1px dashed var(--border); border-radius: var(--radius); }
.empty .big { font-size: 2rem; margin-bottom: 8px; }

/* ============================================
   TESTIMONIALS
   ============================================ */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.testi { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.testi p { font-size: .88rem; color: var(--text); }
.testi .who { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; flex-shrink: 0; }
.who .name { font-weight: 600; font-size: .85rem; }
.who .date { font-size: .72rem; color: var(--muted); }

/* ============================================
   FORMS
   ============================================ */
.form-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; max-width: 720px; margin: 32px auto; }
.form-card h2 { margin-bottom: 6px; }
.form-card .sub { color: var(--muted); font-size: .9rem; margin-bottom: 20px; }
.form-row { margin-bottom: 16px; }
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }

/* ============================================
   ALERTS
   ============================================ */
.alert { padding: 12px 16px; border-radius: 8px; font-size: .88rem; margin-bottom: 16px; display: none; }
.alert.show { display: block; }
.alert-success { background: #e3f4ec; color: var(--primary-dark); }
.alert-error { background: #fde8e8; color: var(--danger); }
[data-theme="dark"] .alert-success { background: #143b2f; color: #4ade80; }
[data-theme="dark"] .alert-error { background: #3a1a1a; color: #ef6b6b; }

/* ============================================
   ROLE CHOICE (Giriş / Kayıt)
   ============================================ */
.role-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.role-card { border: 2px solid var(--border); border-radius: var(--radius); padding: 22px 18px; text-align: center; cursor: pointer; transition: .2s; background: var(--card); color: var(--text); }
.role-card:hover { border-color: var(--primary); }
.role-card.active { border-color: var(--primary); background: var(--bg); box-shadow: 0 0 0 3px rgba(11,110,79,.1); }
.role-card .icon { font-size: 2rem; margin-bottom: 8px; }
.role-card .title { font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.role-card .desc { font-size: .8rem; color: var(--muted); }

/* ============================================
   AUTH TABS
   ============================================ */
.auth-tabs { display: flex; gap: 0; margin-bottom: 24px; border-bottom: 2px solid var(--border); }
.auth-tabs a { flex: 1; padding: 12px; text-align: center; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .9rem; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.auth-tabs a.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ============================================
   DETAIL
   ============================================ */
.detail-wrap { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; margin: 32px 0 56px; }
.detail-main, .detail-side { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.detail-main h1 { font-size: 1.5rem; margin-bottom: 4px; }
.detail-main .company { color: var(--muted); margin-bottom: 16px; }
.detail-main .desc { font-size: .92rem; color: var(--text); white-space: pre-wrap; margin-top: 16px; }
.detail-side h3 { font-size: .95rem; margin-bottom: 12px; }
.detail-side .kv { display: flex; justify-content: space-between; font-size: .85rem; padding: 8px 0; border-bottom: 1px solid var(--border); }
.detail-side .kv:last-child { border-bottom: none; }
.detail-side .kv .k { color: var(--muted); }

/* ============================================
   FOOTER
   ============================================ */
footer { background: #143b2f; color: #c6d6d1; padding: 36px 0; font-size: .85rem; }
[data-theme="dark"] footer { background: #0a1f18; }
footer .foot-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
footer .logo { color: #fff; }
footer a { color: #c6d6d1; text-decoration: none; }
footer a:hover { color: #fff; }
footer ul li { list-style-type: none; }

/* ============================================
   TABLES
   ============================================ */
.table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; }
.table th, .table td { padding: 12px; text-align: left; font-size: .85rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table th { background: var(--bg); color: var(--muted); text-transform: uppercase; font-size: .72rem; letter-spacing: .3px; }
.table tr:last-child td { border-bottom: none; }
.table tr:hover { background: var(--bg); }
.table-wrap { overflow-x: auto; border-radius: var(--radius); }

/* ============================================
   PROFILE
   ============================================ */
.profile-head { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin: 32px 0 24px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.profile-head .avatar-lg { width: 72px; height: 72px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.4rem; flex-shrink: 0; }
.profile-head .info h1 { font-size: 1.3rem; margin-bottom: 4px; }
.profile-head .info .meta { font-size: .85rem; color: var(--muted); }
.profile-head .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.tabs-nav { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 24px; flex-wrap: wrap; }
.tabs-nav button { background: transparent; border: none; padding: 12px 16px; font-weight: 600; font-size: .9rem; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; font-family: inherit; }
.tabs-nav button.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* STAT MINI */
.mini-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 24px; }
.mini-stats .stat { margin: 0; padding: 16px; }
.mini-stats .stat .num { font-size: 1.3rem; }

/* ============================================
   MASTER
   ============================================ */
.master-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin: 24px 0; flex-wrap: wrap; }
.master-tabs button { background: transparent; border: none; padding: 12px 16px; font-weight: 600; font-size: .9rem; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; font-family: inherit; }
.master-tabs button.active { color: var(--warn); border-bottom-color: var(--warn); }

/* ============================================
   PROFİL LOGOSU
   ============================================ */
.profile-logo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); background: var(--card); flex-shrink: 0; }
.profile-head .avatar-lg.has-logo { background: transparent; overflow: hidden; padding: 0; }
.profile-head .avatar-lg.has-logo img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================
   MODAL (POPUP)
   ============================================ */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.6); z-index: 999; display: none; align-items: center; justify-content: center; }
.modal-overlay.active { display: flex; }
.modal-content { background: var(--card); color: var(--text); border-radius: var(--radius); width: 90%; max-width: 600px; max-height: 90vh; overflow-y: auto; padding: 24px; position: relative; box-shadow: 0 10px 30px var(--shadow); }
.modal-close { position: absolute; top: 16px; right: 16px; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--muted); }
.modal-close:hover { color: var(--danger); }
.modal-header { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.modal-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 1.5rem; font-weight: 700; }
.modal-title { font-size: 1.2rem; font-weight: 700; }
.modal-subtitle { font-size: .85rem; color: var(--muted); }
.modal-section { margin-bottom: 16px; }
.modal-section h4 { font-size: .85rem; color: var(--muted); text-transform: uppercase; margin-bottom: 8px; border-bottom: 1px solid var(--border); padding-bottom: 4px; }
.modal-row { display: flex; justify-content: space-between; font-size: .9rem; padding: 6px 0; border-bottom: 1px dashed var(--border); }
.modal-row:last-child { border-bottom: none; }
.modal-row strong { color: var(--text); }
.modal-row span { color: var(--muted); text-align: right; }

/* ============================================
   FLOATING SOCIAL DOCK
   ============================================ */
.social-dock { 
  position: fixed; 
  bottom: 30px; 
  right: 30px; 
  z-index: 9999; 
  display: flex; 
  flex-direction: column-reverse; 
  align-items: center; 
  gap: 12px; 
}
.social-dock .dock-btn { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff; text-decoration: none; box-shadow: 0 4px 12px rgba(0,0,0,0.3); transition: all 0.3s ease; font-size: 1.4rem; cursor: pointer; border: none; }
.social-dock .dock-btn:hover { transform: scale(1.1); }
.social-dock .main-btn { background-color: #25d366; z-index: 2; }
.social-dock .main-btn.open { transform: rotate(45deg); background-color: #d94f4f; }
.social-dock .sub-btn { opacity: 0; visibility: hidden; transform: translateY(20px); }
.social-dock.active .sub-btn { opacity: 1; visibility: visible; transform: translateY(0); }
.social-dock.active .sub-btn:nth-child(1) { transition-delay: 0.1s; }
.social-dock.active .sub-btn:nth-child(2) { transition-delay: 0.2s; }
.social-dock.active .sub-btn:nth-child(3) { transition-delay: 0.3s; }
.social-dock .btn-wa { background-color: #25d366; }
.social-dock .btn-tel { background-color: #0b6e4f; }
.social-dock .btn-ig { background-color: #e1306c; }
.social-dock .btn-li { background-color: #0077b5; }

/* ============================================
   YUKARI ÇIK (SCROLL TO TOP) BUTONU (DÜZELTİLDİ)
   ============================================ */
.scroll-to-top {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 55px; 
  height: 55px;
  background: #ffffff; 
  border: 2px solid var(--primary); 
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 15px rgba(11, 110, 79, 0.4); 
  z-index: 10000; /* Z-index en üste çekildi */
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  padding: 4px;
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ÇAKIŞMA ÖNLEYİCİ: Sosyal medya menüsü açıldığında yukarı kaydır */
.scroll-to-top.show.shifted {
  bottom: 220px; 
}

.scroll-to-top:hover {
  background: var(--bg);
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 6px 20px rgba(11, 110, 79, 0.6);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes pulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
  100% { opacity: 1; transform: scale(1); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 720px) {
  .nav-links a:not(.btn) { display: none; }
  .hero { padding: 40px 0 64px; }
  .detail-wrap { grid-template-columns: 1fr; }
  .form-row.two { grid-template-columns: 1fr; }
  .role-choice { grid-template-columns: 1fr; }
  .profile-head { flex-direction: column; text-align: center; }
  .profile-head .actions { margin-left: 0; justify-content: center; }
}

/* ============================================
   EFEKTLER (Pulse, Skeleton, Dropdown)
   ============================================ */
@keyframes statGlow {
  0% { text-shadow: 0 0 0 rgba(244, 162, 97, 0); transform: scale(1); }
  50% { text-shadow: 0 0 20px rgba(244, 162, 97, 0.8); transform: scale(1.05); color: var(--accent); }
  100% { text-shadow: 0 0 0 rgba(244, 162, 97, 0); transform: scale(1); }
}
.stat-glow {
  animation: statGlow 1.2s ease-out 1;
}

.skeleton-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 180px;
  overflow: hidden;
  position: relative;
}
.skeleton-line {
  background: var(--border);
  border-radius: 4px;
  height: 14px;
  position: relative;
  overflow: hidden;
}
.skeleton-line.title { width: 60%; height: 20px; }
.skeleton-line.sub { width: 40%; height: 14px; }
.skeleton-line.chip { width: 30%; height: 24px; border-radius: 20px; }
.skeleton-line.footer { width: 100%; height: 32px; margin-top: auto; }
.skeleton-line::after {
  content: "";
  position: absolute;
  top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shimmer 1.5s infinite;
}
[data-theme="dark"] .skeleton-line::after {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
}
@keyframes shimmer {
  100% { left: 100%; }
}

/* ============================================
   BİLDİRİM ZİLİ VE DROPDOWN MENÜ (DÜZELTİLDİ)
   ============================================ */
.notification-wrapper {
  position: relative;
  display: inline-block;
  z-index: 100;
}
.notification-btn {
  background: transparent;
  border: 1px solid var(--border);
  width: 38px; height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: grid; place-items: center;
  font-size: 1.1rem;
  color: var(--text);
  position: relative;
  transition: .2s;
}
.notification-btn:hover { background: var(--bg); border-color: var(--primary); }
.notification-badge {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--danger);
  color: #fff;
  font-size: 0.65rem;
  font-weight: bold;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid var(--header-bg);
}

/* Dropdown Temel Ayarları */
.notification-dropdown {
  position: absolute;
  top: 48px; right: 0;
  width: 320px;
  max-width: 90vw;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  z-index: 9999;
  
  display: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.25s ease;
  overflow: hidden;
}

.notification-dropdown.active {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.notification-header {
  padding: 12px 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex; justify-content: space-between; align-items: center;
}
.notification-header span#closeNotif {
  user-select: none;
  cursor: pointer;
}

.notification-list {
  max-height: 320px;
  overflow-y: auto;
  overflow-x: hidden;
}

.notification-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text);
  transition: background 0.2s;
  display: flex; 
  gap: 10px; 
  align-items: flex-start;
  width: 100%;
  box-sizing: border-box;
}

.notification-item:hover { background: var(--bg); }
.notification-item:last-child { border-bottom: none; }

.notification-item .icon { 
  font-size: 1.2rem; 
  flex-shrink: 0;
}

.notification-item .text { 
  flex: 1; 
  line-height: 1.4; 
  min-width: 0;
  word-wrap: break-word;
  white-space: normal;
}

.notification-item .time { 
  font-size: 0.7rem; 
  color: var(--muted); 
  margin-top: 4px; 
  display: block; 
}

/* ============================================
   FİLTRE ETİKETLERİ (CHIPS) VE KAYDET BUTONU
   ============================================ */
.filter-chips-container {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg);
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  user-select: none;
}

.filter-chip span {
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.2s;
}

.filter-chip span:hover {
  color: var(--danger);
}

.btn-save-job {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
  color: var(--muted);
}

.btn-save-job:hover {
  border-color: var(--accent);
  background: var(--bg);
  transform: scale(1.05);
}

#saveJobDetailBtn {
  color: var(--text);
}
#saveJobDetailBtn[data-saved="true"] {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============================================
   PROGRESS BAR & YENİ ETİKETİ
   ============================================ */
.progress-container {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 2px 8px var(--shadow);
}
.progress-info {
  flex-shrink: 0;
}
.progress-info h4 {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 4px;
}
.progress-info p {
  font-size: 0.8rem;
  color: var(--muted);
}
.progress-bar-wrapper {
  flex: 1;
  height: 10px;
  background: var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #14a374, #0b6e4f);
  border-radius: 10px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.progress-percent {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--primary);
  flex-shrink: 0;
}

@keyframes newGlow {
  0% { box-shadow: 0 0 0 0 rgba(20, 163, 116, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(20, 163, 116, 0); }
  100% { box-shadow: 0 0 0 0 rgba(20, 163, 116, 0); }
}
.badge-new {
  background: #14a374 !important;
  color: #fff !important;
  font-size: 0.65rem;
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  animation: newGlow 2s infinite;
  margin-left: 6px;
  vertical-align: middle;
  display: inline-block;
}

.notification-btn {
  color: var(--text);
}

.notification-btn.has-unread {
  color: var(--primary); 
  animation: ring 1.5s ease-in-out infinite; 
}

@keyframes ring {
  0% { transform: rotate(0); }
  10% { transform: rotate(15deg); }
  20% { transform: rotate(-10deg); }
  30% { transform: rotate(5deg); }
  40% { transform: rotate(-5deg); }
  50% { transform: rotate(0); }
  100% { transform: rotate(0); }
}

.notification-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background-color: var(--danger);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid var(--header-bg); 
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

#reportBtn:hover {
  background: #fde8e8 !important;
  color: #d94f4f !important;
  border-radius: 8px;
}

#blogFormCard {
  transition: all 0.3s ease;
}
#editBlogId:not([value=""]) ~ div ~ div ~ div h2::before,
#editBlogId[value]:not([value=""]) ~ div h2::before {
  content: "✏️ ";
}

/* ============================================
   FİRMA DEĞERLENDİRME / YILDIZ SİSTEMİ
   ============================================ */
.company-rating-inline {
  display: inline-block;
  background: #fffaf0;
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: .8rem;
  font-weight: 700;
  margin-left: 6px;
  border: 1px solid #f4d8a8;
}

.company-rating-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, #fffaf0, #fdf0e3);
  padding: 20px;
  border-radius: var(--radius);
  border: 2px solid var(--accent);
  margin-bottom: 16px;
}

.rating-big-score {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.rating-stars-display {
  display: flex;
  gap: 2px;
}

.rating-stars-display .star {
  font-size: 1.5rem;
  color: #ccc;
}

.rating-stars-display .star.filled {
  color: #f4a261;
}

/* ============================================
   SOSYAL MEDYA PAYLAŞIM BUTONLARI
   ============================================ */
.share-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.share-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.share-wa { background: #25d366; }
.share-fb { background: #1877f2; }
.share-li { background: #0077b5; }
.share-tw { background: #1a1a1a; }
.share-copy { background: var(--primary); }

/* ============================================
   İŞ ALARMLARIM
   ============================================ */
.saved-search-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 12px;
  gap: 12px;
  flex-wrap: wrap;
  transition: all 0.2s;
}

.saved-search-item:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px var(--shadow);
}

/* ============================================
   YARDIM / SSS SAYFASI
   ============================================ */
.faq-container {
  max-width: 800px;
  margin: 0 auto 60px;
}

.faq-search {
  margin-bottom: 32px;
}

.faq-search input {
  width: 100%;
  padding: 14px 20px;
  font-size: 1rem;
  border: 2px solid var(--border);
  border-radius: 30px;
  background: var(--card);
  color: var(--text);
  font-family: inherit;
  transition: all 0.2s;
}

.faq-search input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(11, 110, 79, 0.1);
}

.faq-category {
  margin-bottom: 32px;
}

.faq-category h2 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.2s;
}

.faq-item:hover {
  border-color: var(--primary);
}

.faq-item.open {
  border-color: var(--primary);
  box-shadow: 0 4px 12px var(--shadow);
}

.faq-question {
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--text);
  user-select: none;
  transition: background 0.2s;
}

.faq-question:hover {
  background: var(--bg);
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg);
  color: var(--primary);
  font-weight: 700;
  transition: transform 0.3s;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--primary);
  color: #fff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 0 20px 16px 20px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.faq-no-result {
  text-align: center;
  padding: 48px 16px;
  color: var(--muted);
}

.faq-no-result .big {
  font-size: 3rem;
  margin-bottom: 12px;
}

/* ============================================
   404 / 500 HATA SAYFALARI
   ============================================ */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

.error-content {
  max-width: 600px;
}

.error-code {
  font-size: 8rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
}

.error-title {
  font-size: 1.8rem;
  color: var(--text);
  margin-bottom: 12px;
}

.error-message {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 32px;
  line-height: 1.6;
}

.error-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .error-code { font-size: 5rem; }
  .error-title { font-size: 1.4rem; }
  .saved-search-item { flex-direction: column; align-items: stretch; }
}