/* ============================================
   ELICARA - Ana Stil Dosyası
   Kurumsal Mavi Tema (Light)
   Beyaz + Lacivert + Bakır/Terracotta
   ============================================ */

/* ---------- Self-hosted Manrope (replaces Google Fonts Inter/Outfit) ---------- */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/manrope/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/manrope/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Font system */
  --font-body: "Manrope", "Segoe UI Variable Text", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  --font-heading: "Manrope", "Segoe UI Variable Text", "Segoe UI", ui-sans-serif, system-ui, sans-serif;

  /* Card-scale radius/shadow (product cards, account cards) */
  --radius-card-lg: 18px;
  --shadow-product-card: 0 18px 46px rgba(18, 63, 45, 0.09);
  --shadow-product-card-hover: 0 28px 68px rgba(18, 63, 45, 0.16);
  --bg-glass-chip: rgba(255, 255, 255, 0.88);
  /* Primary - Navy Blue */
  --primary: #123f2d;
  --primary-light: #1f6a49;
  --primary-dark: #0b241a;
  --primary-50: #EAF7EF;
  --primary-100: #BFE7CC;

  /* Secondary - Copper/Terracotta */
  --secondary: #D6653F;
  --secondary-light: #F09654;
  --secondary-dark: #B84B2D;
  --secondary-50: #FFF1E8;

  /* Accent */
  --accent: #F09654;
  --accent-light: #FFD166;

  /* Status Colors */
  --success: #38A169;
  --warning: #F59E0B;
  --danger: #E53E3E;

  /* Backgrounds - LIGHT THEME */
  --bg-body: #FFFDF8;
  --bg-surface: #FFF8EF;
  --bg-section: #FFF0E2;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F7FAFC;
  --bg-glass: rgba(255, 255, 255, 0.82);
  --bg-glass-strong: rgba(255, 255, 255, 0.94);
  --bg-dark: #0b241a;
  --bg-dark-surface: #123f2d;

  /* Borders */
  --border-color: #E2E8F0;
  --border-hover: #CBD5E0;
  --border-active: rgba(27, 58, 92, 0.4);

  /* Text */
  --text-primary: #1A202C;
  --text-secondary: #4A5568;
  --text-muted: #A0AEC0;
  --text-inverse: #FFFFFF;
  --text-heading: #10251b;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #123f2d, #1f6a49);
  --gradient-hero: linear-gradient(135deg, #FFF1E8 0%, #FFFDF8 48%, #EAF7EF 100%);
  --gradient-accent: linear-gradient(135deg, #D6653F, #F09654);
  --gradient-card: linear-gradient(145deg, #FFFFFF, #FFF8EF);
  --gradient-dark: linear-gradient(135deg, #0b241a, #123f2d);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.1);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 16px 44px rgba(214, 101, 63, 0.16);
  --shadow-glow: 0 0 24px rgba(240, 150, 84, 0.2);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 80px;

  /* Category Gradients */
  --cat-gradient-1: linear-gradient(135deg, #123f2d, #2bb673);
  --cat-gradient-2: linear-gradient(135deg, #D6653F, #FFD166);
  --cat-gradient-3: linear-gradient(135deg, #168b7a, #48BB78);
  --cat-gradient-4: linear-gradient(135deg, #6D4C9D, #F09654);
}

/* ---------- CSS Reset ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }

/* ---------- Custom Scrollbar ---------- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-surface); }
::-webkit-scrollbar-thumb { background: var(--primary-100); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ---------- Selection ---------- */
::selection {
  background: rgba(27, 58, 92, 0.2);
  color: var(--text-primary);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-heading);
}

h1 { font-size: 2.5rem; letter-spacing: -0.02em; }
h2 { font-size: 2rem; letter-spacing: -0.015em; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p { color: var(--text-secondary); line-height: 1.7; }

/* ---------- Layout ---------- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.section {
  padding: var(--space-4xl) 0;
  position: relative;
}

.section-alt {
  background: var(--bg-section);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: var(--space-md);
  font-family: var(--font-heading);
  color: var(--text-heading);
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto;
}

/* ---------- Grid System ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); }

/* ---------- Flex Utilities ---------- */
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }

/* ---------- Text Utilities ---------- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-accent {
  color: var(--secondary);
}

.text-accent-gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Spacing ---------- */
.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mt-4 { margin-top: var(--space-xl); }
.mt-5 { margin-top: var(--space-2xl); }
.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }
.mb-4 { margin-bottom: var(--space-xl); }
.mb-5 { margin-bottom: var(--space-2xl); }

/* ---------- Button Styles ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
  white-space: nowrap;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-inverse);
  box-shadow: 0 4px 15px rgba(27, 58, 92, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(27, 58, 92, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--text-inverse);
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--gradient-accent);
  color: var(--text-inverse);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(193, 127, 89, 0.3);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  transition: var(--transition);
  color: var(--text-secondary);
  background: transparent;
  position: relative;
}

.btn-icon:hover {
  color: var(--primary);
  background: var(--primary-50);
}

.btn-icon svg { width: 20px; height: 20px; }

/* ---------- Form Styles ---------- */
.form-group { margin-bottom: var(--space-lg); }
.form-label {
  display: block;
  margin-bottom: var(--space-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-body);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27, 58, 92, 0.1);
}

.form-input::placeholder { color: var(--text-muted); }
.form-textarea { min-height: 120px; resize: vertical; }

/* ---------- Badge Styles ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
}

.badge-sale {
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FDE68A;
}

.badge-new {
  background: var(--primary-50);
  color: var(--primary);
  border: 1px solid var(--primary-100);
}

.badge-featured {
  background: #EEF2FF;
  color: #3730A3;
  border: 1px solid #C7D2FE;
}

.badge-stock { background: #C6F6D5; color: #22543D; }
.badge-out { background: #FED7D7; color: #9B2C2C; }

/* ---------- Animation Classes ---------- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

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

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

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

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-15px) rotate(2deg); }
  66% { transform: translateY(8px) rotate(-1deg); }
}

@keyframes float2 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(27, 58, 92, 0.15); }
  50% { box-shadow: 0 0 40px rgba(27, 58, 92, 0.25); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ---------- Misc ---------- */
.hidden { display: none !important; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.w-full { width: 100%; }

.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
}

/* ---------- Responsive ---------- */
@media (max-width: 1280px) { .container { max-width: 1024px; } }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .section { padding: var(--space-3xl) 0; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  .section-title { font-size: 1.9rem; }
}

@media (max-width: 768px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.4rem; }
  .section-title { font-size: 1.5rem; }
  .container { padding: 0 16px; }
  .btn { padding: 10px 22px; font-size: 0.9rem; }
  .btn-lg { padding: 13px 24px; font-size: 0.95rem; }
  .btn-sm { padding: 7px 14px; font-size: 0.82rem; }
  .form-input { padding: 10px 14px; font-size: 0.9rem; }
}

@media (max-width: 480px) {
  .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  html { font-size: 15px; }
  .section-title { font-size: 1.3rem; }
  .container { padding: 0 14px; }
}
