/* Ben Cohen - Personal Website Styles */

:root {
  --color-bg: #fdfcfb;
  --color-text: #2d2d2d;
  --color-text-light: #5a5a5a;
  --color-accent: #c4a77d;
  --color-accent-hover: #b08d5b;
  --color-border: #e8e4df;
  --color-card-bg: #ffffff;
  --font-serif: Helvetica Neue, Helvetica, Arial, sans-serif;
  --font-sans: Helvetica Neue, Helvetica, Arial, sans-serif;
  --max-width: 900px;
  --nav-height: 60px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.3;
}

h1 {
  font-size: 1.8rem;
}

h2 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

h3 {
  font-size: 1.1rem;
}

p {
  margin-bottom: 0.6rem;
}

a {
  color: var(--color-text);
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-accent-hover);
}

/* Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-text);
}

.nav-logo:hover {
  color: var(--color-text);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--color-text-light);
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-text);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  transition: 0.3s;
}

/* Main content */
main {
  margin-top: var(--nav-height);
  min-height: calc(100vh - var(--nav-height));
}

section {
  padding: 2rem 0;
}

/* Home Card (Business Card Style) */
.home-card {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.home-card h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}

.home-tagline {
  font-size: 1.05rem;
  color: var(--color-text-light);
  max-width: 450px;
  line-height: 1.3;
}

.home-tagline p {
  margin-bottom: 0;
}

.highlight-blue {
  background-color: #dbeafe;
  padding: 0.1em 0.3em;
  border-radius: 3px;
}

.highlight-red {
  background-color: #fee2e2;
  padding: 0.1em 0.3em;
  border-radius: 3px;
}

.highlight-link {
  text-decoration: none;
  color: inherit;
}

.highlight-link:hover {
  color: inherit;
}

.home-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
}

.home-nav a {
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--color-text);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.home-nav a:hover {
  border-bottom-color: var(--color-text);
}

/* Hero Section (legacy) */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  min-height: calc(100vh - var(--nav-height) - 10rem);
  padding: 4rem 0;
}

.hero-text h1 {
  margin-bottom: 1.5rem;
}

.hero-text .subtitle {
  font-size: 1.25rem;
  color: var(--color-text-light);
  margin-bottom: 2rem;
}

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

.hero-image img {
  max-width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--color-text);
  color: var(--color-bg);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  color: var(--color-bg);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-text);
}

/* Book Feature Section */
.book-feature {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 3rem;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 3rem;
}

.book-cover img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.book-info h3 {
  margin-bottom: 0.5rem;
}

.book-info .book-subtitle {
  color: var(--color-text-light);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.book-info p {
  font-size: 0.95rem;
}

.book-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* Book Page */
.book-page {
  padding: 5rem 0;
}

.book-page-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: start;
}

.book-page-cover img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.book-page-content h1 {
  margin-bottom: 0.5rem;
}

.book-page-content .subtitle {
  font-size: 1.2rem;
  color: var(--color-text-light);
  margin-bottom: 2rem;
}

.book-description {
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.buy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.press-quotes {
  margin-top: 2rem;
}

.press-quotes h2 {
  margin-bottom: 0.75rem;
}

.quote {
  margin-bottom: 1.2rem;
  padding-left: 1rem;
  border-left: 2px solid var(--color-accent);
}

.quote p {
  font-style: italic;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

.quote cite {
  font-size: 0.8rem;
  color: var(--color-text-light);
  font-style: normal;
}

/* Press Links */
.press-links {
  margin-top: 1.5rem;
}

.press-links h2 {
  margin-bottom: 0.75rem;
}

.press-links ul {
  list-style: none;
  display: grid;
  gap: 0.4rem;
}

.press-links li {
  font-size: 0.85rem;
}

.press-links a {
  text-decoration-color: var(--color-border);
}

.press-links a:hover {
  text-decoration-color: var(--color-accent);
}

/* Writing/Clips Page */
.writing-page {
  padding: 5rem 0;
}

.writing-page h1 {
  margin-bottom: 0.5rem;
}

.writing-intro {
  color: var(--color-text-light);
  margin-bottom: 2rem;
}

.topic-filters {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.6rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--color-text-light);
}

.filter-btn:hover {
  border-color: var(--color-text);
  color: var(--color-text);
}

.filter-btn.active {
  background: var(--color-text);
  color: var(--color-bg);
  border-color: var(--color-text);
}

.filter-btn[data-topic="Science of Success"] {
  border-color: #2563eb;
  color: #2563eb;
}

.filter-btn[data-topic="Science of Success"]:hover,
.filter-btn[data-topic="Science of Success"].active {
  background: #2563eb;
  border-color: #2563eb;
  color: white;
}

.filter-btn[data-topic="Sports"] {
  border-color: #dc2626;
  color: #dc2626;
}

.filter-btn[data-topic="Sports"]:hover,
.filter-btn[data-topic="Sports"].active {
  background: #dc2626;
  border-color: #dc2626;
  color: white;
}

.filter-btn[data-topic="Other"] {
  border-color: #6b7280;
  color: #6b7280;
}

.filter-btn[data-topic="Other"]:hover,
.filter-btn[data-topic="Other"].active {
  background: #6b7280;
  border-color: #6b7280;
  color: white;
}

.clips-grid {
  display: grid;
  gap: 1rem;
}

.clip-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-border);
  align-items: baseline;
}

.clip-item:first-child {
  border-top: 1px solid var(--color-border);
}

.clip-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
}

.clip-title a {
  text-decoration: none;
}

.clip-title a:hover {
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
}

.clip-description {
  font-size: 0.95rem;
  color: var(--color-text-light);
  margin-top: 0.3rem;
  line-height: 1.5;
}

.clip-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--color-text-light);
  white-space: nowrap;
}

.clip-topic {
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--color-border);
  color: var(--color-text);
}

.clip-topic.topic-science-of-success {
  background: #dbeafe;
  color: #1d4ed8;
}

.clip-topic.topic-sports {
  background: #fee2e2;
  color: #b91c1c;
}

.clip-topic.topic-other {
  background: #e5e7eb;
  color: #4b5563;
}

.loading {
  text-align: center;
  padding: 3rem;
  color: var(--color-text-light);
}

.no-clips {
  text-align: center;
  padding: 3rem;
  color: var(--color-text-light);
  font-style: italic;
}

/* About Page */
.about-page {
  padding: 5rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 4rem;
  align-items: start;
}

.about-content h1 {
  margin-bottom: 2rem;
}

.about-content p {
  font-size: 1.05rem;
}

.about-image img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.contact-info {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.contact-info h3 {
  margin-bottom: 1rem;
}

/* Footer */
footer {
  padding: 3rem 0;
  border-top: 1px solid var(--color-border);
  text-align: center;
  color: var(--color-text-light);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {
  html {
    font-size: 16px;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-image {
    order: -1;
  }

  .hero-image img {
    max-height: 350px;
  }

  .book-feature {
    grid-template-columns: 150px 1fr;
    gap: 2rem;
    padding: 2rem;
  }

  .book-page-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .book-page-cover {
    max-width: 250px;
    margin: 0 auto;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-image {
    order: -1;
    max-width: 300px;
    margin: 0 auto;
  }

  .clip-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

@media (max-width: 600px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    padding: 1rem 2rem 2rem;
    gap: 1rem;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .book-feature {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .book-cover {
    max-width: 150px;
    margin: 0 auto;
  }

  .book-buttons {
    justify-content: center;
  }

  h1 {
    font-size: 2.2rem;
  }

  section {
    padding: 3rem 0;
  }
}
