/* ==========================================================================
   ERIC KELLEY PERSONAL WEBSITE STYLES
   ========================================================================== 
   
   TABLE OF CONTENTS:
   1. Base Styles & Typography
   2. Header & Navigation
   3. Resume Section
   4. Media Blocks (Games & Books)
   5. Role Classification Colors
   6. Footer
   7. Responsive Design
   
   ========================================================================== */

/* ==========================================================================
   1. BASE STYLES & TYPOGRAPHY
   ========================================================================== */

* {
  box-sizing: border-box;
}

body {
  background: #57808d url('images/gameboardbkg.jpg') repeat-y top center;
  margin: 0;
  padding: 0;
  padding-top: 120px;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #2d1810;
}

main {
  max-width: 768px;
  width: auto;
  margin: 0 auto;
  padding: 0 1rem;
}

section {
  margin: 3rem 0;
  scroll-margin-top: 140px;
}

section h2 {
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  color: #333;
  text-align: center;
}

/* ==========================================================================
   2. HEADER & NAVIGATION
   ========================================================================== */

h1 {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  font-size: 2rem;
  color: blue;
  margin: 0;
  background: black url('images/title3.jpg') no-repeat center center;
  background-size: auto;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 1.0);
  z-index: 1000;
  text-align: center;
  text-indent: -9999px;
  overflow: hidden;
}

h1 a {
  color: inherit;
  text-decoration: none;
  display: block;
  width: 100%;
  height: 100%;
}

h1 a:hover {
  text-decoration: none;
}

header {
  text-align: center;
  padding: 0rem 2rem;
}

nav {
  text-align: center;
  padding: 1rem;
}

nav a {
  margin: 0 1rem;
  text-decoration: none;
  font-weight: bold;
  color: #333;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  background: linear-gradient(#f5f5f5, #ffffff);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
  border-style: solid;
  border-width: 1px;
  border-color: rgba(255, 255, 255, 0.8);
  min-width: 120px;
  text-align: center;
  display: inline-block;
  text-wrap: nowrap;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   3. RESUME SECTION
   ========================================================================== */

#resume, #ipsteward-content {
  background: url('images/paper2.jpg') no-repeat top center;
  /* background: linear-gradient(#f4f4f4 96%, #ffffff 100%); */
  border-radius: 0 0 2px 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  margin: -120px 0 3rem 0;
  padding-top: 100px;
}
#ipsteward-content {
  padding-top: 10px;
  margin-top: 0;
  border-radius: 4px;
}

#resume>h2 {
  font-size: 1.2rem;
  color: #2d1810;
  text-align: center;
  margin: 1.5rem 0 0 0;
}

.about {
  padding: 1rem;
  margin: 0;
  border-radius: 8px;
}

.about h2 {
  font-size: 1.5rem;
  margin: 0;
  text-align: center;
}

.about blockquote {
  font-size: 1.2rem;
  font-style: italic;
  color: #2d1810;
  margin: 2rem 0 0 0;
  background: white;
  padding: 1.5rem 1.5rem 1.5rem 2.5rem;
  border-radius: 8px;
  position: relative;
}

.about blockquote::before {
  content: '“';
  font-size: 3rem;
  color: #568ca7;
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  line-height: 1;
}

.about blockquote::after {
  content: '”';
  font-size: 3rem;
  color: #568ca7;
  position: absolute;
  bottom: -0.5rem;
  right: 1rem;
  line-height: 1;
}

/* ==========================================================================
   4. MEDIA BLOCKS (GAMES & BOOKS)
   ========================================================================== */

/* Grid Layout */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

/* Base Media Block Styles */

.media-block {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-block: 0.75rem;
  background: linear-gradient(#eaeaea 0%, #ffffff 20%);
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  border-width: 1px;
  border-style: solid;
  border-color: rgba(255 , 255, 255, 0.2);
  max-width: 420px;
  height: 180px;
  transition: transform 0.3s ease;
}

.media-block:hover {
  transform: rotate(5deg);
}

.media-block:hover .text h3 {
  color: blue;
  text-decoration: underline;
}

#ipsteward.media-block, #books .media-block {
  height: 220px;
}

.media-block img {
  width: 120px;
  aspect-ratio: 1;
  flex-shrink: 0;
  border-radius: 4px;
  object-fit: contain;
}

.media-block .text {
  flex: 1;
  font-size: 15px; 
  line-height: 1.1;
}

#books .media-block .text ul li+li {
  margin-top: .5em;
}

.media-block .text h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  line-height: 1.3;
  color: #2d1810;
}

/* Section-Specific Styles */

/* Games Section - Pill-style role tags */

#games .media-block .text ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

#games .media-block .text li {
  border-radius: 6px;
  padding: 0.1rem 0.5rem;
  margin: 0.2rem 0;
  display: block;
}

/* Books Section - Traditional list styling */
#books .media-block .text ul {
  margin: 0.8rem;
  padding-left: 0.5rem;
}

#games h2, #books h2, #ipsteward h2 {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 2.4rem;
  color: rgb(22, 22, 53);
  margin-bottom: 1rem;
  text-align: center;
  background: url('images/flag.png') no-repeat center center;
  background-size: contain;
  max-width: 499px;
  height: 136px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 15px;
  text-shadow: 
    0px 0px 8px #cfc19e,
    0px 0px 12px #cfc19e,
    0px 0px 16px #cfc19e;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.8));
}

/* ==========================================================================
   5. ROLE CLASSIFICATION COLORS
   ========================================================================== */

/* Creative Leadership Roles */

.creative-lead, .creative-director {
  background: rgba(77, 157, 168, 0.3); /* Light blue */
}

/* IP Development Roles */
.ip-developer, .ip-consultant {
  background: rgba(161, 189, 122, 0.3); /* Light green */
}

/* Writing & Editorial Roles */
.writer, .senior-editor, .senior-writer, .contributing-writer {
  background: rgba(186, 138, 128, 0.3); /* Light red */
}

/* Narrative Roles */

.narrative-lead, .narrative-director, .narrative-developer, .narrative-consultant, .narrative-consultant-rpg {
  background: rgba(179, 155, 199, 0.3); /* Light violet */
}

/* ==========================================================================
   6. FOOTER
   ========================================================================== */

footer {
  background: rgb(24, 15, 2);
  color: white;
  text-align: center;
  padding: 2rem;
  margin-top: 3rem;
}

footer a {
  color: #87ceeb;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   7. RESPONSIVE DESIGN
   ========================================================================== */

/* Tablet and smaller screens */

@media (max-width: 768px) {
  main {
    max-width: auto;
    width: auto;
    padding: 0 0.5rem;
  }

  #games h2, #books h2, #ipsteward h2 {
  font-size: 8vw;
  }
  
  nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }
  
  nav a {
    margin: 0;
    width: auto;
    min-width: 120px;
  }
  
  .media-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  
  .media-block {
    max-width: none;
    width: 100%;
    max-width: 420px;
  }
  
  #games .media-block .text li {
    display: block;
    margin: 0.3rem 0;
    width: auto;
  }
  
  #games .media-block .text li::after {
    content: '\A';
    white-space: pre;
  }
}

/* Desktop and larger screens */

@media (min-width: 1200px) {
  .media-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/*---------- CONTACT ----------*/

#contact {display: flex; flex-direction: column; justify-content: center;}
#contact h2 {font-size: 1.4rem; color: #ffffff; text-align: center; margin-bottom: 1rem;}

form {width: 100%; max-width: 60rem; margin: 0 auto;}
.field {margin: 1em 0; border: 2px solid rgba(255,255,255,.2);}

input:not([type="checkbox"]):not([type="radio"]), select, textarea, button {position: relative; display: block; width: 100%; padding: 1rem; background: rgba(255,255,255,.1); font-size: 1.8rem; font-weight: inherit; line-height: inherit; border: 0; color: #fff;}
input:not([type="checkbox"]):not([type="radio"]):focus, select:focus, textarea:focus, button:focus {outline: none; background: rgba(255,255,255,.2);}
textarea {height: 10rem;}
button, input[type="button"], input[type="submit"] {text-transform: uppercase; font-weight: 600 !important; letter-spacing: .35em; cursor: pointer;}

label {display: block; padding: 1rem; text-transform: uppercase; letter-spacing: .35em; font-size: 1.2rem; font-weight: 600;}
input[type="checkbox"] + label, input[type="radio"] + label {display: inline; margin: 0;}

.error div {display: none; background: rgba(255,255,255,.6); font-weight: 600; font-size: 1.4rem; padding: 1rem; color: #0c0d12;}
.message div {display: none; background: #fff; color: #0c0d12; font-weight: 600; padding: 1.5rem; text-align: center; font-size: 1.3rem; text-transform: uppercase;}

.spinner {position: absolute; left: 1rem; top: calc(50% - 10px); border-radius: 50%; border: 5px solid rgba(255,255,255,.3); border-top-color: transparent; width: 20px; height: 20px; animation: spin 2s linear infinite;}
@keyframes spin {
	0% {transform: rotate(0deg);}
	100% {transform: rotate(360deg);}
}