/* ===================================================================
 * YearDn VIP Content — Фронтенд-стили
 * ===================================================================
 * vip-content.css
 * Используется для: lock-overlay, file-cards, badges, buttons
 * =================================================================== */

/* ── VIP Lock Overlay (ограниченный контент) ─────────────── */

.yeardn-vip-lock-overlay {
    position: relative;
    margin: 30px 0;
    padding: 30px 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255,193,7,0.05) 0%, rgba(255,87,34,0.05) 100%);
    border: 1px solid rgba(255,193,7,0.25);
    text-align: center;
}

.yeardn-vip-lock-overlay::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--bs-body-bg, #fff));
    pointer-events: none;
}

.yeardn-vip-lock-box {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    max-width: 480px;
}

.yeardn-vip-lock-box__icon {
    font-size: 2.5rem;
    color: #ffc107;
    animation: yeardnLockPulse 2s ease-in-out infinite;
}

@keyframes yeardnLockPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.1); opacity: 0.8; }
}

.yeardn-vip-lock-box__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--bs-heading-color, #212529);
    margin: 0;
}

.yeardn-vip-lock-box__text {
    font-size: 0.95rem;
    color: var(--bs-secondary-color, #6c757d);
    margin: 0;
    line-height: 1.5;
}

.yeardn-vip-lock-box__text p {
    margin: 0;
}

/* ── VIP Teaser (превью до блокировки) ─────────────── */

.yeardn-vip-teaser {
    position: relative;
    overflow: hidden;
    max-height: 200px;
    margin-bottom: 0;
}

.yeardn-vip-teaser::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent, var(--bs-body-bg, #fff));
    pointer-events: none;
}

/* ── VIP Badge Inline (в заголовке поста) ─────────────── */

.yeardn-vip-badge-inline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    vertical-align: middle;
    white-space: nowrap;
}

.yeardn-vip-badge-inline--post {
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: #1a1a2e;
}

/* ── VIP File Cards ─────────────── */

.yeardn-vip-file-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 10px;
    background: var(--bs-body-bg, #fff);
    border: 1px solid var(--bs-border-color, #dee2e6);
    margin-bottom: 12px;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.yeardn-vip-file-card:hover {
    border-color: #ffc107;
    box-shadow: 0 4px 16px rgba(255,193,7,0.12);
}

.yeardn-vip-file-card--locked {
    opacity: 0.8;
}

.yeardn-vip-file-card--locked:hover {
    border-color: var(--bs-border-color, #dee2e6);
    box-shadow: none;
}

.yeardn-vip-file-card__icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.yeardn-vip-file-card__body {
    flex: 1;
    min-width: 0;
}

.yeardn-vip-file-card__title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 4px;
    color: var(--bs-heading-color, #212529);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yeardn-vip-file-card__desc {
    font-size: 0.85rem;
    color: var(--bs-secondary-color, #6c757d);
    margin: 0 0 6px;
    line-height: 1.4;
}

.yeardn-vip-file-card__meta {
    display: flex;
    gap: 14px;
    font-size: 0.8rem;
    color: var(--bs-secondary-color, #6c757d);
}

.yeardn-vip-file-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.yeardn-vip-file-card__tier {
    font-weight: 600;
}

.yeardn-vip-file-card__tier--any {
    color: #28a745;
}

.yeardn-vip-file-card__tier--standard {
    color: #007bff;
}

.yeardn-vip-file-card__tier--premium {
    color: #ff9800;
}

.yeardn-vip-file-card__action {
    flex: 0 0 auto;
}

/* ── Buttons ─────────────── */

.yeardn-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1.4;
}

/* Скачать */
.yeardn-btn--download {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: #fff !important;
}

.yeardn-btn--download:hover {
    background: linear-gradient(135deg, #218838, #1baa80);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40,167,69,0.3);
}

/* Замок (требуется вход) */
.yeardn-btn--lock {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: #fff !important;
}

.yeardn-btn--lock:hover {
    background: linear-gradient(135deg, #5a6268, #3d4349);
}

/* Получить VIP */
.yeardn-btn--vip {
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: #1a1a2e !important;
}

.yeardn-btn--vip:hover {
    background: linear-gradient(135deg, #e0a800, #e68900);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255,193,7,0.3);
}

/* VIP Required (disabled-like кнопка) */
.yeardn-btn--vip-required {
    background: #f8f9fa;
    color: #6c757d !important;
    border: 1px dashed #ced4da;
    cursor: not-allowed;
}

/* Filter buttons (страница загрузок) */
.yeardn-btn--filter {
    background: transparent;
    color: var(--bs-body-color, #212529);
    border: 1px solid var(--bs-border-color, #dee2e6);
    padding: 6px 14px;
    font-size: 0.85rem;
}

.yeardn-btn--filter:hover {
    border-color: #ffc107;
    color: #ffc107;
}

.yeardn-btn--filter.active {
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: #1a1a2e;
    border-color: transparent;
}

/* ── Downloads List ─────────────── */

.yeardn-vip-downloads-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.yeardn-vip-downloads-page {
    margin: 20px 0;
}

.yeardn-vip-downloads-empty {
    text-align: center;
    color: var(--bs-secondary-color, #6c757d);
    padding: 40px 20px;
    font-style: italic;
}

/* ── Attached Files (внутри VIP-поста) ─────────────── */

.yeardn-vip-attached-files {
    margin: 30px 0;
    padding: 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(102,126,234,0.05), rgba(118,75,162,0.05));
    border: 1px solid rgba(102,126,234,0.2);
}

.yeardn-vip-attached-files h4 {
    margin: 0 0 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── Responsive ─────────────── */

@media (max-width: 576px) {
    .yeardn-vip-file-card {
        flex-wrap: wrap;
        padding: 14px;
        gap: 12px;
    }

    .yeardn-vip-file-card__icon {
        flex: 0 0 40px;
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .yeardn-vip-file-card__body {
        flex: 1 1 calc(100% - 56px);
    }

    .yeardn-vip-file-card__title {
        white-space: normal;
    }

    .yeardn-vip-file-card__action {
        width: 100%;
    }

    .yeardn-vip-file-card__action .yeardn-btn {
        width: 100%;
        justify-content: center;
    }

    .yeardn-vip-lock-overlay {
        padding: 20px 15px;
    }

    .yeardn-vip-lock-box__icon {
        font-size: 2rem;
    }

    .yeardn-vip-lock-box__title {
        font-size: 1.05rem;
    }
}
