/* Navi v2 CSS Variables
 * デザインシステムの基盤となるCSS変数定義
 * ライトモード（デフォルト）とダークモード対応
 */

:root {
  /* ===================================
   * Colors - Light Mode (Default)
   * オレンジアクセント + ウォームグレー
   * =================================== */

  /* Accent - オレンジ（メインアクション用） */
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --accent-light: #fef3c7;

  /* Primary - 青（セカンダリーアクション用） */
  --primary: #3b82f6;
  --primary-light: #60a5fa;
  --primary-dark: #2563eb;

  /* Status Colors */
  --success: #22c55e;
  --success-light: #dcfce7;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --error: #ef4444;
  --error-light: #fee2e2;
  --info: #3b82f6;
  --info-light: #dbeafe;

  /* Background - ウォームグレー */
  --bg-primary: #f5f5f4;
  --bg-secondary: #eeedec;
  --bg-sidebar: #eae9e8;
  --bg-card: #ffffff;
  --bg-hover: #e5e4e3;
  --bg-active: #dddcdb;

  /* Text */
  --text-primary: #1c1c1c;
  --text-secondary: #5c5c5c;
  --text-muted: #9a9a9a;
  --text-inverse: #ffffff;

  /* Border */
  --border-color: #e5e4e3;
  --border-light: #eeedec;

  /* Shadow */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.04), 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);

  /* ===================================
   * Typography
   * =================================== */
  --font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Fira Code', 'Consolas', monospace;

  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;

  /* ===================================
   * Spacing
   * =================================== */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;

  /* ===================================
   * Border Radius（やさしい印象）
   * =================================== */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* ===================================
   * Layout
   * =================================== */
  --sidebar-width: 280px;
  --header-height: 64px;
  --max-content-width: 1200px;

  /* ===================================
   * Transitions
   * =================================== */
  --transition-fast: 150ms ease;
  --transition-normal: 200ms ease;
  --transition-slow: 300ms ease;

  /* ===================================
   * Z-index
   * =================================== */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal-backdrop: 300;
  --z-modal: 400;
  --z-tooltip: 500;
  --z-toast: 600;
}

/* ===================================
 * Dark Mode
 * 青アクセント + ダークグレー
 * =================================== */
[data-theme="dark"] {
  /* Accent - 青グラデーション */
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-light: rgba(59, 130, 246, 0.2);

  /* Status Colors（ダーク用調整） */
  --success: #22c55e;
  --success-light: rgba(34, 197, 94, 0.2);
  --warning: #f59e0b;
  --warning-light: rgba(245, 158, 11, 0.2);
  --error: #ef4444;
  --error-light: rgba(239, 68, 68, 0.2);
  --info: #3b82f6;
  --info-light: rgba(59, 130, 246, 0.2);

  /* Background - ダークグレー */
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-sidebar: #0f0f0f;
  --bg-card: #1a1a1a;
  --bg-hover: #1f1f1f;
  --bg-active: #252525;

  /* Text */
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --text-muted: #666666;
  --text-inverse: #1c1c1c;

  /* Border */
  --border-color: #222222;
  --border-light: #2a2a2a;

  /* Shadow（ダーク用） */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.4);
}
