/* Responi Public Site — Apple-inspired design */
*{margin:0;padding:0;box-sizing:border-box}

/* ═══ Typography & Base ═══ */
body{
  font-family:-apple-system,BlinkMacSystemFont,'SF Pro Display','SF Pro Text',system-ui,sans-serif;
  line-height:1.5;color:#1d1d1f;background:#fbfbfd;
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;
}
a{color:#06c;text-decoration:none;transition:color .2s}
a:hover{color:#0077ed}

/* ═══ Layout ═══ */
.container{max-width:980px;margin:0 auto;padding:0 22px}

/* ═══ Header ═══ */
header{
  background:rgba(251,251,253,.8);backdrop-filter:saturate(180%) blur(20px);-webkit-backdrop-filter:saturate(180%) blur(20px);
  position:sticky;top:0;z-index:100;border-bottom:1px solid rgba(0,0,0,.08);
}
.header-inner{max-width:980px;margin:0 auto;padding:12px 22px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.site-header{display:flex;align-items:center;gap:12px;flex-shrink:0}
.site-avatar{width:36px;height:36px;border-radius:50%;object-fit:cover;border:2px solid rgba(0,0,0,.06)}
h1{font-size:20px;font-weight:700;letter-spacing:-.2px;color:#1d1d1f;white-space:nowrap}
.site-desc{display:none}
nav{display:flex;gap:20px;align-items:center;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;flex-shrink:1;min-width:0}
nav::-webkit-scrollbar{display:none}
nav a{font-size:13px;font-weight:400;color:#424245;letter-spacing:.01em;transition:color .2s;padding:4px 0;white-space:nowrap}
nav a:hover{color:#1d1d1f}
nav a[style*="font-weight"]{color:#1d1d1f !important}

/* ═══ Hero (index page) ═══ */
.hero{text-align:center;padding:40px 22px 24px;max-width:980px;margin:0 auto}
.hero h2{font-size:36px;font-weight:700;letter-spacing:-.02em;line-height:1.1;color:#1d1d1f;margin-bottom:6px}
.hero p{font-size:17px;color:#6e6e73;line-height:1.4;font-weight:400}

/* ═══ Sections ═══ */
.section{max-width:980px;margin:0 auto 40px;padding:0 22px}
.section-title{
  font-size:24px;font-weight:700;letter-spacing:-.02em;color:#1d1d1f;
  margin-bottom:16px;padding-bottom:0;border:none;
}

/* ═══ Posts (Blog) ═══ */
main{min-height:50vh;padding-bottom:40px}
.post{
  max-width:980px;margin:0 auto;padding:32px 22px;
  border-bottom:1px solid rgba(0,0,0,.06);
}
.post:last-child{border-bottom:none}
.post-title{font-size:28px;font-weight:700;letter-spacing:-.02em;line-height:1.14;margin-bottom:6px}
.post-title a{color:#1d1d1f;transition:color .2s}
.post-title a:hover{color:#06c}
.post-meta{font-size:13px;color:#86868b;margin-bottom:12px;font-weight:400}
.post-body{font-size:17px;line-height:1.7;color:#1d1d1f;white-space:pre-wrap;word-wrap:break-word}
.post-body img{max-width:100%;border-radius:16px;margin:16px 0}
.post-body a{color:#06c}
.post-body code{background:#f5f5f7;padding:2px 6px;border-radius:6px;font-size:15px;font-family:'SF Mono',Menlo,monospace}
.post-body pre{background:#1d1d1f;color:#f5f5f7;padding:20px;border-radius:16px;overflow-x:auto;font-size:14px;margin:16px 0;font-family:'SF Mono',Menlo,monospace;line-height:1.5}
.empty{color:#86868b;text-align:center;padding:80px 22px;font-size:19px;font-weight:400}

/* ═══ Listing Photos ═══ */
.listing-photos{display:flex;gap:6px;margin-bottom:12px;overflow:hidden;border-radius:12px}
.listing-photos::-webkit-scrollbar{display:none}
.listing-photo{height:160px;width:100%;object-fit:cover;border-radius:12px;flex-shrink:0}
.listings-grid .listing-photos{overflow:hidden}
.listings-grid .listing-card .listing-photo{width:100%}

/* ═══ Listings Grid (Board) ═══ */
.listings-grid{max-width:980px;margin:0 auto;padding:0 22px;display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.listings-grid > .section-title{grid-column:1 / -1}
a.listing-card{color:inherit;text-decoration:none}
a.listing-card:hover{text-decoration:none}
.listings-grid .listing-card{
  display:flex;flex-direction:column;
  background:#fff;border:none;border-radius:20px;padding:20px;
  box-shadow:0 1px 3px rgba(0,0,0,.04),0 4px 12px rgba(0,0,0,.04);
  transition:transform .2s cubic-bezier(.4,0,.2,1),box-shadow .2s;
}
.listings-grid .listing-card:hover{
  transform:scale(1.015);
  box-shadow:0 2px 8px rgba(0,0,0,.06),0 8px 24px rgba(0,0,0,.08);
}
.listing-title{font-size:17px;font-weight:600;margin-bottom:4px;letter-spacing:-.01em}
.listing-title a{color:#1d1d1f;transition:color .2s}
.listing-title a:hover{color:#06c}
.listing-body{font-size:14px;color:#6e6e73;margin-bottom:10px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;flex:1}
.listing-price{font-size:24px;font-weight:700;color:#1d1d1f;margin-bottom:8px;letter-spacing:-.02em;margin-top:auto}
.listing-meta{font-size:12px;color:#86868b}
.listing-meta a{color:#06c}

@media(max-width:768px){.listings-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:500px){.listings-grid{grid-template-columns:1fr}}

/* ═══ Post List (index — Apple Newsroom style) ═══ */
.post-list{max-width:980px;margin:0 auto 40px;padding:0 22px}
a.post-item{
  display:flex;align-items:flex-start;gap:20px;
  padding:20px 0;border-bottom:1px solid rgba(0,0,0,.06);
  color:inherit;text-decoration:none;transition:opacity .2s;
}
a.post-item:last-child{border-bottom:none}
a.post-item:hover{opacity:.8;text-decoration:none}
.post-item-text{flex:1;min-width:0}
.post-list-title{font-size:20px;font-weight:600;letter-spacing:-.02em;line-height:1.25;color:#1d1d1f;margin-bottom:4px}
.post-item-excerpt{font-size:15px;line-height:1.5;color:#6e6e73;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.post-item-date{font-size:12px;color:#86868b;margin-top:8px;display:block}
.post-thumb{width:160px;height:100px;object-fit:cover;border-radius:12px;flex-shrink:0}

@media(max-width:734px){
  .post-thumb{width:100px;height:68px;border-radius:8px}
  .post-list-title{font-size:17px}
  .post-item-excerpt{font-size:14px;-webkit-line-clamp:2}
}

/* ═══ Profile Sections ═══ */
.profile-section{max-width:980px;margin:0 auto;padding:24px 0;border-bottom:1px solid rgba(0,0,0,.06)}
.profile-section:last-child{border-bottom:none}
.profile-section .post-title{margin-bottom:12px}
.profile-section .post-body{margin:12px 0}

/* ═══ Comments ═══ */
.comment{
  max-width:980px;margin:0 auto;padding:16px 20px;
  background:#f5f5f7;border-radius:12px;margin-top:12px;
}
.comment-header{display:flex;align-items:center;gap:8px;margin-bottom:6px}
.comment-author{font-size:14px;font-weight:600;color:#1d1d1f}
.comment-date{font-size:12px;color:#86868b}
.comment-body{font-size:15px;line-height:1.6;color:#1d1d1f;white-space:pre-wrap;word-wrap:break-word}

/* ═══ Footer ═══ */
footer{
  max-width:980px;margin:0 auto;
  padding:20px 22px;border-top:1px solid rgba(0,0,0,.06);
  color:#86868b;font-size:12px;text-align:center;
}
footer a{color:#86868b;transition:color .2s}
footer a:hover{color:#1d1d1f}

/* ═══ Responsive ═══ */
@media(max-width:734px){
  .hero{padding:24px 16px 16px}
  .hero h2{font-size:26px}
  .hero p{font-size:15px}
  .section-title{font-size:24px}
  .post{padding:24px 16px}
  .post-title{font-size:22px}
  .post-body{font-size:16px}
  h1{font-size:18px}
  .header-inner{padding:10px 16px}
  nav{gap:16px}
  nav a{font-size:12px}
  .listing-photo{height:140px}
}

/* ═══ Dark Mode ═══ */
@media(prefers-color-scheme:dark){
  body{background:#000;color:#f5f5f7}
  header{background:rgba(0,0,0,.8);border-color:rgba(255,255,255,.08)}
  h1{color:#f5f5f7}
  a{color:#2997ff}a:hover{color:#64b5f6}
  .site-avatar{border-color:rgba(255,255,255,.1)}
  nav a{color:#a1a1a6}nav a:hover{color:#f5f5f7}
  nav a[style*="font-weight:600"]{color:#f5f5f7 !important}
  .hero h2{color:#f5f5f7}
  .hero p{color:#86868b}
  .section-title{color:#f5f5f7}
  .post{border-color:rgba(255,255,255,.06)}
  .post-title a{color:#f5f5f7}.post-title a:hover{color:#2997ff}
  .post-meta{color:#636366}
  .post-body{color:#f5f5f7}
  .post-body code{background:#1c1c1e;color:#f5f5f7}
  .listings-grid .listing-card{background:#1c1c1e;box-shadow:0 1px 3px rgba(0,0,0,.2)}
  .listings-grid .listing-card:hover{box-shadow:0 4px 20px rgba(0,0,0,.4)}
  .listing-title a{color:#f5f5f7}
  .listing-body{color:#86868b}
  .listing-price{color:#f5f5f7}
  .listing-meta{color:#48484a}
  .listing-meta a{color:#2997ff}
  .empty{color:#48484a}
  a.post-item{border-color:rgba(255,255,255,.06)}
  .post-list-title{color:#f5f5f7}
  .post-item-excerpt{color:#86868b}
  .profile-section{border-color:rgba(255,255,255,.06)}
  .comment{background:#1c1c1e}
  .comment-author{color:#f5f5f7}
  .comment-body{color:#f5f5f7}
  footer{border-color:rgba(255,255,255,.06);color:#48484a}
  footer a{color:#48484a}footer a:hover{color:#86868b}
}
