/* =====================================================================
   ABS VENDOR — Single article page
   Extends homepage.css (tokens, fonts, header, footer)
   + blog.css (sidebar cards, posts, empty state, skeleton)
   ===================================================================== */

/* --------------------------------------------------------------------
   LOADING SKELETON (before Vue hydrates)
   -------------------------------------------------------------------- */
.lp-single-loading {
    padding: clamp(40px, 6vw, 80px) 0;
}

/* --------------------------------------------------------------------
   ARTICLE HEAD
   -------------------------------------------------------------------- */
.lp-single__head {
    padding: clamp(32px, 5vw, 64px) 0 clamp(28px, 4vw, 48px);
    position: relative;
    overflow: hidden;
}
.lp-single__head::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse 55% 45% at 85% 15%, rgba(29,78,216,.10), transparent 60%),
      radial-gradient(ellipse 45% 40% at 10% 90%, rgba(124,58,237,.08), transparent 60%);
    pointer-events: none;
}
.lp-single__head-inner {
    position: relative;
    z-index: 1;
    max-width: 880px;
}

.lp-body .lp-single__title {
    font-family: var(--lp-font-display) !important;
    font-weight: 600 !important;
    font-size: clamp(30px, 5.5vw, 56px) !important;
    line-height: 1.06 !important;
    letter-spacing: -0.035em !important;
    color: var(--lp-ink) !important;
    margin: 16px 0 22px !important;
    max-width: 22ch;
}

.lp-single__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 28px;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}
.lp-single__stats {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.lp-single__stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--lp-font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--lp-muted);
    letter-spacing: -0.005em;
    font-variant-numeric: tabular-nums;
}
.lp-single__stat i {
    font-size: 16px;
    color: var(--lp-muted-2);
}
.lp-single__stat span {
    color: var(--lp-ink-2);
}
.lp-single__author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.lp-single__avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--lp-brand) 0%, var(--lp-violet) 100%);
    color: #fff;
    font-family: var(--lp-font-display);
    font-weight: 700;
    font-size: 17px;
}
.lp-single__author-info {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}
.lp-single__author-info strong {
    font-family: var(--lp-font-display);
    font-weight: 600;
    font-size: 14px;
    color: var(--lp-ink);
    letter-spacing: -0.005em;
}
.lp-single__author-info span {
    font-size: 12px;
    color: var(--lp-muted);
    margin-top: 2px;
    letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------
   COVER IMAGE
   -------------------------------------------------------------------- */
.lp-single__cover {
    padding-bottom: clamp(28px, 4vw, 48px);
}
.lp-single__cover-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: clamp(18px, 3vw, var(--lp-r-xl));
    overflow: hidden;
    background: var(--lp-paper-2);
    border: 1px solid var(--lp-line);
    box-shadow: var(--lp-sh-2);
}
.lp-single__cover-frame img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
@media (max-width: 700px) {
    .lp-single__cover-frame { aspect-ratio: 4 / 3; }
}

/* --------------------------------------------------------------------
   LAYOUT — main column + sidebar
   -------------------------------------------------------------------- */
.lp-single__layout {
    padding-bottom: clamp(60px, 8vw, 100px);
}
.lp-single__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(48px, 5vw, 72px);
}
@media (min-width: 992px) {
    .lp-single__grid {
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: clamp(48px, 5vw, 80px);
    }
}

.lp-single__main {
    min-width: 0;
    max-width: 760px;
}

.lp-single__side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
@media (min-width: 992px) {
    .lp-single__side {
        position: sticky;
        top: 96px;
        align-self: start;
    }
}

/* --------------------------------------------------------------------
   ACTION BAR (like + share)
   -------------------------------------------------------------------- */
.lp-actionbar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    margin-bottom: clamp(28px, 4vw, 44px);
    background: var(--lp-surface);
    border: 1px solid var(--lp-line);
    border-radius: 999px;
    flex-wrap: wrap;
    width: fit-content;
    max-width: 100%;
    box-shadow: var(--lp-sh-1);
}
.lp-actionbar__share {
    display: flex;
    align-items: center;
    gap: 4px;
    padding-left: 14px;
    border-left: 1px solid var(--lp-line);
}
.lp-actionbar__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--lp-muted);
    margin-right: 6px;
}
.lp-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 0;
    background: transparent;
    border-radius: 999px;
    color: var(--lp-muted);
    font-family: var(--lp-font-body);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .25s var(--lp-ease),
                color .25s var(--lp-ease),
                transform .25s var(--lp-ease);
}
.lp-action i { font-size: 17px; line-height: 1; }
.lp-action:hover { background: var(--lp-paper-2); color: var(--lp-ink); }
.lp-action--like.is-liked {
    background: #FEE2E2;
    color: #DC2626;
}
.lp-action--like.is-liked:hover { background: #FECACA; }
.lp-action--fb:hover { color: #1877F2; background: rgba(24,119,242,.08); }
.lp-action--tw:hover { color: #000; background: rgba(0,0,0,.06); }
.lp-action--wa:hover { color: #25D366; background: rgba(37,211,102,.1); }

/* --------------------------------------------------------------------
   PROSE (article content — .lp-prose wraps v-html)
   -------------------------------------------------------------------- */
.lp-prose {
    font-family: var(--lp-font-body);
    font-size: clamp(16px, 1.2vw, 17.5px);
    line-height: 1.75;
    color: var(--lp-ink-2);
    letter-spacing: -0.003em;
}
.lp-prose > *:first-child { margin-top: 0; }
.lp-prose > *:last-child { margin-bottom: 0; }
.lp-prose p {
    margin: 0 0 1.3em;
}
.lp-prose p:first-of-type::first-letter {
    font-family: var(--lp-font-display);
    font-weight: 600;
    float: left;
    font-size: 3.4em;
    line-height: 0.9;
    padding: 0.1em 0.15em 0 0;
    color: var(--lp-brand);
}
.lp-body .lp-prose h2 {
    font-family: var(--lp-font-display) !important;
    font-weight: 600 !important;
    font-size: clamp(22px, 2.8vw, 30px) !important;
    line-height: 1.2 !important;
    letter-spacing: -0.025em !important;
    color: var(--lp-ink) !important;
    margin: 1.8em 0 0.6em !important;
}
.lp-body .lp-prose h3 {
    font-family: var(--lp-font-display) !important;
    font-weight: 600 !important;
    font-size: clamp(18px, 2.2vw, 22px) !important;
    line-height: 1.3 !important;
    letter-spacing: -0.02em !important;
    color: var(--lp-ink) !important;
    margin: 1.6em 0 0.5em !important;
}
.lp-body .lp-prose h4 {
    font-family: var(--lp-font-display) !important;
    font-weight: 600 !important;
    font-size: 17.5px !important;
    color: var(--lp-ink) !important;
    margin: 1.4em 0 0.4em !important;
}
.lp-body .lp-prose a {
    color: var(--lp-brand);
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 2.5px;
    transition: color .2s var(--lp-ease);
}
.lp-body .lp-prose a:hover {
    color: var(--lp-brand-700);
}
.lp-prose strong { color: var(--lp-ink); font-weight: 700; }
.lp-prose em { font-style: italic; }
.lp-prose ul, .lp-prose ol {
    margin: 0 0 1.3em;
    padding-left: 1.4em;
}
.lp-prose li {
    margin-bottom: 0.4em;
    line-height: 1.7;
}
.lp-prose ul li::marker { color: var(--lp-brand); }
.lp-prose ol li::marker {
    color: var(--lp-brand);
    font-family: var(--lp-font-display);
    font-weight: 600;
}
.lp-prose blockquote {
    margin: 1.8em 0;
    padding: 18px 22px;
    border-left: 4px solid var(--lp-brand);
    background: var(--lp-brand-50);
    border-radius: 0 var(--lp-r-md) var(--lp-r-md) 0;
    font-family: var(--lp-font-display);
    font-weight: 500;
    font-size: clamp(17px, 2vw, 20px);
    line-height: 1.45;
    letter-spacing: -0.015em;
    color: var(--lp-ink-2);
}
.lp-prose blockquote p:last-child { margin-bottom: 0; }
.lp-prose img {
    max-width: 100%;
    height: auto;
    border-radius: var(--lp-r-md);
    border: 1px solid var(--lp-line);
    margin: 1.5em 0;
}
.lp-prose figure { margin: 1.5em 0; }
.lp-prose figcaption {
    font-size: 13px;
    color: var(--lp-muted);
    text-align: center;
    margin-top: 8px;
    letter-spacing: 0.01em;
}
.lp-prose code {
    font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 0.9em;
    padding: 2px 6px;
    background: var(--lp-paper-2);
    border: 1px solid var(--lp-line);
    border-radius: 6px;
    color: var(--lp-ink);
}
.lp-prose pre {
    background: var(--lp-ink);
    color: #E8EEF9;
    padding: 20px;
    border-radius: var(--lp-r-md);
    overflow-x: auto;
    margin: 1.5em 0;
    font-size: 13.5px;
    line-height: 1.55;
}
.lp-prose pre code {
    background: transparent;
    border: 0;
    padding: 0;
    color: inherit;
    font-size: inherit;
}
.lp-prose hr {
    border: 0;
    height: 1px;
    background: var(--lp-line);
    margin: 2em 0;
}
.lp-prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 14px;
}
.lp-prose th, .lp-prose td {
    padding: 10px 14px;
    border: 1px solid var(--lp-line);
    text-align: left;
}
.lp-prose th {
    background: var(--lp-paper-2);
    font-weight: 700;
    color: var(--lp-ink);
    font-family: var(--lp-font-display);
}

/* --------------------------------------------------------------------
   TAGS
   -------------------------------------------------------------------- */
.lp-tags {
    margin-top: clamp(32px, 4vw, 48px);
    padding: 20px 0;
    border-top: 1px solid var(--lp-line);
    border-bottom: 1px solid var(--lp-line);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
}
.lp-tags__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--lp-muted);
}
.lp-tags__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.lp-body .lp-tags__list a {
    display: inline-block;
    padding: 6px 12px;
    background: var(--lp-paper-2);
    border: 1px solid var(--lp-line);
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--lp-ink-2);
    transition: background-color .25s var(--lp-ease),
                color .25s var(--lp-ease),
                border-color .25s var(--lp-ease);
}
.lp-body .lp-tags__list a:hover {
    background: var(--lp-brand-50);
    color: var(--lp-brand);
    border-color: var(--lp-brand-100);
}

/* --------------------------------------------------------------------
   SHARE CTA — "Enjoyed this read?"
   -------------------------------------------------------------------- */
.lp-sharecta {
    margin-top: clamp(28px, 4vw, 40px);
    padding: clamp(24px, 3vw, 32px);
    background: var(--lp-brand-50);
    border: 1px solid rgba(29,78,216,.15);
    border-radius: var(--lp-r-lg);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.lp-body .lp-sharecta h3 {
    font-family: var(--lp-font-display) !important;
    font-weight: 600 !important;
    font-size: clamp(17px, 2vw, 20px) !important;
    letter-spacing: -0.02em !important;
    color: var(--lp-ink) !important;
    margin: 0 0 4px !important;
}
.lp-sharecta p {
    color: var(--lp-muted);
    font-size: 14px;
    margin: 0;
}
.lp-sharecta__btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* --------------------------------------------------------------------
   AUTHOR CARD
   -------------------------------------------------------------------- */
.lp-authorcard {
    margin-top: clamp(36px, 5vw, 56px);
    padding: clamp(20px, 3vw, 28px);
    background: var(--lp-surface);
    border: 1px solid var(--lp-line);
    border-radius: var(--lp-r-lg);
    display: flex;
    align-items: flex-start;
    gap: 18px;
}
.lp-authorcard__avatar {
    flex-shrink: 0;
    width: 54px; height: 54px;
    border-radius: 50%;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--lp-brand) 0%, var(--lp-violet) 100%);
    color: #fff;
    font-family: var(--lp-font-display);
    font-weight: 700;
    font-size: 22px;
}
.lp-authorcard__body small {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--lp-muted);
    margin-bottom: 4px;
}
.lp-authorcard__body strong {
    display: block;
    font-family: var(--lp-font-display);
    font-weight: 600;
    font-size: 17px;
    letter-spacing: -0.015em;
    color: var(--lp-ink);
    margin-bottom: 6px;
}
.lp-authorcard__body p {
    color: var(--lp-muted);
    font-size: 13.5px;
    line-height: 1.55;
    margin: 0;
    max-width: 58ch;
}

/* --------------------------------------------------------------------
   COMMENTS
   -------------------------------------------------------------------- */
.lp-comments {
    margin-top: clamp(48px, 6vw, 80px);
    padding-top: clamp(28px, 4vw, 44px);
    border-top: 1px solid var(--lp-line);
}
.lp-comments__head { margin-bottom: 24px; }
.lp-body .lp-comments__head h2 {
    font-family: var(--lp-font-display) !important;
    font-weight: 600 !important;
    font-size: clamp(22px, 3vw, 28px) !important;
    letter-spacing: -0.025em !important;
    color: var(--lp-ink) !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}
.lp-comments__head i {
    color: var(--lp-brand);
    font-size: 24px;
}
.lp-comments__head span {
    color: var(--lp-muted);
    font-weight: 500;
}
.lp-comments__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lp-comment {
    background: var(--lp-surface);
    border: 1px solid var(--lp-line);
    border-radius: var(--lp-r-lg);
    padding: 18px;
}
.lp-comment__row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.lp-comment__avatar {
    flex-shrink: 0;
    width: 40px; height: 40px;
    border-radius: 50%;
    display: grid; place-items: center;
    background: var(--lp-brand-50);
    color: var(--lp-brand);
    font-family: var(--lp-font-display);
    font-weight: 700;
    font-size: 15px;
}
.lp-comment__avatar--sm {
    width: 32px; height: 32px;
    font-size: 13px;
}
.lp-comment__body { flex: 1; min-width: 0; }
.lp-comment__head {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.lp-comment__head strong {
    font-family: var(--lp-font-display);
    font-weight: 600;
    font-size: 14px;
    color: var(--lp-ink);
    letter-spacing: -0.005em;
}
.lp-comment__badge {
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--lp-paper-2);
    border: 1px solid var(--lp-line);
    font-size: 10px;
    font-weight: 700;
    color: var(--lp-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.lp-comment__head time {
    font-size: 11.5px;
    color: var(--lp-muted);
    letter-spacing: 0.02em;
}
.lp-comment__text {
    color: var(--lp-ink-2);
    font-size: 14.5px;
    line-height: 1.6;
    margin: 0 0 8px;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}
.lp-comment__actions {
    display: flex;
    gap: 12px;
    margin-top: 6px;
}
.lp-linkbtn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: 0;
    padding: 4px 0;
    font-family: var(--lp-font-body);
    font-size: 12px;
    font-weight: 600;
    color: var(--lp-muted);
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: color .2s var(--lp-ease);
}
.lp-linkbtn:hover { color: var(--lp-brand); }
.lp-linkbtn i { font-size: 14px; }
.lp-linkbtn--danger:hover { color: #DC2626; }

.lp-comment__replies {
    margin-top: 14px;
    padding-left: 24px;
    border-left: 2px solid var(--lp-brand-100);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.lp-comment--reply {
    background: var(--lp-paper-2);
    padding: 14px;
    border-radius: var(--lp-r-md);
    border-color: var(--lp-line);
}

/* --------------------------------------------------------------------
   COMMENT FORM
   -------------------------------------------------------------------- */
.lp-commentform {
    margin-top: clamp(32px, 4vw, 48px);
    padding: clamp(24px, 3vw, 36px);
    background: var(--lp-paper-2);
    border: 1px solid var(--lp-line);
    border-radius: var(--lp-r-lg);
}
.lp-body .lp-commentform h3 {
    font-family: var(--lp-font-display) !important;
    font-weight: 600 !important;
    font-size: clamp(18px, 2vw, 22px) !important;
    letter-spacing: -0.02em !important;
    color: var(--lp-ink) !important;
    margin: 0 0 20px !important;
}
.lp-commentform__tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.lp-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--lp-line-2);
    background: var(--lp-surface);
    border-radius: 999px;
    font-family: var(--lp-font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--lp-ink-2);
    cursor: pointer;
    transition: all .25s var(--lp-ease);
}
.lp-tab i { font-size: 15px; }
.lp-tab:hover { border-color: var(--lp-brand-100); color: var(--lp-brand); }
.lp-tab.is-active {
    background: var(--lp-brand);
    color: #fff;
    border-color: var(--lp-brand);
}

.lp-commentform__form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.lp-field-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
@media (min-width: 600px) {
    .lp-field-row { grid-template-columns: 1fr 1fr; }
}
.lp-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.lp-field > span {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--lp-muted);
}
.lp-field input,
.lp-field textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--lp-surface);
    border: 1px solid var(--lp-line-2);
    border-radius: 12px;
    font-family: var(--lp-font-body);
    font-size: 14px;
    color: var(--lp-ink);
    transition: border-color .25s var(--lp-ease),
                box-shadow .25s var(--lp-ease);
    outline: none;
    resize: vertical;
}
.lp-field input:focus,
.lp-field textarea:focus {
    border-color: var(--lp-brand);
    box-shadow: 0 0 0 4px var(--lp-brand-50);
}
.lp-field input::placeholder,
.lp-field textarea::placeholder {
    color: var(--lp-muted-2);
}
.lp-field textarea {
    min-height: 100px;
    line-height: 1.5;
    font-family: inherit;
}

.lp-replybar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: var(--lp-brand-50);
    border: 1px solid var(--lp-brand-100);
    border-radius: 10px;
    font-size: 13px;
    color: var(--lp-ink-2);
}
.lp-replybar strong { color: var(--lp-brand); }

.lp-commentform__foot {
    display: flex;
    justify-content: flex-start;
    margin-top: 4px;
}

/* --------------------------------------------------------------------
   RELATED ARTICLES — reuses .lp-post from blog.css
   -------------------------------------------------------------------- */
.lp-related {
    margin-top: clamp(60px, 8vw, 100px);
    padding-top: clamp(40px, 5vw, 64px);
    border-top: 1px solid var(--lp-line);
}
.lp-related__head {
    margin-bottom: clamp(24px, 3vw, 36px);
}
.lp-body .lp-related__head h2 {
    font-family: var(--lp-font-display) !important;
    font-weight: 600 !important;
    font-size: clamp(26px, 3.5vw, 38px) !important;
    letter-spacing: -0.03em !important;
    color: var(--lp-ink) !important;
    margin: 10px 0 0 !important;
}
.lp-related__head em {
    font-style: normal;
    font-weight: 700;
    background: linear-gradient(105deg, var(--lp-brand) 0%, var(--lp-violet) 60%, var(--lp-gold) 120%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
}
.lp-related__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 700px) {
    .lp-related__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .lp-related__grid { grid-template-columns: repeat(3, 1fr); }
}

/* --------------------------------------------------------------------
   RESPONSIVE POLISH
   -------------------------------------------------------------------- */
@media (max-width: 520px) {
    .lp-actionbar { padding: 10px 12px; gap: 10px; }
    .lp-actionbar__share { padding-left: 10px; }
    .lp-action { height: 34px; min-width: 34px; padding: 0 10px; font-size: 12.5px; }
    .lp-action--like span { font-size: 13px; }
    .lp-prose p:first-of-type::first-letter { font-size: 2.8em; }
    .lp-comment { padding: 14px; }
    .lp-comment__replies { padding-left: 16px; }
    .lp-sharecta { padding: 20px; }
    .lp-authorcard { padding: 20px; gap: 14px; }
    .lp-authorcard__avatar { width: 46px; height: 46px; font-size: 18px; }
}

@media (max-width: 380px) {
    .lp-single__title { font-size: 28px !important; }
    .lp-commentform { padding: 20px; }
}
