/**
 * ================================================================
 * Örgü Otağı - Design System CSS (Artisanal Heirloom)
 * ================================================================
 * Dikiş efektli butonlar, dokuma etiketler ve el yapımı estetik.
 * ================================================================
 */

/* ================================================================
   1. GENEL DOKU & ARKA PLAN
   ================================================================ */

.texture-bg {
  background-image: 
    radial-gradient(ellipse at 20% 50%, rgba(69, 95, 136, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(46, 29, 3, 0.03) 0%, transparent 50%);
  background-color: #fbf9f5;
}

/* ================================================================
   2. DİKİŞ EFEKTLİ BUTONLAR (Stitched Buttons)
   ================================================================ */

.stitched-button {
  position: relative;
  box-shadow: 
    0 2px 4px rgba(0, 32, 69, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  letter-spacing: 0.05em;
}
.stitched-button::after {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1.5px dashed rgba(255, 255, 255, 0.35);
  border-radius: calc(0.25rem - 2px);
  pointer-events: none;
}
.stitched-button:hover {
  transform: translateY(-1px);
  box-shadow: 
    0 4px 8px rgba(0, 32, 69, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.stitched-button:active {
  transform: translateY(0);
  box-shadow: 
    0 1px 2px rgba(0, 32, 69, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.stitched-button-secondary {
  position: relative;
  box-shadow: 0 2px 4px rgba(63, 98, 127, 0.2);
  transition: all 0.3s ease;
}
.stitched-button-secondary::after {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1.5px dashed rgba(255, 255, 255, 0.3);
  border-radius: calc(0.25rem - 2px);
  pointer-events: none;
}

.stitched-button-outlined {
  position: relative;
  border: 2px dashed #002045;
  transition: all 0.3s ease;
}
.stitched-button-outlined:hover {
  background-color: #002045;
  color: white;
}

/* ================================================================
   3. DİKİŞ EFEKTLİ ÇERÇEVELER (Stitched Borders)
   ================================================================ */

.stitched-border {
  border: 2px dashed #c4c6cf;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.stitched-border-sm {
  border: 1.5px dashed #c4c6cf;
}

.stitched-border-variant {
  border: 2px dashed #c4c6cf;
}

/* ================================================================
   4. KART GÖLGELERİ
   ================================================================ */

.card-shadow {
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.06),
    0 4px 12px rgba(0, 0, 0, 0.04);
}

.card-shadow-hover {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.card-shadow-hover:hover {
  box-shadow: 
    0 4px 16px rgba(0, 32, 69, 0.12),
    0 2px 6px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

/* ================================================================
   5. GİRDİ ELEMANLARI (Stitched Inputs)
   ================================================================ */

.stitched-input {
  border: 1.5px dashed #c4c6cf;
  border-radius: 0.375rem;
  padding: 0.625rem 0.875rem;
  background-color: #fbf9f5;
  color: #1b1c1a;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}
.stitched-input:focus {
  outline: none;
  border-color: #002045;
  border-style: dashed;
  box-shadow: 0 0 0 3px rgba(0, 32, 69, 0.1);
}
.stitched-input::placeholder {
  color: #9ca3af;
}

.stitched-checkbox {
  width: 1.125rem;
  height: 1.125rem;
  border: 2px dashed #c4c6cf;
  border-radius: 0.25rem;
  background-color: #fbf9f5;
  cursor: pointer;
  accent-color: #002045;
}

/* ================================================================
   6. DOKUMA ETİKETLER (Woven Tags)
   ================================================================ */

.woven-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.625rem;
  border-radius: 0.25rem;
  border: 1px solid #002045;
  background-color: rgba(0, 32, 69, 0.06);
  color: #002045;
  background-image: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.02) 2px,
      rgba(0, 0, 0, 0.02) 4px
    );
}

.woven-tag-green {
  border-color: #15803d;
  background-color: rgba(21, 128, 61, 0.08);
  color: #14532d;
}

.woven-tag-amber {
  border-color: #b45309;
  background-color: rgba(180, 83, 9, 0.08);
  color: #78350f;
}

/* ================================================================
   7. BİLDİRİM KUTULARI (Stitched Alerts)
   ================================================================ */

.stitched-alert {
  padding: 0.875rem 1rem;
  border-radius: 0.5rem;
  border: 1.5px dashed;
  font-size: 0.875rem;
}

.stitched-alert-note {
  border-color: #3b82f6;
  background-color: rgba(59, 130, 246, 0.06);
  color: #1e3a5f;
}

.stitched-alert-tip {
  border-color: #22c55e;
  background-color: rgba(34, 197, 94, 0.06);
  color: #14532d;
}

.stitched-alert-warning {
  border-color: #f59e0b;
  background-color: rgba(245, 158, 11, 0.06);
  color: #78350f;
}

.stitched-alert-error {
  border-color: #ef4444;
  background-color: rgba(239, 68, 68, 0.06);
  color: #7f1d1d;
}

/* ================================================================
   8. ANİMASYONLAR
   ================================================================ */

@keyframes spin-yarn {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.animate-spin-yarn {
  animation: spin-yarn 8s linear infinite;
}

@keyframes heart-beat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}
.animate-heart {
  animation: heart-beat 2s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.animate-float {
  animation: float 3s ease-in-out infinite;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
  animation: fade-in 0.4s ease-out;
}

@keyframes slide-in-right {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
.animate-slide-in-right {
  animation: slide-in-right 0.3s ease-out;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(-20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.animate-toast-in {
  animation: toast-in 0.35s ease-out;
}

/* ================================================================
   9. TOAST BİLDİRİMLERİ
   ================================================================ */

#toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 400px;
}

.toast-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-radius: 0.5rem;
  border: 1.5px dashed;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  animation: toast-in 0.35s ease-out;
  cursor: pointer;
  transition: opacity 0.3s ease;
}
.toast-item:hover { opacity: 0.85; }
.toast-item.toast-success { background: #f0fdf4; border-color: #22c55e; color: #14532d; }
.toast-item.toast-error { background: #fef2f2; border-color: #ef4444; color: #7f1d1d; }
.toast-item.toast-warning { background: #fffbeb; border-color: #f59e0b; color: #78350f; }
.toast-item.toast-info { background: #eff6ff; border-color: #3b82f6; color: #1e3a5f; }

/* ================================================================
   10. KATEGORİ DROPDOWN MENÜSÜ
   ================================================================ */

.category-dropdown-menu {
  display: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.category-dropdown-group:hover .category-dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* ================================================================
   11. FOOTER LİNKLERİ
   ================================================================ */

.footer-link {
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.footer-link:hover {
  color: #002045;
  padding-left: 0.25rem;
}

/* ================================================================
   12. ÜRÜN KARTI ÇOKLU SATIR KISALTMA
   ================================================================ */

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ================================================================
   13. SAYFALAMA
   ================================================================ */

.pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s ease;
  border: 1.5px dashed transparent;
}
.pagination-link:hover {
  border-color: #002045;
  background-color: rgba(0, 32, 69, 0.05);
}
.pagination-link.active {
  background-color: #002045;
  color: white;
  border-color: #002045;
}

/* ================================================================
   14. SCROLLBAR STİLİ
   ================================================================ */

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f5f3ef; }
::-webkit-scrollbar-thumb { background: #c4c6cf; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #002045; }

/* ================================================================
   15. MOBİL UYUM & KATEGORİ KAPSÜL (PILL CHIP) STİLLERİ
   ================================================================ */

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  background-color: #fbf9f5;
  border: 1.5px dashed #c4c6cf;
  color: #002045;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.category-pill:hover, .category-pill:focus {
  background-color: #002045;
  color: #ffffff;
  border-color: #002045;
  border-style: solid;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 32, 69, 0.15);
}

.category-pill:hover .material-symbols-outlined,
.category-pill:focus .material-symbols-outlined {
  color: #ffffff !important;
}

.category-pill:active {
  transform: translateY(0);
}

