/* ============================================================
   SuperDesignTech Blog — stylesheet
   Mirrors the color/type system of the main site (index.html)
   ============================================================ */

:root {
  --navy: #07193a;
  --blue: #1546a0;
  --blue-2: #1d5bd4;
  --blue-light: #bcd2f7;
  --blue-pale: #eef3fd;
  --gold: #e8a013;
  --gold-2: #c8830a;
  --gold-pale: #fff8e8;
  --text: #0c1930;
  --text-2: #3c4a63;
  --text-3: #60748a;
  --border: #e4e9f2;
  --off-white: #f7f9fc;
  --r: 10px;
  --sh: 0 8px 30px rgba(7,25,58,.08);
  --ff-head: 'Playfair Display', serif;
  --ff-body: 'Manrope', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--ff-body); color: var(--text);
  background: #fff; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 2.5rem; }

/* ===== Announce + Nav (shared w/ main site) ===== */
#announce {
  background: var(--navy); text-align: center; padding: 9px 2rem;
  font-size: .78rem; font-weight: 600; color: rgba(255,255,255,.85); letter-spacing: .04em;
}
#announce a { color: #93c5fd; text-decoration: underline; }
#announce strong { color: #fff; }

#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s, top .3s;
}
#nav.scrolled { border-bottom-color: var(--border); box-shadow: var(--sh); }
.nav-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 2.5rem;
  display: flex; align-items: center; justify-content: space-between; height: 72px;
}
.nav-logo img { height: 44px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  font-size: .84rem; font-weight: 600; color: var(--text-2);
  transition: color .2s; letter-spacing: .01em; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0; right: 0;
  height: 2px; background: var(--blue); border-radius: 1px; transform: scaleX(0); transition: transform .2s;
}
.nav-links a:hover, .nav-links a.active-nav { color: var(--blue); }
.nav-links a:hover::after, .nav-links a.active-nav::after { transform: scaleX(1); }
.nav-cta {
  background: var(--blue); color: #fff !important; padding: 10px 22px;
  border-radius: var(--r); font-weight: 700 !important; box-shadow: 0 2px 8px rgba(21,70,160,.25); transition: all .2s !important;
}
.nav-cta:hover { background: var(--blue-2) !important; transform: translateY(-1px) !important; }
.nav-cta::after { display: none !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 1px; }
.mobile-nav {
  display: none; position: fixed; inset: 0; background: rgba(255,255,255,.99); z-index: 300;
  flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { font-family: var(--ff-head); font-size: 1.8rem; color: var(--text); }
.mobile-nav a:hover { color: var(--blue); }
.mobile-close { position: absolute; top: 1.5rem; right: 2rem; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-3); }
.mobile-nav .mobile-cta { font-family: var(--ff-body); font-size: 1rem; background: var(--blue); color: #fff; padding: 14px 36px; border-radius: var(--r); font-weight: 700; }

.blog-main { padding-top: 108px; min-height: 60vh; }

/* ===== Shared bits ===== */
.label {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--ff-body);
  font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--blue-2); margin-bottom: 1rem;
}
.label::before { content: ''; width: 28px; height: 2px; background: var(--blue-2); border-radius: 1px; }
.btn {
  display: inline-flex; align-items: center; gap: 9px; font-family: var(--ff-body); font-weight: 700;
  font-size: .88rem; letter-spacing: .03em; border: none; cursor: pointer;
  padding: 13px 28px; border-radius: var(--r); transition: all .2s;
}
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 3px 12px rgba(21,70,160,.3); }
.btn-blue:hover { background: var(--blue-2); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--blue); border: 2px solid var(--blue); }
.btn-outline:hover { background: var(--blue-pale); }

/* ===== Blog hero ===== */
.blog-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0d2552 60%, var(--navy) 100%);
  padding: 64px 2.5rem 56px; text-align: center; color: #fff;
}
.blog-hero .label { color: #93c5fd; justify-content: center; }
.blog-hero .label::before { background: #93c5fd; }
.blog-hero h1 {
  font-family: var(--ff-head); font-size: clamp(2.1rem, 4.5vw, 3.2rem); margin: 0 auto .8rem; max-width: 760px;
}
.blog-hero p { color: rgba(255,255,255,.72); max-width: 560px; margin: 0 auto; line-height: 1.7; }

/* ===== Post grid ===== */
.post-grid {
  max-width: 1120px; margin: 0 auto; padding: 64px 2.5rem 90px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
}
.post-card {
  border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
  background: #fff; transition: box-shadow .25s, transform .25s; display: flex; flex-direction: column;
}
.post-card:hover { box-shadow: var(--sh); transform: translateY(-3px); }
.post-card-img { aspect-ratio: 16/10; background: var(--blue-pale) center/cover no-repeat; position: relative; }
.post-card-img.no-image { display: flex; align-items: center; justify-content: center; }
.post-card-img.no-image::after { content: '📐'; font-size: 2.4rem; opacity: .35; }
.post-card-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.post-card-date { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue-2); margin-bottom: .5rem; }
.post-card h3 { font-family: var(--ff-head); font-size: 1.28rem; line-height: 1.32; margin: 0 0 .6rem; color: var(--text); }
.post-card p { color: var(--text-3); font-size: .92rem; line-height: 1.65; margin: 0 0 1.1rem; flex: 1; }
.post-card .read-more { font-size: .82rem; font-weight: 700; color: var(--blue); }
.post-card .read-more:hover { color: var(--blue-2); }

.empty-state { text-align: center; padding: 60px 2rem; color: var(--text-3); grid-column: 1 / -1; }

.pagination { display: flex; justify-content: center; gap: .5rem; padding-bottom: 60px; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px;
  border-radius: 8px; border: 1px solid var(--border); font-size: .85rem; font-weight: 700; color: var(--text-2);
}
.pagination a:hover { background: var(--blue-pale); color: var(--blue); }
.pagination .current { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ===== Single post ===== */
.post-header { max-width: 780px; margin: 0 auto; padding: 60px 2.5rem 0; }
.post-header .label { justify-content: flex-start; }
.post-header h1 {
  font-family: var(--ff-head); font-size: clamp(2rem, 4.5vw, 2.9rem); line-height: 1.16; margin: 0 0 1.2rem; color: var(--text);
}
.post-meta { display: flex; gap: 1.1rem; align-items: center; color: var(--text-3); font-size: .86rem; margin-bottom: 2rem; flex-wrap: wrap; }
.post-meta strong { color: var(--text-2); }
.post-cover { max-width: 900px; margin: 0 auto 2.5rem; padding: 0 2.5rem; }
.post-cover img { border-radius: 14px; width: 100%; }
.post-body { max-width: 780px; margin: 0 auto; padding: 0 2.5rem 20px; font-size: 1.06rem; line-height: 1.85; color: var(--text-2); }
.post-body h2 { font-family: var(--ff-head); color: var(--text); font-size: 1.6rem; margin: 2.2rem 0 1rem; }
.post-body h3 { font-family: var(--ff-head); color: var(--text); font-size: 1.3rem; margin: 1.8rem 0 .8rem; }
.post-body p { margin: 0 0 1.3rem; }
.post-body a { color: var(--blue); text-decoration: underline; }
.post-body img { border-radius: 10px; margin: 1.5rem 0; }
.post-body ul, .post-body ol { margin: 0 0 1.3rem; padding-left: 1.4rem; }
.post-body blockquote {
  border-left: 3px solid var(--blue); margin: 1.6rem 0; padding: .2rem 0 .2rem 1.3rem;
  color: var(--text-3); font-style: italic;
}

.post-nav-back { max-width: 780px; margin: 0 auto; padding: 10px 2.5rem 0; }
.post-nav-back a { font-size: .85rem; font-weight: 700; color: var(--blue); }

.post-share { max-width: 780px; margin: 2.5rem auto 0; padding: 1.6rem 2.5rem; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.post-share span { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); }

/* ===== Comments ===== */
.comments-section { max-width: 780px; margin: 0 auto; padding: 3rem 2.5rem 6rem; }
.comments-section h3 { font-family: var(--ff-head); font-size: 1.5rem; margin: 0 0 1.6rem; }
.comment-list { display: flex; flex-direction: column; gap: 1.4rem; margin-bottom: 2.6rem; }
.comment {
  border: 1px solid var(--border); border-radius: 12px; padding: 1.2rem 1.4rem; background: var(--off-white);
}
.comment-head { display: flex; align-items: center; gap: .7rem; margin-bottom: .5rem; }
.comment-avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; flex-shrink: 0;
}
.comment-name { font-weight: 700; font-size: .92rem; color: var(--text); }
.comment-date { font-size: .76rem; color: var(--text-3); }
.comment-body { font-size: .92rem; line-height: 1.7; color: var(--text-2); white-space: pre-wrap; word-wrap: break-word; }
.no-comments { color: var(--text-3); font-size: .92rem; margin-bottom: 2.6rem; }

.comment-form { border: 1px solid var(--border); border-radius: 14px; padding: 1.8rem 2rem; background: #fff; }
.comment-form h4 { font-family: var(--ff-head); font-size: 1.15rem; margin: 0 0 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.comment-form label { display: block; font-size: .78rem; font-weight: 700; color: var(--text-2); margin-bottom: .4rem; }
.comment-form input, .comment-form textarea {
  width: 100%; padding: 11px 13px; border-radius: 8px; border: 1px solid var(--border);
  font-family: var(--ff-body); font-size: .92rem; color: var(--text); background: var(--off-white);
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--blue); background: #fff; }
.comment-form textarea { min-height: 120px; resize: vertical; margin-bottom: 1rem; }
.honeypot-field { position: absolute; left: -9999px; opacity: 0; height: 0; }
.captcha-row { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.2rem; }
.captcha-row .captcha-label { font-weight: 700; color: var(--text-2); font-size: .9rem; white-space: nowrap; }
.captcha-row input { max-width: 100px; }
.alert { padding: 12px 16px; border-radius: 8px; font-size: .88rem; margin-bottom: 1.4rem; }
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fef2f2; color: #7a1f1f; border: 1px solid #f3caca; }

/* ===== Footer (shared) ===== */
footer { background: var(--navy); color: rgba(255,255,255,.65); padding: 70px 2.5rem 30px; }
.footer-grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand img { height: 38px; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.footer-brand p { font-size: .84rem; line-height: 1.7; color: rgba(255,255,255,.5); max-width: 340px; }
.footer-social { display: flex; gap: .6rem; margin-top: 1.2rem; }
.footer-social-btn { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; color: #fff; }
.footer-social-btn:hover { background: var(--blue); }
.footer-col h5 { font-family: var(--ff-body); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.9); margin: 0 0 1.1rem; }
.footer-links { display: flex; flex-direction: column; gap: .7rem; }
.footer-links a { font-size: .84rem; color: rgba(255,255,255,.55); }
.footer-links a:hover { color: #93c5fd; }
.footer-bottom { max-width: 1240px; margin: 0 auto; padding-top: 24px; font-size: .78rem; text-align: center; color: rgba(255,255,255,.45); }
.footer-bottom a { color: rgba(255,255,255,.6); }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .post-grid { grid-template-columns: 1fr; padding: 40px 1.4rem 60px; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .post-header, .post-body, .comments-section, .post-cover, .post-nav-back, .post-share { padding-left: 1.4rem; padding-right: 1.4rem; }
  .blog-hero { padding: 48px 1.4rem 40px; }
}
