/* === The Jaiyn Journal — News Site Styles === */

:root {
  --brand: #1a1a2e;
  --accent: #e94560;
  --bg: #fafafa;
  --card-bg: #ffffff;
  --text: #1a1a2e;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --pill-bg: rgba(233, 69, 96, 0.08);
  --pill-border: rgba(233, 69, 96, 0.3);
  --pill-hover: rgba(233, 69, 96, 0.15);
}

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

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

/* --- Header --- */
.site-header {
  background: var(--brand);
  color: #fff;
  padding: 0;
  border-bottom: 4px solid var(--accent);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-title {
  font-family: 'Georgia', serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.site-title span { color: var(--accent); }

.site-tagline {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.site-date {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  background: rgba(255,255,255,0.05);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.6rem 2rem;
}

.site-nav a {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

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

/* --- Main layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* --- Home page --- */
.hero-article {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 2rem;
}

.hero-article .hero-content h2 {
  font-size: 2.2rem;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.hero-article .hero-content h2 a {
  color: var(--text);
  text-decoration: none;
}

.hero-article .hero-content h2 a:hover {
  color: var(--accent);
}

.hero-article .hero-excerpt {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.hero-image {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 8px;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 4rem;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.article-card {
  background: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.card-image {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.card-image.automotive { background: linear-gradient(135deg, #2d3436, #636e72); color: rgba(255,255,255,0.3); }
.card-image.pets { background: linear-gradient(135deg, #00b894, #00cec9); color: rgba(255,255,255,0.3); }
.card-image.property { background: linear-gradient(135deg, #6c5ce7, #a29bfe); color: rgba(255,255,255,0.3); }

.card-body {
  padding: 1.25rem;
}

.card-category {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card-body h3 {
  font-size: 1.2rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.card-body h3 a {
  color: var(--text);
  text-decoration: none;
}

.card-body h3 a:hover { color: var(--accent); }

.card-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.article-meta {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

/* --- Article page --- */
.article-page {
  max-width: 1200px;
  margin: 0 auto;
}

.article-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.5rem;
}

.article-header .category-tag {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.article-header h1 {
  font-size: 2.4rem;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.article-header .article-meta {
  font-size: 0.9rem;
}

.article-body p {
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
}

.article-body h2 {
  font-size: 1.6rem;
  margin: 2rem 0 1rem;
}

.article-body h3 {
  font-size: 1.3rem;
  margin: 1.5rem 0 0.75rem;
}

.article-body ul, .article-body ol {
  margin: 1rem 0 1.25rem 1.5rem;
  font-size: 1.1rem;
}

.article-body li { margin-bottom: 0.5rem; }

.article-body blockquote {
  border-left: 4px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: rgba(233, 69, 96, 0.04);
  font-style: italic;
  color: var(--text-muted);
}

/* --- Jaiyn Pill Text --- */
.jaiyn-pill {
  background: var(--pill-bg);
  border-bottom: 2px solid var(--pill-border);
  padding: 0.1em 0.3em;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  text-decoration: none;
  color: inherit;
}

.jaiyn-pill:hover {
  background: var(--pill-hover);
  border-bottom-color: var(--accent);
}

.jaiyn-pill.active {
  background: var(--pill-hover);
  border-bottom-color: var(--accent);
}

/* Search panel styles are injected by the embed script (modal overlay) */

/* --- Footer --- */
.site-footer {
  background: var(--brand);
  color: rgba(255,255,255,0.6);
  padding: 2rem;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.85rem;
  margin-top: 4rem;
}

.site-footer a { color: var(--accent); text-decoration: none; }

/* --- Embedded search section --- */
.embedded-search {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border);
}
.embedded-search h2 {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 1.6rem;
  margin: 0 0 0.5rem 0;
}
.embedded-search-intro {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.embedded-search-frame {
  width: 100%;
  height: 700px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #0f0f23;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero-article { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  .header-inner { flex-direction: column; gap: 0.5rem; text-align: center; }
  .site-nav { justify-content: center; flex-wrap: wrap; }
  .article-header h1 { font-size: 1.8rem; }
  .jaiyn-search-panel iframe { height: 500px; }
}
