/* ============================================================
   luca-single.css
   Thêm vào: /wp-content/themes/flatsome-child/css/luca-single.css
   ============================================================ */

/* ── WRAPPER ──────────────────────────────────────────────── */
.luca-single-wrapper {
    max-width: 840px;
    margin: 0 auto;
    padding: 28px 20px 56px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

/* ── BREADCRUMB ───────────────────────────────────────────── */
.luca-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #888;
    flex-wrap: wrap;
    padding: 24px;
}

.luca-breadcrumb a {
    color: #555;
    text-decoration: none;
    transition: color 0.2s;
    font-size: 14px;
    font-weight: 400;
}

.luca-breadcrumb a:hover { color: #111; }

.luca-bc-sep { color: #ccc; }

.luca-bc-current {
    color: #000000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
    font-size: 14px;
    font-weight: 600;
}

/* ── TITLE ────────────────────────────────────────────────── */
.luca-single-title {
    font-size: clamp(22px, 4vw, 34px);
    font-weight: 700;
    line-height: 1.25;
    color: #111;
    letter-spacing: -0.01em;
    margin: 0 0 24px;
}

/* ── FEATURED IMAGE ───────────────────────────────────────── */
.luca-single-thumb {
    width: 100%;
    margin-bottom: 24px;
    border-radius: 2px;
    overflow: hidden;
}

.luca-single-thumb img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ── META BAR ─────────────────────────────────────────────── */
.luca-single-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding: 16px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 32px;
}

.luca-meta-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Author */
.luca-meta-author {
    display: flex;
    align-items: center;
    gap: 9px;
}

.luca-author-avatar {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50%;
    object-fit: cover;
}

.luca-author-name {
    font-size: 14px;
    font-weight: 600;
    color: #222;
}

/* Date */
.luca-meta-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #888;
}

.luca-meta-date svg {
    flex-shrink: 0;
    color: #aaa;
}

/* ── SHARE BUTTONS ────────────────────────────────────────── */
.luca-share-buttons {
    display: flex;
    align-items: center;
    gap: 6px;
}

.luca-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
    text-decoration: none;
    flex-shrink: 0;
}

.luca-share-btn:hover { transform: scale(1.12); opacity: 0.88;color: #fff; }

.luca-share-btn svg {
    width: 40px;
    height: 40px;
    display: block;
}

/* Colors */
.luca-share-wa   { background: #25d366; color: #fff; }
.luca-share-fb   { background: #1877f2; color: #fff; }
.luca-share-tw   { background: #000;    color: #fff; }
.luca-share-li   { background: #0a66c2; color: #fff; }
.luca-share-pi   { background: #e60023; color: #fff; }
.luca-share-copy {
    background: transparent;
    color: #333;
    padding: 0;
    width: 40px;
    height: 40px;
    margin: 0;
}
.luca-share-copy.copied rect { fill: #111; }
.luca-share-copy.copied path  { stroke: #fff; }

/* ── ARTICLE CONTENT ──────────────────────────────────────── */
.luca-single-content {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
}

.luca-single-content h2,
.luca-single-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    margin: 36px 0 12px;
    line-height: 1.3;
}

.luca-single-content h3 { font-size: 16px; }

.luca-single-content p {
    margin: 0 0 20px;
    color: #1F1F1F!important;
}

.luca-single-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 24px auto;
}

/* ── BLOCKQUOTE (yellow style) ────────────────────────────── */
.luca-single-content blockquote,
.luca-single-content .wp-block-quote {
    position: relative;
    background: #fffbeb;
    border-left: 4px solid #f0c040;
    padding: 24px 24px 24px 56px;
    margin: 32px 0;
    border-radius: 0 4px 4px 0;
    font-size: 15px;
    font-style: italic;
    color: #444;
    line-height: 1.7;
}

.luca-single-content blockquote::before,
.luca-single-content .wp-block-quote::before {
    content: '\201C\201C';
    position: absolute;
    left: 16px;
    top: 20px;
    font-size: 36px;
    color: #f0c040;
    font-style: normal;
    line-height: 1;
    font-family: Georgia, serif;
}

.luca-single-content blockquote p,
.luca-single-content .wp-block-quote p {
    margin: 0;
}

/* ── INLINE IMAGES (2-col gallery) ───────────────────────── */
.luca-single-content .wp-block-gallery,
.luca-single-content figure.wp-block-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 28px 0;
}

.luca-single-content .wp-block-gallery img {
    margin: 0;
    width: 100%;
    height: 280px;
    object-fit: cover;
}

/* ── TAGS ─────────────────────────────────────────────────── */
.luca-single-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}

.luca-tag-pill {
    display: inline-block;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 500;
    color: #555;
    border: 1px solid #ddd;
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    border-radius: 2px;
}

.luca-tag-pill:hover {
    background: #111;
    color: #fff;
    border-color: #111;
}

/* ── OTHER POSTS ──────────────────────────────────────────── */
.luca-other-posts {
    background: #f7f7f7;
    padding: 56px 20px;
    margin-top: 0;
}

.luca-other-posts-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.luca-other-title {
    font-size: 26px;
    font-weight: 700;
    color: #111;
    text-align: center;
    margin: 0 0 36px;
    letter-spacing: -0.01em;
}

.luca-other-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Other Card */
.luca-other-card {
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.luca-other-thumb-link { display: block; overflow: hidden; }

.luca-other-thumb {
    position: relative;
    width: 100%;
    padding-top: 66%;
    overflow: hidden;
    background: #eee;
}

.luca-other-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.luca-other-card:hover .luca-other-thumb img { transform: scale(1.06); }

.luca-other-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}

.luca-other-card:hover .luca-other-overlay { opacity: 1; }

.luca-other-body {
    padding: 14px 0 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.luca-other-date {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.luca-other-post-title {
    font-size: 14px;
    font-weight: 700;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    line-height: 1.35;
    margin: 0;
}

.luca-other-post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.luca-other-post-title a:hover { color: #b8862e; }

.luca-other-excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── TAG SECTION ──────────────────────────────────────────── */
.luca-tag-section {
    margin-top: 0;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 860px) {
    .luca-other-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 580px) {
    .luca-single-wrapper { padding: 20px 16px 40px; }

    .luca-single-meta { flex-direction: column; align-items: flex-start; }

    .luca-share-buttons { flex-wrap: wrap; }

    .luca-other-posts { padding: 40px 16px; }

    .luca-other-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .luca-single-content .wp-block-gallery {
        grid-template-columns: 1fr;
    }

    .luca-single-content .wp-block-gallery img {
        height: 220px;
    }
}