/* Contemporary Hum inspired design for Rapid Shallow Breathing */

/* ========== VARIABLES ========== */
:root {
  --bg: #f7f6f2;
  --fg: #1a1a1a;
  --muted: #6b6b6b;
  --line: #ddd9d0;
  --line2: #e6e3dd;
  --accent: #000;
  
  /* Spacing */
  --gap: 24px;
  --section-gap: 32px;
  --outer-pad: 20px;
}

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

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

a:hover {
  opacity: 0.6;
}

/* ========== LAYOUT ========== */

/* Fixed vertical divider */
.divider-vertical {
  position: fixed;
  top: 0;
  left: 66.666%;
  width: 1px;
  height: 100vh;
  background: var(--line);
  z-index: 5;
  pointer-events: none;
}

/* Top navigation */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 66.666%;
  height: 60px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  z-index: 10;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 var(--outer-pad);
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-transform: uppercase;
}

.nav-link.active {
  color: var(--fg);
}

.feed-status {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

/* Main container */
.container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  height: 100vh;
  overflow: hidden;
}

/* Left column */
.col-left {
  padding-top: 60px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--line2) transparent;
}

.col-left::-webkit-scrollbar {
  width: 8px;
}

.col-left::-webkit-scrollbar-track {
  background: transparent;
}

.col-left::-webkit-scrollbar-thumb {
  background: var(--line2);
  border-radius: 4px;
}

/* Right column */
.col-right {
  padding: var(--section-gap) var(--outer-pad);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--line2) transparent;
}

.col-right::-webkit-scrollbar {
  width: 8px;
}

.col-right::-webkit-scrollbar-track {
  background: transparent;
}

.col-right::-webkit-scrollbar-thumb {
  background: var(--line2);
  border-radius: 4px;
}

/* ========== TRIAL CARDS ========== */
#feedContent {
  padding: var(--gap) var(--outer-pad) var(--section-gap);
}

.trial-card {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.trial-card:first-of-type {
  padding-top: 0;
}

.trial-card:last-child {
  border-bottom: none;
  padding-bottom: 60px; /* Extra padding at bottom for last item */
}

.trial-title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
}

.trial-title a {
  color: var(--fg);
}

.trial-title a:hover {
  text-decoration: underline;
  opacity: 1;
}

.trial-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}

.trial-summary {
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg);
}

.trial-summary strong {
  font-weight: 600;
}

/* ========== RIGHT COLUMN SECTIONS ========== */
.section {
  padding-bottom: var(--section-gap);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--section-gap);
}

.section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.section:first-child {
  padding-top: 0;
}

.site-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.quote {
  font-size: 15px;
  line-height: 1.5;
  font-style: italic;
  color: var(--muted);
  margin-bottom: 8px;
  padding-left: 16px;
  border-left: 2px solid var(--line);
}

.attribution {
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
}

.section-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 16px;
}

.section-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--fg);
}

/* ========== LINK LISTS ========== */
.link-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.link-item {
  font-size: 14px;
  color: var(--fg);
  padding: 4px 0;
  display: inline-block;
  transition: transform 0.15s ease;
}

.link-item:hover {
  transform: translateX(4px);
  opacity: 1;
}

/* ========== TAG LISTS ========== */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 12px;
  color: var(--muted);
  background: #fff;
  padding: 6px 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  display: inline-block;
  transition: all 0.15s ease;
}

.tag:hover {
  background: var(--bg);
  border-color: var(--accent);
  color: var(--fg);
}

/* ========== FOOTER ========== */
.section-footer {
  border-bottom: none;
}

.footer-text {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 10px;
}

.footer-text:last-child {
  margin-bottom: 0;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .divider-vertical {
    display: none;
  }
  
  .container {
    grid-template-columns: 1fr;
    height: auto;
    overflow: visible;
  }
  
  .top-nav {
    width: 100%;
  }
  
  body {
    overflow: auto;
  }
  
  .col-left,
  .col-right {
    overflow: visible;
    height: auto;
  }
  
  .col-right {
    padding-top: 0;
  }
}

@media (max-width: 640px) {
  .site-title {
    font-size: 28px;
  }
  
  .nav-inner {
    gap: 16px;
  }
  
  .trial-title {
    font-size: 16px;
  }
}
