/* ============================================================
   똑순이 지역 SEO 피드 레이아웃 v2.0 — ddoksun_seo_feed.css
   역할: 헤더 · GNB · 피드헤드 · 푸터 · TOP버튼 · 반응형
   ============================================================ */

/* ── 리셋 & 기본 ── */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, 'Noto Sans KR', 'Malgun Gothic', sans-serif; background: #fff; color: #111; }

/* ── 전체 래퍼 ── */
.ddsf-wrap { min-height: 100vh; display: flex; flex-direction: column; }

/* ══════════════════════════════════════════
   HEADER
══════════════════════════════════════════ */
.ddsf-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid #eee;
    transition: box-shadow .2s;
}
.ddsf-header.scrolled { box-shadow: 0 2px 12px rgba(0,0,0,.08); }

.ddsf-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    gap: 24px;
}

/* 로고 */
.ddsf-logo {
    margin: 0;
    flex-shrink: 0;
}
.ddsf-logo a {
    display: block;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -.06em;
    color: #111;
    text-decoration: none;
    line-height: 1;
}
.ddsf-logo a:hover { color: #1a73e8; }

/* GNB */
.ddsf-gnb { margin-left: auto; }
.ddsf-gnb ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 4px;
}
.ddsf-gnb ul li a {
    display: block;
    padding: 8px 14px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -.04em;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    transition: background .15s, color .15s;
}
.ddsf-gnb ul li a:hover,
.ddsf-gnb ul li.on a {
    background: #f4f4f4;
    color: #111;
}

/* 햄버거 버튼 (모바일) */
.ddsf-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
    padding: 4px;
    border-radius: 6px;
}
.ddsf-nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #111;
    border-radius: 2px;
    transition: transform .2s, opacity .2s;
}
.ddsf-nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ddsf-nav-toggle.active span:nth-child(2) { opacity: 0; }
.ddsf-nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════════════════
   MAIN / CONTENT
══════════════════════════════════════════ */
.ddsf-main {
    flex: 1;
}

/* 피드 헤드 (목록 페이지 상단) */
.ddsf-feed-head {
    max-width: 1280px;
    margin: 36px auto 20px;
    padding: 0 24px;
}
.ddsf-feed-head h2 {
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -.06em;
    color: #111;
    margin: 0 0 10px;
    line-height: 1.2;
}
.ddsf-feed-head p {
    font-size: 16px;
    color: #555;
    line-height: 1.7;
    margin: 0;
    letter-spacing: -.03em;
}

/* 콘텐츠 영역 */
.ddsf-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 60px;
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.ddsf-footer {
    background: #171717;
    color: #fff;
    margin-top: auto;
}
.ddsf-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 36px 24px 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
    flex-wrap: wrap;
}
.ddsf-footer-brand strong {
    display: block;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -.05em;
    color: #fff;
    margin-bottom: 10px;
}
.ddsf-footer-brand p {
    font-size: 14px;
    color: #aaa;
    line-height: 1.7;
    margin: 0;
}
.ddsf-footer-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 4px;
}
.ddsf-footer-nav a {
    font-size: 14px;
    color: #ccc;
    text-decoration: none;
    line-height: 2;
}
.ddsf-footer-nav a:hover { color: #fff; text-decoration: underline; }
.ddsf-copy {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 24px 28px;
    border-top: 1px solid rgba(255,255,255,.08);
    font-size: 13px;
    color: #666;
}

/* ══════════════════════════════════════════
   TOP 버튼
══════════════════════════════════════════ */
.ddsf-top {
    position: fixed;
    bottom: 28px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: #111;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    text-decoration: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
    z-index: 200;
}
.ddsf-top.visible { opacity: 1; pointer-events: auto; }
.ddsf-top:hover { background: #333; }

/* ══════════════════════════════════════════
   접근성: skip
══════════════════════════════════════════ */
.skip {
    margin: 0;
    padding: 0;
}
.skip a {
    position: absolute;
    top: -100px;
    left: 0;
    font-size: 0;
    overflow: hidden;
}
.skip a:focus {
    top: 0;
    font-size: 14px;
    background: #000;
    color: #fff;
    padding: 8px 14px;
    z-index: 9999;
}

/* ══════════════════════════════════════════
   반응형
══════════════════════════════════════════ */
@media (max-width: 768px) {
    .ddsf-header-inner { padding: 0 16px; }
    .ddsf-logo a { font-size: 20px; }

    /* 모바일 GNB */
    .ddsf-nav-toggle { display: flex; }
    .ddsf-gnb {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid #eee;
        box-shadow: 0 4px 12px rgba(0,0,0,.08);
        margin-left: 0;
        z-index: 99;
    }
    .ddsf-gnb.open { display: block; }
    .ddsf-gnb ul { flex-direction: column; padding: 8px 16px 16px; gap: 2px; }
    .ddsf-gnb ul li a { padding: 10px 12px; font-size: 16px; }

    .ddsf-feed-head { margin: 24px auto 16px; padding: 0 16px; }
    .ddsf-feed-head h2 { font-size: 28px; }
    .ddsf-feed-head p { font-size: 15px; }

    .ddsf-content { padding: 0 16px 40px; }

    .ddsf-footer-inner { padding: 28px 16px 20px; flex-direction: column; gap: 20px; }
    .ddsf-copy { padding: 14px 16px 24px; }
}
