/* ===================================================
   SylitaThomas+ — Personal Site 2026
   Brand: #ed145b on black — matching original spirit
   =================================================== */

:root {
  --pink:       #ed145b;
  --pink-dark:  #c40f4a;
  --pink-light: rgba(237,20,91,0.12);
  --bg:         #111111;
  --bg-card:    #1c1c1c;
  --bg-sidebar: #181818;
  --border:     #2a2a2a;
  --text:       #f0f0f0;
  --text-muted: #888;
  --max-w:      1060px;
  --radius:     4px;
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--text);
  background-color: var(--bg);
  background-image: url('../background.jpg');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pink); text-decoration: none; transition: color 0.2s; }
a:hover { color: #ff4d86; }
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* ---- Utilities ---- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

/* ---- Wrapper — white inner panel ---- */
.site-wrapper {
  max-width: var(--max-w);
  margin: 0 auto;
  background: #fff;
  color: #111;
  min-height: 100vh;
}

/* ---- Nav ---- */
.site-nav {
  background: #1a1a1a;
  border-bottom: 2px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.nav-inner {
  display: flex; align-items: center;
  height: 52px; padding: 0 16px;
  gap: 0;
}
.nav-logo {
  font-size: 1.35rem; font-weight: 900;
  letter-spacing: -0.03em; text-decoration: none;
  margin-right: 24px; white-space: nowrap;
}
.nav-logo .logo-first { color: var(--pink); }
.nav-logo .logo-second { color: #ffffff; }
.nav-logo:hover .logo-first { color: #ff4d86; }

.nav-links { display: flex; gap: 0; list-style: none; flex: 1; }
.nav-links a {
  display: inline-block;
  padding: 0 14px; height: 52px; line-height: 52px;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: #ccc;
}
.nav-links a:hover, .nav-links a.active { color: #fff; background: var(--pink); }

.nav-search {
  display: flex; align-items: center; gap: 6px; margin-left: auto;
}
.nav-search input {
  background: #2a2a2a; border: 1px solid #333;
  color: #ccc; padding: 6px 10px; font-size: 0.8rem;
  border-radius: var(--radius); width: 140px; outline: none;
}
.nav-search input::placeholder { color: #555; }
.nav-search button {
  background: var(--pink); border: none; color: #fff;
  padding: 6px 14px; font-size: 0.8rem; font-weight: 600;
  border-radius: var(--radius); cursor: pointer;
}
.nav-search button:hover { background: var(--pink-dark); }

/* ---- Hero / Featured Post ---- */
.hero-featured {
  position: relative; overflow: hidden;
  aspect-ratio: 16/6; max-height: 400px;
  background: #000;
}
.hero-featured img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.75);
  transition: transform 0.5s ease;
}
.hero-featured:hover img { transform: scale(1.02); }

.hero-overlay-text {
  position: absolute; bottom: 0; right: 0;
  padding: 12px 16px;
  text-align: right;
}
.hero-category {
  display: inline-block;
  background: var(--pink); color: #fff;
  font-size: 0.7rem; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 10px; margin-bottom: 6px;
}
.hero-title {
  display: block;
  background: rgba(0,0,0,0.75); color: #fff;
  font-size: 1.2rem; font-weight: 800;
  padding: 8px 14px;
  letter-spacing: -0.01em;
}

/* ---- Thumbnail Strip ---- */
.thumb-strip {
  display: flex; align-items: center;
  background: #1a1a1a; border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.thumb-strip-btn {
  background: var(--pink); border: none; color: #fff;
  width: 42px; min-height: 72px; font-size: 1.2rem;
  cursor: pointer; flex-shrink: 0; display: flex;
  align-items: center; justify-content: center;
}
.thumb-strip-btn:hover { background: var(--pink-dark); }
.thumb-strip-imgs {
  display: flex; gap: 0; flex: 1; overflow: hidden;
}
.thumb-strip-imgs a {
  flex: 1; overflow: hidden; max-width: 160px;
  aspect-ratio: 16/9;
}
.thumb-strip-imgs img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.7; transition: opacity 0.2s;
}
.thumb-strip-imgs a:hover img { opacity: 1; }

/* ---- Page Layout: content + sidebar ---- */
.page-body {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 0;
  background: #fff;
}

/* ---- Section headers (check / photography style) ---- */
.section-label {
  display: flex; align-items: center; gap: 0;
  background: #1a1a1a;
  margin-bottom: 0;
}
.section-label-icon {
  background: var(--pink); color: #fff;
  width: 44px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.section-label-text {
  color: #fff; font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0 16px;
}

/* ---- Post Cards (blog list) ---- */
.posts-main { padding: 0; background: #fff; }

.post-card {
  display: grid; grid-template-columns: 200px 1fr;
  border-bottom: 1px solid #eee;
}
.post-card:last-child { border-bottom: none; }

.post-card-thumb {
  position: relative; overflow: hidden;
  aspect-ratio: 16/10; background: #111;
}
.post-card-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s; display: block;
}
.post-card:hover .post-card-thumb img { transform: scale(1.06); }

.post-card-thumb-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; aspect-ratio: 16/10;
}

/* Date badge — overlaid on thumb corner */
.post-date-badge {
  position: absolute; top: 0; right: 0;
  background: rgba(0,0,0,0.82); color: #fff;
  padding: 6px 9px; text-align: right;
  line-height: 1.1;
}
.post-date-badge .day { font-size: 1.3rem; font-weight: 800; display: block; }
.post-date-badge .mon { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; display: block; }
.post-date-badge .yr  { font-size: 0.58rem; color: #aaa; display: block; }

.post-card-info { padding: 18px 20px; }
.post-card-cat {
  font-size: 0.68rem; font-weight: 700;
  color: #888; letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 6px; display: block;
}
.post-card h3 {
  font-size: 1rem; font-weight: 800; margin-bottom: 8px;
  line-height: 1.35;
}
.post-card h3 a { color: var(--pink); }
.post-card h3 a:hover { color: var(--pink-dark); text-decoration: underline; }
.post-card p { font-size: 0.85rem; color: #555; margin: 0; }

/* ---- Sidebar ---- */
.sidebar {
  background: #f7f7f7;
  border-left: 1px solid #eee;
  padding: 0;
}
.sidebar-widget { margin-bottom: 0; border-bottom: 1px solid #ddd; }
.sidebar-title {
  background: #1a1a1a; color: #fff;
  font-size: 0.7rem; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 10px 14px;
}
.sidebar-list { list-style: none; padding: 14px; }
.sidebar-list li {
  border-bottom: 1px solid #eee;
  padding: 7px 0; font-size: 0.82rem;
}
.sidebar-list li:last-child { border-bottom: none; }
.sidebar-list a { color: #333; font-weight: 600; }
.sidebar-list a:hover { color: var(--pink); }
.sidebar-list li::before {
  content: '›'; color: var(--pink);
  font-weight: 900; margin-right: 6px;
}

/* ---- Single Post ---- */
.post-single-wrap { background: #fff; }

.post-header-bar {
  background: #1a1a1a;
  padding: 0;
}
.post-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.78rem; font-weight: 700;
  color: #888; padding: 12px 16px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.post-back::before { content: '←'; color: var(--pink); }
.post-back:hover { color: var(--pink); }

.post-header {
  padding: 0;
  border-bottom: 3px solid var(--pink);
}
.post-header-meta {
  padding: 24px 28px 0;
}
.post-tag {
  display: inline-block;
  background: var(--pink); color: #fff;
  font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 3px 10px; margin-bottom: 10px;
}
.post-header h1 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: #111; margin-bottom: 12px;
}
.post-meta-bar {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 28px;
  border-top: 1px solid #eee;
  font-size: 0.8rem; color: #888;
}
.post-meta-bar strong { color: #333; }

.post-hero-img {
  width: 100%; max-height: 420px;
  object-fit: cover; display: block;
}

.post-body {
  padding: 32px 28px 56px;
  font-size: 1rem; color: #333; max-width: 680px;
}
.post-body p { margin-bottom: 1.4em; }
.post-body h2 {
  font-size: 1.3rem; color: #111;
  margin: 2em 0 0.6em; border-left: 4px solid var(--pink);
  padding-left: 12px;
}
.post-body blockquote {
  border-left: 4px solid var(--pink);
  margin: 1.8em 0; padding: 14px 20px;
  background: #f9f9f9; font-style: italic; color: #555;
}
.post-body blockquote p { margin: 0; }

.poem-block {
  background: #f5f5f5; border-left: 4px solid var(--pink);
  padding: 28px 32px; margin: 2em 0;
}
.poem-block p {
  font-style: italic; white-space: pre-line;
  line-height: 2.1; color: #333; margin: 0;
}
.poem-title {
  font-size: 1rem; font-weight: 800; color: var(--pink);
  margin-bottom: 16px; letter-spacing: 0.02em;
}

.read-more {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.8rem; font-weight: 700;
  color: var(--pink); margin-top: 10px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.read-more::after { content: ' [...]'; }

/* ---- Blog index page ---- */
.blog-header {
  background: #1a1a1a; padding: 28px 20px;
}
.blog-header h1 { color: #fff; font-size: 1.6rem; margin-bottom: 6px; }
.blog-header p { color: #888; font-size: 0.9rem; margin: 0; }

/* ---- Social Page ---- */
.social-page {
  min-height: 100vh;
  background: #111;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 60px 24px;
}
.social-top-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: #1a1a1a;
  display: flex; align-items: center; justify-content: space-between;
  height: 52px; padding: 0 20px;
  border-bottom: 2px solid var(--border);
}
.social-top-bar .nav-logo .logo-first { color: var(--pink); }
.social-top-bar .nav-logo .logo-second { color: #fff; }
.social-top-bar a:not(.nav-logo) {
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: #888;
}
.social-top-bar a:not(.nav-logo):hover { color: var(--pink); }

.social-avatar {
  width: 100px; height: 100px; border-radius: 50%;
  overflow: hidden; margin: 0 auto 18px;
  border: 3px solid var(--pink);
}
.social-avatar img { width: 100%; height: 100%; object-fit: cover; }

.social-name { font-size: 1.5rem; font-weight: 900; color: #fff; text-align: center; margin-bottom: 6px; }
.social-name span { color: var(--pink); }
.social-bio { font-size: 0.9rem; color: #888; text-align: center; max-width: 280px; margin: 0 auto 32px; }

.social-links { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 10px; }

.social-link-btn {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  background: #1c1c1c; border: 1px solid #2a2a2a;
  color: #f0f0f0; font-size: 0.9rem; font-weight: 600;
  text-decoration: none; transition: all 0.18s;
}
.social-link-btn:hover {
  background: var(--pink); border-color: var(--pink);
  color: #fff; transform: translateX(4px);
}
.social-link-icon {
  width: 36px; height: 36px; background: var(--pink);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.social-link-btn:hover .social-link-icon { background: rgba(255,255,255,0.2); }
.social-link-text { flex: 1; }
.social-link-label { font-size: 0.7rem; color: #666; font-weight: 400; }
.social-link-btn:hover .social-link-label { color: rgba(255,255,255,0.7); }
.social-footer { margin-top: 40px; font-size: 0.75rem; color: #444; text-align: center; }

/* ---- Footer ---- */
.site-footer {
  background: #1a1a1a;
  padding: 20px;
  border-top: 2px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-logo .logo-first { color: var(--pink); }
.footer-logo .logo-second { color: #fff; }
.footer-logo { font-size: 1.1rem; font-weight: 900; text-decoration: none; }
.footer-copy { font-size: 0.75rem; color: #555; }

/* ---- Responsive ---- */
@media (max-width: 780px) {
  .page-body { grid-template-columns: 1fr; }
  .sidebar { border-left: none; border-top: 1px solid #eee; }
  .post-card { grid-template-columns: 130px 1fr; }
}
@media (max-width: 540px) {
  .post-card { grid-template-columns: 1fr; }
  .post-date-badge { top: auto; bottom: 0; }
  .nav-search { display: none; }
  .nav-links a { padding: 0 10px; font-size: 0.72rem; }
}
