/* Senior Media Hub - Clean Static Site Styles */

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ===== BASE ===== */
html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: #1e293b;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a { color: #0F766E; text-decoration: none; transition: color .2s; }
a:hover { color: #0d9488; text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
  color: #004d49;
  line-height: 1.3;
  margin-bottom: .5em;
}
h1 { font-size: 2.2rem; font-weight: 700; }
h2 { font-size: 1.6rem; font-weight: 700; margin-top: 2rem; }
h3 { font-size: 1.3rem; font-weight: 600; margin-top: 1.5rem; }
h4 { font-size: 1.1rem; font-weight: 600; }

p { margin-bottom: 1.2em; }

ul, ol { margin: 0 0 1.2em 1.5em; }
li { margin-bottom: .4em; }

blockquote {
  border-left: 4px solid #0F766E;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: #f0fdfa;
  color: #334155;
  font-style: italic;
}

strong { font-weight: 600; }

/* ===== SKIP LINK ===== */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: #0F766E;
  color: #fff;
  padding: .5rem 1rem;
  z-index: 9999;
  font-weight: 600;
}
.skip-link:focus { top: 0; color: #fff; text-decoration: none; }

/* ===== CONTAINER ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container--narrow { max-width: 800px; }

/* ===== HEADER ===== */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-brand a {
  font-size: 1.4rem;
  font-weight: 700;
  color: #004d49;
  text-decoration: none;
  white-space: nowrap;
}
.site-brand a:hover { color: #0F766E; text-decoration: none; }

.main-nav { display: flex; align-items: center; gap: .2rem; flex-wrap: wrap; }
.main-nav a {
  padding: .4rem .8rem;
  border-radius: 6px;
  font-size: .9rem;
  font-weight: 500;
  color: #334155;
  white-space: nowrap;
}
.main-nav a:hover { background: #f0fdfa; color: #0F766E; text-decoration: none; }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: .5rem .7rem;
  cursor: pointer;
  font-size: 1.3rem;
  color: #334155;
  line-height: 1;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #004d49 0%, #0F766E 100%);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}
.hero h1 { color: #fff; font-size: 2.5rem; margin-bottom: .3em; }
.hero p { color: #ccfbf1; font-size: 1.15rem; max-width: 600px; margin: 0 auto; }

/* ===== ARTICLE GRID ===== */
.section-title {
  font-size: 1.5rem;
  color: #004d49;
  margin-bottom: 1.5rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid #0F766E;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.article-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.article-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  transform: translateY(-2px);
}

.article-card__image {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: #f1f5f9;
}

.article-card__body { padding: 1.2rem; }

.article-card__category {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  color: #0F766E;
  background: #f0fdfa;
  padding: .2rem .6rem;
  border-radius: 4px;
  margin-bottom: .5rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.article-card__title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #004d49;
  margin-bottom: .5rem;
  line-height: 1.4;
}
.article-card__title a { color: inherit; }
.article-card__title a:hover { color: #0F766E; text-decoration: none; }

.article-card__excerpt {
  font-size: .88rem;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: .7rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card__meta {
  font-size: .78rem;
  color: #94a3b8;
}

/* ===== CATEGORY GRID ===== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}

.category-card {
  display: block;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  transition: all .2s;
}
.category-card:hover {
  background: #f0fdfa;
  border-color: #0F766E;
  text-decoration: none;
  transform: translateY(-2px);
}
.category-card__name {
  font-size: 1rem;
  font-weight: 600;
  color: #004d49;
  margin-bottom: .3rem;
}
.category-card:hover .category-card__name { color: #0F766E; }
.category-card__count {
  font-size: .8rem;
  color: #64748b;
}

/* ===== SINGLE ARTICLE ===== */
.article-header { margin-bottom: 2rem; }
.article-header h1 { font-size: 2rem; margin-bottom: .5rem; }

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  font-size: .88rem;
  color: #64748b;
  margin-bottom: 1rem;
}
.article-meta a { color: #0F766E; font-weight: 500; }

.breadcrumbs {
  font-size: .85rem;
  color: #94a3b8;
  margin-bottom: 1.5rem;
}
.breadcrumbs a { color: #0F766E; }
.breadcrumbs .separator { margin: 0 .4rem; color: #cbd5e1; }

.article-content { margin-bottom: 3rem; }
.article-content h2 { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid #f1f5f9; }
.article-content h3 { margin-top: 2rem; }
.article-content ul, .article-content ol { margin-left: 1.5rem; margin-bottom: 1.5em; }
.article-content li { margin-bottom: .5em; }

.article-featured-image {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 2rem;
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* Share buttons */
.share-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 2rem 0;
  padding: 1.2rem 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}
.share-bar__label {
  font-size: .88rem;
  font-weight: 600;
  color: #334155;
  display: flex;
  align-items: center;
  margin-right: .5rem;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .4rem .8rem;
  border-radius: 6px;
  font-size: .8rem;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
}
.share-btn:hover { opacity: .85; color: #fff; text-decoration: none; }
.share-btn--facebook { background: #1877F2; }
.share-btn--twitter { background: #1DA1F2; }
.share-btn--linkedin { background: #0A66C2; }
.share-btn--email { background: #64748b; }

/* Related articles */
.related-articles { margin-top: 3rem; }
.related-articles .section-title { font-size: 1.3rem; }

/* ===== CATEGORY / AUTHOR PAGE ===== */
.page-hero {
  background: #f8fafc;
  padding: 3rem 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid #e2e8f0;
}
.page-hero h1 { margin-bottom: .3em; }
.page-hero p { color: #64748b; font-size: 1.05rem; max-width: 600px; }

/* ===== STATIC PAGES ===== */
.page-content {
  padding: 3rem 0;
}
.page-content h1 { margin-bottom: 1rem; }
.page-content h2 { margin-top: 2rem; }

/* ===== FOOTER ===== */
.site-footer {
  background: #004d49;
  color: #e2e8f0;
  padding: 3rem 0 0;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .3rem;
}
.footer-tagline { color: #94d5cf; font-size: .9rem; margin-bottom: 1rem; }

.footer-heading {
  font-size: .9rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: .8rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: .4rem; }
.footer-links a { color: #a7f3d0; font-size: .9rem; }
.footer-links a:hover { color: #fff; }

.footer-categories-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .3rem;
}
.footer-categories-grid a {
  color: #a7f3d0;
  font-size: .85rem;
  padding: .2rem 0;
  display: block;
}
.footer-categories-grid a:hover { color: #fff; }

.social-icons {
  display: flex;
  gap: .7rem;
  margin-top: .8rem;
}
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: #fff;
  transition: background .2s;
}
.social-icon:hover { background: rgba(255,255,255,.25); color: #fff; text-decoration: none; }
.social-icon svg { width: 18px; height: 18px; fill: currentColor; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  padding: 1.2rem 0;
  display: flex;
  justify-content: space-between;
  font-size: .82rem;
  color: #94d5cf;
}

/* ===== NEWSLETTER ===== */
.newsletter-form {
  display: flex;
  gap: .5rem;
  margin-top: .5rem;
}
.newsletter-form input[type="email"] {
  flex: 1;
  padding: .6rem .8rem;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 6px;
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: .9rem;
}
.newsletter-form input[type="email"]::placeholder { color: #94d5cf; }
.newsletter-form button {
  padding: .6rem 1.2rem;
  background: #0d9488;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.newsletter-form button:hover { background: #14b8a6; }
.newsletter-privacy { font-size: .75rem; color: #94d5cf; margin-top: .3rem; }

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #0F766E;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.2rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  transition: opacity .2s;
  z-index: 999;
}
.back-to-top:hover { background: #0d9488; }

/* ===== 404 ===== */
.error-page { text-align: center; padding: 5rem 1.5rem; }
.error-page h1 { font-size: 4rem; color: #0F766E; }
.error-page p { color: #64748b; font-size: 1.1rem; margin-bottom: 2rem; }
.error-page a {
  display: inline-block;
  background: #0F766E;
  color: #fff;
  padding: .8rem 2rem;
  border-radius: 8px;
  font-weight: 600;
}
.error-page a:hover { background: #0d9488; color: #fff; text-decoration: none; }

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin: 2rem 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  body { font-size: 17px; }
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }

  .menu-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    flex-direction: column;
    padding: .5rem 1.5rem 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: .6rem 0; width: 100%; }

  .hero { padding: 2.5rem 0; }
  .hero h1 { font-size: 2rem; }

  .article-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: 1fr 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; gap: .3rem; text-align: center; }

  .share-bar { justify-content: center; }
}

@media (max-width: 480px) {
  .category-grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .article-card__body { padding: 1rem; }
}
