/* =========================================================
   SoftVide - Homepage
   File: assets/css/home.css
   ========================================================= */


/* ---------- Category / Tag Chips ---------- */

.chips {
    width: 100%;

    display: flex;
    align-items: center;

    gap: 10px;

    margin-bottom: 28px;

    overflow-x: auto;
    overflow-y: hidden;

    padding: 2px 2px 10px;

    scrollbar-width: none;
}

.chips::-webkit-scrollbar {
    display: none;
}

.chip {
    flex: 0 0 auto;

    min-height: 36px;

    padding: 0 16px;

    border-radius: 9px;

    background: var(--sv-chip-bg);
    color: var(--sv-text);

    font-size: 14px;
    font-weight: 500;

    white-space: nowrap;

    cursor: pointer;

    transition:
        background 0.15s ease,
        color 0.15s ease;
}

.chip:hover {
    background: #3a3a3a;
}

.chip.selected {
    background: var(--sv-chip-active-bg);
    color: var(--sv-chip-active-text);
}


/* ---------- Video Section ---------- */

.video-section {
    width: 100%;

    margin-bottom: 44px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 18px;
}

.section-header h1 {
    margin: 0;

    color: var(--sv-text);

    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}


/* ---------- Video Grid ---------- */

.video-grid {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 28px 18px;
}


/* ---------- Empty State ---------- */

.empty-state {
    width: 100%;

    padding: 36px 30px;

    border: 1px solid var(--sv-border);
    border-radius: var(--sv-radius-large);

    background: var(--sv-surface);

    text-align: center;
}

.empty-state strong {
    display: block;

    margin-bottom: 8px;

    color: var(--sv-text);

    font-size: 16px;
    font-weight: 600;
}

.empty-state p {
    max-width: 600px;

    margin: 0 auto;

    color: var(--sv-text-secondary);

    font-size: 14px;
}


/* ---------- Section Spacing ---------- */

.video-section + .video-section {
    margin-top: 46px;
}


/* ---------- Content Headings ---------- */

.content h1,
.content h2,
.content h3 {
    letter-spacing: -0.2px;
}


/* ---------- Hover Surface ---------- */

.video-section {
    position: relative;
}


/* ---------- Tablet ---------- */

@media (max-width: 1200px) {

    .video-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 24px 16px;
    }

}


/* ---------- Small Desktop / Tablet ---------- */

@media (max-width: 1000px) {

    .video-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* ---------- Mobile ---------- */

@media (max-width: 700px) {

    .content {
        padding: 16px 14px 40px;
    }

    .chips {
        margin-bottom: 22px;
    }

    .chip {
        min-height: 34px;

        padding: 0 14px;

        font-size: 13px;
    }

    .section-header {
        margin-bottom: 14px;
    }

    .section-header h1 {
        font-size: 18px;
    }

    .video-grid {
        grid-template-columns:
            minmax(0, 1fr);

        gap: 26px;
    }

    .video-section {
        margin-bottom: 36px;
    }

    .empty-state {
        padding: 28px 20px;
    }

}