/* assets/css/base.css */
/* Base styles for NetPix - Modern, clean aesthetic */

/* ── Poppins — self-hosted latin subset (no external CDN dependency) ──────── */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/assets/fonts/poppins/poppins-300.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;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/poppins/poppins-400.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;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/poppins/poppins-500.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;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/poppins/poppins-600.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;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/poppins/poppins-700.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;
}

/* Inline SVG icons emitted by helpers/icons.php */
.npx-icon {
  width: 1em;
  height: 1em;
  fill: currentColor;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  pointer-events: none;
}

:root {

  /* Color Palette - Based on screenshot */
  --color-primary: #FF6B9D;
  /* Pink/Coral */
  --color-primary-light: #FFB3C6;
  --color-primary-dark: #E85A8A;

  --color-secondary: #667eea;
  /* Purple gradient start */
  --color-secondary-dark: #764ba2;
  /* Purple gradient end */

  --color-accent: #2ECC71;
  /* Green for CTAs */
  --color-accent-dark: #27AE60;

  --color-blue: #4A90E2;
  /* Blue for buttons */
  --color-blue-light: #E3F2FD;

  /* Neutrals */
  --color-text: #333333;
  --color-text-light: #666666;
  --color-border: #E0E0E0;
  --color-background: #F8F9FA;
  --color-white: #FFFFFF;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-warm: linear-gradient(135deg, #FF6B9D 0%, #FFB3C6 100%);

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

  /* Typography */
  --font-family: 'Poppins',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  --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: 2rem;
  --font-size-4xl: 2.5rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-full: 9999px;

  /* Minimum touch target size (WCAG 2.5.5 / Apple HIG: 44px) */
  --touch-target-min: 44px;

  /* Chevron / navigation arrow size standard.
     Used in list row chevrons, back arrows, and any directional indicator.
     Matches the user-dropdown chevron at 18px.
     Always pair with line-height:1 to avoid vertical misalignment. */
  --chevron-size: 18px;
}

/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Pointer cursor on all interactive elements globally */
a,
button,
[role="button"],
label[for] {
  cursor: pointer;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* No overflow-x set here — any overflow value on html/body can act as
     a scroll container on older Android/Huawei WebViews, trapping
     position:sticky elements. Horizontal overflow is clipped on <main>
     below so the sticky <nav> (a sibling of <main>) is unaffected. */
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-background);
  /* No overflow-x — see html comment above. */
}

/* Clip horizontal overflow at the content level, not the root.
   <nav> is a sibling of <main> so sticky on <nav> is unaffected.
   -webkit-sticky + sticky combo in nav.css handles older WebViews. */
main {
  overflow-x: clip;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text);
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: var(--font-size-4xl);
  font-weight: 700;
}

h2 {
  font-size: var(--font-size-3xl);
}

h3 {
  font-size: var(--font-size-2xl);
}

h4 {
  font-size: var(--font-size-xl);
}

h5 {
  font-size: var(--font-size-lg);
}

h6 {
  font-size: var(--font-size-base);
}

p {
  margin-bottom: var(--spacing-md);
}

a {
  color: var(--color-blue);
  text-decoration: none;
  transition: color 0.2s;
  cursor: pointer;
}

a:hover {
  color: var(--color-blue);
  text-decoration: underline;
}

/* Buttons - Matching screenshot style */
button,
.btn {
  font-family: var(--font-family);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: var(--font-size-base);
}

[role="button"],
summary,
label[for] {
  cursor: pointer;
}

/*
  Defensive cursor rule for desktop browsers:
  ensures interactive controls keep the hand cursor even if later
  component styles accidentally override cursor.
*/
@media (hover: hover) and (pointer: fine) {

  a[href],
  button,
  [role="button"],
  input[type="button"],
  input[type="submit"],
  summary,
  label[for] {
    cursor: pointer !important;
  }
}

.btn-primary {
  background: var(--color-accent);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
  background: var(--color-blue-light);
}

/* Forms */
input,
textarea,
select {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  padding: 0.75rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s;
  width: 100%;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-blue);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

/* Card */
.card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--spacing-xl);
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

/* Responsive images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}
