/* =====================================================
   CMS Frontend Custom CSS
   Tailwind CDN ile birlikte kullanılır.
   @apply direktifleri burada saf CSS'e çevrilmiştir.
   ===================================================== */

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--primary);
  color: var(--bg-deep);
  font-weight: 700;
  padding: 1rem 2rem;
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(45, 212, 191, 0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  background-color: #f1f5f9;
  color: #334155;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-secondary:hover { background-color: #e2e8f0; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 700;
  border-radius: var(--radius-lg);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  background: transparent;
  cursor: pointer;
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--bg-deep);
  transform: translateY(-2px);
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  background-color: #dc2626;
  color: #ffffff;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-danger:hover { background-color: #b91c1c; }

/* ---- Form inputs ---- */
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  outline: none;
  transition: all 0.2s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(45,212,191,0.2);
}

/* ---- Cards ---- */
.card {
  background: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border: 1px solid #e2e8f0;
  padding: 1.5rem;
}

/* ---- Badges ---- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-green { background-color: #d1fae5; color: #065f46; }
.badge-red   { background-color: #fee2e2; color: #991b1b; }
.badge-blue  { background-color: #dbeafe; color: #1e40af; }
.badge-gray  { background-color: #f1f5f9; color: #475569; }

/* ---- Glass Card ---- */
.glass-card {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.glass-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(45,212,191,0.2);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* ---- Serif ---- */
.serif, .serif-style {
  font-family: var(--font-heading, 'Inter', sans-serif);
}

/* ---- Turquoise gradient ---- */
.turquoise-text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, #6dbdbf 50%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
}

/* ---- Prose Custom ---- */
.prose-custom h2 { color: var(--bg-deep); font-family: var(--font-heading); font-size: 1.875rem; margin-top: 3rem; margin-bottom: 1.5rem; }
.prose-custom h3 { color: var(--bg-deep); font-family: var(--font-heading); font-size: 1.5rem; margin-top: 2rem; margin-bottom: 1rem; }
.prose-custom p  { color: #6b7280; line-height: 1.9; margin-bottom: 1.5rem; }
.prose-custom ul { list-style: none; padding: 0; }
.prose-custom li { padding-left: 1.5rem; position: relative; margin-bottom: 0.75rem; color: #6b7280; }
.prose-custom li::before { content: '→'; position: absolute; left: 0; color: var(--primary); font-weight: 700; }
.prose-custom strong { color: var(--bg-deep); font-weight: 700; }
.prose-custom blockquote { border-left: 4px solid var(--primary); padding-left: 1.5rem; font-style: italic; color: #6b7280; }

/* ---- Line Clamp ---- */
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-4 { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* ---- Frontend Form Overrides ---- */
.frontend-form input,
.frontend-form textarea,
.frontend-form select,
section input:not([type="hidden"]):not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
section textarea,
section select {
  background-color: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-main);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
  width: 100%;
}

.frontend-form input:focus,
.frontend-form textarea:focus,
.frontend-form select:focus,
section input:not([type="hidden"]):not([type="submit"]):not([type="checkbox"]):not([type="radio"]):focus,
section textarea:focus,
section select:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 1px var(--primary);
}

/* ---- Utility Overrides ---- */
.bg-new2 { background-color: #c0c7d2; }
.bg-new3 { background-color: #5b6779; }
.data-row { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.data-row:last-child { border-bottom: none; }
.transition-all-300 { transition: all 0.3s ease; }
