/* ==========================================================================
   DANDI STUDIO — Inner Pages (Projects, Contact, Legal)
   Shared layout: site header, scrollable content, footer
   ========================================================================== */

/* --------------------------------------------------------------------------
   Page base — inner pages are scrollable (unlike the homepage)
   -------------------------------------------------------------------------- */
body.page-inner {
  overflow: auto;
  min-height: 100vh;
  display:    flex;
  flex-direction: column;
}

/* --------------------------------------------------------------------------
   Site Header — fixed top bar on all inner pages
   -------------------------------------------------------------------------- */
.site-header {
  position:        sticky;
  top:             0;
  z-index:         100;
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  padding:         10px 20px;
  background:      var(--bg);
  border-bottom:   1px solid var(--green-dim);
  gap:             16px;
  flex-wrap:       wrap;
}

.header-brand {
  font-family:    var(--font-pixel);
  font-size:      9px;
  color:          var(--green);
  letter-spacing: 2px;
  text-shadow:    0 0 6px var(--green);
  white-space:    nowrap;
}

.header-brand a {
  color: inherit;
}

.header-nav {
  display:    flex;
  gap:        8px;
  flex-wrap:  wrap;
  align-items: center;
}

.header-nav a {
  font-family:    var(--font-pixel);
  font-size:      7px;
  color:          var(--green-dim);
  letter-spacing: 1px;
  padding:        4px 6px;
  border:         1px solid transparent;
  transition:     color 0.1s, border-color 0.1s;
}

.header-nav a:hover,
.header-nav a:focus,
.header-nav a.active {
  color:        var(--green);
  border-color: var(--green-dim);
  outline:      none;
}

/* --------------------------------------------------------------------------
   Main content wrapper
   -------------------------------------------------------------------------- */
.page-content {
  flex:       1;
  width:      100%;
  max-width:  1400px;
  margin:     0 auto;
  padding:    32px 24px 48px;
}

/* --------------------------------------------------------------------------
   Page title (blinking cursor style)
   -------------------------------------------------------------------------- */
.page-title {
  font-family:    var(--font-pixel);
  font-size:      11px;
  color:          var(--green);
  letter-spacing: 2px;
  margin-bottom:  28px;
  text-shadow:    0 0 8px var(--green);
}

.page-title .cursor::after {
  content:   '█';
  animation: blink 1s step-end infinite;
  color:     var(--green);
}

/* --------------------------------------------------------------------------
   Section / theme headers (C64 REM comment style)
   -------------------------------------------------------------------------- */
.theme-header {
  font-family:    var(--font-pixel);
  font-size:      7px;
  color:          var(--purple);
  letter-spacing: 1px;
  margin:         20px 0 10px;
  padding-bottom: 6px;
  border-bottom:  1px solid var(--green-dim);
}

/* --------------------------------------------------------------------------
   Project card (listing page)
   -------------------------------------------------------------------------- */
.project-card {
  display:        flex;
  gap:            20px;
  align-items:    center;
  padding:        12px 20px;
  margin-bottom:  8px;
  border:         1px solid var(--green-dim);
  background:     rgba(0, 255, 0, 0.02);
  transition:     border-color 0.15s, background 0.15s;
}

.project-card:hover {
  border-color: var(--green);
  background:   rgba(0, 255, 0, 0.04);
}

.card-char {
  flex-shrink: 0;
  line-height: 0;
}

.card-body {
  flex: 1;
  min-width: 0;
}

.card-title {
  font-family:    var(--font-pixel);
  font-size:      8px;
  color:          var(--white);
  letter-spacing: 1px;
  margin-bottom:  8px;
}

.card-desc {
  font-family:  var(--font-body);
  font-size:    19px;
  color:        var(--green);
  line-height:  1.4;
  margin-bottom: 6px;
}

.card-tags {
  display:    flex;
  flex-wrap:  wrap;
  gap:        5px;
  margin-bottom: 10px;
}

.tag {
  font-family:    var(--font-pixel);
  font-size:      6px;
  color:          var(--green-dim);
  border:         1px solid var(--green-dim);
  padding:        2px 5px;
  letter-spacing: 0.5px;
  white-space:    nowrap;
}

.card-footer {
  display: flex;
  justify-content: flex-end;
}

/* --------------------------------------------------------------------------
   Project page hero (character + title + tags)
   -------------------------------------------------------------------------- */
.project-hero {
  display:       flex;
  gap:           28px;
  align-items:   flex-start;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--green-dim);
  flex-wrap:     wrap;
}

.hero-char {
  flex-shrink: 0;
  line-height: 0;
}

.hero-meta {
  flex: 1;
  min-width: 200px;
}

.hero-title {
  font-family:    var(--font-pixel);
  font-size:      10px;
  color:          var(--white);
  letter-spacing: 2px;
  margin-bottom:  12px;
  line-height:    1.6;
  text-shadow:    0 0 8px var(--white);
}

.hero-tags {
  display:       flex;
  flex-wrap:     wrap;
  gap:           5px;
  margin-bottom: 8px;
}

.hero-quip {
  font-family: var(--font-body);
  font-size:   18px;
  color:       #28a028;
  line-height: 1.4;
  margin-top:  10px;
  font-style:  italic;
}

/* --------------------------------------------------------------------------
   Section headings within project pages
   -------------------------------------------------------------------------- */
.section-heading {
  font-family:    var(--font-pixel);
  font-size:      7px;
  color:          var(--cyan);
  letter-spacing: 2px;
  margin:         28px 0 12px;
}

/* --------------------------------------------------------------------------
   Feature list (styled as C64 prompt lines)
   -------------------------------------------------------------------------- */
.feature-list {
  list-style:   none;
  margin-bottom: 24px;
}

.feature-list li {
  font-family:  var(--font-body);
  font-size:    20px;
  color:        var(--green);
  padding:      3px 0;
  line-height:  1.4;
}

.feature-list li::before {
  content: '> ';
  color:   var(--green-dim);
}

.feature-list code,
.desc-text code {
  font-family: var(--font-mono);
  font-size:   0.72em;
}

/* --------------------------------------------------------------------------
   Description text
   -------------------------------------------------------------------------- */
.desc-text {
  font-family:   var(--font-body);
  font-size:     20px;
  color:         var(--green);
  line-height:   1.5;
  margin-bottom: 16px;
}

/* --------------------------------------------------------------------------
   Excel tab viewer
   -------------------------------------------------------------------------- */
.excel-viewer {
  margin-bottom: 32px;
}

.excel-tabs {
  display:   flex;
  flex-wrap: wrap;
  gap:       3px;
}

.excel-tab {
  font-family:    var(--font-pixel);
  font-size:      6px;
  color:          var(--green-dim);
  background:     none;
  border:         1px solid var(--green-dim);
  border-bottom:  none;
  padding:        5px 8px;
  cursor:         pointer;
  letter-spacing: 0.5px;
  transition:     color 0.1s, border-color 0.1s, background 0.1s;
}

.excel-tab:hover,
.excel-tab.active {
  color:        var(--green);
  border-color: var(--green);
}

.excel-tab.active {
  background: rgba(51,255,51,0.05);
}

.excel-screen {
  border:          1px solid var(--green);
  aspect-ratio:    16 / 9;
  position:        relative;
  overflow:        hidden;
  background:      rgba(0,255,0,0.01);
  container-type:  inline-size;
}

.excel-screen img {
  width:      100%;
  height:     100%;
  object-fit: cover;
  display:    block;
}

.excel-ph {
  position:        absolute;
  inset:           0;
  display:         flex;
  flex-direction:  column;
  align-items:     center;
  justify-content: center;
  gap:             10px;
}

.excel-ph-name {
  font-family:    var(--font-pixel);
  font-size:      8px;
  color:          var(--green-dim);
  letter-spacing: 2px;
}

.excel-ph-hint {
  font-family: var(--font-mono);
  font-size:   12px;
  color:       var(--green-dim);
  opacity:     0.4;
}

/* --------------------------------------------------------------------------
   Screenshot grid
   -------------------------------------------------------------------------- */
.screenshot-grid {
  display:               grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap:                   16px;
  margin-bottom:         32px;
}

.screenshot-placeholder {
  aspect-ratio:   16 / 9;
  border:         1px dashed var(--green-dim);
  display:        flex;
  flex-direction: column;
  align-items:    center;
  justify-content: center;
  gap:            8px;
  background:     rgba(0, 255, 0, 0.01);
}

.screenshot-placeholder .ph-label {
  font-family:    var(--font-pixel);
  font-size:      6px;
  color:          var(--green-dim);
  letter-spacing: 1px;
  text-align:     center;
}

.screenshot-placeholder .ph-path {
  font-family: var(--font-mono);
  font-size:   10px;
  color:       var(--green-dim);
  opacity:     0.6;
}

/* --------------------------------------------------------------------------
   Charity footer note (appears at bottom of every project page)
   -------------------------------------------------------------------------- */
.charity-note {
  font-family:    var(--font-body);
  font-size:      17px;
  color:          var(--green-dim);
  border-top:     1px solid var(--green-dim);
  padding-top:    16px;
  margin:         32px 0 24px;
  line-height:    1.5;
}

.charity-note a {
  color: var(--cyan);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Navigation buttons (back, etc.)
   -------------------------------------------------------------------------- */
.nav-actions {
  display:   flex;
  gap:       12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   Site Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top:  1px solid var(--green-dim);
  padding:     12px 24px;
  display:     flex;
  gap:         16px;
  flex-wrap:   wrap;
  justify-content: center;
}

.site-footer a {
  font-family:    var(--font-pixel);
  font-size:      6px;
  color:          var(--green-dim);
  letter-spacing: 1px;
}

.site-footer a:hover {
  color: var(--green);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 600px) {
  .page-content  { padding: 20px 14px 36px; }
  .project-card  { flex-direction: column; }
  .project-hero  { flex-direction: column; }
  .hero-title    { font-size: 8px; }
  .header-brand  { font-size: 7px; }
  .page-title    { font-size: 8px; }
}
