/* ==========================================================================
   Athar - Design System & Variables (1:1 from AppColours, Styles, Responsive)
   ========================================================================== */

:root {
  /* Colors (from AppColours.dart) */
  --color-primary: #200b24;               /* Color.fromARGB(255, 32, 11, 36) */
  --color-dark: #020002;                  /* Color.fromARGB(255, 2, 0, 2) */
  --color-secondary: rgba(62, 60, 60, 0.482); /* Color.fromARGB(123, 62, 60, 60) */
  --color-tertiary: rgba(220, 165, 61, 0.902);/* Color.fromARGB(230, 220, 165, 61) */
  --color-border: #676467;                /* Color.fromARGB(255, 103, 100, 103) */
  --color-section-border: #676467;        /* Exact Athar brand grey border */
  
  --color-text: #ffffff;
  --color-text-faded: rgba(255, 255, 255, 0.588);   /* alpha 150 */
  --color-text-translucent: rgba(255, 255, 255, 0.702); /* alpha 179 */
  --color-text-title: rgba(255, 255, 255, 0.698);   /* alpha 178 */

  --color-footer-bg: #050505;

  /* Card Rarities (from SimpleCard.dart) */
  --rarity-common: #9e9e9e;
  --rarity-rare: #87ceeb;                 /* Light blue accent */
  --rarity-epic: #662e8d;                 /* Purple rgb(102, 46, 141) */
  --rarity-legendary: #dca53d;            /* Gold rgba(220, 165, 61, 0.9) */
  --rarity-mythic: #b52525;

  /* Gradients */
  --bg-gradient: linear-gradient(180deg, var(--color-primary) 0%, var(--color-dark) 100%);
  --map-clarity-gradient: linear-gradient(
    180deg,
    rgba(19, 12, 25, 0.839) 0%,
    rgba(32, 11, 36, 0.667) 24%,
    rgba(32, 11, 36, 0.392) 50%,
    rgba(32, 11, 36, 0.667) 76%,
    rgba(19, 12, 25, 0.839) 100%
  );
  --dark-section-gradient: linear-gradient(
    180deg,
    #050505 0%,
    #150015 50%,
    #050505 100%
  );

  /* Typography */
  --font-display: "Edo", sans-serif;
  --font-body: "Alexandria", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Timing Functions & Curves matching Curves.easeOutCubic */
  --ease-out-cubic: cubic-bezier(0.215, 0.61, 0.355, 1);
  --transition-fast: 200ms var(--ease-out-cubic);
  --transition-normal: 300ms var(--ease-out-cubic);
  --transition-slow: 500ms var(--ease-out-cubic);
}

/* Local Fonts Definition */
@font-face {
  font-family: "Edo";
  src: url("../assets/fonts/edo.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Alexandria";
  src: url("../assets/fonts/Alexandria/static/Alexandria-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Alexandria";
  src: url("../assets/fonts/Alexandria/static/Alexandria-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Alexandria";
  src: url("../assets/fonts/Alexandria/static/Alexandria-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Alexandria";
  src: url("../assets/fonts/Alexandria/static/Alexandria-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* CSS Reset & Global Standards */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-text);
  background-color: var(--color-dark);
  line-height: 1.5;
  overflow-x: hidden;
  width: 100%;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}
