/* Custom CSS Variables */
:root {
  --font-inter: 'Inter', sans-serif;
  --font-playfair: 'Playfair Display', serif;
  --color-primary: #c1121f;
  --color-primary-dark: #a00f1a;
}

/* Global merkezleme yardımcı sınıfı */
.site-container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (min-width: 1024px) {
  .site-container { 
    padding-inline: 2rem; 
  }
}

/* Line clamp utilities */
.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;
}

/* Form styles */
.form-input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-input:focus {
  border-color: #c1121f;
  box-shadow: 0 0 0 2px rgba(193, 18, 31, 0.2);
}

.form-textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  outline: none;
  resize: none;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-textarea:focus {
  border-color: #c1121f;
  box-shadow: 0 0 0 2px rgba(193, 18, 31, 0.2);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  background-color: #c1121f;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: white;
  transition: background-color 0.15s ease-in-out;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: #a00f1a;
}

.btn-primary:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(193, 18, 31, 0.5);
}

/* Typography */
.prose-custom h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.prose-custom h2,
.prose-custom h3 {
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.prose-custom h2 {
  font-size: 1.875rem;
  line-height: 1.3;
}

.prose-custom h3 {
  font-size: 1.5rem;
  line-height: 1.4;
}

.prose-custom h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.prose-custom p {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
  line-height: 1.8;
  color: #374151;
}

.prose-custom ul,
.prose-custom ol {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
  padding-left: 1.25rem;
}

.prose-custom li { 
  margin: 0.25rem 0;
  line-height: 1.7;
}

.prose-custom blockquote {
  border-left: 4px solid #c1121f;
  padding-left: 1rem;
  color: rgb(82,82,82);
  font-style: italic;
  margin: 1rem 0;
}

.prose-custom img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.prose-custom a {
  color: #c1121f;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.prose-custom a:hover {
  color: #a00f1a;
}

.prose-custom strong {
  font-weight: 600;
  color: #111827;
}

.prose-custom em {
  font-style: italic;
}

.prose-custom code {
  background-color: #f3f4f6;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-family: 'Courier New', monospace;
  color: #c1121f;
}

.prose-custom pre {
  background-color: #1f2937;
  color: #f9fafb;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1rem 0;
}

.prose-custom pre code {
  background-color: transparent;
  padding: 0;
  color: inherit;
  font-size: 0.875rem;
}

.prose-custom hr {
  border: none;
  border-top: 2px solid #e5e7eb;
  margin: 2rem 0;
}

.prose-custom table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.prose-custom th,
.prose-custom td {
  padding: 0.5rem;
  border: 1px solid #e5e7eb;
  text-align: left;
}

.prose-custom th {
  background-color: #f9fafb;
  font-weight: 600;
}

.prose-custom figure {
  margin: 1.5rem 0;
}

.prose-custom figcaption {
  font-size: 0.875rem;
  color: #6b7280;
  text-align: center;
  margin-top: 0.5rem;
}

/* Font families */
.font-inter {
  font-family: var(--font-inter);
}

.font-playfair {
  font-family: var(--font-playfair);
}

/* Custom animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInUp {
  from { 
    opacity: 0;
    transform: translateY(20px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

.animate-slide-in-up {
  animation: slideInUp 0.6s ease-out;
}

/* Hover effects */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Mobile menu styles */
#mobile-menu {
  transition: all 0.3s ease;
}

/* Header scroll effect */
.header-scrolled {
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #c1121f;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a00f1a;
}