/* ==========================================================================
   techvids.css — TechCapsules TechVids page
   Upload to: wp-content/themes/astra-ind/css/techvids.css
   (Then enqueue in functions.php or @import into style.css)
   ========================================================================== */


/* ── WRAPPER ──────────────────────────────────────────────────────────── */

.techvids-wrapper {
    padding-top: 0;
}


/* ── HERO ──────────────────────────────────────────────────────────────── */

.techvids-hero {
    background: var(--color-surface, #fff);
    border-bottom: 1px solid var(--color-border, #e5e7eb);
    padding: 20px 0 0;
    margin-bottom: 28px;
}

.techvids-hero-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 14px;
}

.techvids-logo-badge {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #ff0000;          /* YouTube red — feels right for video */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.techvids-hero-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 2px;
    line-height: 1.2;
    color: var(--color-heading, #111);
}

.techvids-hero-subtitle {
    font-size: 0.82rem;
    color: var(--color-muted, #6b7280);
    margin: 0;
}


/* ── BREADCRUMB + FILTER ROW ──────────────────────────────────────────── */

.techvids-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--color-muted, #6b7280);
    padding: 10px 0 14px;
    border-top: 1px solid var(--color-border, #e5e7eb);
}

.techvids-breadcrumb a {
    color: var(--color-muted, #6b7280);
    text-decoration: none;
}

.techvids-breadcrumb a:hover {
    color: var(--color-accent, #2563eb);
}

.techvids-breadcrumb span {
    color: var(--color-muted, #9ca3af);
}

.techvids-breadcrumb .current {
    color: var(--color-heading, #111);
    font-weight: 500;
}

/* Separator between breadcrumb path and chips */
.techvids-filter-chips {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

/* Individual filter chip — matches company-tag style */
.techvids-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid var(--color-border, #e5e7eb);
    background: transparent;
    color: var(--color-muted, #6b7280);
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.techvids-chip:hover {
    background: var(--color-surface-hover, #f3f4f6);
    color: var(--color-heading, #111);
}

.techvids-chip.active {
    background: var(--color-heading, #111);
    color: #fff;
    border-color: var(--color-heading, #111);
}


/* ── VIDEO GRID ──────────────────────────────────────────────────────── */

.techvids-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    transition: opacity 0.2s ease;
}

@media (max-width: 900px) {
    .techvids-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .techvids-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.techvids-empty,
.techvids-empty-msg {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: var(--color-muted, #6b7280);
    font-size: 0.9rem;
}


/* ── VIDEO CARD ──────────────────────────────────────────────────────── */

.video-card {
    background: var(--color-surface, #fff);
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.18s, transform 0.18s;
    display: flex;
    flex-direction: column;
}

.video-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.10);
    transform: translateY(-2px);
}


/* ── FACADE THUMBNAIL ────────────────────────────────────────────────── */

.video-card-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
    cursor: pointer;
}

.video-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s;
}

.video-card-thumb:hover .video-thumb-img {
    opacity: 0.85;
}

/* Play button overlay */
.video-play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    opacity: 0;
    transition: opacity 0.18s;
}

.video-card-thumb:hover .video-play-btn,
.video-card-thumb:focus-within .video-play-btn {
    opacity: 1;
}

/* Always show play icon on mobile (no hover) */
@media (hover: none) {
    .video-play-btn {
        opacity: 1;
    }
}

/* Duration badge */
.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.78);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    pointer-events: none;
    letter-spacing: 0.02em;
}


/* ── CARD META ───────────────────────────────────────────────────────── */

.video-card-meta {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.video-card-meta-top {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Video type chip */
.video-type-chip {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.video-type-launch    { background: #fef3c7; color: #92400e; }
.video-type-interview { background: #dbeafe; color: #1e40af; }
.video-type-explainer { background: #d1fae5; color: #065f46; }
.video-type-news      { background: #f3f4f6; color: #374151; }

.video-channel {
    font-size: 0.75rem;
    color: var(--color-muted, #6b7280);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 140px;
}

/* Title */
.video-card-title {
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    color: var(--color-heading, #111);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-title-link {
    color: inherit;
    text-decoration: none;
}

.video-title-link:hover {
    color: var(--color-accent, #2563eb);
}

/* Footer row */
.video-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 6px;
    border-top: 1px solid var(--color-border, #f3f4f6);
}

.video-date {
    font-size: 0.72rem;
    color: var(--color-muted, #9ca3af);
}

.video-source-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    color: var(--color-muted, #6b7280);
    text-decoration: none;
    font-weight: 500;
}

.video-source-link:hover {
    color: #ff0000;
}


/* ── LOAD MORE ───────────────────────────────────────────────────────── */
/* Reuses .load-more-container and .load-more-btn from your existing CSS */

.load-more-container {
    text-align: center;
    margin: 32px 0 20px;
}