/*
Theme Name: FFS Blog
Theme URI: https://faithandfuturesummit.com
Author: FFS
Author URI: https://faithandfuturesummit.com
Description: Blog theme matching the Faith & Future Summit website design.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: ffs-blog
*/

:root {
  --ffs-background: #131313;
  --ffs-surface: #131313;
  --ffs-surface-elevation-2: #1A1A1A;
  --ffs-surface-container: #201f1f;
  --ffs-primary: #2563ff;
  --ffs-on-surface: #e5e2e1;
  --ffs-on-surface-variant: #c3c5d8;
  --ffs-border-subtle: rgba(255, 255, 255, 0.1);
  --ffs-glow: rgba(37, 99, 255, 0.4);
  --ffs-sora: 'Sora', 'Inter', system-ui, sans-serif;
  --ffs-hanken: 'Hanken Grotesk', 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ffs-background);
  color: var(--ffs-on-surface);
  font-family: var(--ffs-hanken);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

.ffs-container {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ===== HEADER ===== */
.ffs-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 0 1.25rem;
}
.ffs-nav {
  background: rgba(19, 19, 19, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 1rem;
  margin: 0 auto;
  max-width: 1100px;
  width: 100%;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--ffs-border-subtle);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .ffs-header { padding: 0; }
  .ffs-nav { margin-top: 2.5rem; border-radius: 9999px; max-width: 1100px; }
}
.ffs-nav-logo img { height: 32px; width: auto; }
@media (min-width: 768px) { .ffs-nav-logo img { height: 48px; } }
.ffs-nav-links { display: none; align-items: center; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.ffs-nav-links li { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.ffs-nav-links a {
  color: var(--ffs-on-surface-variant);
  font-family: var(--ffs-hanken);
  font-size: 16px;
  font-weight: 400;
  transition: color 0.2s ease;
}
.ffs-nav-links a:hover { color: var(--ffs-on-surface); }
.ffs-nav-links a.current-menu-item,
.ffs-nav-links a.ffs-active { color: var(--ffs-primary); font-weight: 700; border-bottom: 2px solid var(--ffs-primary); padding-bottom: 0.25rem; }
@media (min-width: 768px) { .ffs-nav-links { display: flex; } }
.ffs-nav-cta {
  background: var(--ffs-primary);
  color: #fff;
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  font-weight: 700;
  font-family: var(--ffs-hanken);
  font-size: 16px;
  cursor: pointer;
  transition: box-shadow 0.2s ease;
  display: none;
}
.ffs-nav-cta:hover { box-shadow: 0 0 15px var(--ffs-glow); }
@media (min-width: 768px) { .ffs-nav-cta { display: inline-block; } }

.ffs-mobile-btn { display: flex; flex-direction: column; gap: 4px; padding: 0.5rem; background: none; border: none; cursor: pointer; }
.ffs-mobile-btn span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: all 0.3s ease; }
@media (min-width: 768px) { .ffs-mobile-btn { display: none; } }

.ffs-mobile-menu {
  display: none;
  position: fixed;
  top: 4.5rem; left: 1rem; right: 1rem;
  z-index: 40;
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--ffs-border-subtle);
  border-radius: 1rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  padding: 1.5rem;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 80vh;
  overflow-y: auto;
}
.ffs-mobile-menu.ffs-open { display: flex; }
.ffs-mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.ffs-mobile-menu li { list-style: none; margin: 0; padding: 0; }
.ffs-mobile-menu a {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 14px;
  color: var(--ffs-on-surface-variant);
}
.ffs-mobile-menu a:hover { color: #fff; background: var(--ffs-surface-container); }
.ffs-mobile-menu a.ffs-active { color: #fff; font-weight: 700; background: rgba(37, 99, 255, 0.1); }
.ffs-mobile-menu .ffs-mobile-cta {
  width: 100%;
  background: var(--ffs-primary);
  color: #fff;
  text-align: center;
  padding: 0.75rem;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 14px;
  margin-top: 0.5rem;
}
.ffs-mobile-menu .ffs-mobile-cta:hover { background: var(--ffs-primary); box-shadow: 0 0 15px var(--ffs-glow); }

/* ===== HERO ===== */
.ffs-hero {
  padding: 9rem 1.25rem 4rem;
  text-align: center;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(37, 99, 255, 0.22), transparent), #131313;
  border-bottom: 1px solid var(--ffs-border-subtle);
}
.ffs-hero-label {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  font-family: var(--ffs-hanken);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64CEFB;
  border: 1px solid rgba(37, 99, 255, 0.3);
  background: rgba(37, 99, 255, 0.1);
  margin-bottom: 1.25rem;
}
.ffs-hero h1 {
  font-family: var(--ffs-sora);
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 1rem;
}
.ffs-hero p {
  color: var(--ffs-on-surface-variant);
  font-size: 18px;
  max-width: 640px;
  margin: 0 auto;
}
.ffs-hero .shiny-text {
  color: #64CEFB;
  background: linear-gradient(90deg, rgba(100,206,251,0) 0%, rgba(255,255,255,0.8) 50%, rgba(100,206,251,0) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: ffs-shine 3s linear infinite;
}
@keyframes ffs-shine {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ===== BLOG LIST ===== */
.ffs-main { padding: 3rem 1.25rem 5rem; }
.ffs-blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
@media (min-width: 768px) { .ffs-blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ffs-blog-grid { grid-template-columns: repeat(3, 1fr); } }
.ffs-post-card {
  background: var(--ffs-surface-elevation-2);
  border: 1px solid var(--ffs-border-subtle);
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}
.ffs-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border-color: rgba(37, 99, 255, 0.4);
}
.ffs-post-thumb { aspect-ratio: 16 / 9; overflow: hidden; background: #0e0e0e; }
.ffs-post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.ffs-post-card:hover .ffs-post-thumb img { transform: scale(1.05); }
.ffs-post-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.ffs-post-meta {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ffs-on-surface-variant);
  margin-bottom: 0.75rem;
}
.ffs-post-meta .ffs-post-cat { color: #64CEFB; }
.ffs-post-title {
  font-family: var(--ffs-sora);
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.75rem;
}
.ffs-post-title a:hover { color: #64CEFB; }
.ffs-post-excerpt { color: var(--ffs-on-surface-variant); font-size: 15px; margin: 0 0 1rem; flex: 1; }
.ffs-post-more {
  color: var(--ffs-primary);
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.ffs-post-more:hover { color: #64CEFB; }

/* ===== SINGLE POST ===== */
.ffs-single-wrap { max-width: 1100px; margin: 0 auto; padding: 12rem 1.25rem 5rem; display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: start; }
@media (min-width: 992px) { .ffs-single-wrap { grid-template-columns: 1fr 320px; } }
.ffs-single { max-width: 760px; width: 100%; }
.ffs-single-title {
  font-family: var(--ffs-sora);
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  line-height: 1.2;
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}
.ffs-single-meta { color: var(--ffs-on-surface-variant); font-size: 14px; margin-bottom: 2rem; }
.ffs-single-meta a { color: #64CEFB; }
.ffs-single-thumb { border-radius: 1rem; overflow: hidden; margin-bottom: 2rem; }
.ffs-single-content { color: var(--ffs-on-surface); }
.ffs-single-content h2, .ffs-single-content h3, .ffs-single-content h4 {
  font-family: var(--ffs-sora);
  color: #fff;
  line-height: 1.3;
}
.ffs-single-content p { margin: 0 0 1.5rem; }
.ffs-single-content img { border-radius: 0.75rem; }
.ffs-single-content blockquote {
  border-left: 3px solid var(--ffs-primary);
  margin: 2rem 0;
  padding: 0.5rem 0 0.5rem 1.5rem;
  color: var(--ffs-on-surface-variant);
  font-style: italic;
}
.ffs-single-content a { color: #64CEFB; text-decoration: underline; }
.ffs-single-content code, .ffs-single-content pre { background: var(--ffs-surface-container); border-radius: 0.5rem; }
.ffs-single-content pre { padding: 1rem; overflow-x: auto; }

/* ===== PAGE ===== */
.ffs-page { max-width: 760px; margin: 0 auto; padding: 12rem 1.25rem 5rem; }
.ffs-page h1 {
  font-family: var(--ffs-sora);
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
}
.ffs-page-content a { color: #64CEFB; text-decoration: underline; }

/* ===== PAGINATION ===== */
.ffs-pagination {
  max-width: 1100px;
  margin: 2rem auto 0;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}
.ffs-pagination a, .ffs-pagination span {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--ffs-border-subtle);
  background: var(--ffs-surface-elevation-2);
  color: var(--ffs-on-surface);
  font-size: 14px;
}
.ffs-pagination .current { background: var(--ffs-primary); border-color: var(--ffs-primary); color: #fff; font-weight: 700; }

/* ===== FOOTER ===== */
.ffs-footer {
  background: #0f0f11;
  font-family: var(--ffs-hanken);
  padding: 5rem 1.25rem 1.25rem;
}
.ffs-footer-inner { max-width: 1100px; width: 100%; margin: 0 auto; }
.ffs-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (min-width: 480px) { .ffs-footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .ffs-footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; } }
.ffs-footer-brand img { height: auto; width: 192px; max-width: 100%; margin-bottom: 1rem; }
@media (min-width: 768px) { .ffs-footer-brand img { width: 256px; } }
.ffs-footer-brand p { color: #888; font-size: 0.85rem; line-height: 1.6; max-width: 220px; }
.ffs-footer-socials { margin-top: 2rem; }
.ffs-footer-socials-label { color: rgba(255,255,255,0.6); font-size: 0.85rem; margin-bottom: 0.75rem; display: block; }
.ffs-footer-socials-icons { display: flex; gap: 0.75rem; }
.ffs-footer-socials-icons a {
  width: 36px; height: 36px;
  border-radius: 0.5rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.ffs-footer-socials-icons a:hover { background: rgba(255,255,255,0.2); }
.ffs-footer-socials-icons svg { width: 16px; height: 16px; fill: #fff; }
.ffs-footer-col h4 {
  font-weight: 600;
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
}
.ffs-footer-col ul { list-style: none; margin: 0; padding: 0; }
.ffs-footer-col li { margin-bottom: 0.75rem; }
.ffs-footer-col a { color: #888; font-size: 0.85rem; transition: color 0.2s ease; }
.ffs-footer-col a:hover { color: #fff; }
.ffs-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.5rem;
  padding-bottom: 0.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: #666;
}
@media (min-width: 480px) { .ffs-footer-bottom { flex-direction: row; } }
.ffs-footer-tag { color: rgba(255,255,255,0.4); }

/* ===== SIDEBAR ===== */
.ffs-sidebar {
  background: var(--ffs-surface-elevation-2);
  border: 1px solid var(--ffs-border-subtle);
  border-radius: 1rem;
  padding: 1.5rem;
  position: sticky;
  top: 8rem;
}
.ffs-sidebar h3 {
  font-family: var(--ffs-sora);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--ffs-border-subtle);
}
.ffs-sidebar ul { list-style: none; margin: 0; padding: 0; }
.ffs-sidebar li { margin-bottom: 0.75rem; }
.ffs-sidebar a {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--ffs-on-surface-variant);
  font-size: 14px;
  line-height: 1.4;
  transition: color 0.2s ease;
}
.ffs-sidebar a:hover { color: #64CEFB; }
.ffs-sidebar .ffs-sidebar-date {
  display: block;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ffs-on-surface-variant);
  margin-top: 0.2rem;
}
.ffs-sidebar li.current-post-item a { color: #fff; }

/* ===== MISC ===== */
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
