/* ============================================
   TASKDOOR DESIGN SYSTEM
   Tüm component'ler bu dosyayı kullanır
   ============================================ */

/* --- TOKENS --- */
:root {
  --td-primary: #16a34a;
  --td-primary-dark: #15803d;
  --td-primary-light: #dcfce7;
  --td-primary-fg: #ffffff;
  --td-bg: #ffffff;
  --td-card: #f8fafc;
  --td-border: rgba(0,0,0,0.08);
  --td-text: #0f172a;
  --td-muted: #64748b;
  --td-secondary: #f1f5f9;
  --td-radius: 12px;
  --td-radius-lg: 16px;
  --td-shadow: 0 4px 24px rgba(0,0,0,0.08);
  --td-font: 'Inter', 'Nunito', system-ui, sans-serif;
}
/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--td-font); background: var(--td-bg); color: var(--td-text); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* --- LAYOUT --- */
.td-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.td-section {
  padding: 5rem 0;
}
.td-section--light { background: var(--td-bg); }
.td-section--card  { background: var(--td-card); }

/* --- GRID --- */
.td-grid { display: grid; gap: 1.5rem; }
.td-grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.td-grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* --- SECTION HEADER --- */
.td-section__header {
  text-align: center;
  margin-bottom: 3rem;
}
.td-section__header--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  text-align: left;
  flex-wrap: wrap;
  gap: 1rem;
}
.td-section__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.td-section__sub {
  color: var(--td-muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1rem;
}

/* --- HERO --- */
.td-hero {
  position: relative;
  padding: 5rem 0 4rem;
  overflow: hidden;
  background: var(--td-bg);
}
.td-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.td-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--td-bg) 50%, transparent);
}
.td-hero__blur {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
}
.td-hero__blur--left  { width: 400px; height: 400px; top: -100px; left: -100px; background: var(--td-primary); }
.td-hero__blur--right { width: 500px; height: 500px; bottom: -100px; right: -100px; background: var(--td-primary); }

.td-hero__inner { position: relative; text-align: center; }

.td-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--td-border);
  background: var(--td-secondary);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--td-muted);
  margin-bottom: 1.5rem;
}
.td-badge__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--td-primary);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }

.td-text-primary { color: var(--td-primary); }

.td-hero__title {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.td-hero__sub {
  color: var(--td-muted);
  font-size: 1.1rem;
  max-width: 580px;
  margin: 0 auto 2.5rem;
}

/* --- SEARCH --- */
.td-search {
  display: flex;
  gap: 0.75rem;
  background: var(--td-card);
  border: 1px solid var(--td-border);
  border-radius: var(--td-radius-lg);
  padding: 0.75rem;
  max-width: 700px;
  margin: 0 auto 1.5rem;
  flex-wrap: wrap;
}
.td-search__field {
  flex: 1;
  min-width: 180px;
  position: relative;
}
.td-search__icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--td-muted);
  width: 18px; height: 18px;
}
.td-search__input {
  width: 100%;
  height: 48px;
  background: var(--td-secondary);
  border: none;
  border-radius: 10px;
  padding: 0 1rem 0 2.75rem;
  color: var(--td-text);
  font-size: 0.9rem;
  font-family: var(--td-font);
  outline: none;
  transition: box-shadow 0.2s;
}
.td-search__input::placeholder { color: var(--td-muted); }
.td-search__input:focus { box-shadow: 0 0 0 2px var(--td-primary); }

/* --- BUTTONS --- */
.td-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1.5rem;
  height: 48px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
  white-space: nowrap;
  font-family: var(--td-font);
}
.td-btn--primary  { background: var(--td-primary); color: var(--td-primary-fg); }
.td-btn--primary:hover { background: var(--td-primary-dark); }
.td-btn--secondary { background: var(--td-text); color: var(--td-bg); }
.td-btn--secondary:hover { opacity: 0.9; }
.td-btn--outline { border-color: var(--td-border); color: var(--td-text); background: transparent; }
.td-btn--outline:hover { border-color: var(--td-primary); color: var(--td-primary); }
.td-btn--ghost { border-color: rgba(255,255,255,0.3); color: #fff; background: transparent; }
.td-btn--ghost:hover { background: rgba(255,255,255,0.1); }
.td-btn--lg { height: 52px; padding: 0 2rem; font-size: 1rem; }

/* --- TAGS --- */
.td-tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--td-border);
  background: var(--td-secondary);
  padding: 0.3rem 0.875rem;
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--td-muted);
  transition: all 0.2s;
}
.td-tag:hover { border-color: var(--td-primary); color: var(--td-text); }
.td-tag--sm { padding: 0.2rem 0.625rem; font-size: 0.75rem; border-radius: 6px; }

/* --- HERO POPULAR & STATS --- */
.td-hero__popular {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--td-muted);
  margin-bottom: 3rem;
}

.td-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  border-top: 1px solid var(--td-border);
  padding-top: 2rem;
}
.td-stats__item { text-align: center; }
.td-stats__num { font-size: 1.5rem; font-weight: 700; }
.td-stats__label { font-size: 0.8rem; color: var(--td-muted); }
.td-stats__divider { width: 1px; height: 2rem; background: var(--td-border); display: none; }
@media(min-width:640px){ .td-stats__divider { display: block; } }

/* --- CATEGORY CARD --- */
.td-card--category {
  border: 1px solid var(--td-border);
  border-radius: var(--td-radius-lg);
  background: var(--td-card);
  overflow: hidden;
  transition: all 0.2s;
  display: block;
}
.td-card--category:hover {
  border-color: var(--td-primary);
  box-shadow: 0 8px 32px rgba(124,58,237,0.12);
  transform: translateY(-2px);
}
.td-card__img {
  position: relative;
  height: 160px;
  overflow: hidden;
  background: var(--td-secondary);
}
.td-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.td-card--category:hover .td-card__img img { transform: scale(1.05); }
.td-card__img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--td-card) 0%, transparent 60%);
}
.td-card__img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: var(--td-secondary);
}
.td-card__icon { font-size: 3rem; opacity: 0.3; }
.td-card__body { padding: 1.25rem; }
.td-card__title { font-size: 1rem; font-weight: 600; margin-bottom: 0.375rem; }
.td-card__desc { font-size: 0.825rem; color: var(--td-muted); margin-bottom: 1rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.td-card__footer { display: flex; align-items: center; justify-content: space-between; }
.td-card__count { font-size: 0.8rem; color: var(--td-muted); }
.td-card__arrow { color: var(--td-muted); transition: transform 0.2s; }
.td-card--category:hover .td-card__arrow { transform: translateX(4px); color: var(--td-primary); }
.td-card--skeleton { height: 260px; background: linear-gradient(90deg, var(--td-secondary) 25%, var(--td-card) 50%, var(--td-secondary) 75%); background-size: 200%; animation: shimmer 1.5s infinite; border-radius: var(--td-radius-lg); }
@keyframes shimmer { 0%{background-position:200%} 100%{background-position:-200%} }

/* --- FEATURE CARD --- */
.td-feature {
  position: relative;
  border: 1px solid var(--td-border);
  border-radius: var(--td-radius-lg);
  background: var(--td-card);
  padding: 1.75rem;
  text-align: center;
  transition: border-color 0.2s;
}
.td-feature:hover { border-color: var(--td-primary); }
.td-feature__num {
  position: absolute;
  top: -12px; left: 1.25rem;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--td-primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.td-feature__icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--td-primary-light);
  color: var(--td-primary);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}
.td-feature__title { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.td-feature__desc { font-size: 0.825rem; color: var(--td-muted); line-height: 1.6; }

/* --- HOW IT WORKS STEPS --- */
.td-hiw { margin-top: 4rem; }
.td-hiw__title { text-align: center; font-size: 1.5rem; font-weight: 700; margin-bottom: 2rem; }
.td-hiw__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  position: relative;
}
.td-hiw__line {
  display: none;
  position: absolute;
  top: 32px; left: 0; right: 0;
  height: 1px;
  background: var(--td-border);
}
@media(min-width:768px){ .td-hiw__line { display: block; } }
.td-hiw__step { text-align: center; }
.td-hiw__num {
  position: relative;
  z-index: 1;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--td-primary);
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  border: 4px solid var(--td-bg);
}
.td-hiw__step-title { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.td-hiw__step-desc { font-size: 0.825rem; color: var(--td-muted); }

/* --- TASKER CARD --- */
.td-tasker-card {
  border: 1px solid var(--td-border);
  border-radius: var(--td-radius-lg);
  background: var(--td-bg);
  overflow: hidden;
  transition: all 0.2s;
  display: block;
}
.td-tasker-card:hover {
  border-color: var(--td-primary);
  box-shadow: 0 8px 32px rgba(124,58,237,0.12);
}
.td-tasker-card__top {
  background: var(--td-secondary);
  padding: 1.5rem;
  text-align: center;
}
.td-tasker-card__avatar {
  position: relative;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--td-card);
  margin: 0 auto 0.75rem;
  overflow: visible;
  display: flex; align-items: center; justify-content: center;
}
.td-tasker-card__avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.td-tasker-card__initials { font-size: 1.5rem; font-weight: 700; color: var(--td-muted); }
.td-tasker-card__verified {
  position: absolute;
  bottom: -2px; right: -2px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--td-primary);
  color: white;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--td-secondary);
}
.td-badge--elite {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(124,58,237,0.15);
  color: var(--td-primary);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.td-tasker-card__body { padding: 1rem; }
.td-tasker-card__name { font-size: 1rem; font-weight: 600; margin-bottom: 0.375rem; transition: color 0.2s; }
.td-tasker-card:hover .td-tasker-card__name { color: var(--td-primary); }
.td-tasker-card__location { display: flex; align-items: center; gap: 0.3rem; font-size: 0.8rem; color: var(--td-muted); margin-bottom: 0.75rem; }
.td-tasker-card__rating { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; }
.td-star { color: var(--td-primary); }
.td-tasker-card__rating-num { font-weight: 600; font-size: 0.9rem; }
.td-tasker-card__reviews { font-size: 0.8rem; color: var(--td-muted); }
.td-tasker-card__skills { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-bottom: 0.875rem; }
.td-tasker-card__footer {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--td-border);
  padding-top: 0.75rem;
}
.td-tasker-card__price { font-size: 1.1rem; font-weight: 700; }
.td-tasker-card__price small { font-size: 0.75rem; font-weight: 400; color: var(--td-muted); }
.td-tasker-card__tasks { font-size: 0.75rem; color: var(--td-muted); }
.td-tasker-card--skeleton { height: 320px; background: linear-gradient(90deg, var(--td-secondary) 25%, var(--td-card) 50%, var(--td-secondary) 75%); background-size: 200%; animation: shimmer 1.5s infinite; border-radius: var(--td-radius-lg); }

/* --- CTA --- */
.td-cta {
  background: var(--td-primary);
  border-radius: 20px;
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.td-cta__bg-circle {
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}
.td-cta__bg-circle--right { top: -100px; right: -80px; }
.td-cta__bg-circle--left { bottom: -100px; left: -80px; }
.td-cta__content { position: relative; }
.td-cta__title { font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 800; color: white; margin-bottom: 1rem; letter-spacing: -0.02em; }
.td-cta__sub { color: rgba(255,255,255,0.8); font-size: 1.05rem; max-width: 560px; margin: 0 auto 2rem; }
.td-cta__actions { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* --- RESPONSIVE --- */
@media(max-width: 768px) {
  .td-section { padding: 3rem 0; }
  .td-search { flex-direction: column; }
  .td-search .td-btn { width: 100%; justify-content: center; }
  .td-section__header--row { flex-direction: column; align-items: flex-start; }
}
