/*
Theme Name: TheTechTrender
Theme URI: https://thetechtrender.com
Author: Pushnami
Description: Minimal hand-coded theme for TheTechTrender. Blog-serving home page with brand header and footer.
Version: 1.0.0
License: Proprietary
Text Domain: thetechtrender
*/

:root {
  --ttt-primary: #0891b2;
  --ttt-primary-dark: #0a6f88;
  --ttt-ink: #0c1a24;
  --ttt-muted: #556672;
  --ttt-bg: #eef8fb;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ttt-ink);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

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

a { color: var(--ttt-primary); }

.ttt-wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.ttt-header { padding: 16px 0; border-bottom: 1px solid #dcf0f6; background: #fff; }

/* ---------- Breadcrumb (above the page title) ---------- */
.ttt-breadcrumb { font-size: 13px; color: var(--ttt-muted); margin-bottom: 14px; }
.ttt-breadcrumb a { color: var(--ttt-muted); text-decoration: none; }
.ttt-breadcrumb a:hover { color: var(--ttt-primary); text-decoration: underline; }
.ttt-breadcrumb .sep { margin: 0 7px; opacity: 0.6; }
.ttt-breadcrumb .current { color: var(--ttt-ink); font-weight: 600; }
.ttt-header .ttt-wrap { display: flex; align-items: center; }
.ttt-logo { display: inline-flex; align-items: center; text-decoration: none; }
.ttt-logo img { height: 34px; width: auto; display: block; }
.ttt-logo-fallback { display: none; font-size: 28px; font-weight: 800; letter-spacing: -0.5px; color: var(--ttt-ink); }
.ttt-logo-fallback span { color: var(--ttt-primary); }
.ttt-logo.is-fallback img { display: none; }
.ttt-logo.is-fallback .ttt-logo-fallback { display: inline; }

/* ---------- Home hero band ---------- */
.ttt-hero {
  background: var(--ttt-ink);
  color: #fff;
  padding: 90px 0 100px;
}
.ttt-hero h1 { font-size: 42px; line-height: 1.05; font-weight: 800; letter-spacing: -1px; }
.ttt-hero h1 span { color: var(--ttt-primary); }

/* ---------- Blog list ---------- */
.ttt-main { padding: 40px 0 56px; }
.ttt-post {
  background: var(--ttt-bg);
  border-radius: 14px;
  padding: 26px 24px;
  margin-bottom: 20px;
  box-shadow:
    0px 0px 0px 1px rgba(0, 0, 0, 0.06),
    0px 1px 2px -1px rgba(0, 0, 0, 0.06),
    0px 2px 4px 0px rgba(0, 0, 0, 0.04);
}
.ttt-post h2 { font-size: 22px; line-height: 1.25; margin-bottom: 6px; }
.ttt-post h2 a { color: var(--ttt-ink); text-decoration: none; }
.ttt-post h2 a:hover { color: var(--ttt-primary); }
.ttt-post-date { font-size: 13px; color: var(--ttt-muted); margin-bottom: 12px; }
.ttt-post-excerpt { font-size: 16px; color: var(--ttt-muted); }
.ttt-post-thumb { border-radius: 10px; margin-bottom: 16px; display: block; }
.ttt-readmore {
  display: inline-block;
  margin-top: 14px;
  font-weight: 700;
  color: var(--ttt-primary);
  text-decoration: none;
}
.ttt-readmore:hover { color: var(--ttt-primary-dark); text-decoration: underline; }

/* ---------- Single post / page ---------- */
.ttt-single h1 { font-size: 32px; line-height: 1.2; margin-bottom: 8px; }
.ttt-single .ttt-post-date { margin-bottom: 24px; }
.ttt-content p, .ttt-content ul, .ttt-content ol { margin-bottom: 18px; }
.ttt-content ul, .ttt-content ol { padding-left: 26px; }
.ttt-content li { margin-bottom: 8px; }
.ttt-content h2 { font-size: 24px; margin: 30px 0 12px; }
.ttt-content h3 { font-size: 19px; margin: 24px 0 10px; }
.ttt-content img { border-radius: 10px; }
.ttt-content blockquote {
  margin: 0 0 18px;
  padding: 12px 20px;
  border-left: 4px solid var(--ttt-primary);
  background: var(--ttt-bg);
  border-radius: 0 10px 10px 0;
  font-style: italic;
}
.ttt-content blockquote p:last-child { margin-bottom: 0; }
.ttt-content table { border-collapse: collapse; width: 100%; margin-bottom: 18px; font-size: 15px; }
.ttt-content th, .ttt-content td { border: 1px solid #dcf0f6; padding: 8px 12px; text-align: left; }
.ttt-content th { background: var(--ttt-bg); }

/* ---------- Pagination ---------- */
.ttt-pagination { display: flex; gap: 14px; justify-content: center; margin-top: 32px; font-weight: 700; }
.ttt-pagination a { text-decoration: none; }

/* ---------- Footer ---------- */
.ttt-footer { background: var(--ttt-ink); color: rgba(255, 255, 255, 0.75); padding: 34px 0 26px; text-align: center; margin-top: auto; }
.ttt-footer .ttt-wrap { max-width: 1200px; }
.ttt-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 22px; margin-bottom: 20px; }
.ttt-footer-links a { color: rgba(255, 255, 255, 0.85); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.ttt-footer-links a:hover { color: #fff; text-decoration: underline; }
.ttt-footer-address { font-size: 12px; color: rgba(255, 255, 255, 0.55); line-height: 1.6; margin-bottom: 10px; }
.ttt-footer-copy { font-size: 12px; color: rgba(255, 255, 255, 0.55); }

@media (min-width: 768px) {
  .ttt-logo img { height: 40px; }
  .ttt-hero { padding: 110px 0 120px; }
  .ttt-hero h1 { font-size: 68px; }
  .ttt-main { padding: 56px 0 72px; }
  .ttt-single h1 { font-size: 38px; }
  .ttt-footer-links { flex-wrap: nowrap; justify-content: space-between; gap: 16px; }
}
