/* ============================================================
   frontend-layout.css — v6, theo phong cách "LẶNG Gallery Premium"
   Layout riêng cho trang chủ, hero bộ sưu tập, blog.
   ============================================================ */

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 56px; }
@media (max-width: 720px) { .wrap { padding: 0 22px; } }

/* ============================================================
   HOMEPAGE HERO — nền tối, quầng sáng spotlight, lưới 2 cột
   ============================================================ */
.ed-hero {
  position: relative;
  min-height: calc(100vh - var(--topbar-h));
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(169,129,75,0.16), transparent 60%),
    linear-gradient(180deg, #1a1712 0%, #100e0b 70%, #0b0a08 100%);
}
.ed-spotlight {
  position: absolute; top: -10%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(255,238,205,0.10) 0%, transparent 55%);
  animation: ed-dim 3.5s ease-out 1 forwards;
  pointer-events: none;
}
@keyframes ed-dim { 0% { opacity: 0; } 35% { opacity: 1; } 100% { opacity: .55; } }
.ed-hero-inner { position: relative; z-index: 2; width: 100%; padding: 0 56px 76px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; }
@media (max-width: 900px) { .ed-hero-inner { grid-template-columns: 1fr; padding: 0 22px 56px; } }
.ed-hero-tag { font-size: 13px; color: var(--mist); margin-bottom: 22px; max-width: 34ch; }
.ed-hero h1 { font-family: var(--font-display); font-size: clamp(40px, 7.2vw, 92px); line-height: 0.98; color: var(--paper); font-weight: 500; margin: 0; }
.ed-hero h1 em { font-style: italic; color: var(--brass); }
.ed-hero-note { font-size: 14.5px; color: var(--paper-dim); max-width: 36ch; border-left: 1px solid var(--hair); padding-left: 20px; }

/* ============================================================
   HEAD ROW (dùng chung cho tiêu đề khối)
   ============================================================ */
.ed-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; padding: 110px 0 44px; border-bottom: 1px solid var(--hair); }
@media (max-width: 720px) { .ed-section-head { flex-direction: column; align-items: flex-start; gap: 16px; padding: 74px 0 30px; } }
.ed-section-head h2 { font-family: var(--font-display); font-size: clamp(26px, 3.6vw, 40px); color: var(--paper); max-width: 14ch; font-weight: 500; margin: 0; }
.ed-section-head p { max-width: 38ch; color: var(--paper-dim); font-size: 14.5px; margin: 0; }
.ed-eyebrow { font-size: 13px; color: var(--mist); display: block; margin-bottom: 10px; }
.ed-see-all { font-family: var(--font-sans); font-size: 12px; font-weight: 500; color: var(--brass); text-decoration: none; text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap; }
.ed-see-all:hover { color: var(--paper); }
.ed-section { max-width: 1180px; margin: 0 auto; padding: 0 56px; }
@media (max-width: 720px) { .ed-section { padding: 0 22px; } }

.tile-empty { display: block; width: 100%; height: 100%; background: repeating-linear-gradient(45deg, var(--panel), var(--panel) 8px, var(--panel-2) 8px, var(--panel-2) 16px); }

/* ============================================================
   STATEMENT — trích dẫn lớn kiểu tuyên ngôn tuyển chọn
   ============================================================ */
.ed-statement { padding: 110px 0; border-bottom: 1px solid var(--hair); }
.ed-statement blockquote { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: clamp(22px, 3.4vw, 36px); line-height: 1.42; max-width: 22ch; color: var(--paper); margin: 0; }
.ed-statement cite { display: block; font-style: normal; font-family: var(--font-sans); font-size: 13.5px; color: var(--mist); margin-top: 26px; }

/* ============================================================
   SALON GRID — bộ sưu tập nổi bật, lưới 12 cột bất đối xứng
   ============================================================ */
.ed-salon { display: grid; grid-template-columns: repeat(12, 1fr); gap: 28px; padding: 56px 0 120px; }
.ed-piece { position: relative; text-decoration: none; display: block; }
.ed-piece .frame { position: relative; border: 1px solid var(--hair); overflow: hidden; background: var(--panel); transition: border-color 0.35s ease; }
.ed-piece:hover .frame { border-color: var(--brass-soft); }
.ed-piece .frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(.2,.7,.2,1); }
.ed-piece:hover .frame img { transform: scale(1.035); }
.ed-piece .ed-tag { position: absolute; top: 14px; left: 14px; font-size: 11px; padding: 4px 9px; background: rgba(21,19,15,0.72); color: var(--paper-dim); border: 1px solid var(--hair); text-transform: none; letter-spacing: 0; }
.ed-piece .meta { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; gap: 12px; }
.ed-piece .meta h3 { font-family: var(--font-display); font-size: 17px; color: var(--paper); font-weight: 500; margin: 0; }
.ed-piece .meta .artist { font-size: 13px; color: var(--mist); margin-top: 3px; }
.ed-piece .meta .count { font-size: 13px; color: var(--brass); white-space: nowrap; font-family: var(--font-display); font-style: italic; }
.ed-piece.pc-1 { grid-column: span 5; }
.ed-piece.pc-2 { grid-column: span 4; margin-top: 70px; }
.ed-piece.pc-3 { grid-column: span 3; }
.ed-piece.pc-4 { grid-column: span 3; margin-top: 34px; }
.ed-piece.pc-5 { grid-column: span 6; }
.ed-piece.pc-6 { grid-column: span 3; margin-top: -28px; }
@media (max-width: 980px) { .ed-piece.pc-1, .ed-piece.pc-2, .ed-piece.pc-3, .ed-piece.pc-4, .ed-piece.pc-5, .ed-piece.pc-6 { grid-column: span 6; margin-top: 0; } }
@media (max-width: 620px) { .ed-piece.pc-1, .ed-piece.pc-2, .ed-piece.pc-3, .ed-piece.pc-4, .ed-piece.pc-5, .ed-piece.pc-6 { grid-column: span 12; } }

/* ============================================================
   ARTIST FEATURE — nghệ sĩ đóng góp nhiều nhất mùa này
   ============================================================ */
.ed-artist-feat { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; padding: 100px 0; border-bottom: 1px solid var(--hair); align-items: center; }
@media (max-width: 860px) { .ed-artist-feat { grid-template-columns: 1fr; gap: 36px; } }
.ed-artist-feat .frame { border: 1px solid var(--hair); aspect-ratio: 4/5; background: linear-gradient(150deg, #2a251d, #161310); overflow: hidden; }
.ed-artist-feat .frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ed-artist-feat h2 { font-family: var(--font-display); font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 22px; font-weight: 500; }
.ed-artist-feat p { color: var(--paper-dim); font-size: 15px; max-width: 52ch; margin: 0 0 28px; }
.ed-artist-feat .stat-row { display: flex; gap: 40px; border-top: 1px solid var(--hair); padding-top: 20px; flex-wrap: wrap; }
.ed-artist-feat .stat-row div { display: flex; flex-direction: column; gap: 4px; }
.ed-artist-feat .stat-row b { font-family: var(--font-display); font-size: 22px; font-weight: 500; color: var(--paper); }
.ed-artist-feat .stat-row span { font-size: 12.5px; color: var(--mist); }

/* ============================================================
   PROCESS — cách khám phá & đóng góp cho thư viện
   ============================================================ */
.ed-process { padding: 100px 0; border-bottom: 1px solid var(--hair); }
.ed-process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; margin-top: 50px; }
@media (max-width: 760px) { .ed-process-grid { grid-template-columns: 1fr; } }
.ed-process-item { border-top: 1px solid var(--brass-soft); padding-top: 20px; }
.ed-process-item h3 { font-family: var(--font-display); font-size: 19px; margin-bottom: 12px; color: var(--paper); font-weight: 500; }
.ed-process-item p { color: var(--paper-dim); font-size: 14px; margin: 0; max-width: 32ch; }

/* ============================================================
   CTA BAND
   ============================================================ */
.ed-band { padding: 110px 0; text-align: left; }
.ed-band h2 { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(28px, 4vw, 42px); margin: 0 0 12px; color: var(--paper); }
.ed-band p { font-family: var(--font-sans); font-size: 14px; margin: 0 0 30px; color: var(--paper-dim); }
.ed-link-btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-sans); font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; text-decoration: none; color: var(--brass); border: 1px solid var(--brass); padding: 14px 30px; transition: background 0.3s ease, color 0.3s ease; }
.ed-link-btn:hover { background: var(--brass); color: var(--ink); }
.ed-link-btn.plain { border-color: var(--hair-strong); color: var(--paper); }
.ed-link-btn.plain:hover { background: var(--paper); color: var(--ink); }

/* ============================================================
   COLLECTION HERO (collection.php) — biến thể của .page-top
   ============================================================ */
.page-top.ed-work-hero { position: relative; }
.page-top.ed-work-hero .container { padding-top: 70px; padding-bottom: 0; display: grid; grid-template-columns: 1fr 340px; gap: 50px; align-items: end; }
.ed-work-hero-text { padding-bottom: 40px; }
.ed-work-hero-tag { font-size: 13px; color: var(--mist); margin: 0 0 18px; }
.page-top.ed-work-hero .container .title { font-family: var(--font-display); font-style: italic; font-size: clamp(32px, 5vw, 54px); color: var(--paper); padding-top: 0; font-weight: 500; }
.page-top.ed-work-hero .container .title svg { fill: var(--brass); }
.page-top.ed-work-hero .container .description { color: var(--paper-dim); font-size: 15px; max-width: 480px; }
.ed-work-hero-meta { display: flex; gap: 22px; flex-wrap: wrap; margin: 12px 0 24px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--mist); }
.ed-work-hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.ed-work-hero-edit { font-family: var(--font-sans); font-size: 12px; color: var(--paper-dim); text-decoration: underline; text-underline-offset: 3px; text-transform: uppercase; letter-spacing: 0.04em; }
.ed-work-hero-edit:hover { color: var(--brass); }
.ed-work-hero-figure { aspect-ratio: 4/5; overflow: hidden; background: var(--panel); align-self: end; border: 1px solid var(--hair); }
.ed-work-hero-figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.page-top.ed-work-hero .navigation-links { grid-column: 1 / -1; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--hair); }
@media (max-width: 900px) { .page-top.ed-work-hero .container { grid-template-columns: 1fr; } .ed-work-hero-figure { aspect-ratio: 16/9; order: -1; } }

/* ============================================================
   BLOG (posts.php / post.php)
   ============================================================ */
.ed-blog-hero { padding: 90px 56px 50px; border-bottom: 1px solid var(--hair); }
@media (max-width: 720px) { .ed-blog-hero { padding: 70px 22px 40px; } }
.ed-blog-hero h1 { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(34px, 6vw, 56px); color: var(--paper); margin: 0 0 16px; }
.ed-blog-hero .lede { font-size: 15px; color: var(--paper-dim); max-width: 540px; margin: 0; }

.ed-blog-layout { display: grid; grid-template-columns: 1fr 300px; gap: 60px; align-items: start; padding: 70px 0; }
@media (max-width: 900px) { .ed-blog-layout { grid-template-columns: 1fr; } }
.ed-search { display: flex; border-bottom: 1px solid var(--brass); margin-bottom: 40px; max-width: 420px; }
.ed-search input { flex: 1; border: none; padding: 12px 0; font-family: var(--font-sans); font-size: 14px; outline: none; background: none; color: var(--paper); }
.ed-search button { border: none; background: none; color: var(--brass); padding: 0 4px; cursor: pointer; }
.ed-no-results { color: var(--mist); padding: 20px 0; }

.ed-post-list { display: flex; flex-direction: column; }
.ed-post-row { display: grid; grid-template-columns: 180px 1fr; gap: 34px; align-items: center; text-decoration: none; padding: 34px 0; border-bottom: 1px solid var(--hair); }
@media (max-width: 560px) { .ed-post-row { grid-template-columns: 1fr; } }
.ed-post-row:first-child { border-top: 1px solid var(--hair); }
.ed-post-thumb { aspect-ratio: 4/3; overflow: hidden; background: var(--panel); border: 1px solid var(--hair); }
.ed-post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ed-post-row h3 { font-family: var(--font-display); font-size: 24px; font-weight: 500; margin: 0 0 8px; color: var(--paper); line-height: 1.2; }
.ed-post-row p { font-size: 13px; line-height: 1.65; color: var(--paper-dim); margin: 0 0 8px; }
.ed-post-meta { font-size: 11px; color: var(--mist); text-transform: uppercase; letter-spacing: 0.05em; }
.ed-tag { display: inline-block; font-size: 10.5px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; color: var(--mist); border: 1px solid var(--hair); padding: 3px 9px; margin-bottom: 10px; }

.ed-sidebar-block { padding-bottom: 34px; margin-bottom: 34px; border-bottom: 1px solid var(--hair); }
.ed-sidebar-block h4 { font-family: var(--font-display); font-style: italic; font-size: 19px; margin: 0 0 16px; color: var(--paper); font-weight: 500; }
.ed-sidebar-text { font-size: 13px; color: var(--paper-dim); line-height: 1.65; margin: 0 0 18px; }
.ed-cat-list { list-style: none; margin: 0; padding: 0; }
.ed-cat-list li { border-bottom: 1px solid var(--hair); }
.ed-cat-list a { display: flex; justify-content: space-between; font-size: 13px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--paper-dim); text-decoration: none; padding: 12px 0; }
.ed-cat-list a:hover, .ed-cat-list a.active { color: var(--brass); }
.ed-cat-list a span { color: var(--mist); }

.ed-pagination { display: flex; align-items: center; justify-content: center; gap: 26px; padding: 40px 0 10px; }
.ed-pagination a { text-decoration: none; color: var(--brass); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 1px solid var(--brass); padding-bottom: 3px; }
.ed-pagination a:hover { color: var(--paper); border-color: var(--paper); }
.ed-pagination div { font-family: var(--font-display); font-style: italic; font-size: 15px; color: var(--mist); }

.ed-view { max-width: 720px; margin: 0 auto; padding: 80px 24px; }
.ed-view-header { margin-bottom: 40px; }
.ed-view-header h1 { font-family: var(--font-display); font-style: italic; font-size: clamp(32px, 5vw, 48px); font-weight: 500; color: var(--paper); margin: 16px 0 14px; line-height: 1.15; }
.ed-view-meta { font-size: 11px; color: var(--mist); text-transform: uppercase; letter-spacing: 0.06em; margin: 0; }
.ed-view-cover { margin: 0 0 44px; border: 1px solid var(--hair); }
.ed-view-cover img { width: 100%; display: block; }
.ed-view-content { font-size: 18px; line-height: 1.9; color: var(--paper); }
.ed-related, .ed-more { margin-top: 60px; padding-top: 44px; border-top: 1px solid var(--hair); }
.ed-related h3, .ed-more h3 { font-family: var(--font-display); font-style: italic; font-size: 26px; font-weight: 500; margin: 0 0 24px; color: var(--paper); }
.ed-related h3 a { color: var(--brass); text-decoration: none; }
.ed-related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--hair); }
@media (max-width: 700px) { .ed-related-grid { grid-template-columns: repeat(2, 1fr); } }
.ed-related-item { display: block; aspect-ratio: 1/1; overflow: hidden; background: var(--panel); }
.ed-related-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ed-view .ed-link-btn { display: inline-flex; margin-top: 50px; }

/* ============================================================
   FOOTER
   ============================================================ */
.ed-footer { background: var(--ink); border-top: 1px solid var(--hair); padding: 0; }
.ed-footer .content-wrapper { max-width: 1180px; margin: 0 auto; padding: 0 56px; }
@media (max-width: 720px) { .ed-footer .content-wrapper { padding: 0 22px; } }
.ed-footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding: 60px 0; border-bottom: 1px solid var(--hair); }
@media (max-width: 720px) { .ed-footer-top { grid-template-columns: 1fr; gap: 30px; } }
.ed-footer-brand h3 { font-family: var(--font-display); font-style: italic; color: var(--paper); font-size: 20px; margin: 0 0 14px; font-weight: 500; }
.ed-footer-brand h3 span { font-family: var(--font-sans); font-style: normal; border: 1px solid var(--hair); color: var(--mist); padding: 2px 7px; margin-left: 8px; font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; }
.ed-footer-brand p { font-size: 13px; color: var(--paper-dim); line-height: 1.75; max-width: 340px; margin: 0; }
.ed-footer-links h4 { font-size: 11px; color: var(--mist); text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 16px; font-weight: 600; }
.ed-footer-links a { display: block; font-size: 13px; color: var(--paper-dim); text-decoration: none; margin-bottom: 12px; }
.ed-footer-links a:hover { color: var(--brass); }
.ed-footer-copy { font-size: 12.5px; color: var(--mist); text-align: center; padding: 24px 0; }
.ed-footer-copy a { color: var(--paper-dim); }

/* ============================================================
   RESPONSIVE (chung)
   ============================================================ */
@media (max-width: 900px) {
  .ed-artist-feat, .ed-blog-layout { grid-template-columns: 1fr; }
}
