/* 
  Author: Andrew H
  File: style.css
  Description: Main styles for Project Emberfall final HTML/CSS project.
*/

/* Global reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Roboto", Arial, sans-serif;
  background: #050816;             /* hex color */
  color: rgb(230, 230, 230);        /* rgb color */
  line-height: 1.6;
}

/* Layout container */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem;
}

/* Header with gradient + box shadow */
.site-header {
  background: linear-gradient(120deg, #151c3b, #2b124c); 
  color: white;                                          
  padding: 1rem 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);             
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo-title h1 {
  font-family: "Orbitron", "Rajdhani", sans-serif;
  font-size: 2rem;
  letter-spacing: 0.1em;           
  text-transform: uppercase;
}

.tagline {
  font-family: "Rajdhani", sans-serif;
  font-size: 0.9rem;
  color: rgb(200, 230, 255);
}

/* Navigation */
.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.main-nav a {
  text-decoration: none;
  font-family: "Rajdhani", sans-serif;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;           
  border: 1px solid white;
  transition: transform 0.2s ease, filter 0.2s ease, background-color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  background-color: #0fffff;
  color: #050816;
  transform: scale(1.05);        
  filter: brightness(1.2);      
}

/* Hero section */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr);
  gap: 2rem;
  margin-top: 2rem;
  padding: 2rem;
  background: radial-gradient(circle at top left, #2b124c, #050816);
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
}

.hero h2 {
  font-family: "Orbitron", sans-serif;
  margin-bottom: 0.75rem;
}

.hero p {
  margin-bottom: 1rem;
}

.hero-image img {
  width: 100%;
  border-radius: 1.25rem;
  display: block;
  filter: saturate(1.2);         
  transition: filter 0.2s ease, transform 0.2s ease;
}

.hero-image img:hover {
  filter: saturate(1.4) grayscale(0.2);  
  transform: translateY(-4px);           
}

.hero-image figcaption {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: rgb(190, 210, 240);
}

/* Buttons */
.btn-primary,
.btn-outline {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  font-family: "Rajdhani", sans-serif;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-primary {
  background: #0fffff;
  color: #050816;
  border: none;
  box-shadow: 0 8px 18px rgba(0, 255, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);           
  box-shadow: 0 12px 26px rgba(0, 255, 255, 0.5);
}

.btn-outline {
  border: 1px solid #0fffff;
  color: #0fffff;
  background: transparent;
}

.btn-outline:hover {
  background: #0fffff;
  color: #050816;
}

/* Features grid */
.features {
  margin-top: 3rem;
}

.features h2 {
  font-family: "Orbitron", sans-serif;
  margin-bottom: 1rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: rgba(10, 14, 45, 0.9);
  padding: 1.2rem;
  border-radius: 1.25rem;
  border-left: 4px solid #0fffff;    
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.7);
}

/* CTA devlog section */
.cta-devlog {
  margin-top: 3rem;
  padding: 2rem;
  border-radius: 1.5rem;
  background: rgba(10, 10, 40, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 1.5rem;
  margin-top: 3rem;
  font-size: 0.85rem;
  color: rgb(190, 190, 190);
}

/* Responsive tweaks */
@media (max-width: 800px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .main-nav ul {
    justify-content: center;
  }

  body {
    font-size: 0.95rem;
  }
}

/* Print styles with @page */
@media print {
  @page {
    margin: 1in;
  }

  body {
    background: white;
    color: black;
    font-family: "Times New Roman", serif;
  }

  .site-header,
  .site-footer,
  .btn-primary,
  .btn-outline,
  nav {
    display: none;
  }

  main {
    max-width: 100%;
    margin: 0;
    padding: 0;
  }
}

/* ===== Page shared styles ===== */

.page-header {
  max-width: 1100px;
  margin: 2rem auto 1.5rem auto;
  padding: 0 1.5rem;
}

.page-header h1 {
  font-family: "Orbitron", sans-serif;
  margin-bottom: 0.5rem;
}

.page-intro {
  max-width: 800px;
  color: rgb(200, 220, 245);
}

/* Generic content section style */
.content-section {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 1.75rem;
  border-radius: 1.5rem;
  background: rgba(10, 14, 50, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.7);
}

.content-section h2 {
  font-family: "Orbitron", sans-serif;
  margin-bottom: 0.75rem;
}

.content-section p {
  margin-bottom: 0.75rem;
}

/* Fancy list styles */
.fancy-list {
  margin-left: 1.5rem;
  margin-top: 0.5rem;
}

.fancy-list li {
  margin-bottom: 0.4rem;
}

.fancy-list.ordered {
  list-style-type: decimal-leading-zero;
}

/* Description list */
.lore-glossary {
  margin-top: 0.75rem;
}

.lore-glossary dt {
  font-weight: 600;
  font-family: "Rajdhani", sans-serif;
  margin-top: 0.75rem;
  color: #0fffff;
}

.lore-glossary dd {
  margin-left: 1.25rem;
  margin-bottom: 0.25rem;
}

/* ===== Media page styles ===== */

.table-wrapper {
  overflow-x: auto;
}

.media-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.95rem;
}

.media-table th,
.media-table td {
  padding: 0.6rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.media-table thead {
  background: linear-gradient(120deg, #151c3b, #2b124c);
}

.media-table thead th {
  font-family: "Rajdhani", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.media-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.03);
}

.media-table tfoot td {
  font-size: 0.8rem;
  color: rgb(190, 200, 220);
}

/* Image map */
.image-map-container {
  margin-top: 1rem;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.image-map-container img {
  display: block;
  width: 100%;
}

.map-region-notes h3 {
  margin-top: 0.75rem;
  font-family: "Rajdhani", sans-serif;
  color: #0fffff;
}

/* Video and audio players */
.media-player {
  margin-top: 1rem;
}

.video-player,
.audio-player {
  width: 100%;
  max-width: 800px;
  display: block;
  border-radius: 1rem;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.8);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.gallery-item img {
  width: 100%;
  display: block;
  border-radius: 1rem;
}

.gallery-item figcaption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: rgb(190, 210, 240);
}

/* ===== Devlog styles ===== */

.devlog-entry {
  padding: 1rem 1.25rem;
  border-radius: 1.25rem;
  background: rgba(5, 10, 40, 0.9);
  border-left: 4px solid #0fffff;
  margin-bottom: 1rem;
}

.devlog-entry h3 {
  margin-bottom: 0.25rem;
}

.devlog-date {
  font-size: 0.8rem;
  color: rgb(170, 190, 210);
  margin-bottom: 0.5rem;
}

/* ===== Contact form styles ===== */

.form-section {
  max-width: 700px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-row label,
fieldset legend {
  font-weight: 500;
  font-family: "Rajdhani", sans-serif;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="number"],
.contact-form select,
.contact-form textarea {
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(3, 7, 30, 0.9);
  color: rgb(230, 230, 230);
}

fieldset.form-row {
  border-radius: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.8rem 1rem;
}

fieldset.form-row label {
  margin-right: 1rem;
}

.checkbox-row label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.form-buttons {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.form-buttons input[type="submit"],
.form-buttons input[type="reset"] {
  padding: 0.5rem 1.3rem;
  border-radius: 999px;
  border: 1px solid #0fffff;
  background: transparent;
  color: #0fffff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: "Rajdhani", sans-serif;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.form-buttons input[type="submit"]:hover,
.form-buttons input[type="reset"]:hover {
  background: #0fffff;
  color: #050816;
  transform: translateY(-2px);
}

/* Small-screen tweaks for forms and tables */
@media (max-width: 600px) {
  .content-section {
    padding: 1.25rem;
  }

  .media-table th,
  .media-table td {
    font-size: 0.85rem;
  }
}
