/* ==========================================================================
   Школа мастерства / Кулинарные навыки (skills.php)
   ========================================================================== */

.sk-page { max-width: 1100px; margin: 30px auto; padding: 0 16px; }
.sk-back-nav { margin-bottom: 20px; }
.sk-back-link { color: #3b82f6; text-decoration: none; font-weight: 600; }
.sk-back-link:hover { text-decoration: underline; }

.sk-hero { background: linear-gradient(135deg, #dbeafe, #bfdbfe); border-radius: 20px; padding: 28px; margin-bottom: 28px; }
.sk-hero--center { padding: 32px; text-align: center; }
.sk-hero__content { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.sk-hero__icon { font-size: 56px; }
.sk-hero__icon--lg { font-size: 64px; margin-bottom: 8px; }
.sk-hero__title { margin: 0 0 6px; font-size: 26px; color: #1e3a8a; }
.sk-hero__title--lg { font-size: 28px; margin-bottom: 8px; }
.sk-hero__desc { margin: 0; font-size: 14px; color: #1e40af; }
.sk-hero__desc--center { font-size: 15px; max-width: 600px; margin: 0 auto; }

.sk-empty { text-align: center; padding: 60px 20px; background: #fff; border-radius: 16px; border: 1px dashed #cbd5e1; }
.sk-empty__icon { font-size: 48px; }
.sk-empty__title { margin: 16px 0 8px; font-size: 20px; color: #1e293b; }
.sk-empty__text { color: #64748b; margin: 0; }

.sk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }

.sk-clip-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.sk-clip-card:hover { transform: translateY(-2px); box-shadow: 0 8px 16px rgba(0,0,0,0.06); }
.sk-clip-card__thumb { position: relative; background: #000; aspect-ratio: 9/16; max-height: 400px; }
.sk-clip-card__badge { position: absolute; top: 8px; left: 8px; background: linear-gradient(135deg,#fbbf24,#f59e0b); color: #78350f; padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 900; box-shadow: 0 2px 8px rgba(245,158,11,0.5); z-index: 2; }
.sk-clip-card__body { padding: 12px; }
.sk-clip-card__title { margin: 0 0 6px; font-size: 14px; color: #1e293b; }
.sk-clip-card__meta { font-size: 12px; color: #64748b; display: flex; justify-content: space-between; align-items: center; }

.sk-cat-card__icon { font-size: 48px; margin-bottom: 12px; }
.sk-cat-card__title { margin: 0 0 6px; font-size: 18px; color: #0f172a; }
.sk-cat-card__desc { margin: 0; font-size: 13px; color: #64748b; line-height: 1.4; }
.sk-cat-card__footer { margin-top: 16px; display: flex; justify-content: space-between; align-items: center; }
.sk-cat-card__count { font-size: 13px; font-weight: 700; color: #3b82f6; }
.sk-cat-card__arrow { font-size: 18px; color: #3b82f6; }

.sk-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 99999; align-items: center; justify-content: center; padding: 20px; }
.sk-modal__dialog { max-width: 440px; width: 100%; position: relative; }
.sk-modal__close { position: absolute; top: -40px; right: 0; background: none; border: none; color: #fff; font-size: 32px; cursor: pointer; }
.sk-modal__video { width: 100%; max-height: 80vh; border-radius: 12px; }
.sk-modal__caption { color: #fff; text-align: center; margin-top: 12px; font-weight: 600; }

@media (max-width: 768px) {
    .sk-page { margin: 15px auto; padding: 0 12px; }
    .sk-hero { padding: 20px; }
    .sk-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media (max-width: 480px) {
    .sk-grid { grid-template-columns: 1fr; }
}

/* Карточка категории (главный <a>) */
.sk-cat-card {
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    text-decoration: none;
    color: #1e293b;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 180px;
}
.sk-cat-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 8px 16px rgba(59,130,246,0.1);
}

/* Школа — 16:9 уроки */
.sk-lessons-section { margin-top: 32px; padding-top: 24px; border-top: 1px solid #e2e8f0; }
.sk-section-title { font-size: 20px; font-weight: 700; margin-bottom: 20px; color: #1e293b; }
.sk-lessons-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.sk-lesson-card { background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid #e2e8f0; box-shadow: 0 4px 12px rgba(0,0,0,0.04); }
.sk-lesson-player { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; }
.sk-video-16-9 { width: 100%; height: 100%; object-fit: contain; }
.sk-lesson-duration { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,0.75); color: #fff; padding: 2px 8px; border-radius: 6px; font-size: 11px; }
.sk-lesson-info { padding: 18px; }
.sk-lesson-title { margin: 0 0 8px 0; font-size: 16px; color: #0f172a; }
.sk-lesson-author { font-size: 12px; color: #64748b; margin-bottom: 8px; }
.sk-lesson-recipes { margin-top: 14px; padding-top: 12px; border-top: 1px dashed #e2e8f0; }
.sk-rec-label { display: block; font-size: 12px; font-weight: 600; color: #475569; margin-bottom: 6px; }
.sk-rec-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sk-rec-chip { display: inline-flex; align-items: center; gap: 4px; background: #f1f5f9; color: #2563eb; padding: 4px 10px; border-radius: 20px; font-size: 12px; text-decoration: none; border: 1px solid #cbd5e1; }
.sk-rec-chip:hover { background: #e2e8f0; }
