/* ===========================
   Home – Highlights
   =========================== */

.highlights-section {
    margin-top: 18px;
}

.highlights-shell {
    position: relative;
    max-width: 720px;
}

/* Track içinde sadece bir kart görünür, diğerleri fade ile gizlenir */
.highlights-track {
    position: relative;
    min-height: 220px;
}

.highlight-card {
    position: absolute;
    inset: 0;
    display: flex;
    gap: 14px;
    padding: 14px;
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    opacity: 0;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

/* İlk render'da JS çalışmadan da görünmesi için */
/* .highlight-card:first-child {
    position: relative;
} */

.highlight-card.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    /* position: relative; */
}

/* Görsel alanı */
.highlight-media {
    flex: 0 0 40%;
    border-radius: var(--radius-md);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 180px;
}

/* Görsel yoksa placeholder blok */
.highlight-media--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    color: var(--muted);
    font-size: 13px;
    text-align: center;
    padding: 10px;
}

/* Metin alanı */
.highlight-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
}

.highlight-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    font-size: 11px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #075985;
    font-weight: 500;
}

.highlight-title {
    font-family: var(--font-serif);
    font-size: 18px;
    margin: 0;
}

.highlight-text {
    margin: 0;
    color: var(--muted);
    line-height: 1.4;
}

.highlight-link {
    margin-top: auto;
    font-size: 13px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 0;
    color: #111827;
}

.highlight-link:hover {
    text-decoration: underline;
}

/* Dots */
.highlights-dots {
    margin-top: 10px;
    display: flex;
    gap: 6px;
}

.highlight-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    border: none;
    padding: 0;
    background: #d1d5db;
    cursor: pointer;
}

.highlight-dot.is-active {
    width: 18px;
    background: #111827;
}

/* Responsive */
@media (max-width: 720px) {
    .highlights-shell {
        max-width: 100%;
    }

    .highlight-card {
        flex-direction: column;
    }

    .highlight-media {
        flex: 0 0 auto;
        width: 100%;
        min-height: 160px;
    }
}

/* ===========================
   Home – Video bölüm
   =========================== */

.videos-section {
    margin-top: 18px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.video-card {
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    padding: 10px 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* 🔹 Featured: tam satır kaplasın */
.video-card--featured {
    grid-column: 1 / -1;
}

/* 16:9 responsive frame */
.video-frame {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 */
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #000;
}

.video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Badge alanı */
.video-meta {
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.video-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    font-size: 11px;
    border-radius: 999px;
    background: #e5e7eb;
    color: #374151;
    font-weight: 500;
}

/* 🔹 Type’a göre küçük renk dokunuşları */
.video-card--type-product .video-badge {
    background: #dcfce7;
    color: #166534;
}

.video-card--type-case .video-badge {
    background: #fee2e2;
    color: #b91c1c;
}

.video-card--type-talk .video-badge {
    background: #e0f2fe;
    color: #075985;
}

.video-card--type-tutorial .video-badge {
    background: #fef3c7;
    color: #92400e;
}

.video-title {
    margin: 4px 2px 0;
    font-family: var(--font-serif);
    font-size: 15px;
}

.video-desc {
    margin: 0 2px;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.4;
}

/* Responsive: mobilde tek sütun */
@media (max-width: 720px) {
    .video-grid {
        grid-template-columns: 1fr;
    }

    .video-card--featured {
        grid-column: auto;
    }
}