/*
Theme Name: MİS360
Theme URI: https://misteknoloji360.com.tr/
Author: Serkan AKKAYA
Author URI: https://misteknoloji360.com.tr/
Description: MİS360; Serkan AKKAYA tarafından geliştirilmiş, ultra hızlı, modern web standartlarına tam uyumlu, Core Web Vitals ve SEO odaklı, Dark/Light mod destekli özel WordPress temasıdır.
Version: 1.0.7
Requires at least: 6.3
Requires PHP: 8.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mis360
Tags: custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-width-template, theme-options, translation-ready, accessibility-ready
*/

/* ==========================================================================
   Design Tokens & CSS Custom Properties (Theme Variables)
   ========================================================================== */
:root {
  /* Renk Paleti (Light Mode Default) */
  --mis-bg-primary: #f8fafc;
  --mis-bg-surface: #ffffff;
  --mis-bg-surface-elevated: #f1f5f9;
  --mis-bg-glass: rgba(255, 255, 255, 0.75);
  --mis-border-glass: rgba(255, 255, 255, 0.4);

  --mis-text-primary: #0f172a;
  --mis-text-secondary: #475569;
  --mis-text-muted: #94a3b8;

  --mis-border-color: #e2e8f0;
  --mis-border-subtle: #f1f5f9;

  /* Marka & Vurgu Renkleri */
  --mis-primary: #3b82f6;
  --mis-primary-hover: #2563eb;
  --mis-primary-rgb: 59, 130, 246;
  --mis-secondary: #06b6d4;
  --mis-accent: #8b5cf6;
  --mis-success: #10b981;
  --mis-warning: #f59e0b;
  --mis-danger: #ef4444;

  /* Gölgeler (Soft & Premium) */
  --mis-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --mis-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --mis-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --mis-shadow-glow: 0 0 25px rgba(59, 130, 246, 0.25);

  /* Akıcı Tipografi (Fluid Typography using clamp) */
  --mis-font-family-base: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --mis-font-family-heading: inherit;
  --mis-font-family-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --mis-text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --mis-text-sm: clamp(0.875rem, 0.82rem + 0.28vw, 1rem);
  --mis-text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --mis-text-lg: clamp(1.125rem, 1.05rem + 0.38vw, 1.25rem);
  --mis-text-xl: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --mis-text-2xl: clamp(1.5rem, 1.35rem + 0.75vw, 1.875rem);
  --mis-text-3xl: clamp(1.875rem, 1.65rem + 1.1vw, 2.25rem);
  --mis-text-4xl: clamp(2.25rem, 1.95rem + 1.5vw, 3rem);
  --mis-text-hero: clamp(2.5rem, 2.1rem + 2vw, 4rem);

  /* Boşluk & Grid Sistemleri (Fluid Spacing) */
  --mis-space-xs: clamp(0.25rem, 0.2rem + 0.25vw, 0.5rem);
  --mis-space-sm: clamp(0.5rem, 0.45rem + 0.25vw, 0.75rem);
  --mis-space-md: clamp(1rem, 0.9rem + 0.5vw, 1.5rem);
  --mis-space-lg: clamp(1.5rem, 1.3rem + 1vw, 2.5rem);
  --mis-space-xl: clamp(2.5rem, 2rem + 2.5vw, 4.5rem);

  /* Düzen & Sınırlar */
  --mis-container-max: 1280px;
  --mis-radius-sm: 8px;
  --mis-radius-md: 14px;
  --mis-radius-lg: 20px;
  --mis-radius-full: 9999px;

  /* Geçişler */
  --mis-transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --mis-transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --mis-transition-smooth: 400ms cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: light;
}

/* ==========================================================================
   Dark Mode Tokens (Auto Preference + Data Attribute Override)
   ========================================================================== */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --mis-bg-primary: #0b0f19;
    --mis-bg-surface: #111827;
    --mis-bg-surface-elevated: #1f2937;
    --mis-bg-glass: rgba(17, 24, 39, 0.8);
    --mis-border-glass: rgba(255, 255, 255, 0.08);

    --mis-text-primary: #f8fafc;
    --mis-text-secondary: #cbd5e1;
    --mis-text-muted: #64748b;

    --mis-border-color: #1e293b;
    --mis-border-subtle: #192231;

    --mis-primary: #60a5fa;
    --mis-primary-hover: #3b82f6;
    --mis-primary-rgb: 96, 165, 250;

    --mis-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --mis-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
    --mis-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
    --mis-shadow-glow: 0 0 25px rgba(96, 165, 250, 0.2);

    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --mis-bg-primary: #0b0f19;
  --mis-bg-surface: #111827;
  --mis-bg-surface-elevated: #1f2937;
  --mis-bg-glass: rgba(17, 24, 39, 0.8);
  --mis-border-glass: rgba(255, 255, 255, 0.08);

  --mis-text-primary: #f8fafc;
  --mis-text-secondary: #cbd5e1;
  --mis-text-muted: #64748b;

  --mis-border-color: #1e293b;
  --mis-border-subtle: #192231;

  --mis-primary: #60a5fa;
  --mis-primary-hover: #3b82f6;
  --mis-primary-rgb: 96, 165, 250;

  --mis-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --mis-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --mis-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
  --mis-shadow-glow: 0 0 25px rgba(96, 165, 250, 0.2);

  color-scheme: dark;
}

/* ==========================================================================
   Modern CSS Reset & Global Base
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--mis-font-family-base);
  font-size: var(--mis-text-base);
  line-height: 1.65;
  color: var(--mis-text-primary);
  background-color: var(--mis-bg-primary);
  transition: background-color var(--mis-transition-base), color var(--mis-transition-base);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

a {
  color: var(--mis-primary);
  text-decoration: none;
  transition: color var(--mis-transition-fast);
}

a:hover {
  color: var(--mis-primary-hover);
}

/* Erişilebilirlik: Ekran Okuyucu & Skip Link */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: var(--mis-bg-surface);
  border-radius: var(--mis-radius-sm);
  box-shadow: var(--mis-shadow-lg);
  clip: auto !important;
  clip-path: none;
  color: var(--mis-text-primary);
  display: block;
  font-size: var(--mis-text-sm);
  font-weight: 600;
  height: auto;
  left: 1rem;
  line-height: normal;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  top: 1rem;
  width: auto;
  z-index: 100000;
}
