/*
Theme Name: HataMerkezi
Theme URI: https://www.hatamerkezi.com
Author: Berker HÜRDOĞAN
Author URI: https://www.hatamerkezi.com
Description: Özel B2B E-Ticaret Altyapısı - Geliştirici: Berker HÜRDOĞAN (www.hatamerkezi.com). Yüksek performanslı bayi sistemi, kurumsal sipariş mimarisi.
Version: 1.6.9
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
WC requires at least: 7.0
WC tested up to: 9.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: serkankumanda
Tags: woocommerce, dark-mode, b2b, hatamerkezi, berker-hurdogan
*/

/* ============================================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
  /* ── Arka Plan Renkleri ── */
  --bg-primary:        #121212;
  --bg-secondary:      #1E1E1E;
  --bg-card:           #252525;
  --bg-card-hover:     #2C2C2C;
  --bg-input:          #1A1A1A;
  --bg-overlay:        rgba(0, 0, 0, 0.85);
  --bg-header:         #0D0D0D;
  --bg-footer:         #0A0A0A;
  --bg-mega-menu:      #161616;

  /* ── Sarı Vurgu Renkleri ── */
  --yellow:            #FFD700;
  --yellow-hover:      #FFC200;
  --yellow-dark:       #E6C000;
  --yellow-light:      #FFE44D;
  --yellow-alpha-10:   rgba(255, 215, 0, 0.10);
  --yellow-alpha-20:   rgba(255, 215, 0, 0.20);
  --yellow-alpha-30:   rgba(255, 215, 0, 0.30);
  --yellow-glow:       0 0 16px rgba(255, 215, 0, 0.35);
  --yellow-glow-lg:    0 0 32px rgba(255, 215, 0, 0.50);

  /* ── Metin Renkleri ── */
  --text-primary:      #E0E0E0;
  --text-secondary:    #9E9E9E;
  --text-muted:        #616161;
  --text-on-yellow:    #121212;
  --text-white:        #FFFFFF;

  /* ── Sınır / Border ── */
  --border-color:      #2E2E2E;
  --border-color-hover:#FFD700;
  --border-focus:      #FFD700;

  /* ── Border Radius ── */
  --radius-sm:         4px;
  --radius-card:       6px;
  --radius-md:         8px;
  --radius-lg:         12px;
  --radius-xl:         16px;
  --radius-pill:       999px;

  /* ── Spacing ── */
  --space-xs:          4px;
  --space-sm:          8px;
  --space-md:          16px;
  --space-lg:          24px;
  --space-xl:          32px;
  --space-2xl:         48px;
  --space-3xl:         64px;

  /* ── Tipografi ── */
  --font-sans:         'Inter', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-xs:      11px;
  --font-size-sm:      13px;
  --font-size-base:    15px;
  --font-size-md:      17px;
  --font-size-lg:      20px;
  --font-size-xl:      24px;
  --font-size-2xl:     32px;
  --font-size-3xl:     48px;
  --line-height-base:  1.6;
  --line-height-tight: 1.25;
  --font-weight-regular: 400;
  --font-weight-medium:  500;
  --font-weight-semibold:600;
  --font-weight-bold:    700;
  --font-weight-black:   900;

  /* ── Geçiş / Transition ── */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;

  /* ── Gölgeler ── */
  --shadow-sm:         0 1px 3px rgba(0,0,0,0.5);
  --shadow-md:         0 4px 12px rgba(0,0,0,0.6);
  --shadow-lg:         0 8px 32px rgba(0,0,0,0.7);
  --shadow-card-hover: 0 8px 24px rgba(0,0,0,0.6), var(--yellow-glow);

  /* ── Layout ── */
  --header-height:     70px;
  --sidebar-width:     260px;
  --container-max:     1440px;
  --container-pad:     20px;

  /* ── Z-Index Katmanları ── */
  --z-dropdown:        100;
  --z-sticky:          200;
  --z-header:          300;
  --z-modal-overlay:   400;
  --z-modal:           500;
  --z-toast:           600;
}

/* ============================================================
   GLOBAL RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-base);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ── Bağlantılar ── */
a {
  color: var(--yellow);
  text-decoration: none;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

a:hover {
  color: var(--yellow-hover);
}

/* ── Görseller ── */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ── Başlıklar ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--text-white);
  margin-bottom: var(--space-md);
}

h1 { font-size: var(--font-size-2xl); }
h2 { font-size: var(--font-size-xl); }
h3 { font-size: var(--font-size-lg); }
h4 { font-size: var(--font-size-md); }
h5 { font-size: var(--font-size-base); }
h6 { font-size: var(--font-size-sm); }

p {
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

ul, ol {
  list-style: none;
}

/* ── Form Elemanları ── */
input, textarea, select, button {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
}

/* ── Scrollbar Özelleştirme ── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: #3E3E3E;
  border-radius: var(--radius-pill);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--yellow);
}

/* ── Seçim Rengi ── */
::selection {
  background-color: var(--yellow-alpha-30);
  color: var(--text-white);
}

/* ============================================================
   CONTAINER & LAYOUT UTILITIES
   ============================================================ */
.sk-container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.sk-container--narrow {
  max-width: 960px;
}

.sk-container--wide {
  max-width: 100%;
  padding-left: var(--space-xl);
  padding-right: var(--space-xl);
}

/* ── Visually Hidden ── */
.sk-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Flex Utilities ── */
.sk-flex        { display: flex; }
.sk-flex-center { display: flex; align-items: center; justify-content: center; }
.sk-flex-between{ display: flex; align-items: center; justify-content: space-between; }
.sk-flex-col    { display: flex; flex-direction: column; }
.sk-gap-sm      { gap: var(--space-sm); }
.sk-gap-md      { gap: var(--space-md); }
.sk-gap-lg      { gap: var(--space-lg); }

/* ── Text Utilities ── */
.sk-text-yellow  { color: var(--yellow); }
.sk-text-muted   { color: var(--text-muted); }
.sk-text-sm      { font-size: var(--font-size-sm); }
.sk-text-bold    { font-weight: var(--font-weight-bold); }
.sk-text-center  { text-align: center; }

/* ── Spacing Utilities ── */
.sk-mt-sm  { margin-top: var(--space-sm); }
.sk-mt-md  { margin-top: var(--space-md); }
.sk-mt-lg  { margin-top: var(--space-lg); }
.sk-mb-md  { margin-bottom: var(--space-md); }
.sk-mb-lg  { margin-bottom: var(--space-lg); }
.sk-p-md   { padding: var(--space-md); }

/* ── Separator ── */
.sk-divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: var(--space-lg) 0;
}

/* ============================================================
   GLOBAL BUTTON STYLES
   ============================================================ */
.sk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 10px var(--space-md);
  border: 2px solid transparent;
  border-radius: var(--radius-btn);
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-base);
  white-space: nowrap;
  line-height: 1;
  position: relative;
  overflow: hidden;
}

.sk-btn:disabled,
.sk-btn.sk-btn--loading {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* Birincil - Sarı */
.sk-btn--primary {
  background-color: var(--yellow);
  color: var(--text-on-yellow);
  border-color: var(--yellow);
}

.sk-btn--primary:hover {
  background-color: var(--yellow-hover);
  border-color: var(--yellow-hover);
  color: var(--text-on-yellow);
  box-shadow: var(--yellow-glow);
  transform: translateY(-1px);
}

/* İkincil - Outline */
.sk-btn--outline {
  background-color: transparent;
  color: var(--yellow);
  border-color: var(--yellow);
}

.sk-btn--outline:hover {
  background-color: var(--yellow);
  color: var(--text-on-yellow);
  box-shadow: var(--yellow-glow);
}

/* Hayalet - Subtle */
.sk-btn--ghost {
  background-color: var(--yellow-alpha-10);
  color: var(--yellow);
  border-color: transparent;
}

.sk-btn--ghost:hover {
  background-color: var(--yellow-alpha-20);
  box-shadow: var(--yellow-glow);
}

/* Tehlike */
.sk-btn--danger {
  background-color: #C62828;
  color: var(--text-white);
  border-color: #C62828;
}

.sk-btn--danger:hover {
  background-color: #B71C1C;
}

/* Boyutlar */
.sk-btn--sm   { padding: 7px 12px; font-size: var(--font-size-xs); }
.sk-btn--lg   { padding: 14px var(--space-lg); font-size: var(--font-size-md); }
.sk-btn--full { width: 100%; }

/* Loading Spinner */
.sk-btn--loading::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: sk-spin 0.7s linear infinite;
  margin-left: var(--space-sm);
}

/* ============================================================
   GLOBAL BADGE / CHIP
   ============================================================ */
.sk-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  white-space: nowrap;
}

.sk-badge--yellow {
  background-color: var(--yellow);
  color: var(--text-on-yellow);
}

.sk-badge--dark {
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.sk-badge--success {
  background-color: rgba(46, 125, 50, 0.2);
  color: #81C784;
  border: 1px solid rgba(46, 125, 50, 0.3);
}

.sk-badge--warning {
  background-color: rgba(255, 160, 0, 0.15);
  color: #FFB300;
  border: 1px solid rgba(255, 160, 0, 0.25);
}

.sk-badge--danger {
  background-color: rgba(198, 40, 40, 0.15);
  color: #EF9A9A;
  border: 1px solid rgba(198, 40, 40, 0.25);
}

/* ============================================================
   TOAST BİLDİRİM
   ============================================================ */
#sk-toast-container {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  pointer-events: none;
}

.sk-toast {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 12px var(--space-md);
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--yellow);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg);
  color: var(--text-primary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  pointer-events: auto;
  animation: sk-toast-in 0.3s ease, sk-toast-out 0.3s ease 2.7s forwards;
  max-width: 320px;
}

.sk-toast--success {
  border-left-color: #81C784;
}

.sk-toast--error {
  border-left-color: #EF9A9A;
}

.sk-toast__icon {
  font-size: 18px;
  flex-shrink: 0;
}

/* ============================================================
   GLOBAL ANIMASYONLAR
   ============================================================ */
@keyframes sk-spin {
  to { transform: rotate(360deg); }
}

@keyframes sk-toast-in {
  from { opacity: 0; transform: translateX(100%); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes sk-toast-out {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(100%); }
}

@keyframes sk-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes sk-scale-in {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes sk-pulse-yellow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,215,0,0.5); }
  50%       { box-shadow: 0 0 0 8px rgba(255,215,0,0); }
}

/* ============================================================
   LOADING / SKELETON
   ============================================================ */
.sk-skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-card) 25%,
    var(--bg-card-hover) 50%,
    var(--bg-card) 75%
  );
  background-size: 200% 100%;
  animation: sk-skeleton-shimmer 1.5s infinite;
  border-radius: var(--radius-card);
}

@keyframes sk-skeleton-shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* ============================================================
   SPINNER OVERLAY
   ============================================================ */
.sk-spinner-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-overlay);
  border-radius: inherit;
  z-index: 10;
}

.sk-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border-color);
  border-top-color: var(--yellow);
  border-radius: 50%;
  animation: sk-spin 0.7s linear infinite;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 1200px) {
  :root {
    --sidebar-width: 220px;
  }
}

@media (max-width: 992px) {
  :root {
    --sidebar-width: 0px;
    --header-height: 60px;
  }
}

@media (max-width: 768px) {
  :root {
    --container-pad: 16px;
    --font-size-base: 14px;
  }
  
  h1 { font-size: var(--font-size-xl); }
  h2 { font-size: var(--font-size-lg); }
}

@media (max-width: 480px) {
  :root {
    --container-pad: 12px;
  }
  
  #sk-toast-container {
    bottom: var(--space-md);
    right: var(--space-md);
    left: var(--space-md);
  }
  
  .sk-toast {
    max-width: 100%;
  }
}

