/* ============================================================
   hp-insights-guide.css
   Styles for the [hp_insights_guide] shortcode section
   ============================================================ */

.hp-ig {
    font-family: 'Outfit', 'Inter', sans-serif;
    color: #0f172a;
    width: 100%;
}
.hp-ig * {
    box-sizing: border-box;
}

/* Grid */
.hp-ig-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* Card */
.hp-ig-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #ffffff;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.hp-ig-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 28px -8px rgba(15, 23, 42, 0.10);
}

/* Thumbnail */
.hp-ig-thumb {
    position: relative;
    display: block;
    width: 100%;
    height: 210px;
    background: #0f172a;
    overflow: hidden;
    text-decoration: none;
    flex-shrink: 0;
}
.hp-ig-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.hp-ig-card:hover .hp-ig-thumb img {
    transform: scale(1.04);
}
.hp-ig-thumb--fallback {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.hp-ig-thumb--fallback span {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: rgba(203, 213, 225, 0.8);
    letter-spacing: 0.03em;
}

/* Play button overlay */
.hp-ig-thumb--video {
    cursor: pointer;
}
.hp-ig-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
.hp-ig-play::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.28);
    transition: background 0.2s ease;
}
.hp-ig-thumb--video:hover .hp-ig-play::before {
    background: rgba(0, 0, 0, 0.40);
}
.hp-ig-play svg {
    position: relative;
    z-index: 1;
    width: 56px;
    height: 56px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    border-radius: 50%;
    padding: 14px 14px 14px 17px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, background 0.2s ease;
}
.hp-ig-thumb--video:hover .hp-ig-play svg {
    transform: scale(1.12);
    background: rgba(255, 255, 255, 0.25);
}

/* Body */
.hp-ig-body {
    padding: 20px 20px 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.hp-ig-cat {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #2563eb;
    letter-spacing: 0.6px;
    margin-bottom: 8px;
}
.hp-ig-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.45;
    margin: 0 0 10px;
}
.hp-ig-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.18s ease;
}
.hp-ig-title a:hover {
    color: #2563eb;
}
.hp-ig-excerpt {
    font-size: 13.5px;
    color: #475569;
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
}

/* Footer */
.hp-ig-foot {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px 18px;
    border-top: 1px solid #f1f5f9;
    margin-top: 16px;
}
.hp-ig-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #2563eb;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    font-family: 'Plus Jakarta Sans', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.hp-ig-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    color: #64748b;
    flex-wrap: wrap;
}
.hp-ig-author {
    font-weight: 700;
    color: #334155;
}
.hp-ig-sep {
    color: #cbd5e1;
}

/* Empty state */
.hp-ig-empty {
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
    padding: 40px 0;
}

/* ── Video Lightbox ────────────────────────────────────────── */
.hp-ig-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(5px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.hp-ig-lightbox--open {
    display: flex;
}
.hp-ig-lightbox-inner {
    position: relative;
    width: 100%;
    max-width: 860px;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.6);
}
.hp-ig-lightbox-inner iframe {
    width: 100%;
    height: 100%;
    border: none;
}
.hp-ig-lightbox-close {
    position: absolute;
    top: -44px;
    right: 0;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    opacity: 0.85;
    transition: opacity 0.2s;
}
.hp-ig-lightbox-close:hover {
    opacity: 1;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .hp-ig-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .hp-ig-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .hp-ig-thumb {
        height: 190px;
    }
}
