/* ============================================
   IGOR'S QUEST — STYLESHEET
   style.css

   This file controls how everything LOOKS.
   The HTML file controls what's ON the page.
   Change values here to customize the site!

   Look for "/* TWEAK ME" comments throughout —
   those are the best places to start experimenting.
   ============================================ */


/* ============================================
   1. COLOUR PALETTE & GLOBAL VARIABLES
   Change these to instantly retheme the whole site!
   ============================================ */

:root {
  --bg-dark:       #1a1408;   /* TWEAK ME — main background colour */
  --bg-mid:        #2a1f0e;   /* TWEAK ME — slightly lighter panels */
  --bg-card:       #f5e6c8;   /* TWEAK ME — card background (parchment) */
  --ink:           #f0deb0;   /* TWEAK ME — main text colour */
  --ink-dark:      #1a1408;   /* TWEAK ME — dark text (used on cards) */
  --accent:        #c8962a;   /* TWEAK ME — gold accent colour */
  --accent-dim:    #00000092;   /* TWEAK ME — darker gold for borders */
  --danger:        #8b2020;   /* TWEAK ME — deep red, used sparingly */
  --font-display:  'UnifrakturMaguntia', cursive;   /* big decorative titles */
  --font-body:     'Crimson Text', Georgia, serif;  /* readable body text */
}



/* ============================================
   2. GLOBAL RESET & BASE STYLES
   Don't worry too much about this section —
   it just makes things behave consistently.
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.15rem;        /* TWEAK ME — base text size */
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}


/* ============================================
   3. NOISE TEXTURE OVERLAY
   Adds a subtle grain to the whole page.
   Delete the <div class="noise"> in HTML
   and this block if you don't want it.
   ============================================ */

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  opacity: 0.04;              /* TWEAK ME — grain intensity (0 = off, 0.1 = strong) */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}


/* ============================================
   4. HEADER
   ============================================ */

.site-header {
  text-align: center;
  padding: 3rem 1rem 2rem;
  border-bottom: 2px solid var(--accent-dim);
  background: linear-gradient(to bottom, #0d0a04, var(--bg-dark));
}

.site-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 7rem);   /* TWEAK ME — scales with screen size */
  color: var(--accent);
  text-shadow:
    0 0 40px rgba(200, 150, 42, 0.4),
    2px 2px 0px var(--danger);
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.site-subtitle {
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink);
  opacity: 0.7;
  margin-top: 0.5rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.header-ornament {
  color: var(--accent-dim);
  font-size: 1.2rem;
  letter-spacing: 1rem;
  margin: 0.75rem 0;
}


/* ============================================
   5. HERO SECTION
   The big intro block under the header.
   ============================================ */

.hero {
  padding: 5rem 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  background:
    radial-gradient(ellipse at center, #2e1f08 0%, var(--bg-dark) 70%);
}

.hero-frame {
  max-width: 650px;           /* TWEAK ME — how wide the hero text box gets */
  text-align: center;
  border: 1px solid var(--accent-dim);
  padding: 3rem 2.5rem;
  position: relative;
}
.card-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;        /* fills the space, crops the edges */
  object-position: center;  /* TWEAK ME — try "top" or "bottom" to control what gets cropped */
  display: block;
  border: 2px solid #1e0000;
}

/* decorative corner marks on the hero box */
.hero-frame::before,
.hero-frame::after {
  content: '✦';
  position: absolute;
  color: var(--accent);
  font-size: 1.5rem;
}
.hero-frame::before { top: -0.75rem; left: 50%; transform: translateX(-50%); background: var(--bg-dark); padding: 0 0.5rem; }
.hero-frame::after  { bottom: -0.75rem; left: 50%; transform: translateX(-50%); background: var(--bg-dark); padding: 0 0.5rem; }

.hero-text {
  font-size: 1.3rem;          /* TWEAK ME — hero intro text size */
  font-style: italic;
  line-height: 2;
  color: var(--ink);
  margin-bottom: 2.5rem;
}

/* ============================================
   THE BUTTON
   ============================================ */

.cta-button {
  display: inline-block;
  padding: 0.75rem 2.5rem;
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.cta-button:hover {
  background: var(--accent);
  color: var(--bg-dark);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}


/* ============================================
   6. SECTION TITLES
   Shared style for all h2 headings
   ============================================ */

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: var(--accent);
  text-align: center;
  margin-bottom: 2.5rem;
  text-shadow: 1px 1px 0 var(--danger);
}


/* ============================================
   7. CARD GRID & CARDS
   This is where your trading cards live!
   ============================================ */

.card-preview {
  padding: 5rem 1.5rem;
  background-color: var(--bg-mid);
  border-top: 1px solid var(--accent-dim);
  border-bottom: 1px solid var(--accent-dim);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));  /* TWEAK ME — card min width */
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.card {
  background: var(--bg-card);
  color: var(--ink-dark);
  border: 7px solid #00000079;
  box-shadow:
    inset 0 0 30px rgba(0,0,0,0.15),
    4px 4px 0 var(--accent-dim);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-6px) rotate(-1deg);   /* TWEAK ME — hover tilt amount */
  box-shadow:
    inset 0 0 30px rgba(0,0,0,0.15),
    6px 10px 0 var(--accent-dim);
}

.card-inner {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
}

/* The image placeholder — replace with <img> tags when you have art! */
.card-img-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;       /* TWEAK ME — card art proportions */
  background: linear-gradient(135deg, #ff0000, #ffc8c8);
  border: 2px solid #ffb1b1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: rgba(0,0,0,0.15);
  font-style: italic;
}

.card-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ink-dark);
}

.card-type {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: #ffdfdf;
  font-style: italic;
}

.card-flavor {
  font-size: 0.9rem;
  font-style: italic;
  color: #4a3010;
  border-top: 1px solid #5c3636;
  padding-top: 0.5rem;
  width: 100%;
}


/* ============================================
   8. ABOUT SECTION
   ============================================ */

.about {
  padding: 5rem 1.5rem;
  display: flex;
  justify-content: center;
}

.about-inner {
  max-width: 680px;
  text-align: center;
}

.about-inner p {
  margin-bottom: 1.25rem;
  font-size: 1.15rem;
  color: var(--ink);
  opacity: 0.85;
}


/* ============================================
   9. FOOTER
   ============================================ */

.site-footer {
  text-align: center;
  padding: 2rem 1rem;
  border-top: 1px solid var(--accent-dim);
  font-size: 0.85rem;
  color: var(--ink);
  opacity: 0.4;
  letter-spacing: 0.1em;
}


/* ============================================
   10. ANIMATIONS
   ============================================ */

/* Fade in on load */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.site-header,
.hero,
.card-preview,
.about {
  animation: fadeIn 0.8s ease both;  /* TWEAK ME — animation duration */
}

.card-preview { animation-delay: 0.15s; }
.about        { animation-delay: 0.3s; }


/* ============================================
   11. RESPONSIVE / MOBILE
   Adjustments for smaller screens
   ============================================ */

@media (max-width: 600px) {
  .hero-frame {
    padding: 2rem 1.25rem;
  }
  .hero-text {
    font-size: 1.1rem;
  }
  .card-grid {
    grid-template-columns: 1fr 1fr;  /* TWEAK ME — columns on mobile */
  }
}
/* Make the placeholder a positioning anchor */
.card-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 2px solid #8a4040;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* The vignette overlay */
.card-img-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;                /* covers the whole image */
  pointer-events: none;    /* so the image is still clickable underneath */

  /* TWEAK ME — this is the vignette gradient */
  background: radial-gradient(
    ellipse at center,
    transparent 60%,       /* TWEAK ME — how far the clear center reaches */
    rgba(0, 0, 0, 0.5) 100%  /* TWEAK ME — vignette darkness (0.0 to 1.0) */
  );
}

/* ============================================
   FLOATING MINT WIDGET
   Sticks to the right side of the screen
   and scrolls with the page.
   ============================================ */

.mint-widget {
  position: fixed;
  right: 1.25rem;               /* TWEAK ME — distance from right edge */
  top: 50%;
  transform: translateY(-50%);  /* keeps it vertically centered */
  z-index: 500;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;

  background: rgba(20, 14, 4, 0.88);
  border: 1px solid var(--accent-dim);
  box-shadow:
    0 0 30px rgba(200, 150, 42, 0.12),
    inset 0 0 20px rgba(0,0,0,0.4);
  padding: 1rem 0.85rem 1.1rem;
  width: 140px;                 /* TWEAK ME — widget width */

  /* subtle float animation */
  animation: widgetFloat 4s ease-in-out infinite;
}

@keyframes widgetFloat {
  0%   { transform: translateY(-50%) translateY(0px);   }
  50%  { transform: translateY(-50%) translateY(-7px);  }  /* TWEAK ME — float height */
  100% { transform: translateY(-50%) translateY(0px);   }
}

/* The pack image */
.mint-pack-img {
  width: 100%;
  display: block;
  image-rendering: crisp-edges;  /* keeps pixel art sharp if applicable */
  filter: drop-shadow(0 4px 12px rgba(200, 150, 42, 0.25));
}

/* Mint button */
.mint-button {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.45rem 0;
  background: var(--accent);
  color: var(--bg-dark);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--accent);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.mint-button:hover {
  background: transparent;
  color: var(--accent);
  box-shadow: 0 0 14px rgba(200, 150, 42, 0.4);
}

/* Price display */
.mint-price-block {
  text-align: center;
  line-height: 1.4;
}

.mint-sol-price {
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  font-family: var(--font-body);
}

.mint-usd-price {
  font-size: 1.05rem;           /* TWEAK ME — USD price text size */
  color: var(--ink);
  font-family: var(--font-body);
  font-style: italic;
}

.mint-price-note {
  font-size: 0.65rem;
  color: var(--ink);
  opacity: 0.35;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 0.1rem;
}


/* Hide widget on very small screens so it doesn't cover content */
@media (max-width: 500px) {
  /* On mobile: switch from side float to a fixed bottom bar */
  .mint-widget {
    display: flex;
    flex-direction: row;        /* horizontal layout on mobile */
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;

    /* pin to the bottom of the screen */
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    top: auto;
    transform: none;
    animation: none;

    width: 100%;
    border-top: 1px solid var(--accent-dim);
    border-left: none;
    border-right: none;
    border-bottom: none;
    padding: 0.6rem 1.25rem;
    border-radius: 0;
  }

  .mint-pack-img {
    width: 44px;                /* small pack image on mobile */
    flex-shrink: 0;
  }

  .mint-price-block {
    flex: 1;
    text-align: left;
  }

  .mint-sol-price { font-size: 0.75rem; }
  .mint-usd-price { font-size: 0.95rem; }
  .mint-price-note { font-size: 0.6rem; }

  .mint-button {
    width: auto;
    padding: 0.5rem 1.25rem;
    flex-shrink: 0;
    font-size: 0.9rem;
  }

  /* stop page content being hidden behind the bottom bar */
  body {
    padding-bottom: 70px;
  }
