﻿/* ==================================================
   QR Code Generator — Layout Styles
   Header / Nav / Hero / Breadcrumb / Footer / InnerNav
   Shared across all pages
   ================================================== */

/* ---------- Header ---------- */
header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo svg {
  width: 28px;
  height: 28px;
}

/* ---------- Navigation ---------- */
nav {
  display: flex;
  gap: 4px;
  align-items: center;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: .875rem;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all .15s;
}

nav a:hover {
  color: var(--text);
  background: var(--bg-tertiary);
}

nav a.active {
  color: var(--primary);
  background: var(--primary-light);
  font-weight: 600;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  padding: 16px 0;
  font-size: .85rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb span {
  color: var(--text);
}

/* ---------- Hero ---------- */
.hero {
  padding: 40px 0 20px;
  text-align: center;
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 12px;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.hero .meta {
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ---------- Trust Badges ---------- */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 20px auto 32px;
  max-width: 700px;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--success-light);
  color: #065f46;
  font-size: .8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

.trust-badge svg {
  width: 14px;
  height: 14px;
  stroke: #059669;
  flex-shrink: 0;
}

/* ---------- Inner Nav (Related Tools) ---------- */
.inner-nav {
  padding: 30px 0;
  text-align: center;
  border-top: 1px solid var(--border);
}

.inner-nav h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.inner-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(180px,1fr));
  gap: 10px;
}

.inner-nav-card {
  display: block;
  padding: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  text-align: left;
  transition: all .15s;
}

.inner-nav-card:hover {
  border-color: var(--primary);
}

.inner-nav-card .title {
  font-size: .85rem;
  font-weight: 600;
}

/* ---------- Content area (Blog / About etc) ---------- */
.content {
  padding: 16px 0 48px;
}

.content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 28px 0 12px;
}

.content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 20px 0 8px;
}

.content p,.content li {
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.8;
  font-size: .95rem;
}

.content ul {
  padding-left: 20px;
  margin-bottom: 14px;
}

.content li {
  margin-bottom: 6px;
}

/* ---------- Blog Grid ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(300px,1fr));
  gap: 24px;
  padding: 24px 0 64px;
}

.blog-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: all .3s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 20px -8px rgba(99,102,241,.15),0 4px 12px -2px rgba(99,102,241,.1);
  border-color: var(--primary);
}

.blog-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.blog-card-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--primary-light);
  color: var(--primary);
  margin-bottom: 12px;
}

.blog-card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.4;
  transition: color 0.15s;
}

.blog-card:hover .blog-card-title {
  color: var(--primary);
}

.blog-card-excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.blog-card-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ---------- Footer ---------- */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 24px 0;
  text-align: center;
}

footer p {
  font-size: .8rem;
  color: var(--text-muted);
}

footer a {
  color: var(--text-secondary);
  text-decoration: none;
}

footer a:hover {
  color: var(--primary);
}

/* Footer grid injected by footer.js */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(150px,1fr));
  gap: 24px;
  padding: 32px 0 20px;
}
/* ---------- Features Grid (Homepage) ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(230px,1fr));
  gap: 24px;
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.feature {
  text-align: center;
  padding: 24px 16px;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: var(--primary-light);
  color: var(--primary);
  margin-bottom: 14px;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
}

.feature h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature p {
  font-size: .88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 280px;
  margin: 0 auto;
}

/* ---------- Steps (Homepage) ---------- */
.steps {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.steps h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.steps ol {
  padding-left: 20px;
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: .95rem;
}

.steps ol li {
  margin-bottom: 10px;
}

.steps ol li strong {
  color: var(--text);
}


