/* =============================================================
   Cover module — slim theme
   Обложка профиля заменяет .profile-page-top-background
   ============================================================= */

/* Контейнер cover занимает всю область шапки профиля */
#cover_banner {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    border-radius: inherit;
}

.cover-slim-form {
    position: absolute;
    inset: 0;
    margin: 0;
}

/* Слой картинки обложки */
.cover-slim-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* Градиент снизу — плавный переход к фону карточки профиля (rgb 36,39,49) */
.cover-slim-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, #242731 15%, rgba(36, 39, 49, 0.35) 60%, rgba(36, 39, 49, 0.1) 100%);
    pointer-events: none;
}

/* Скрытый file input */
.cover-slim-file {
    display: none;
}

/* Кнопка смены обложки (карандаш) — в ЛЕВОМ верхнем углу,
   чтобы не пересекаться с кнопкой настроек профиля справа */
.cover-slim-edit-btn {
    position: absolute;
    top: 16px;
    left: 20px;
    z-index: 12;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(4px);
}

.cover-slim-edit-btn:hover {
    background: rgba(251, 71, 75, 0.85);
    transform: scale(1.08);
}

/* Компактная кнопка покупки доступа — в ЛЕВОМ верхнем углу */
.cover-slim-buy-btn {
    position: absolute;
    top: 16px;
    left: 20px;
    z-index: 12;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 34px;
    padding: 0 14px;
    border: none;
    border-radius: 8px;
    background: rgba(251, 71, 75, 0.92);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(251, 71, 75, 0.35);
    backdrop-filter: blur(4px);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.cover-slim-buy-btn i {
    font-size: 0.85rem;
}

.cover-slim-buy-btn:hover {
    background: rgb(251, 71, 75);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(251, 71, 75, 0.5);
}

/* На мобильных — прячем текст, оставляем только иконку */
@media (max-width: 575px) {
    .cover-slim-buy-btn span {
        display: none;
    }
    .cover-slim-buy-btn {
        padding: 0;
        width: 34px;
        justify-content: center;
    }
}

/* Уведомление */
#cover_noti {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: none;
    padding: 14px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

/* ── Переопределение стандартного фона профиля slim ─────────── */
/* Когда активен cover — прячем статичную картинку profile-background.jpg */
.profile-page-top .profile-page-top-body .profile-page-top-background {
    background-image: none !important;
    opacity: 1 !important;
}

/* Убираем встроенный ::after градиент slim (у нас свой в cover.tpl) */
.profile-page-top .profile-page-top-body .profile-page-top-background::after {
    display: none;
}
