/* Explain: CSS for styling the video guides library and components. */
/* ספריית מדריכי וידאו */
.vg-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.vg-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: #ffffff;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vg-chip:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.vg-chip.is-active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
}

.vg-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all 0.25s ease;
}

.vg-card:hover {
    box-shadow: var(--shadow-lift);
    transform: translateY(-3px);
}

.vg-card.is-hidden {
    display: none;
}

.vg-card__media {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--surface-alt);
    overflow: hidden;
}

.vg-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vg-card__watched {
    position: absolute;
    inset-inline-end: 0.65rem;
    top: 0.65rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: rgba(14, 159, 91, 0.94);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
}

.vg-card__watched[hidden] {
    display: none;
}

.vg-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.15rem;
}

.vg-cat {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    background: var(--primary-light);
    color: var(--primary-color);
    font-size: 0.72rem;
    font-weight: 700;
}

.vg-progress {
    height: 0.4rem;
    margin-top: 0.9rem;
    border-radius: 999px;
    background: var(--surface-alt);
    overflow: hidden;
}

.vg-progress span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary-color), var(--neon-color));
    transition: width 0.3s ease;
}

.vg-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1rem;
}

.vg-overview {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    max-width: 52rem;
    margin: 1.5rem auto 0;
    padding: 0.9rem 1.1rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.85);
}

.vg-overview__text {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.88rem;
    font-weight: 600;
}

.vg-continue {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    max-width: 52rem;
    margin: 1.75rem auto 0;
    padding: 1.1rem 1.25rem;
    border-radius: var(--radius-lg);
    background: rgba(61, 255, 136, 0.1);
    border: 1px solid rgba(61, 255, 136, 0.4);
}

.vg-continue[hidden] {
    display: none;
}

.vg-continue__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.9rem;
    background: rgba(61, 255, 136, 0.2);
    color: var(--neon-color);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.vg-continue__body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
    min-width: 12rem;
}

.vg-continue__label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--neon-color);
}

.vg-continue__title {
    font-weight: 700;
    color: #ffffff;
}

.vg-continue__meta {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.75);
}

.vg-continue__bar {
    display: block;
    height: 0.4rem;
    margin-top: 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    overflow: hidden;
}

.vg-continue__bar span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--neon-color);
    transition: width 0.3s ease;
}

.vg-empty {
    margin-top: 2rem;
    padding: 2rem;
    text-align: center;
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--text-muted);
}

.vg-empty[hidden] {
    display: none;
}

.vg-player-wrap {
    margin-top: 1rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #0B1E3D;
}

.vg-player-wrap video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0B1E3D;
}

.vg-modal-note {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    margin-top: 0.75rem;
    padding: 0.6rem 0.8rem;
    border-radius: 0.9rem;
    background: rgba(30, 64, 175, 0.08);
    border: 1px solid rgba(30, 64, 175, 0.25);
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
}

.vg-modal-note[hidden] {
    display: none;
}