
/* =========================
   PickNote Premium Single
========================= */

.picknote-single {
    max-width: 980px;
    margin: 70px auto;
    padding: 0 30px;
}

.picknote-single-article {
    background: #fff;
}

.picknote-single-header {
    max-width: 820px;
    margin: 0 auto 40px;
}

.picknote-single-category {
    display: inline-block;
    margin-bottom: 18px;
    color: #b08d57;
    font-size: 14px;
    font-weight: 800;
}

.picknote-single-title {
    margin: 0;
    color: #111;
    font-size: 52px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: -0.045em;
}

.picknote-single-meta {
    margin-top: 22px;
    color: #777;
    font-size: 14px;
}

.picknote-single-meta span {
    margin: 0 8px;
}

.picknote-single-hero {
    margin: 0 auto 55px;
}

.picknote-single-hero img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
}

.picknote-single-content {
    max-width: 760px;
    margin: 0 auto;
    color: #222;
    font-size: 18px;
    line-height: 1.95;
}

.picknote-single-content p {
    margin-bottom: 1.6em;
}

.picknote-single-content h2 {
    margin-top: 2.4em;
    margin-bottom: .8em;
    color: #111;
    font-size: 30px;
    line-height: 1.35;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.picknote-single-content h3 {
    margin-top: 2em;
    margin-bottom: .7em;
    font-size: 24px;
    font-weight: 800;
}

.picknote-single-content img {
    border-radius: 14px;
}

.picknote-single-content blockquote {
    margin: 35px 0;
    padding: 22px 28px;
    border-left: 4px solid #b08d57;
    background: #f7f5f1;
    color: #333;
}

.picknote-related {
    max-width: 900px;
    margin: 90px auto 0;
    padding-top: 35px;
    border-top: 1px solid #e8e8e8;
}

.picknote-related h2 {
    margin-bottom: 28px;
    font-size: 28px;
    font-weight: 900;
}

.picknote-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.picknote-related-card {
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(0,0,0,.06);
}

.picknote-related-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.picknote-related-card h3 {
    margin: 0;
    padding: 18px;
    color: #111;
    font-size: 17px;
    line-height: 1.45;
    font-weight: 800;
}

.picknote-related-card a {
    color: inherit;
    text-decoration: none;
}

@media (max-width: 768px) {
    .picknote-single {
        margin-top: 40px;
        padding: 0 18px;
    }

    .picknote-single-title {
        font-size: 36px;
    }

    .picknote-single-content {
        font-size: 17px;
        line-height: 1.85;
    }

    .picknote-related-grid {
        grid-template-columns: 1fr;
    }

    .picknote-related-card img {
        height: 210px;
    }
}


/* =========================
   PickNote Single v2
========================= */

.picknote-single {
    max-width: 1040px;
    margin: 64px auto 80px;
    padding: 0 28px;
}

.picknote-single-header {
    max-width: 860px;
    margin: 0 auto 46px;
}

.picknote-single-category {
    margin-bottom: 16px;
    font-size: 15px;
    letter-spacing: -0.02em;
}

.picknote-single-title {
    font-size: 50px;
    line-height: 1.18;
    max-width: 860px;
}

.picknote-single-meta {
    margin-top: 20px;
    font-size: 14px;
}

.picknote-single-hero {
    max-width: 940px;
    margin: 0 auto 58px;
}

.picknote-single-hero img {
    border-radius: 16px;
}

.picknote-single-content {
    max-width: 760px;
    margin: 0 auto;
}

.picknote-related {
    max-width: 940px;
    margin: 96px auto 0;
    padding-top: 40px;
}

.picknote-related h2 {
    margin-bottom: 30px;
    font-size: 30px;
}

.picknote-related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.picknote-related-card {
    min-width: 0;
}

.picknote-related-card img {
    height: 180px;
}

.picknote-related-card h3 {
    padding: 18px 20px 22px;
    font-size: 18px;
    line-height: 1.45;
}

.picknote-related-grid > .picknote-related-card:only-child {
    max-width: 320px;
}

@media (max-width: 768px) {
    .picknote-single {
        margin-top: 36px;
        padding: 0 16px;
    }

    .picknote-single-header {
        margin-bottom: 30px;
    }

    .picknote-single-title {
        font-size: 34px;
        line-height: 1.22;
    }

    .picknote-single-hero {
        margin-bottom: 40px;
    }

    .picknote-related {
        margin-top: 70px;
    }

    .picknote-related-grid {
        grid-template-columns: 1fr;
    }

    .picknote-related-grid > .picknote-related-card:only-child {
        max-width: none;
    }
}


/* =========================
   PickNote Single Sidebar
========================= */

.picknote-single {
    max-width: 1280px;
}

.picknote-single-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 48px;
    align-items: start;
}

.picknote-single-article {
    min-width: 0;
}

.picknote-single-sidebar {
    position: sticky;
    top: 30px;
}

.picknote-sidebar-box {
    margin-bottom: 24px;
    padding: 24px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(0,0,0,.06);
}

.picknote-sidebar-box h2 {
    margin: 0 0 20px;
    font-size: 22px;
    line-height: 1.3;
    font-weight: 900;
    color: #111;
}


/* 최신 글 */

.picknote-sidebar-post {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    color: #111;
    text-decoration: none;
}

.picknote-sidebar-post:last-child {
    border-bottom: 0;
}

.picknote-sidebar-post img {
    width: 72px;
    height: 58px;
    object-fit: cover;
    border-radius: 8px;
}

.picknote-sidebar-post span {
    font-size: 14px;
    line-height: 1.4;
    font-weight: 700;
}

.picknote-sidebar-post:hover span {
    color: #b08d57;
}


/* 카테고리 */

.picknote-sidebar-categories a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    color: #111;
    text-decoration: none;
}

.picknote-sidebar-categories a:last-child {
    border-bottom: 0;
}

.picknote-sidebar-categories span {
    font-size: 15px;
    font-weight: 700;
}

.picknote-sidebar-categories strong {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    border: 1px solid #d8d8d8;
    border-radius: 999px;
    color: #777;
    font-size: 12px;
}


/* 태그 */

.picknote-sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.picknote-sidebar-tags a {
    padding: 7px 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #555;
    font-size: 12px;
    text-decoration: none;
}

.picknote-sidebar-tags a:hover {
    border-color: #b08d57;
    color: #b08d57;
}


/* 광고 placeholder */

.picknote-ad-placeholder {
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #d8d8d8;
    border-radius: 10px;
    background: #fafafa;
    color: #999;
    font-size: 14px;
}


/* 모바일 */

@media (max-width: 900px) {

    .picknote-single-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .picknote-single-sidebar {
        position: static;
    }

    .picknote-sidebar-box {
        padding: 20px;
    }
}


/* =========================
   Sidebar Sticky Behavior Fix
========================= */

.picknote-single-sidebar {
    position: static;
}

.picknote-sidebar-ad {
    position: sticky;
    top: 24px;
}

@media (max-width: 900px) {
    .picknote-sidebar-ad {
        position: static;
    }
}


/* Revert ad-only sticky */
.picknote-single-sidebar {
    position: sticky;
    top: 30px;
}

.picknote-sidebar-ad {
    position: static;
}

@media (max-width: 900px) {
    .picknote-single-sidebar {
        position: static;
    }
}

/* =========================
   Related Content Overlay
========================= */

.picknote-related-card {
    background: transparent;
    box-shadow: none;
    border-radius: 16px;
    overflow: hidden;
}

.picknote-related-overlay-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.picknote-related-overlay-link:hover,
.picknote-related-overlay-link:focus {
    color: inherit;
    text-decoration: none;
}

.picknote-related-overlay {
    min-height: 240px;
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    transition: transform .25s ease;
}

.picknote-related-overlay-link:hover .picknote-related-overlay {
    transform: translateY(-4px);
}

.picknote-related-overlay-content {
    width: 100%;
    padding: 22px 20px 18px;
    color: #fff;
}

.picknote-related-overlay-content h3 {
    margin: 0 0 10px;
    padding: 0;
    color: #fff;
    font-size: 19px;
    line-height: 1.4;
    font-weight: 900;
    letter-spacing: -0.025em;
    text-shadow: 0 2px 10px rgba(0,0,0,.35);
}

.picknote-related-overlay-content span {
    display: block;
    color: #d8b578;
    font-size: 12px;
    font-weight: 800;
}

@media (max-width: 768px) {
    .picknote-related-overlay {
        min-height: 260px;
    }

    .picknote-related-overlay-content h3 {
        font-size: 18px;
    }
}


/* Smart Sidebar JS control */
@media (min-width: 901px) {
    .picknote-single-layout {
        position: relative;
    }

    .picknote-single-sidebar {
        position: relative;
        top: 0;
        bottom: auto;
        align-self: start;
        will-change: transform;
    }

    .picknote-sidebar-ad {
        position: static;
    }
}

