/* ==========================================================================
   1. GLOBAL DESIGN SYSTEM VARIABLES & FONTS
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;700;900&family=Be+Vietnam+Pro:wght@400;600;700;900&family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

:root {
  /* Color Palette */
  --color-black: #000000;
  --color-white: #ffffff;
  --color-primary-red: #ff0000;
  --color-primary-blue: #0000ff;
  --color-primary-yellow: #ffff00;
  --color-gray-dark: #121212;
  --color-gray-muted: #9ca3af;
  --color-gray-light: #e5e7eb;

  /* Typography */
  --font-headline: "Space Grotesk", sans-serif;
  --font-body: "Be Vietnam Pro", sans-serif;

  /* Layout Spacing */
  --max-width: 1200px;
  --margin-desktop: 3rem;
  --margin-mobile: 1.5rem;
  --gutter: 2rem;
  --section-gap: 6rem;
  --vertical-padding: 3rem;
  
  /* Borders & Shadows */
  --border-width: 2px;
  --outline-border: var(--border-width) solid var(--color-black);
  /* Heavy opaque drop shadow */
  --heavy-border: var(--outline-border, 3px solid #000000);
  --heavy-shadow: 4px 4px 0px var(--color-black, #000000);
}

/* ==========================================================================
   2. CORE BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-white);
  color: var(--color-black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  /* font-weight: 700; */
  text-decoration: none;
}

.review-content a {
  color: var(--color-primary-blue);
  /* font-weight: 500; */
  text-decoration: underline;
  /* padding-top: 2rem; */
}

a:hover {
  color: var(--color-primary-red);
  transition: color 0.2s ease;
  /* text-decoration: underline; */
}

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

/* ==========================================================================
   2.5 GLOBAL MARGINS
   ========================================================================== */

.wrapper {

  max-width: 75rem; /* 1200px / 16px base font size */
  
  /* Centers the container horizontally on the screen */
  margin-inline: auto;
  
  /* Creates consistent gutter margins on the left and right */
  padding-inline: 1.5rem; 
  padding-block: 3rem;

  /* Add space btwn main content and footer */
  /* padding-bottom: 3rem;  */
  /* padding-top: 3rem; */
}

.vertical-padding {
  padding-block: var(--vertical-padding)
}

/* Responsive bump: a tiny bit more side-room on desktop */
@media (min-width: 48rem) { /* 768px */
  .wrapper {
    padding-inline: 2.5rem;
    /* padding-block: 3rem; */
  }
}

main#main-content {
  /* add sum margin between top nav + main content area */
  /* padding-block: var(--vertical-padding);  */
  /* padding-bottom: 3rem; */
}

/* ==========================================================================
   3. UTILITY & THEME CLASSES
   ========================================================================== */
   
.primary-red { background-color: var(--color-primary-red); color: var(--color-white); }
.primary-blue { background-color: var(--color-primary-blue); color: var(--color-white); }
.primary-yellow { background-color: var(--color-primary-yellow); color: var(--color-black); }

.outline-border { border: var(--outline-border); }

.hero-header {
  font-family: var(--font-headline);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-weight: 900;
}

/* Background decorative grid */
.background-grid-fill {
  background-image: 
    linear-gradient(to right, rgba(0, 0, 0, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ==========================================================================
   4. LAYOUT CONTAINERS
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--margin-mobile);
  padding-right: var(--margin-mobile);
}

@media (min-width: 768px) {
  .container {
    padding-left: var(--margin-desktop);
    padding-right: var(--margin-desktop);
  }
}

.header-wrapper {

  max-width: 75rem; /* 1200px / 16px base font size */
  
  /* Centers the container horizontally on the screen */
  margin-inline: auto;
  
  /* Creates consistent gutter margins on the left and right */
  padding-inline: 2.5rem; 

}



/* ==========================================================================
   5. COMPONENT STYLES
   ========================================================================== */

/* Navigation Header */
header {
  background-color: var(--color-white);
  border-bottom: var(--outline-border);
  position: sticky;
  top: 0;
  z-index: 50;
  /* height: 5rem; */
  /* display: flex; */
  /* align-items: center; */
  transition: box-shadow 0.2s ease;
}

/* this doesn't get used and i forget why i made it */
/* .header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
} */

.site-head {
  padding-block: 1.5rem;
  background-color: var(--color-white, #ffffff);
  border-bottom: 2px solid var(--color-black, #000000);
}

/* Core inner layout container */
.site-head__inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem; /* Separates logo group from nav links on mobile screens */
}

.brand-identity {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand-logo-box {
  width: 3rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-name {
  font-family: var(--font-headline);
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.05em;
}

nav.nav-desktop {
  display: none;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  nav.nav-desktop { display: flex; }
}

/* Nav List Grouping Matrix */
.nav-list {
  display: flex;
  flex-wrap: wrap;
  /* justify-content: center; */
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none; /* Destroys default browser bullet points */
}

.nav-link {
  font-family: var(--font-headline);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
}

.nav-link.active { color: var(--color-primary-red); }

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--color-primary-red);
  transition: width 0.1s ease;
}

.nav-link:hover::after { width: 100%; }


/* ==========================================================================
   HEADER/NAV: responsive breakpoint stuff (768px+)
   ========================================================================== */
@media (min-width: 48rem) {
  .site-head__inner {
    flex-direction: row;
    align-items: center; 
    justify-content: space-between; /* Pushes brand left, navigation menu right */
    gap: 0;
  }

  .nav-list {
    justify-content: flex-end;
    gap: 2.5rem; /* Wider link gaps on wider layout monitors */
  }
}



/* Hero Section */
.hero-section {
  border-bottom: var(--outline-border);
  /* padding-top: 4rem;
  padding-bottom: 5rem; */
  
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  /* padding-bottom: 3rem; */
}

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .hero-visual { grid-column: span 7 / span 7; }
  .hero-content { grid-column: span 5 / span 5; }
}

.hero-image-wrapper {
  position: relative;
}

.hero-image-shadow {
  position: absolute;
  bottom: -1rem;
  right: -1rem;
  width: 100%;
  height: 100%;
  background-color: var(--color-primary-blue);
  border: var(--outline-border);
  z-index: 1;
}

.hero-image-container {
  position: relative;
  /* aspect-ratio: 16/9; */
  overflow: hidden;
  border: var(--outline-border);
  z-index: 2;
}

.hero-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .hero-title { font-size: 3.75rem; }
}

.hero-title span {
  padding: 0 0.5rem;
}

.hero-text {
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.cta-button {
  padding: 1rem 2rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: background-color 0.1s ease-out, transform 0.1s ease-out;
  border: var(--outline-border);
}

.pagination-button {
  padding: 1rem 2rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.875rem;
  display: inline-flex;
  gap: 0.75rem;
  transition: background-color 0.1s ease-out, transform 0.1s ease-out;
}

.button:hover {
  background-color: var(--color-black);
  color: var(--color-white);
}

hr {
  border: none;
  border-top: 2px solid var(--color-black, #000000);
  
  /* Forces the line to span the true 100% width of the viewport screen */
  width: 100vw;
  
  /* Breaks the element out of standard layout container boundaries */
  position: relative;
  left: 50%;
  right: 50%;
  margin-inline-start: -50vw;
  margin-inline-end: -50vw;
  
  /* Controls spacing above and below the divider line */
  /* margin-block: 0rem;  */
}

/* Cards Section Layout */
.cards-section {
  /* padding-top: var(--section-gap);
  padding-bottom: var(--section-gap); */
}

.section-header {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: 3rem;
  gap: 1rem;
}

@media (min-width: 768px) {
  .section-header {
    flex-direction: row;
    align-items: flex-end;
  }
}

.section-title-wrapper .accent-bar {
  height: 0.5rem;
  width: 6rem;
  margin-top: 0.5rem;
}

.archive-link {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: var(--border-width) solid var(--color-black);
  padding-bottom: 0.25rem;
  align-self: flex-start;
}

.archive-link .material-symbols-outlined {
  font-size: 0.875rem;
  transition: transform 0.1s ease;
}

.archive-link:hover .material-symbols-outlined {
  transform: translateX(4px);
}

/* Review Card Grid & Individual Cards */
.cards-grid {
  display: grid;
  /* grid-template-columns: 1fr;
  gap: var(--gutter); */
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2.5rem;
  /* margin-top: 2rem; */
}

@media (min-width: 768px) {
  .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.review-card {
  /* background-color: var(--color-white); */
  position: relative;
  /* ^ this is critical for some reason ?  ?  */
  display: flex;
  flex-direction: column;
  background-color: var(--color-white);
  /* why do i need to specify if it's the same as the page bg?... idk */
  /* height: 100%; */
  border: var(--outline-border);
  padding: 1.25rem;
  transition: transform 0.1s ease-out, box-shadow 0.1s ease-out;
}

.review-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 6px 6px 0px 0px var(--color-black);
}


.card-media-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border: var(--outline-border);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

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

/* this crap makes the whole card link. i think */

.main-card-link::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1; /* so the entire card is linked */
}

/* Fixes selector focus lines so screen reader focus states outlines wrap the whole card */
.review-card:focus-within {
  outline: 3px solid var(--color-primary-red, #ff0000);
}


.card-floating-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tag-badge {
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.125rem 0.5rem;
}

.tag-badge a {
  color: var(--color-white);
  text-decoration: none;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.card-description {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: var(--border-width) solid var(--color-black);
  font-size: 0.75rem;
  font-weight: 900;
}


/* ==========================================================================
   REVIEW PAGE CONTENT STYLES
   ========================================================================== */

.review-content p {
  margin-bottom: 1.75rem; /* spacing btwn editorial paragraphs */
  line-height: 1.7;
  font-size: 1.125rem; /* slightly larger base font size for reviews */
}

.review-content h1 {
  margin-bottom: 1rem;
} 
.review-content h2, 
.review-content h3 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.review-hero-image-wrapper {
  margin-block: 2rem;
}

.review-hero-image {
  width: 100%;
  height: auto;
  max-height: 500px; /* Caps the vertical scale on ultrawide desktops */
  object-fit: cover;
  border: var(--outline-border, 3px solid #000000);
}

.review-content ol,
.review-content ul {
  /* gets rid of browser indentation padding */
  padding-left: 1.5rem; 
  margin-bottom: 1.75rem; 
}

.review-content li {
  line-height: 1.6;
  font-size: 1.125rem;
  margin-bottom: 0.5rem; 
}

/* Keeps numbers inside the layout box tree */
.review-content ol {
  list-style-position: inside;
  padding-left: 0; 
}

/* review images scaling/border settings */
.review-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-block: 2.5rem; /* spacing around image */
  /* border: var(--outline-border, 3px solid #000000);
  box-shadow: 4px 4px 0px var(--color-black, #000000);  */
  /* refactored ^ below  */
  border: var(--heavy-border);
  box-shadow: var(--heavy-shadow);
}

/* this is just for the 'hero' or first image at the top of the review */
.review-content img:first-of-type {
  /* Keeps the 2.5rem bottom margin, but sets the top margin to 0 */
  margin-block: 0 2.5rem; 
}


/* adds a little tombstone character to the end of the review's body copy */
.review-content > p:last-of-type::after {
  content: "RPG";
  /* some other options: "☻✶❉✱🅁🄴 🆁🅴";  */

  /* content: ""; */
  /* background-image: url('/images/custom-tombstone.svg');  */
  /* in the future if u want to use an SVG instead */
  
  font-weight: 900;
  font-size: .75rem;
  color: var(--color-primary-red, #ff0000);
  display: inline-block;
  margin-left: 0.4rem; /* tombstone spacing after the last punctuation mark */
}


/* ==========================================================================
   Review (Post) Layout Grid & Content
   ========================================================================== */

.post-layout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-top: 3rem;
}

/* Typography spacing for review content (wait didn't i do this somewhere else?) */
.review-content p {
  margin-bottom: 1.75rem;
  line-height: 1.7;
  font-size: 1.125rem;
}

.review-content ol,
.review-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1.75rem;
}

@media (min-width: 58rem) { /* Desktop mode dimensions */
  .post-layout-grid {
    grid-template-columns: 1fr 320px;
    gap: 4rem;
  }

  /* Forces full-bleed horizontal expansion across columns for layout breaks */
  .post-layout-grid hr.divider,
  .post-layout-grid .recommended-posts-container {
    grid-column: 1 / -1; 
  }
}

.recommended-posts-container{
  padding-top: 3rem;
}

.recommended-posts-container h2 {
  /* margin-top: 2.5rem; */
  margin-bottom: 2rem;
}


/* ==========================================================================
   REIVEW PAGE SIDEBAR
   ========================================================================== */
.review-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.scorecard-block {
  padding: 1.5rem;
  color: #ffffff;
  border: var(--heavy-border);
  box-shadow: var(--heavy-shadow);
}

.scorecard-block.primary-yellow {
  color: var(--color-black, #000000);
}

.scorecard-title {
  font-family: var(--font-headline);
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-top: 0;
  margin-bottom: 1.25rem;
}

.text-center {
  text-align: center;
}

.score-display-box {
  background-color: var(--color-white, #ffffff);
  color: var(--color-black, #000000);
  /* border: 3px solid var(--color-black, #000000); */
  border: var(--heavy-border);
  box-shadow: var(--heavy-shadow);
  /* width: 7.5rem; */
  /* height: 7.5rem; */
  padding-bottom: 0.25rem;
  margin: 0 auto 1.25rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.score-display-box span {
  font-family: var(--font-headline);
  font-size: 3rem;
  font-weight: 900;
}

.score-verdict-text {
  font-family: var(--font-headline);
  font-size: 1rem;
  font-weight: 900;
  /* text-transform: uppercase; */
}

.specs-table-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.specs-table-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-block: 0.5rem;
  border-bottom: var(--color-white, #ffffff) solid 2px;
}

.specs-table-list li:last-child {
  border-bottom: none;
}

.spec-label {
  font-family: var(--font-headline);
  font-weight: 700;
  text-transform: uppercase;
}

.spec-value {
  font-family: var(--font-headline);
  font-weight: 900;
  text-transform: uppercase;
  text-align: right;
}

.scorecard-links-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.scorecard-link-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--color-white, #ffffff);
  border: 2px solid var(--color-black, #000000);
  color: var(--color-black, #000000);
  text-decoration: none;
  padding: 0.85rem 1.25rem;
  font-family: var(--font-headline);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.95rem;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.scorecard-link-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--heavy-shadow);
}

/* ==========================================================================
   FOOTY FOOTY FOOTER 
   ========================================================================== */


/* Footer Section */
footer {
  background-color: var(--color-black);
  color: var(--color-white);
  border-top: 4px solid var(--color-primary-red);
  /* padding-top: 4rem;
  padding-bottom: 4rem; */
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .footer-brand-column { grid-column: span 5 / span 5; }
  .footer-links-column { grid-column: span 7 / span 7; }
}

.footer-brand-column .brand-name {
  color: var(--color-white);
  margin-bottom: 1.5rem;
}

.footer-brand-description {
  color: var(--color-gray-light);
  font-size: 1rem;
  line-height: 1.5;
  max-width: 24rem;
  margin-bottom: 1.5rem;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.social-icon-btn {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.1s ease, color 0.1s ease;
}

.social-icon-btn:hover {
  background-color: var(--color-white);
  color: var(--color-black);
}

.footer-links-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

@media (min-width: 480px) {
  .footer-links-column { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.footer-nav-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-nav-group h4 {
  font-family: var(--font-headline);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.125rem 0.25rem;
  align-self: flex-start;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 900;
}

.footer-nav-list a:hover {
  color: var(--color-primary-red);
  transition: color 0.1s ease;
}

.footer-bottom {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: var(--border-width) solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gray-muted);
}

@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; }
}

.cta {
  padding: 4rem 0;
  margin-top: var(--section-gap);
  border-left: none;
  border-right: none;
}

.cta__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* text length control utility -- limits the width to 55 characters */
.measure-short {
  max-width: 55ch;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
}

.cta__heading {
  font-size: 3rem;
  margin-bottom: 1rem;
}