/* =========================================================
   prostyle.css
   Modern content area + retro header/nav/footer
   ========================================================= */

/* ---- Keep your retro palette so nav/footer can stay 90s ---- */
:root {
  --red:    #FF0000;
  --yellow: #FFFF00;
  --blue:   #00FFFF;
  --teal:   #00C4B3;
  --pink:   #FF00FF;
  --green:  #00ff15;
  --buttonBack:  #00ff15;

  --panel: #000033;
  --panel-2: #000044;

  --bevel-light: #44FFFF;
  --bevel-dark: #000000;

  /* ---- Pro content theme ---- */
  --pro-bg: #ffffff;
  --pro-text: #111827;      /* near-black */
  --pro-muted: #6b7280;     /* grey */
  --pro-border: #e5e7eb;    /* light border */
  --pro-link: #0b5fff;      /* readable blue */
  --pro-link-hover: #063aa8;

  --pro-max: 70rem;
}

/* =========================================================
   Page layout
   ========================================================= */

body {
  font: 100%/1.6 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  max-width: var(--pro-max);
  margin-inline: auto;
  padding: 1rem;

  /* keep your retro tile behind everything if you want */
  background-repeat: repeat;
  background-image: url("images/tile.jpg");
  background-color: #000033;
  color: var(--pro-text);
}

/* Optional: if you use a wrapper like <main class="pro-content"> ... */
.pro-content {
  background: var(--pro-bg);
  color: var(--pro-text);

  border: 1px solid var(--pro-border);
  border-radius: 0.75rem;

  padding: clamp(1rem, 2vw, 2rem);
  margin-block: 1rem;

  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* If you *don’t* want to change HTML, this makes your existing
   content containers render “pro” while nav/footer remain retro.
   If you prefer only .pro-content, delete this block. */
section,
article {
  background: var(--pro-bg);
  color: var(--pro-text);

  border: 1px solid var(--pro-border);
  border-radius: 0.75rem;

  padding: clamp(1rem, 2vw, 2rem);
  margin-block: 1rem;

  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* =========================================================
   Headings (pro hierarchy)
   ========================================================= */

h1, h2, h3 {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--pro-text);
  text-transform: none;
  text-shadow: none;
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem 0;
}

h1 {
  font-size: clamp(2rem, 2.6vw, 2.6rem);
  line-height: 1.15;
  border-bottom: 2px solid var(--pro-border);
  padding-bottom: 0.5rem;
}

h2 {
  font-size: clamp(1.35rem, 1.8vw, 1.8rem);
  line-height: 1.25;
  margin-top: 1.6rem;
}

h3 {
  font-size: 1.1rem;
  line-height: 1.35;
  margin-top: 1.1rem;
  color: #1f2937;
}

section > h2:first-child {
  margin-top: 0;
}


/* Remove your retro divider on h1 for pro pages */
h1::after { content: none; }

/* =========================================================
   Typography
   ========================================================= */

p, li {
  font-size: 1rem;
  color: var(--pro-text);
}

p {
  margin: 0 0 1rem 0;
  text-align: justify;
  text-justify: inter-word;
}

.pro-content p,
.pro-content li {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}


ul, ol {
  padding-left: 1.25rem;
}

hr {
  border: none;
  border-top: 1px solid var(--pro-border);
  margin: 1.5rem 0;
}

/* =========================================================
   Links (pro)
   ========================================================= */

@keyframes rainbowShift {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* Normal state (professional) */
a {
  color: var(--pro-link);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  transition: text-decoration-color 0.2s ease;
}

/* Hover state (animated rainbow text) */
a:hover {
  background: linear-gradient(
    90deg,
    red,
    yellow,
    cyan,
    magenta,
    red
  );
  background-size: 200% auto;
  animation: rainbowShift 3s linear infinite;

  background-clip: text;
  -webkit-background-clip: text;

  color: transparent;
  -webkit-text-fill-color: transparent;

  text-decoration-color: rgba(0,0,0,0); /* hide underline while rainbow is active */
}

/* Accessibility: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  a:hover {
    animation: none;
    background-size: 100% auto;
  }
}


/* =========================================================
   Images + captions (centered)
   ========================================================= */

/* Use either:
   1) <figure class="pro-figure"><img ...><figcaption>...</figcaption></figure>
   2) <img class="pro-image"> <div class="pro-caption">...</div>
*/

.pro-figure figcaption {
  margin-top: 0.6rem;
  font-style: italic;
  color: var(--pro-muted);
  font-size: 0.95rem;

  text-align: justify;
  text-justify: inter-word;
}


.pro-figure img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;

  border-radius: 0.5rem;
  border: 1px solid var(--pro-border);
  box-shadow: 0 10px 22px rgba(0,0,0,0.12);
}

.pro-figure figcaption {
  margin-top: 0.6rem;
  font-style: italic;
  color: var(--pro-muted);
  font-size: 0.95rem; /* slightly smaller than paragraph */
}

.pro-image {
  display: block;
  margin: 1.5rem auto 0.6rem;
  max-width: 100%;
  height: auto;

  border-radius: 0.5rem;
  border: 1px solid var(--pro-border);
  box-shadow: 0 10px 22px rgba(0,0,0,0.12);
}

.pro-caption {
  text-align: center;
  font-style: italic;
  color: var(--pro-muted);
  font-size: 0.95rem;
  margin: 0 0 1.5rem 0;
}

/* =========================================================
   Forms (pro)
   ========================================================= */

form {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 0.75rem 1.25rem;
  align-items: start;
}

label {
  text-align: right;
  padding-top: 0.55rem;
  color: #374151;
}

input,
textarea,
select {
  font: inherit;
  width: 100%;
  box-sizing: border-box;

  padding: 0.65rem 0.75rem;
  border: 1px solid var(--pro-border);
  border-radius: 0.5rem;
  background: #ffffff;
  color: var(--pro-text);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.25);
}

textarea {
  min-height: 7rem;
  resize: vertical;
}

/* pro button (does not affect your retro nav buttons) */
.pro-button,
button {
  font: inherit;
  padding: 0.7rem 0.95rem;
  border-radius: 0.6rem;
  border: 1px solid var(--pro-border);
  background: #111827;
  color: #ffffff;
  cursor: pointer;
}

.pro-button:hover,
button:hover {
  background: #0b1220;
}

/* =========================================================
   Keep 90s core for NAV + FOOTER (copied/adapted from yours)
   ========================================================= */

nav {
  margin-bottom: 1.25rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 0.1rem;

  padding: 0;
  margin: 0;

  border-bottom: 2px solid var(--red);
}

nav li { flex: 1; }

nav a {
  display: flex;
  justify-content: center;
  align-items: center;

  height: 2.2rem;
  padding: 0;

  text-decoration: none;
  font-family: "Times New Roman", Times, serif;

  background: linear-gradient(180deg, #000055, #000033);

  /* 90s colors */
  color: var(--blue);

  /* bevel */
  border-top: 2px solid var(--teal);
  border-left: 2px solid var(--teal);
  border-right: 2px solid black;
  border-bottom: 3px solid transparent;

  text-shadow: 0 0 6px rgba(0,255,255,0.7);
  transition: color 0.15s ease, border-bottom-color 0.15s ease, background 0.15s ease;
}

nav a:hover {
  background: #000077;
  border-bottom-color: var(--red);
  color: var(--red);
}

nav a.active {
  font-weight: bold;
  color: var(--red);
  border-bottom-color: var(--red);
  background: #000066;
}

nav a.active:hover {
  background: #ad15bb;
  border-bottom-color: var(--red);
}

footer {
  margin-top: 2rem;
  text-align: center;

  /* keep it retro */
  font-family: "Times New Roman", Times, serif;
  color: var(--blue);
}

/* =========================================================
   Small-screen tweaks
   ========================================================= */

@media (max-width: 700px) {
  form { grid-template-columns: 1fr; }
  label { text-align: left; padding-top: 0; }
}


.mbta-table {
    border-collapse: collapse;
    width: 100%;
}

.mbta-table th,
.mbta-table td {
    border: 1px solid #000;
    padding: 0.5rem;
    vertical-align: top;
}

.mbta-table thead th {
    border-bottom: 4px double #000; /* double underline */
}


/* =========================================================
   Two-Image Comparison Grid
   ========================================================= */

.figure-grid {
  display: flex;                 /* forces horizontal */
  gap: 2rem;
  align-items: flex-start;       /* top-align */
  margin: 2rem 0;
}

.figure-grid .pro-figure {
  flex: 1;                       /* equal width columns */
  margin: 0;
  display: flex;
  flex-direction: column;        /* image + caption vertical */
}

.figure-grid img {
  width: 100%;
  height: 420px;                 /* <-- FIXED HEIGHT (adjust as desired) */
  object-fit: contain;           /* preserves aspect ratio */
  display: block;
}

.pro-header { margin-bottom: 1rem; }
.byline { margin: 0.25rem 0 0; color: var(--pro-muted); }
.subtitle { margin: 0.25rem 0 0; font-style: italic; color: var(--pro-muted); }



.map-wrapper {
  width: 100%;
  height: 600px;   /* adjust if you want taller */
  border: 1px solid #ccc;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}


/* --- Audio figure styling (drop into your stylesheet) --- */
.pro-audio-figure {
  margin: 1.25rem 0 2rem 0;
}

.pro-audio {
  display: block;
  width: 100%;
  max-width: 820px;     /* keeps it from looking comically wide on big screens */
  margin: 0 auto 0.75rem auto;
}

/* Optional: align caption with your existing figure style */
.pro-audio-figure figcaption {
  max-width: 820px;
  margin: 0 auto;
}


/* Make the whole card clickable */
.project-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Card styling */
.project-card article {
  border: 2px solid #ccc;
  border-radius: 12px;
  padding: 1.2rem;
  transition: all 0.25s ease;
  background: white;
}

/* Hover glow effect */
.project-card:hover article {
  border-color: #DBB13B; /* your Rapid Transit gold */
  box-shadow: 0 0 15px rgba(219, 177, 59, 0.6);
  transform: translateY(-3px);
}

/* Optional: slight image polish */
.project-card img {
  width: 100%;
  border-radius: 8px;
}

