/* DOSYA: varliklar/css/tema.css */
/* Grandx Evye özel tema stilleri - Tailwind CSS eklentileri */

/* CSS Değişkenleri */
:root {
  --eviye-kirmizi: #ef4444;
  --eviye-kirmizi-koyu: #dc2626;
  --eviye-antrasit: #1e293b;
  --eviye-antrasit-acik: #334155;
  --gecis-suresi: 300ms;
  --golge-hafif: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --golge-orta: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --golge-guclu: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Karanlık mod değişkenleri */
.dark {
  --eviye-kirmizi: #f87171;
  --eviye-kirmizi-koyu: #ef4444;
  --golge-hafif: 0 1px 3px 0 rgba(0, 0, 0, 0.3), 0 1px 2px 0 rgba(0, 0, 0, 0.2);
  --golge-orta: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  --golge-guclu: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
}

/* Global reset ve temel stiller */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #1f2937;
  background-color: #f9fafb;
  transition: background-color var(--gecis-suresi) ease;
}

.dark body {
  color: #e5e7eb;
  background-color: #111827;
}

/* Tipografi iyileştirmeleri */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.5em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
  margin-bottom: 1rem;
}

a {
  color: var(--eviye-kirmizi);
  text-decoration: none;
  transition: color var(--gecis-suresi) ease;
}

a:hover {
  color: var(--eviye-kirmizi-koyu);
}

/* Buton stilleri */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--gecis-suresi) ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background-color: var(--eviye-kirmizi);
  color: white;
}

.btn-primary:hover {
  background-color: var(--eviye-kirmizi-koyu);
  transform: translateY(-1px);
  box-shadow: var(--golge-orta);
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--eviye-kirmizi);
  color: var(--eviye-kirmizi);
}

.btn-secondary:hover {
  background-color: var(--eviye-kirmizi);
  color: white;
}

/* Kart stilleri */
.kart {
  background: white;
  border-radius: 0.75rem;
  box-shadow: var(--golge-hafif);
  transition: all var(--gecis-suresi) ease;
  overflow: hidden;
}

.dark .kart {
  background: #1f2937;
}

.kart:hover {
  box-shadow: var(--golge-guclu);
  transform: translateY(-2px);
}

/* Ürün kartı özel stilleri */
.urun-karti {
  position: relative;
  background: white;
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all var(--gecis-suresi) ease;
  box-shadow: var(--golge-hafif);
}

.dark .urun-karti {
  background: #1f2937;
}

.urun-karti:hover {
  box-shadow: var(--golge-guclu);
  transform: translateY(-4px);
}

.urun-karti .gorsel-container {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
}

.urun-karti .gorsel-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--gecis-suresi) ease;
}

.urun-karti:hover .gorsel-container img {
  transform: scale(1.05);
}

/* Overlay efektleri */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--gecis-suresi) ease;
}

.overlay.active,
.urun-karti:hover .overlay {
  opacity: 1;
}

/* Form stilleri */
.form-grup {
  margin-bottom: 1.5rem;
}

.form-etiket {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #374151;
}

.dark .form-etiket {
  color: #d1d5db;
}

.form-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  background: white;
  color: #1f2937;
  transition: all var(--gecis-suresi) ease;
}

.dark .form-input {
  border-color: #4b5563;
  background: #374151;
  color: #e5e7eb;
}

.form-input:focus {
  outline: none;
  border-color: var(--eviye-kirmizi);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Loading states */
.loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.25rem;
  height: 1.25rem;
  margin: -0.625rem 0 0 -0.625rem;
  border: 2px solid currentColor;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Breadcrumb stilleri */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding: 0.75rem 1rem;
  background: white;
  border-radius: 0.5rem;
  box-shadow: var(--golge-hafif);
}

.dark .breadcrumb {
  background: #1f2937;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  color: #6b7280;
  font-size: 0.875rem;
}

.breadcrumb-item:last-child {
  color: #1f2937;
  font-weight: 500;
}

.dark .breadcrumb-item:last-child {
  color: #e5e7eb;
}

.breadcrumb-separator {
  margin: 0 0.5rem;
  color: #9ca3af;
}

/* Animasyonlar */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.5s ease-out;
}

.animate-slideInRight {
  animation: slideInRight 0.5s ease-out;
}

.animate-pulse-custom {
  animation: pulse 2s infinite;
}

/* Utility classes */
.aspect-3-4 {
  aspect-ratio: 3/4;
}

.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;
}

/* Scrollbar stilleri */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

.dark ::-webkit-scrollbar-track {
  background: #1e293b;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.dark ::-webkit-scrollbar-thumb {
  background: #475569;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.dark ::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* Focus görünürlüğü */
.focus-visible:focus {
  outline: 2px solid var(--eviye-kirmizi);
  outline-offset: 2px;
}

/* Print stilleri */
@media print {
  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
  }
  
  .no-print {
    display: none !important;
  }
}

/* Responsive tasarım yardımcıları */
@media (max-width: 640px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Accessibility iyileştirmeleri */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast modu */
@media (prefers-contrast: high) {
  .btn-primary {
    border: 2px solid currentColor;
  }
  
  .kart {
    border: 1px solid #374151;
  }
  
  .dark .kart {
    border-color: #d1d5db;
  }
}

/* Özel component stilleri */
.hero-section {
  background: linear-gradient(135deg, var(--eviye-antrasit) 0%, var(--eviye-antrasit-acik) 100%);
  color: white;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../gorseller/genel/pattern.png') repeat;
  opacity: 0.1;
  pointer-events: none;
}

.stats-counter {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--eviye-kirmizi);
  display: block;
}

.testimonial-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--golge-orta);
  position: relative;
}

.dark .testimonial-card {
  background: #1f2937;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -1rem;
  left: 2rem;
  font-size: 4rem;
  color: var(--eviye-kirmizi);
  line-height: 1;
}

/* İkon stilleri */
.ikon-kutu {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(239, 68, 68, 0.1);
  color: var(--eviye-kirmizi);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.dark .ikon-kutu {
  background: rgba(239, 68, 68, 0.2);
}

/* Galeri grid sistemi */
.galeri-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  padding: 1rem 0;
}

.galeri-item {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--gecis-suresi) ease;
}

.galeri-item:hover {
  transform: scale(1.03);
}

.galeri-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Modal stilleri */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--gecis-suresi) ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9);
  transition: transform var(--gecis-suresi) ease;
}

.dark .modal-content {
  background: #1f2937;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

/* Ürün görselleri için kare aspect ratio */
.aspect-square {
  aspect-ratio: 1 / 1;
}

/* Ürün görselleri için özel stiller */
.urun-gorsel-container {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.dark .urun-gorsel-container {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

/* Görsel thumb'lar için aktif durum */
.gorsel-thumb.active {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 1px #dc2626;
}

/* Görsel container'ları için padding */
.gorsel-thumb img,
#ana-gorsel {
  padding: 8px;
  box-sizing: border-box;
}

/* Responsive düzenlemeler */
@media (max-width: 768px) {
  .gorsel-thumb img,
  #ana-gorsel {
    padding: 4px;
  }
  
  .urun-gorsel-container {
    border-radius: 0.5rem;
  }
}

/* Hover efektleri */
.urun-gorsel-container:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.dark .urun-gorsel-container:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
