/* =========================================================================
   TUTORIALS & VIDEO-HILFE — v2.2.54
   ========================================================================= */

/* Header */
.bos-tutorials__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.bos-tutorials__title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--bos-text);
}
.bos-tutorials__subtitle {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--bos-muted);
}
.bos-tutorials__search-wrap {
    flex-shrink: 0;
}
.bos-tutorials__search {
    width: 280px;
    padding: 9px 14px;
    border: 1px solid var(--bos-border);
    border-radius: 8px;
    font-size: 14px;
    background: var(--bos-card-bg);
    color: var(--bos-text);
}
.bos-tutorials__search:focus {
    outline: none;
    border-color: var(--bos-primary);
    box-shadow: 0 0 0 2px rgba(26, 74, 110, 0.1);
}

/* Category Quick-Nav */
.bos-tutorials__cats {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--bos-border);
}
.bos-tut-cat-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border: 1px solid var(--bos-border);
    border-radius: 20px;
    background: var(--bos-card-bg);
    color: var(--bos-text);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}
.bos-tut-cat-btn:hover {
    border-color: var(--cat-color, var(--bos-primary));
    background: var(--bos-card-bg);
}
.bos-tut-cat-btn--active {
    background: var(--cat-color, var(--bos-primary));
    border-color: var(--cat-color, var(--bos-primary));
    color: #fff;
}
.bos-tut-cat-btn__count {
    background: rgba(0,0,0,0.1);
    border-radius: 10px;
    padding: 1px 6px;
    font-size: 10px;
    min-width: 16px;
    text-align: center;
}
.bos-tut-cat-btn--active .bos-tut-cat-btn__count {
    background: rgba(255,255,255,0.25);
}

/* Groups */
.bos-tut-group {
    margin-bottom: 28px;
}
.bos-tut-group__title {
    font-size: 16px;
    font-weight: 600;
    color: var(--bos-text);
    margin: 0 0 12px;
    padding-left: 10px;
    border-left: 3px solid var(--bos-primary);
}

/* Grid – 5 per row */
.bos-tut-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

/* Card */
.bos-tut-card {
    background: var(--bos-card-bg);
    border: 1px solid var(--bos-border);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.15s, box-shadow 0.15s;
}
.bos-tut-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* Thumbnail */
.bos-tut-card__thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #1a2332;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bos-tut-card__play {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #1a365d;
    transition: transform 0.15s, background 0.15s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.bos-tut-card__thumb:hover .bos-tut-card__play {
    transform: scale(1.1);
    background: #fff;
}
.bos-tut-card__no-video {
    font-size: 32px;
    opacity: 0.5;
}
.bos-tut-card__badge {
    position: absolute;
    top: 6px;
    left: 6px;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    color: #fff;
}

/* Card Body */
.bos-tut-card__body {
    padding: 10px 12px 6px;
    flex: 1;
}
.bos-tut-card__title {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--bos-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bos-tut-card__desc {
    margin: 4px 0 0;
    font-size: 11px;
    color: var(--bos-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bos-tut-card__meta {
    display: flex;
    gap: 8px;
    margin-top: 5px;
    font-size: 10px;
    color: var(--bos-muted);
    flex-wrap: wrap;
}
.bos-tut-card__meta span {
    white-space: nowrap;
}

/* YouTube Appeal Banner */
.bos-tut-yt-appeal {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    border-radius: 10px;
    color: #fff;
    font-size: 13px;
    line-height: 1.4;
}
.bos-tut-yt-appeal__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #ff0000;
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.15s;
}
.bos-tut-yt-appeal__icon:hover {
    transform: scale(1.1);
}
.bos-tut-yt-appeal__text strong {
    color: #fff;
}
.bos-tut-yt-appeal__link {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.bos-tut-yt-appeal__link:hover {
    color: #ffe0e0;
}

/* Card Footer / Feedback */
.bos-tut-card__footer {
    padding: 6px 12px;
    border-top: 1px solid var(--bos-border);
    display: flex;
    align-items: center;
    gap: 6px;
}
.bos-tut-card__fb-text {
    font-size: 11px;
    color: var(--bos-muted);
    flex: 1;
}
.bos-tut-fb-btn {
    background: none;
    border: 1px solid var(--bos-border);
    border-radius: 4px;
    padding: 2px 6px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.1s;
}
.bos-tut-fb-btn:hover {
    background: var(--bos-border);
}

/* Empty state */
.bos-tutorials__empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--bos-muted);
}

/* =========================================================================
   VIDEO LIGHTBOX
   ========================================================================= */
.bos-tut-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.bos-tut-lightbox__inner {
    position: relative;
    width: 100%;
    max-width: 900px;
}
.bos-tut-lightbox__close {
    position: absolute;
    top: -36px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    padding: 4px 8px;
    opacity: 0.8;
}
.bos-tut-lightbox__close:hover { opacity: 1; }
.bos-tut-lightbox__video iframe,
.bos-tut-lightbox__video video {
    width: 100%;
    border-radius: 8px;
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1200px) {
    .bos-tut-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 992px) {
    .bos-tut-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .bos-tut-grid { grid-template-columns: repeat(2, 1fr); }
    .bos-tutorials__header { flex-direction: column; }
    .bos-tutorials__search { width: 100%; }
    .bos-tut-lightbox__inner { max-width: 100%; }
}
@media (max-width: 480px) {
    .bos-tut-grid { grid-template-columns: 1fr; }
    .bos-tutorials__cats { gap: 4px; }
    .bos-tut-cat-btn { padding: 4px 8px; font-size: 11px; }
}
