/* Pazaryeri - Ana CSS Dosyası */
/* Renk Paleti: #a3c1e0, #6a9bcf, #3b71b4, #1b4f8a */

:root {
  --primary-color: #3b71b4;
  --primary-light: #6a9bcf;
  --primary-lighter: #a3c1e0;
  --primary-dark: #1b4f8a;
  --text-color: #2c3e50;
  --text-light: #6c757d;
  --bg-light: #f8f9fa;
  --white: #ffffff;
  --border-color: #e9ecef;
  --shadow: 0 2px 10px rgba(59, 113, 180, 0.1);
  --shadow-hover: 0 5px 20px rgba(59, 113, 180, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-light);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.4;
  color: var(--primary-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

/* Buttons */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
}

.btn-light-primary {
  background-color: var(--primary-lighter);
  border-color: var(--primary-lighter);
  color: var(--primary-dark);
}

.btn-light-primary:hover {
  background-color: var(--primary-light);
  border-color: var(--primary-light);
  color: var(--white);
}

/* Cards */
.card {
  border: none;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border-radius: 12px;
}

.card-header {
  background-color: var(--white);
  border-bottom: 1px solid var(--border-color);
  font-weight: 600;
  color: var(--primary-dark);
}

/* Navigation */
.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-dark) !important;
}

.nav-link {
  color: var(--text-color) !important;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-color) !important;
}

.nav-link.active {
  color: var(--primary-color) !important;
}

/* Forms */
.form-control:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 0.2rem rgba(106, 155, 207, 0.25);
}

.form-select:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 0.2rem rgba(106, 155, 207, 0.25);
}

/* Badge */
.badge-primary {
  background-color: var(--primary-color);
  color: var(--white);
}

.badge-light-primary {
  background-color: var(--primary-lighter);
  color: var(--primary-dark);
}

/* Utilities */
.text-primary-custom {
  color: var(--primary-color) !important;
}

.bg-primary-light {
  background-color: var(--primary-lighter) !important;
}

.bg-primary-lighter {
  background-color: #f1f6fc !important;
}

.border-primary-light {
  border-color: var(--primary-light) !important;
}

/* Custom Animations */
.fade-in {
  animation: fadeIn 0.6s ease-in;
}

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

.slide-in {
  animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Responsive */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }
  
  .card {
    margin-bottom: 1rem;
  }
}

/* HTMX Loading States */
.htmx-indicator {
  opacity: 0;
  transition: opacity 500ms ease-in;
}

.htmx-request .htmx-indicator {
  opacity: 1;
}

.htmx-request.htmx-indicator {
  opacity: 1;
}

/* Loading spinner */
.spinner-custom {
  width: 2rem;
  height: 2rem;
  border: 3px solid var(--primary-lighter);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}