/* Single Post Layout */
.single-post .site-content {
    background: #f4f7fb;
    padding-top: 0;
}

.single-post .site-content .grid-container {
    max-width: 1200px;
}

/* Hero */
.velog-single-hero {
    position: relative;
    padding: 120px 0 110px;
    background: linear-gradient(135deg, #f4f7fb 0%, #e9f5f0 100%);
    color: #0f1419;
    overflow: hidden;
}

.velog-single-hero.has-image {
    color: #f8f9fa;
    background-image: linear-gradient(135deg, rgba(10, 26, 24, 0.72), rgba(10, 34, 28, 0.55)), var(--hero-image);
    background-size: cover;
    background-position: center;
}

.velog-single-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.55));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.velog-single-hero.has-image .velog-single-hero__overlay {
    opacity: 1;
}

.velog-single-hero__content {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.velog-single-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    color: #0f1419;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border: 1px solid rgba(15, 20, 25, 0.08);
}

.velog-single-hero.has-image .velog-single-hero__eyebrow {
    background: rgba(255, 255, 255, 0.14);
    color: #e9ecef;
    border-color: rgba(255, 255, 255, 0.18);
}

.velog-single-hero__title {
    margin: 1.25rem 0 1rem;
    font-size: 2.9rem;
    line-height: 1.28;
    letter-spacing: -0.02em;
    font-weight: 800;
    word-break: keep-all;
}

.velog-single-hero__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    color: rgba(15, 20, 25, 0.75);
    font-weight: 500;
}

.velog-single-hero.has-image .velog-single-hero__meta {
    color: rgba(233, 236, 239, 0.9);
}

.velog-single-hero .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.velog-single-hero .meta-dot {
    opacity: 0.55;
}

@media (max-width: 1024px) {
    .velog-single-hero {
        padding: 100px 0 90px;
    }

    .velog-single-hero__title {
        font-size: 2.35rem;
    }
}

@media (max-width: 640px) {
    .velog-single-hero {
        padding: 80px 0 70px;
    }

    .velog-single-hero__title {
        font-size: 2rem;
    }

    .velog-single-hero__meta {
        gap: 0.45rem;
        font-size: 0.95rem;
    }
}

/* Article */
.single-post .inside-article {
    background: #ffffff;
    max-width: 860px;
    margin: -90px auto 48px;
    padding: 48px 56px;
    border-radius: 18px;
    box-shadow: 0 25px 60px rgba(12, 41, 31, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    z-index: 1;
}

.single-post .entry-header {
    display: none;
}

.single-post .entry-content {
    font-size: 1.05rem;
    color: #2d3741;
    line-height: 1.8;
}

.single-post .entry-content > * {
    margin: 1.1rem 0;
}

.single-post .entry-content p {
    color: #2b323a;
    word-break: keep-all;
}

.single-post .entry-content h2,
.single-post .entry-content h3,
.single-post .entry-content h4 {
    margin: 2.2rem 0 1rem;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.single-post .entry-content h2 {
    font-size: 1.8rem;
}

.single-post .entry-content h3 {
    font-size: 1.45rem;
}

.single-post .entry-content h4 {
    font-size: 1.25rem;
}

.single-post .entry-content strong {
    font-weight: 800;
    color: #111827;
}

.single-post .entry-content a {
    color: #0f9b75;
    border-bottom: 1px solid rgba(18, 184, 134, 0.35);
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.single-post .entry-content a:hover {
    color: #0a7f60;
    border-color: rgba(10, 127, 96, 0.55);
}

.single-post .entry-content ul,
.single-post .entry-content ol {
    padding-left: 1.35rem;
    margin: 1.25rem 0;
    color: #2b323a;
}

.single-post .entry-content li {
    margin: 0.4rem 0;
}

.single-post .entry-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 1.75rem;
    border-left: 4px solid #12b886;
    background: #f6fbf9;
    color: #1c2a33;
    border-radius: 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.single-post .entry-content blockquote p {
    margin: 0;
    color: inherit;
}

.single-post .entry-content pre,
.single-post .entry-content code {
    font-family: "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    background: #0f1624;
    color: #e8f4ff;
    border: 1px solid #1e2b3c;
    border-radius: 12px;
}

.single-post .entry-content pre {
    padding: 1rem 1.25rem;
    overflow: auto;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.single-post .entry-content code {
    padding: 0.15rem 0.4rem;
}

.single-post .entry-content hr {
    border: none;
    border-top: 1px solid #e9ecef;
    margin: 2.5rem 0;
}

.single-post .entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: #fbfdff;
    border: 1px solid #e5e8ec;
    border-radius: 12px;
    overflow: hidden;
}

.single-post .entry-content th,
.single-post .entry-content td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid #e5e8ec;
    text-align: left;
}

.single-post .entry-content th {
    background: #f1f4f9;
    font-weight: 700;
}

.single-post .entry-content tr:last-child td {
    border-bottom: none;
}

.single-post .entry-content img,
.single-post .entry-content figure img {
    display: block;
    max-width: 100%;
    border-radius: 14px;
    margin: 1.5rem auto;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
}

.single-post .entry-content figure {
    margin: 1.5rem auto;
    text-align: center;
}

.single-post .entry-content figcaption {
    margin-top: 0.75rem;
    color: #6b7280;
    font-size: 0.95rem;
}

/* Tags */
.single-post .tags-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
}

.single-post .tags-links a {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.9rem;
    background: #f1f3f5;
    color: #2b323a;
    border-radius: 999px;
    font-size: 0.95rem;
    text-decoration: none;
    border: 1px solid #e1e6ea;
    transition: all 0.2s ease;
}

.single-post .tags-links a:hover {
    color: #0a7f60;
    background: #e9f7f1;
    border-color: #c7efe3;
}

/* Post navigation */
.single-post .post-navigation {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

/* Floating prev/next cards (show near end) */
.velog-floating-post-nav {
    position: fixed;
    left: 24px;
    right: 24px;
    bottom: 32px;
    z-index: 999;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.velog-floating-post-nav.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.velog-floating-post-nav__card {
    width: 260px;
    max-width: calc(50vw - 48px);
    pointer-events: auto;
    background: rgba(248, 249, 250, 0.92);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    padding: 14px 16px;
    text-decoration: none;
    color: #0f1419;
    box-shadow: 0 18px 45px rgba(12, 41, 31, 0.16);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.velog-floating-post-nav__card.is-prev {
    transform: translateX(-14px);
}

.velog-floating-post-nav__card.is-next {
    text-align: right;
    transform: translateX(14px);
}

.velog-floating-post-nav.is-visible .velog-floating-post-nav__card.is-prev,
.velog-floating-post-nav.is-visible .velog-floating-post-nav__card.is-next {
    transform: translateX(0);
}

.velog-floating-post-nav__card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 60px rgba(12, 41, 31, 0.22);
    border-color: rgba(18, 184, 134, 0.35);
}

.velog-floating-post-nav__label {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(15, 20, 25, 0.55);
}

.velog-floating-post-nav__title {
    margin-top: 0.55rem;
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.velog-floating-post-nav__date {
    margin-top: 0.55rem;
    font-size: 0.82rem;
    color: rgba(15, 20, 25, 0.62);
    font-weight: 500;
}

@media (max-width: 1100px) {
    .velog-floating-post-nav {
        display: none;
    }
}

.single-post .post-navigation .nav-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.single-post .post-navigation a {
    display: block;
    padding: 1rem 1.25rem;
    background: #f8f9fa;
    border: 1px solid #edf1f4;
    border-radius: 12px;
    color: #1f2933;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.single-post .post-navigation a:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(12, 41, 31, 0.12);
    border-color: #d6e3ec;
}

/* Comments */
.single-post .comments-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
    color: #1f2933;
    background: #ffffff;
    border-radius: 14px;
}

.single-post .comment-respond input[type="text"],
.single-post .comment-respond input[type="email"],
.single-post .comment-respond textarea {
    width: 100%;
    border: 1px solid #d8dee4;
    border-radius: 10px;
    padding: 0.75rem 0.9rem;
    background: #fbfdff;
    color: #1f2933;
}

.single-post .comment-form label,
.single-post .comment-notes,
.single-post .logged-in-as,
.single-post .comment-form-cookies-consent label {
    color: #1f2933;
    font-weight: 600;
}

.single-post .comment-form .logged-in-as a,
.single-post .comment-form .comment-notes a {
    color: #0f9b75;
}

.single-post .comment-respond textarea {
    min-height: 160px;
}

.single-post .comment-respond input[type="submit"] {
    background: #12b886;
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 0.75rem 1.6rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.single-post .comment-respond input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(18, 184, 134, 0.25);
}

/* Dark mode */
body.dark-mode.single-post .site-content {
    background: #0f1115;
}

body.dark-mode .velog-single-hero {
    background: linear-gradient(135deg, #0f1115 0%, #0c1714 100%);
    color: #f8f9fa;
}

body.dark-mode .velog-single-hero.has-image {
    background-image: linear-gradient(135deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.52)), var(--hero-image);
}

body.dark-mode .velog-single-hero__eyebrow {
    background: rgba(255, 255, 255, 0.14);
    color: #e9ecef;
    border-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .velog-single-hero .meta-dot {
    opacity: 0.75;
}

body.dark-mode.single-post .inside-article {
    background: #1d1f24;
    border-color: #2a2d34;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

body.dark-mode.single-post .entry-content {
    color: #e9ecef;
}

body.dark-mode.single-post .entry-content p,
body.dark-mode.single-post .entry-content ul,
body.dark-mode.single-post .entry-content ol {
    color: #dce1e6;
}

body.dark-mode.single-post .entry-content strong {
    color: #ffffff;
}

body.dark-mode.single-post .entry-content blockquote {
    background: #0f1713;
    color: #d5e2dc;
    border-color: #96f2d7;
}

body.dark-mode.single-post .entry-content pre,
body.dark-mode.single-post .entry-content code {
    background: #0b0f16;
    border-color: #111827;
    color: #e3f2ff;
}

body.dark-mode.single-post .entry-content table {
    background: #161a21;
    border-color: #1f2430;
}

body.dark-mode.single-post .entry-content th {
    background: #1f2430;
}

body.dark-mode.single-post .entry-content td,
body.dark-mode.single-post .entry-content th {
    border-color: #1f2430;
    color: #e9ecef;
}

body.dark-mode.single-post .entry-content figcaption {
    color: #9aa3af;
}

body.dark-mode.single-post .tags-links a {
    background: #1f2430;
    color: #e9ecef;
    border-color: #2d3240;
}

body.dark-mode.single-post .tags-links a:hover {
    background: #132821;
    border-color: #96f2d7;
    color: #96f2d7;
}

body.dark-mode.single-post .post-navigation {
    border-color: #2a2d34;
}

body.dark-mode .velog-floating-post-nav__card {
    background: rgba(31, 36, 48, 0.92);
    border-color: rgba(255, 255, 255, 0.12);
    color: #e9ecef;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.36);
}

body.dark-mode .velog-floating-post-nav__card:hover {
    border-color: rgba(150, 242, 215, 0.5);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
}

body.dark-mode .velog-floating-post-nav__label {
    color: rgba(233, 236, 239, 0.68);
}

body.dark-mode .velog-floating-post-nav__date {
    color: rgba(233, 236, 239, 0.72);
}

body.dark-mode.single-post .comments-area {
    color: #e9ecef;
    border-color: #2a2d34;
    background: #1d1f24;
}

body.dark-mode.single-post .comment-form label,
body.dark-mode.single-post .comment-notes,
body.dark-mode.single-post .logged-in-as,
body.dark-mode.single-post .comment-form-cookies-consent label {
    color: #e9ecef;
}

body.dark-mode.single-post .comment-form .logged-in-as a,
body.dark-mode.single-post .comment-form .comment-notes a {
    color: #96f2d7;
}

body.dark-mode.single-post .comment-respond input[type="text"],
body.dark-mode.single-post .comment-respond input[type="email"],
body.dark-mode.single-post .comment-respond textarea {
    background: #0f1115;
    border-color: #2a2d34;
    color: #f1f3f5;
}

body.dark-mode.single-post .comment-list .comment-body,
body.dark-mode.single-post .comment-list .pingback,
body.dark-mode.single-post .comment-list .trackback {
    background: #1f2430;
    border-color: #2a2d34;
    color: #e9ecef;
}

body.dark-mode.single-post .comment-list .comment-author,
body.dark-mode.single-post .comment-list .comment-metadata a,
body.dark-mode.single-post .comment-list .comment-metadata,
body.dark-mode.single-post .comment-list .comment-content,
body.dark-mode.single-post .comment-list .comment-content p {
    color: #e9ecef;
}

body.dark-mode.single-post .comment-list .reply a {
    color: #96f2d7;
}

body.dark-mode.single-post .comment-respond input[type="text"]::placeholder,
body.dark-mode.single-post .comment-respond input[type="email"]::placeholder,
body.dark-mode.single-post .comment-respond textarea::placeholder {
    color: #8f96a3;
}

body.dark-mode.single-post .post-navigation a {
    background: #1f2430;
    border-color: #2a2f3a;
    color: #e9ecef;
}

body.dark-mode.single-post .post-navigation a:hover {
    border-color: #96f2d7;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

body.dark-mode.single-post .comments-area {
    border-color: #2a2d34;
}

body.dark-mode.single-post .comment-respond input[type="text"],
body.dark-mode.single-post .comment-respond input[type="email"],
body.dark-mode.single-post .comment-respond textarea {
    background: #0f1115;
    border-color: #2a2d34;
    color: #f1f3f5;
}

body.dark-mode.single-post .comment-respond input[type="submit"] {
    box-shadow: none;
}

@media (max-width: 768px) {
    .single-post .inside-article {
        margin: -70px auto 40px;
        padding: 32px 24px;
    }

    .single-post .entry-content {
        font-size: 1rem;
    }
}
