/*
Theme Name: Cybersecurity Predictions
Theme URI: https://securitypredictions.com/
Author: 
Description: Minimal custom WordPress theme matching the supplied static design. Front page is static; posts, pages, and category archives share the same look.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: cyberpredict
*/

  :root {
    --navy: #22344B;
    --navy-soft: #3D4F68;
    --teal: #4FB3A0;
    --teal-dark: #3D8C7D;
    --amber: #F0B84D;
    --red: #E2665C;
    --bg: #F7FAFC;
    --bg-card: #FFFFFF;
    --text-primary: #1C2836;
    --text-secondary: #566374;
    --border: #E3EAF0;
    --font-display: 'Sora', sans-serif;
    --font-body: 'Inter', sans-serif;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
  }
  a { color: inherit; }
  .wrap { max-width: 1080px; margin: 0 auto; padding: 0 32px; }

  /* Share bars */
  .share-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 14px 32px;
    background: var(--navy);
    color: #fff;
  }
  .share-label { font-size: 13px; color: #B9C6D6; letter-spacing: 0.03em; }
  .share-icons { display: flex; gap: 10px; }
  .share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: #fff;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
  }
  .share-btn:hover { background: var(--teal); transform: translateY(-2px); }
  .share-bottom { margin-top: 40px; }

  /* Hero */
  .hero {
    padding: 90px 32px 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #EAF2FB 0%, var(--bg) 100%);
  }
  .eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal-dark);
    background: rgba(79,179,160,0.12);
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 24px;
  }
  h1 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--navy);
    max-width: 820px;
    margin: 0 auto 20px;
  }
  .hero-sub {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 40px;
  }
  .hero-visual { max-width: 460px; margin: 0 auto; }

  /* Sections */
  .section {
    display: flex;
    align-items: center;
    gap: 64px;
    padding: 64px 32px;
    max-width: 1080px;
    margin: 0 auto;
  }
  .row-reverse { flex-direction: row-reverse; }
  .section-text { flex: 1; min-width: 0; }
  .section-num {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    color: var(--teal-dark);
    background: rgba(79,179,160,0.12);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
    letter-spacing: 0.05em;
  }
  .section h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.25;
    color: var(--navy);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
  }
  .section-body { color: var(--text-secondary); font-size: 16px; }
  .section-body ul { margin: 14px 0; padding-left: 20px; }
  .section-body li { margin-bottom: 8px; }
  .visual {
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .visual svg {
    width: 100%;
    max-width: 420px;
    height: auto;
    display: block;
  }
  .divider {
    max-width: 1080px;
    margin: 0 auto;
    height: 1px;
    background: var(--border);
  }

  footer {
    text-align: center;
    padding: 60px 32px 20px;
    color: var(--text-secondary);
    font-size: 14px;
  }

  @media (max-width: 760px) {
    .section, .row-reverse { flex-direction: column; gap: 28px; padding: 44px 20px; }
    .share-bar { flex-direction: column; gap: 10px; padding: 16px 20px; }
    .hero { padding: 60px 20px 40px; }
  }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .share-btn { transition: none; }
  }

/* ---------------------------------------------------------- */
/* Additions for dynamic templates (posts, pages, categories) */
/* ---------------------------------------------------------- */

.page-hero {
  padding: 70px 32px 50px;
  text-align: center;
  background: linear-gradient(180deg, #EAF2FB 0%, var(--bg) 100%);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--navy);
  max-width: 820px;
  margin: 0 auto 14px;
}
.page-hero .page-meta {
  font-size: 14px;
  color: var(--text-secondary);
}
.page-hero .page-desc {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 14px auto 0;
}

.content-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 56px 32px 64px;
  color: var(--text-primary);
  font-size: 16px;
}
.content-wrap p { margin-bottom: 18px; }
.content-wrap h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  color: var(--navy);
  margin: 34px 0 14px;
}
.content-wrap h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--navy);
  margin: 28px 0 12px;
}
.content-wrap ul, .content-wrap ol { margin: 0 0 18px 20px; }
.content-wrap li { margin-bottom: 8px; }
.content-wrap a { color: var(--teal-dark); text-decoration: underline; }
.content-wrap img { max-width: 100%; height: auto; border-radius: 6px; }
.content-wrap blockquote {
  border-left: 3px solid var(--teal);
  padding-left: 16px;
  color: var(--text-secondary);
  font-style: italic;
  margin: 20px 0;
}

.post-list { max-width: 780px; margin: 0 auto; padding: 20px 32px 60px; }
.post-list-item { padding: 32px 0; border-bottom: 1px solid var(--border); }
.post-list-item:last-child { border-bottom: none; }
.post-list-item .post-list-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  color: var(--navy);
  margin-bottom: 8px;
}
.post-list-item .post-list-title a { text-decoration: none; }
.post-list-item .post-list-title a:hover { color: var(--teal-dark); }
.post-list-item .post-meta {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}
.post-list-item .post-excerpt { color: var(--text-secondary); }
.read-more {
  display: inline-block;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--teal-dark);
  text-decoration: none;
}

.pagination {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 32px 60px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}
.pagination a, .pagination span {
  color: var(--navy);
  text-decoration: none;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
}
.pagination a:hover { background: var(--teal); color: #fff; border-color: var(--teal); }

.no-results { max-width: 780px; margin: 0 auto; padding: 60px 32px; text-align: center; color: var(--text-secondary); }

.entry-tags { max-width: 780px; margin: 0 auto; padding: 0 32px 40px; font-size: 14px; color: var(--text-secondary); }
.entry-tags a { color: var(--teal-dark); text-decoration: none; }

@media (max-width: 760px) {
  .page-hero { padding: 44px 20px 30px; }
  .content-wrap { padding: 36px 20px 44px; }
  .post-list { padding: 16px 20px 44px; }
}
