/* [1.5.15] 링크 미리보기 카드 (.gtlc) — 글 본문·관련링크 상자 공용
   강조색은 테마 변수 --rb-main, 없으면 #2563eb. 모바일 전환은 500px. */

a.gtlc, a.gtlc:hover, a.gtlc:focus, a.gtlc *, a.gtlc:hover * { text-decoration: none !important; }
.gtlc {
    --gtlc-c: var(--rb-main, #2563eb);
    display: flex;
    box-sizing: border-box;
    width: 100%;
    max-width: 680px;
    margin: 14px 0;
    background: #fff;
    color: inherit;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 16px -6px rgba(15, 23, 42, .10);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
    text-align: left;
    line-height: 1.4;
    cursor: pointer;
}
.gtlc *, .gtlc *::before, .gtlc *::after { box-sizing: border-box; }
.gtlc:hover, .gtlc:focus-visible {
    transform: translateY(-2px);
    color: inherit;
    border-color: color-mix(in srgb, var(--gtlc-c) 35%, transparent);
    border-color: rgba(37, 99, 235, .32);
    box-shadow: 0 2px 4px rgba(15, 23, 42, .06), 0 14px 28px -10px rgba(15, 23, 42, .22);
}
@supports (color: color-mix(in srgb, red, blue)) {
    .gtlc:hover, .gtlc:focus-visible { border-color: color-mix(in srgb, var(--gtlc-c) 38%, transparent); }
}
.gtlc:focus-visible { outline: 2px solid var(--gtlc-c); outline-offset: 2px; }

/* 왼쪽 사진 */
.gtlc .gtlc_img {
    position: relative;
    flex: 0 0 220px;
    min-height: 128px;
    background: #f1f5f9;
    overflow: hidden;
}
/* [1.5.17] 본문(#bo_v_con) 안에서는 테마의 img { height:auto } 가 이겨 사진 아래 빈 띠가 생겼다 → !important */
.gtlc .gtlc_img img {
    position: absolute !important; left: 0 !important; top: 0 !important;
    width: 100% !important; height: 100% !important; max-height: none !important;
    object-fit: cover;
    margin: 0 !important;
    border: 0; border-radius: 0; box-shadow: none; max-width: none;
    transition: transform .4s ease;
}
.gtlc:hover .gtlc_img img { transform: scale(1.05); }

/* 사진이 없을 때: 강조색 그라데이션 타일 + 아이콘/첫 글자 */
.gtlc .gtlc_noimg {
    flex: 0 0 220px;
    min-height: 128px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--gtlc-c), #0f172a 160%);
    background: linear-gradient(135deg, var(--gtlc-c) 0%, color-mix(in srgb, var(--gtlc-c) 55%, #0f172a) 100%);
    overflow: hidden;
}
.gtlc .gtlc_img.gtlc_noimg { position: relative; }
.gtlc .gtlc_noimg .gtlc_badge {
    width: 56px; height: 56px; border-radius: 50%;
    background: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 16px -4px rgba(15, 23, 42, .35);
    font-size: 24px; font-weight: 700; color: var(--gtlc-c); text-transform: uppercase;
    overflow: hidden;
}
.gtlc .gtlc_noimg .gtlc_badge img {
    position: static; width: 32px; height: 32px; object-fit: contain; border-radius: 6px; transform: none !important; margin: 0 !important;
}

/* 오른쪽 본문 */
.gtlc .gtlc_body {
    flex: 1 1 auto;
    min-width: 0;
    padding: 16px 20px;
    display: flex; flex-direction: column; gap: 6px;
}
.gtlc .gtlc_site {
    display: flex; align-items: center; gap: 6px;
    font-size: 12.5px; color: #64748b;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gtlc .gtlc_site img {
    flex: 0 0 16px; width: 16px; height: 16px; border-radius: 4px; object-fit: contain; margin: 0 !important; border: 0; box-shadow: none;
}
.gtlc .gtlc_site span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gtlc .gtlc_title {
    font-size: 16px; font-weight: 700; color: #0f172a; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    word-break: break-word;
}
.gtlc .gtlc_desc {
    font-size: 13.5px; color: #64748b; line-height: 1.55;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    word-break: break-word;
}
.gtlc .gtlc_foot {
    margin-top: auto;
    padding-top: 2px;
    display: flex; align-items: center; gap: 8px;
    font-size: 12px; color: var(--gtlc-c); font-weight: 600;
}
.gtlc .gtlc_cnt { margin-left: auto; color: #94a3b8; font-weight: 400; white-space: nowrap; }

/* 로딩 스켈레톤 */
.gtlc.is-loading { cursor: default; pointer-events: none; }
.gtlc.is-loading:hover { transform: none; }
.gtlc.is-loading .gtlc_img,
.gtlc.is-loading .gtlc_bar {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 37%, #f1f5f9 63%);
    background-size: 400% 100%;
    animation: gtlc_shimmer 1.4s ease infinite;
}
.gtlc.is-loading .gtlc_bar { display: block; height: 12px; border-radius: 6px; }
.gtlc.is-loading .gtlc_bar.w1 { width: 35%; }
.gtlc.is-loading .gtlc_bar.w2 { width: 80%; height: 16px; margin-top: 4px; }
.gtlc.is-loading .gtlc_bar.w3 { width: 95%; }
@keyframes gtlc_shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
@media (prefers-reduced-motion: reduce) {
    .gtlc, .gtlc .gtlc_img img { transition: none; }
    .gtlc.is-loading .gtlc_img, .gtlc.is-loading .gtlc_bar { animation: none; }
    .gtlc:hover { transform: none; }
}

/* 관련링크 상자 안의 카드: 기존 #bo_v_link li 규칙(상자 테두리·flex)을 이기려고 특이도를 높인다 */
#bo_v_link ul li.gtlc_li,
#bo_v_link ul li.gtlc_li:hover,
#bo_v_link ul li.gtlc_li:last-child {
    display: block; padding: 0; border: 0; border-radius: 0; box-shadow: none; margin: 12px 0; overflow: visible; color: inherit;
}
#bo_v_link ul li.gtlc_li .gtlc { margin: 0; }
#bo_v_link ul li.gtlc_li a.gtlc { display: flex; flex: none; gap: 0; align-items: stretch; }

/* 모바일(500px 이하): 세로 배치 */
@media (max-width: 500px) {
    .gtlc { flex-direction: column; border-radius: 14px; }
    .gtlc .gtlc_img, .gtlc .gtlc_noimg { flex: 0 0 auto; width: 100%; min-height: 0; aspect-ratio: 1.91 / 1; }
    .gtlc .gtlc_body { padding: 14px 16px; }
    .gtlc .gtlc_title { font-size: 15px; }
    #bo_v_link ul li.gtlc_li a.gtlc { flex-direction: column; }
}
