/* 

--- 01 TYPOGRAPHY SYSTEM (px)

- Font sizes (px)
10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 / 52 / 62 / 74 / 86 / 98

- Font weights
Default: 400
Medium: 500
Semi-bold: 600
Bold: 700

- Line heights
Default: 1
Small: 1.05
Medium: 1.2
Paragraph default: 1.60
Large: 1.8

- SPACING SYSTEM (px)
2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128



--- 02 COLOURS
#aaa
#777
#888

-Background: #0e0d09
- Primary:
- Tints: 
- Shades:
- Accents: 
- Greys: #555

--- 05 SHADOWS

--- 06 BORDER-RADIUS

Default: 9px
Medium: 11px

--- 07 WHITESPACE

- Spacing system (px)
2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128

*/

/* ======================== */
/* COLOR VARIABLES & THEMES */
/* ======================== */

:root {
  /* DARK MODE (DEFAULT) */
  --bg-body: #0e0d09;
  --text-main: #f3f3f3;
  --text-secondary: #939290;
  --text-tertiary: #c3c3c2; /* Using existing lighter grey */

  --card-bg: #1a1915;
  --card-border: #393939;

  --accent-color: #f3f3f3; /* For hover states etc */
  --activity-bg: #0e0d09; /* Same as body for now */

  --btn-bg-hover: #f3f3f3;
  --btn-text-hover: #1a1915;

  --dots-color: #32312e;
  --dots-transparency: 0.5px;

  --btn-text-color: #1a1915;
}

body.light-mode {
  /* LIGHT MODE */
  --bg-body: #fdfbf7; /* Warm off-white */
  --text-main: #1a1915; /* Dark grey/black */
  --text-secondary: #323332;
  --text-tertiary: #444444;

  --card-bg: #ffffff;
  --card-border: #e5e5e5;

  --accent-color: #1a1915;
  --activity-bg: #ffffff;

  --btn-bg-hover: #1a1915;
  --btn-text-hover: #f3f3f3;

  --dots-color: #939290;
  --dots-transparency: 0.1px;

  --btn-text-color: #fdfbf7;
}

/* =================== */
/* GLOBAL CSS SETTINGS */
/* =================== */

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

html {
  /* font: size 62.5%; */
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1;
  font-weight: 400;
  color: var(--text-main);
  background-color: var(--bg-body);

  /* Puts transition on theme switch */
  transition:
    background-color 0.3s,
    color 0.3s;
}

/* =========================== */
/* GENERAL REUSABLE COMPONENTS */
/* =========================== */

a {
  text-decoration: none;
  color: var(--text-secondary);
}

/* =================== */
/* EXPERIMENTAL LAYOUT */
/* =================== */

.dot-grid-banner-sm,
.dot-grid-banner-md,
.dot-grid-banner-lg {
  display: block;
  width: 100%;
  background-image: radial-gradient(
    circle,
    var(--dots-color) 1.4px,
    transparent var(--dots-transparency)
  );
  background-size: 8px 8px;
}

/* Note: Keeping dot grid colors static or handling separately if needed later. 
   Currently sticking to dark grid for style, or could use variables. 
   For now, focused on text/bg. */

.dot-grid-banner-sm {
  height: 2rem;
  margin: 0.5rem 0;
}

.dot-grid-banner-md {
  height: 4.8rem;
  margin: 0.5rem 0;
}

.dot-grid-banner-lg {
  height: 15rem;
  margin: 1rem 0;
}

/* ==================== */

.btn,
.btn:link,
.btn:visited {
  /* font-size: 0.9rem; */
  display: inline-block;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);

  /* ANIMATE */
  transition: all 0.3s;
}

.btn:hover,
.btn:active {
  color: var(--text-main);
}

.btn-large,
.btn-large:link,
.btn-large:visited {
  display: block;
  text-decoration: none;
  color: var(
    --btn-text-color
  ); /* Was #1a1915 in dark mode (inverse). Let's check logic. */
  /* Actually btn-large was grey bg with dark text. 
     Let's map it: 
     bg: #939290 (text-secondary)
     color: #1a1915 (card-bg/dark text)
  */
  color: var(
    --btn-text-color
  ); /* Keep hardcoded inverse for button text or use specific var */
  background-color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.4rem;
  cursor: pointer;

  /* ANIMATE */
  transition: all 0.3s;
}

.btn-large:hover,
.btn-large:active {
  background-color: var(--text-main);
  /* color: #1a1915; -- implicit */
}

.btn-large-inverted,
.btn-large-inverted:link,
.btn-large-inverted:visited {
  display: inline-block;
  text-decoration: none;
  color: var(--text-secondary);
  background-color: #262522; /* Specific dark accent. Maybe var(--card-bg) or darker? */
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.4rem;
  cursor: pointer;

  /* ANIMATE */
  transition: all 0.3s;
}

/* Light mode override for inverted button specific */
body.light-mode .btn-large-inverted,
body.light-mode .btn-large-inverted:link,
body.light-mode .btn-large-inverted:visited {
  background-color: #e0e0e0;
}

.btn-large-inverted:hover,
.btn-large-inverted:active {
  background-color: var(--card-bg); /* #1a1915 */
}

/* =============== */
/* View all button */
/* =============== */

.all-section {
  display: flex;
  width: fit-content;
  border-radius: 9px;
  border: 1px solid var(--card-border);
  padding: 2px;
  line-height: 1;
}

.btn-all-section {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin: 0;
  line-height: 1;
}

.btn-all-section span {
  transition: transform 0.3s ease;
  transform: translateX(0);
}

.btn-all-section:hover .all-section-arrow {
  transform: translateX(1.2px);
}

/* ================= */

.btn-icon-pair {
  /* FLEX */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.container {
  max-width: 50rem;
  margin: 0 auto;
  padding: 0 3rem;
}

.heading-primary {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--text-tertiary);
}

.heading-secondary {
  font-size: 1rem;
  margin-bottom: 1.1rem;
  color: var(--text-secondary); /* or abaaa9 is close to 939290 */
}

.text-tertiary {
  font-size: 0.8rem;
  line-height: 1.2rem;
  color: var(--text-secondary);
}

.text-sm {
  font-size: 0.9rem;
  font-weight: 450;
  color: var(--text-secondary);
  letter-spacing: 0.35px;
  line-height: 1.2rem;
}

.text-md {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: -0.5px;
}

.text-lg {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: -0.5px;
}

/* HELPER CLASSES */
.margin-bottom-sm {
  margin-bottom: 1.4rem !important;
}

.margin-top-sm {
  margin-top: 1.4rem !important;
}

.margin-bottom-md {
  margin-bottom: 4.8rem !important;
}

.margin-bottom-lg {
  margin-bottom: 8rem !important;
}

.icon-sm {
  font-size: 1.1rem;
}
.icon-md {
  font-size: 1.5rem;
}
.icon-lg {
  font-size: 4.4rem;
}

.icon-img-sm {
  width: 1.2rem;
}
.icon-img-md {
  width: 2rem;
}

.center-container {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
