/* css/base.css - Core Variables, Typography & Layout */

@font-face {
    font-family: 'Material Icons';
    src: url('../assets/font.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("../assets/vazirmatn.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

:root {
  /* Primer Color System (Light Mode) */
  --bg-app: #F6F8FA;          /* canvas-subtle */
  --bg-surface: #FFFFFF;      /* canvas-default */
  --bg-subtle: #F6F8FA;
  
  --text-primary: #1F2328;    /* fg-default */
  --text-secondary: #656D76;  /* fg-muted */
  --text-inverse: #FFFFFF;
  
  --accent: #0969DA;          /* accent-fg (Blue) */
  --accent-bg: #182632;       /* accent-subtle */
  --accent-border: rgba(47, 116, 235, 0.2);
  
  --danger: #CF222E;          /* danger-fg */
  --danger-bg: #FFEBE9;
  
  --border-default: #D0D7DE;
  --border-muted: #D8DEE4;
  
  /* Shadows */
  --shadow-sm: 0 1px 0 rgba(27,31,36,0.04);
  --shadow-float: 0 8px 24px rgba(140,149,159,0.2);
  
  /* Radii */
  --radius-pill: 6px;
  --radius-card: 6px;
  --radius-bubble: 12px;
  
  --h-target: 40px; 
  
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
  --font-fa: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; user-select: none; scrollbar-width: thin;}

body {
  font-family: var(--font-body);
  background-color: var(--bg-app);
  color: var(--text-primary);
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Persian Font Override */
html[lang="fa"] body {
  font-family: var(--font-fa);
}

h1 { font-size: 24px; font-weight: 600; letter-spacing: -0.2px; margin-bottom: 8px; color: var(--text-primary); }
h2 { font-size: 20px; font-weight: 600; letter-spacing: -0.2px; }
h3 { font-size: 16px; font-weight: 600; }
p  { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }

/* --- Icon System --- */
.material-icons {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
  direction: ltr; /* Icons always LTR */
}

/* --- Layout --- */
.container-full { flex: 1; display: flex; flex-direction: column; height: 100%; position: relative; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.flex-col { display: flex; flex-direction: column; }
.flex-row { display: flex; flex-direction: row; align-items: center; }
.pad-page { padding: 16px; }