@font-face {
  font-family: 'Space_Grotesk';
  src: url(../../styling/fonts/space_grotesk/static/SpaceGrotesk-Regular.ttf);
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Roboto';
  src: url(../../styling/fonts/roboto/Roboto-Regular.woff2);
  font-weight: normal;
  font-style: normal;
}
/* TODO delete unused font files before deployment */

:root {
  /* Fonts */
  --font-title: 'Space_Grotesk', Courier, monospace;
  --font-text: 'Roboto', sans-serif;

  /* Text colours */
  --text-gold-top: #ffdd9c;
  --text-gold-mid: #d8b065;
  --text-gold-bottom: #ae8538;
  --text-gradient-gold: linear-gradient(to bottom, var(--text-gold-top), var(--text-gold-bottom));

  /* Border colours */
  --gold-border-gradient: linear-gradient(to bottom, var(--text-gold-mid), var(--text-gold-bottom));
  --gold-border-alternate: rgba(255, 215, 138, 0.35);

  /* Hover effects */
  --surface-hover: rgba(34, 48, 74, 0.95);

  /* Background colours */
  --surface-850: rgba(8, 11, 18, 0.86);
  --surface-700: rgba(23, 30, 46, 0.72);
  --button-background: rgba(10, 12, 18, 0.85);

  /* Formatting */
  --radius-pill: 999px;
  --border-sm: 1px;
  --border-md: 2px;
  --transition-fast: 0.15s ease;
  --font-small: 14px;
  --font-medium: 20px;
  --font-large: 30px;
}

*{
  margin: 0;
}

body {
  background-image: url(../../images/backgrounds/galaxybg.avif);
  background-size: cover;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

:is(h1, h2, h3) {
  background: var(--text-gradient-gold);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: var(--font-title);
  align-self: center;
}

:is(p,a,label) {
  color: var(--text-gold-bottom);
  text-decoration: none;
  font-family: var(--font-text);
}

a {
  font-weight: bold;
}

/* Start of header*/
header {
  display: flex;
  justify-content: space-between;
  line-height: 1;
  padding: 0 10px 0 0;
}

header a {
  font-size: var(--font-medium);
}

nav {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Container for the top left logo, title and subtitle */
.container-logo  {
    display: flex;
    align-items: center;
}

.container-logo-name-motto {
    display: flex;
    flex-direction: column;
    padding-left: 5px;
    align-items: center;
}

/* End of container for the top left logo, title and subtitle */

footer {
  text-align: center;
  margin-top: auto;
  font-size: var(--font-small);
}

footer a {
  font-weight: normal;
}

/* === CCP legal notice tooltip === */

.ccp-legal-trigger {
  background: none;
  border: none;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

/* Tooltip bubble */
nav a[aria-current="page"] {
  color: var(--text-gold-top);
  text-decoration: underline;
}

.ccp-legal-tooltip {
  display: none; /* shown by JS on hover/focus */
  position: fixed; /* positioned by JS near pointer */
  max-width: min(450px, calc(100vw - 20px));
  font-size: var(--font-medium);
  background: var(--surface-850);
  color: var(--text-gold-top);
  pointer-events: none; /* prevents hover flicker */
}

.buy-button {
  background: transparent;
  border-radius: var(--radius-pill);
  padding: 5px;
  min-width: 70px;

  border: var(--border-sm) solid var(--text-gold-top);
  color: var(--text-gold-mid);
  font-weight: bold;
  cursor: pointer;
}

/* hover: brighter, more “primary” */
.buy-button:hover {
  background-color: var(--surface-hover);
}

/*Card CSS */
.item-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-width: 220px;
  max-width: 220px;
  border: var(--border-md) solid transparent;
  padding: 5px 0;
  margin-bottom: 20px;
  border-image: var(--gold-border-gradient) 1;
}

.item-card h2 {
  text-align: center;
}

.item-card img {
  max-width: 128px;
  max-height: 128px;
  padding: 2px 0;
}

.text {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.item-card-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.stock-state {
  display: flex;
  align-items: center;
  gap: 5px;
}

.item-buy-controls {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 6px;
}
/*End of Card CSS */
