/* ==========================================================================
   CHLOE WHITE — PERSONAL WEBSITE
   styles.css — Shared stylesheet for all pages
   Modelled on CCA Tel Aviv-Yafo gallery aesthetic
   ========================================================================== */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #1a1a1a;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: #1a1a1a; text-decoration: none; }
a:hover { color: #555; }

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

/* ---------- HEADER / TOP BAR ----------
   CCA-style: heavy black bottom border on header, name left, nav right.
   ========================================================================== */
header {
  border-bottom: 2px solid #1a1a1a;
  padding: 0 48px;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 100;
}

.header-inner {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}

/* ---------- SITE NAME / LOGO ---------- */
.site-name {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  white-space: nowrap;
}

.site-name a { color: #1a1a1a; }
.site-name a:hover { color: #1a1a1a; }

/* ---------- NAVIGATION ----------
   CCA: small caps, vertical pipe dividers between each item.
   ========================================================================== */
nav { display: flex; align-items: center; gap: 0; }

nav a {
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  padding: 6px 14px;
  transition: color 0.2s;
  white-space: nowrap;
  color: #1a1a1a;
  border-left: 1px solid #1a1a1a;
}

nav a:first-child { border-left: none; }
nav a:hover { color: #777; }
nav a.active {
  background: #1a1a1a;
  color: #fff;
}
nav a.active:hover { color: #fff; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
  color: #1a1a1a;
}

/* ---------- HERO LAYOUT ----------
   CCA: large image ~58% left, text ~42% right, full viewport height,
   image flush to edges, text vertically centred with right-side padding.
   ========================================================================== */
.hero {
  display: grid;
  grid-template-columns: 58fr 42fr;
  align-items: start;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.hero-image img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-text {
  padding: 60px 54px 60px 48px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
  box-sizing: border-box;
}

.hero-text h2 {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 22px;
  letter-spacing: 0.3px;
  line-height: 1.3;
}

.hero-text p {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 12px;
  color: #333;
}

/* ---------- READ MORE BUTTON ----------
   CCA: thin black border, small uppercase, arrow, no fill.
   ========================================================================== */
.read-more {
  display: inline-block;
  margin-top: 24px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  border: 1.5px solid #1a1a1a;
  padding: 10px 20px;
  transition: background 0.2s, color 0.2s;
  align-self: flex-start;
}

.read-more:hover {
  background: #1a1a1a !important;
  color: #fff;
}

/* ---------- PAGE LAYOUT (interior pages) ---------- */
.page-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 48px;
}

/* Two-column layout: sidebar image + content (Bio page) */
.page-split {
  display: grid;
  grid-template-columns: 58fr 42fr;
  min-height: calc(100vh - 62px);
}

.page-split .page-image {
  overflow: hidden;
}

.page-split .page-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-split .page-content {
  padding: 60px 48px 60px 48px;
}

/* ---------- SECTION HEADINGS ---------- */
.section-title {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 28px;
  letter-spacing: 0.3px;
}

.section-subtitle {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 44px;
  margin-bottom: 16px;
  letter-spacing: 0.2px;
}

.section-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #888;
  margin-bottom: 8px;
}

/* ---------- CONTENT BLOCKS ---------- */
.content-block {
  margin-bottom: 44px;
}

.content-block p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 12px;
}

.content-block ul {
  list-style: none;
  padding: 0;
}

.content-block ul li {
  font-size: 0.88rem;
  line-height: 1.7;
  color: #333;
  padding-left: 16px;
  position: relative;
  margin-bottom: 10px;
}

.content-block ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: #999;
}

/* ---------- STATS / KEY METRICS BAR ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  margin: 36px 0;
  padding: 28px 0;
  border-top: 1px solid #d0d0d0;
  border-bottom: 1px solid #d0d0d0;
}

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

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  display: block;
}

.stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #888;
  margin-top: 6px;
  display: block;
}

/* ---------- BAR CHARTS ---------- */
.chart-container {
  margin: 30px 0;
}

.chart-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  margin-bottom: 16px;
  color: #555;
}

.bar-chart {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bar-label {
  font-size: 0.76rem;
  color: #555;
  width: 160px;
  flex-shrink: 0;
  text-align: right;
}

.bar-track {
  flex: 1;
  background: #f0f0f0;
  height: 20px;
  position: relative;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: #1a1a1a;
  transition: width 0.8s ease;
}

.bar-value {
  font-size: 0.72rem;
  font-weight: 600;
  color: #1a1a1a;
  width: 50px;
  flex-shrink: 0;
}

/* ---------- CARDS GRID ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  margin: 28px 0;
}

.card {
  border: 1px solid #d0d0d0;
  padding: 28px;
  transition: border-color 0.2s;
}

.card:not(.card-previous) {
  padding-top: 18px;
}

.card.card-previous {
  padding-top: 18px;
}

.card:hover { border-color: #999; }

.card h3 {
  font-size: 0.96rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.card .card-role {
  font-size: 0.82rem;
  color: #888;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.card .card-dates {
  font-size: 0.76rem;
  color: #888;
  margin-bottom: 12px;
}

.card p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: #333;
}

.card .card-tag {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 3px 10px;
  border: 1px solid #ccc;
  background: transparent;
  margin-bottom: 0;
  color: #888;
}

.card .card-tag.current {
  border-color: #1a1a1a;
  background: #1a1a1a;
  color: #fff;
}

.card-location {
  font-size: 0.78rem;
  color: #888;
  margin: 6px 0 0;
  letter-spacing: 0.02em;
}

.card-dept {
  font-size: 0.82rem;
  color: #555;
  margin: 2px 0 6px;
}

/* ---------- TABLES ---------- */
.styled-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.84rem;
}

.styled-table th {
  text-align: left;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #888;
  padding: 10px 14px;
  border-bottom: 2px solid #1a1a1a;
  font-weight: 600;
}

.styled-table td {
  padding: 11px 14px;
  border-bottom: 1px solid #eee;
  color: #333;
  vertical-align: top;
}

.styled-table tr:hover td { background: #fafafa; }

/* ---------- TESTIMONIALS ---------- */
.testimonial {
  border-left: 3px solid #1a1a1a;
  padding: 20px 30px;
  margin: 28px 0;
  background: #fafafa;
}

.testimonial blockquote {
  font-size: 0.88rem;
  line-height: 1.75;
  color: #333;
  font-style: italic;
  margin-bottom: 12px;
}

.testimonial cite {
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 600;
  color: #555;
}

/* ---------- LINK LIST ---------- */
.link-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.link-list li {
  padding: 14px 0;
  border-bottom: 1px solid #eee;
}

.link-list li a {
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.link-list li a::after {
  content: '→';
  font-size: 1rem;
  color: #999;
  transition: color 0.2s;
}

.link-list li a:hover::after { color: #1a1a1a; }

/* ---------- TIMELINE ---------- */
.timeline-item {
  padding: 22px 0;
  border-bottom: 1px solid #eee;
}

.timeline-item:last-child { border-bottom: none; }

.timeline-date {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #888;
  margin-bottom: 6px;
}

.timeline-title {
  font-size: 0.96rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.timeline-venue {
  font-size: 0.84rem;
  color: #555;
  margin-bottom: 8px;
}

.timeline-description {
  font-size: 0.85rem;
  color: #333;
  line-height: 1.7;
}

/* ---------- ART PAGE GALLERY ---------- */
.art-placeholder {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.art-placeholder .art-item {
  aspect-ratio: 1;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  color: #bbb;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: 1px solid #eee;
}

/* ---------- FOOTER ---------- */
footer {
  border-top: 1px solid #d0d0d0;
  padding: 28px 48px;
  text-align: center;
  font-size: 0.72rem;
  color: #999;
  letter-spacing: 1px;
}

footer a { color: #999; }
footer a:hover { color: #1a1a1a; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  header { padding: 0 28px; }
  nav a { font-size: 0.62rem; padding: 6px 8px; }
  .hero { grid-template-columns: 1fr; }
  .hero-image img { width: 100%; height: auto; max-height: 520px; }
  .hero-text { padding: 40px 28px; }
  .page-split { grid-template-columns: 1fr; }
  .page-split .page-content { padding: 40px 28px; }
  .page-container { padding: 40px 28px; }
  .bar-label { width: 120px; }
}

@media (max-width: 768px) {
  header { padding: 0 20px; }

  .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 14px 0;
  }

  .site-name { font-size: 1.15rem; }

  .nav-toggle { display: block; }

  nav {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 10px 0;
    gap: 0;
  }

  nav.open { display: flex; }

  nav a {
    padding: 10px 0;
    font-size: 0.72rem;
    border-bottom: 1px solid #f0f0f0;
    border-left: none;
  }

  .page-container { padding: 36px 20px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }

  /* Force all cards grids to single column regardless of inline grid-template-columns */
  .cards-grid { grid-template-columns: 1fr !important; }

  .bar-label { width: 100px; font-size: 0.68rem; }

  /* Awards table: scroll horizontally rather than overflow/overlap */
  .styled-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .styled-table { font-size: 0.76rem; }
  .styled-table th, .styled-table td { padding: 8px 10px; }
  /* Top-align all header cells */
  .styled-table th { vertical-align: top; }

  footer { padding: 24px 20px; }
}
