/*
Theme Name: SuccessFactors Guide
Theme URI: https://successfactorsguide.com
Author: Basit Qayyum
Author URI: https://successfactorsguide.com
Description: A clean, professional theme for SAP SuccessFactors implementation guides and HR tech content. Built for successfactorsguide.com.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, custom-menu, featured-images, footer-widgets, full-width-template
Text Domain: sf-guide
*/

/* =============================================
   DESIGN TOKENS
   ============================================= */
:root {
  --navy: #0f1f3d;
  --navy-mid: #162847;
  --blue: #1a56db;
  --blue-light: #3b82f6;
  --accent: #00c2a8;
  --accent2: #f59e0b;
  --white: #ffffff;
  --off-white: #f8fafd;
  --text: #1e2a3a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --tag-bg: #eef2ff;
  --tag-color: #3730a3;
  --radius: 14px;
  --shadow: 0 4px 24px rgba(15,31,61,0.10);
  --shadow-hover: 0 8px 40px rgba(15,31,61,0.18);
  --max-width: 1200px;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Sora', 'Segoe UI', sans-serif;
  line-height: 1.2;
  font-weight: 700;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul { list-style: none; }

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

.section { padding: 5rem 0; }
.section-alt { background: var(--off-white); }

/* =============================================
   TYPOGRAPHY
   ============================================= */
p { line-height: 1.75; margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 10px;
  font-weight: 700;
  font-family: 'Sora', sans-serif;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: var(--navy);
  box-shadow: 0 4px 16px rgba(0,194,168,0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,194,168,0.45);
  color: var(--navy);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  color: white;
}

.btn-blue {
  background: var(--blue);
  color: white;
}

.btn-blue:hover {
  background: #1345b7;
  color: white;
  transform: translateY(-1px);
}

/* =============================================
   NAVBAR
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy);
  white-space: nowrap;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--blue), var(--accent));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.main-navigation {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
}

.main-navigation a {
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
  background: var(--off-white);
  color: var(--navy);
}

.nav-cta a {
  background: var(--blue) !important;
  color: white !important;
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 55%, #1a3460 100%);
  color: white;
  padding: 6rem 2rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -120px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,194,168,0.18) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 { font-weight: 800; margin-bottom: 1.25rem; letter-spacing: -0.5px; }
.hero h1 span { color: var(--accent); }

.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.78);
  max-width: 580px;
  margin: 0 auto 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.75rem;
}

.hero-badges {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}

.badge-check {
  width: 18px; height: 18px;
  background: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 0.65rem;
}

/* =============================================
   SECTION HEADERS
   ============================================= */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 { color: var(--navy); margin-bottom: 0.6rem; }
.section-header p { color: var(--text-muted); font-size: 1.05rem; max-width: 500px; margin: 0 auto; }

.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--blue);
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

/* =============================================
   CARDS
   ============================================= */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}

.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.card-thumbnail {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card-body { padding: 1.4rem; }

.tag {
  display: inline-block;
  background: var(--tag-bg);
  color: var(--tag-color);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.card-body h3 { font-size: 1.05rem; font-weight: 600; color: var(--navy); margin-bottom: 0.6rem; }
.card-body p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1rem; }

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.read-more { color: var(--blue); font-weight: 600; }

/* =============================================
   CATEGORY GRID
   ============================================= */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.cat-card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.2rem;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
}

.cat-card:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 20px rgba(26,86,219,0.12);
  transform: translateY(-3px);
}

.cat-icon { font-size: 1.8rem; margin-bottom: 0.6rem; }
.cat-card h3 { font-size: 0.92rem; font-weight: 600; color: var(--navy); margin-bottom: 0.3rem; }
.cat-card p { font-size: 0.78rem; color: var(--text-muted); }

/* =============================================
   POST LIST
   ============================================= */
.post-list { display: grid; gap: 1rem; }

.post-row {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

.post-row:hover { box-shadow: var(--shadow); transform: translateX(4px); }
.post-row h3 { font-size: 0.98rem; font-weight: 600; color: var(--navy); margin-bottom: 0.3rem; }
.post-row p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }
.post-meta { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.4rem; }
.post-arrow { color: var(--blue); font-size: 1.2rem; align-self: center; }

/* =============================================
   TIPS GRID
   ============================================= */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.tip-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.tip-emoji { font-size: 1.5rem; flex-shrink: 0; line-height: 1; }
.tip-content h3 { font-size: 0.95rem; font-weight: 600; color: var(--navy); margin-bottom: 0.4rem; }
.tip-content p { font-size: 0.87rem; color: var(--text-muted); margin-bottom: 0.5rem; }

.tip-tag {
  display: inline-block;
  background: #f0fdf4;
  color: #16a34a;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 20px;
  text-transform: uppercase;
}

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonials-section {
  background: var(--navy);
  color: white;
  padding: 5rem 2rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.testimonial-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.quote-mark { font-size: 2rem; color: var(--accent); line-height: 1; margin-bottom: 0.5rem; font-family: Georgia, serif; }
.testimonial-card > p { font-size: 0.92rem; color: rgba(255,255,255,0.82); line-height: 1.65; margin-bottom: 1.25rem; }

.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.author-avatar { width: 38px; height: 38px; background: linear-gradient(135deg, var(--blue), var(--accent)); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.author-info strong { display: block; font-size: 0.88rem; font-weight: 600; color: white; }
.author-info span { font-size: 0.78rem; color: rgba(255,255,255,0.5); }

/* =============================================
   NEWSLETTER
   ============================================= */
.newsletter-section {
  background: linear-gradient(135deg, var(--blue) 0%, #0e3fa0 100%);
  color: white;
  padding: 4.5rem 2rem;
  text-align: center;
}

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  max-width: 450px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-form input {
  flex: 1;
  min-width: 220px;
  padding: 0.8rem 1.2rem;
  border-radius: 10px;
  border: none;
  outline: none;
  font-size: 0.95rem;
}

.newsletter-form button {
  background: var(--accent);
  color: var(--navy);
  font-weight: 700;
  padding: 0.8rem 1.6rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--navy);
  color: white;
  padding: 4rem 2rem 2rem;
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand p { font-size: 0.88rem; color: rgba(255,255,255,0.55); margin-top: 0.75rem; line-height: 1.6; max-width: 260px; }

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1rem;
}

.footer-col li { margin-bottom: 0.55rem; }
.footer-col a { font-size: 0.88rem; color: rgba(255,255,255,0.7); }
.footer-col a:hover { color: var(--accent); }

.footer-newsletter input {
  width: 100%;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  color: white;
  font-size: 0.87rem;
  outline: none;
  margin-bottom: 0.6rem;
}

.footer-newsletter input::placeholder { color: rgba(255,255,255,0.35); }

.footer-newsletter button {
  width: 100%;
  background: var(--accent);
  color: var(--navy);
  font-weight: 700;
  padding: 0.65rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 0.88rem;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 1.75rem auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.4); }

/* =============================================
   SINGLE POST / PAGE
   ============================================= */
.entry-header { padding: 4rem 2rem 0; }
.entry-content { max-width: 760px; margin: 0 auto; padding: 2.5rem 2rem; }
.entry-content h2 { font-size: 1.5rem; color: var(--navy); margin: 2rem 0 0.75rem; }
.entry-content h3 { font-size: 1.15rem; color: var(--navy); margin: 1.5rem 0 0.5rem; }
.entry-content p { color: var(--text-muted); line-height: 1.8; margin-bottom: 1.25rem; }
.entry-content ul, .entry-content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.entry-content li { color: var(--text-muted); line-height: 1.75; margin-bottom: 0.4rem; }
.entry-content code { background: var(--off-white); padding: 0.15rem 0.45rem; border-radius: 5px; font-size: 0.9em; color: var(--blue); }
.entry-content pre { background: var(--navy); color: #e2e8f0; padding: 1.25rem; border-radius: var(--radius); overflow-x: auto; margin-bottom: 1.5rem; }
.entry-content blockquote { border-left: 3px solid var(--accent); padding: 1rem 1.5rem; background: var(--off-white); border-radius: 0 8px 8px 0; margin: 1.5rem 0; }

/* =============================================
   BREADCRUMB
   ============================================= */
.breadcrumb { font-size: 0.85rem; color: var(--text-muted); padding: 1rem 0; }
.breadcrumb a { color: var(--blue); }
.breadcrumb span { margin: 0 0.4rem; }

/* =============================================
   WIDGETS
   ============================================= */
.widget { margin-bottom: 2rem; }
.widget-title { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-muted); margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--border); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cards-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}

@media (max-width: 640px) {
  .navbar { padding: 0 1rem; }
  .main-navigation { display: none; }
  .hero { padding: 3.5rem 1.5rem 3rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .post-row { flex-direction: column; }
  .section { padding: 3.5rem 0; }
}
