/* Основные цвета и фон */
:root {
    --primary: #fc9535;
    --secondary: #ff6600;
    --highlight: #ffcc00;
    --bg-body: #262626;
    --bg-app: #0a0a0a;
    --color-title: #ffffff;
    --color-text: rgba(255, 255, 255, 0.7);
    --border-radius: 12px;
    --shadow-light: 0px 8px 17px rgba(255, 140, 0, 0.3);
}

body {
    background-color: var(--bg-body);
    color: var(--color-text);
    font-family: Montserrat, sans-serif;
    margin: 0;
    padding: 0;
}

/* Заголовки */
h1, h2, h3 {
    color: var(--color-title);
    text-align: center;
}

/* Контейнер анкет */
.profiles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    padding: 1rem;
}

/* Карточка анкеты */
.profile {
    background: var(--bg-app);
    padding: 1rem;
    border-radius: var(--border-radius);
    width: 260px;
    text-align: center;
    border: 2px solid rgba(255, 140, 0, 0.6);
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease-in-out;
    position: relative;
}

.profile:hover {
    transform: scale(1.05);
}

/* Закрепленные анкеты */
.profile.pinned {
    border: 3px solid var(--highlight);
    box-shadow: 0px 0px 20px rgba(255, 204, 0, 0.8);
}

/* VIP-анкеты */
.profile.vip {
    border: 2px solid gold;
    box-shadow: 0px 0px 15px rgba(255, 215, 0, 0.8);
}

/* Новые анкеты */
.profile.new-profile {
    border: 2px solid lightblue;
    box-shadow: 0px 0px 15px rgba(173, 216, 230, 0.8);
}

/* Контейнер для фото */
.profile-photo-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

/* Фото профиля */
.profile-photo {
    width: 100%;
    border-radius: var(--border-radius);
    aspect-ratio: 1/1;
    object-fit: cover;
}

/*анонс на главной под добавить профиль */
.announcement-box {
    max-width: 85%;
    margin: 15px auto;
    padding: 12px 20px;
    background: #222;
    color: white;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    border-radius: 10px;
    border: 1px solid rgba(255, 165, 0, 0.8);
    box-shadow: 0px 4px 12px rgba(255, 165, 0, 0.4);
}

/* Увеличенный VIP-значок */
.vip-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 70px; /* Увеличил размер */
    height: auto;
    z-index: 10;
}

/* Drink-значок */
.drink-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 70px; /* Увеличил размер */
    height: auto;
    z-index: 10;
}

/* Адаптация для мобильных */
@media (max-width: 480px) {
    .vip-badge {
        width: 75px; /* Чуть меньше на мобильных */
        top: 6px;
        right: 6px;
    }
		.drink-badge {
        width: 45px; /* Чуть меньше на мобильных */
        top: 6px;
        right: 6px;
    }
}

/* Кнопка "Добавить анкету" */
.add-profile {
    display: block;
    margin: 20px auto;
    padding: 12px;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    color: white;
    font-size: 16px;
    text-decoration: none;
    width: 220px;
    text-align: center;
    border-radius: var(--border-radius);
    font-weight: bold;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease-in-out;
}

.add-profile:hover {
    background: linear-gradient(180deg, var(--secondary), var(--primary));
    box-shadow: 0 6px 12px rgba(255, 140, 0, 0.5);
}

/* Кнопка "View Profile" */
.view-button {
    display: inline-block;
    width: auto;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    border-radius: var(--border-radius);
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease-in-out;
}

.view-button:hover {
    background: linear-gradient(180deg, var(--secondary), var(--primary));
    box-shadow: 0 6px 12px rgba(255, 140, 0, 0.5);
}

/* Поля ввода */
.add-form input,
.add-form textarea {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    background: #222;
    border: 1px solid var(--highlight);
    color: white;
    border-radius: var(--border-radius);
    font-size: 16px;
    box-sizing: border-box;
}

/* Контейнер для дат */
.flex-container {
    display: flex;
    gap: 10px;
}

.flex-container input {
    width: 100%;
}

/* Чекбоксы */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
    color: white;
    font-size: 14px;
}

/* Улучшенный кастомный чекбокс */
.checkbox-container input {
    appearance: none;
    width: 18px;
    height: 18px;
    background: #444;
    border: 2px solid var(--highlight);
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease-in-out;
}

.checkbox-container input:checked {
    background: var(--highlight);
    border-color: var(--highlight);
    position: relative;
}

.checkbox-container input:checked::after {
    content: '✔';
    color: black;
    font-size: 12px;
    font-weight: bold;
    position: absolute;
}

/* Мобильная адаптация */
@media (max-width: 480px) {
    .add-form, .admin-container {
        max-width: 90%;
    }

    .flex-container {
        flex-direction: column;
    }

    .profile {
        width: 90%;
    }

    .add-profile {
        width: 90%;
    }
}

/* Фильтр по полу */
.filter-form {
    text-align: center;
    margin-bottom: 15px;
}

.filter-form label {
    font-size: 16px;
    font-weight: bold;
    color: var(--color-title);
    margin-right: 5px;
}

.filter-form select {
    font-size: 16px;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid var(--highlight);
    background: var(--bg-app);
    color: var(--color-title);
    cursor: pointer;
}

.filter-form select:hover {
    border-color: var(--primary);
}

.filter-form select:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 10px rgba(255, 140, 0, 0.5);
}

/* Подсветка VIP-профилей */
.vip {
    border: 2px solid gold;
    box-shadow: 0 0 10px gold;
}

/* Подсветка новых профилей */
.new-profile {
    border: 2px solid lightblue;
    box-shadow: 0 0 10px lightblue;
}

.pagination {
    text-align: center;
    margin: 20px 0;
}

.pagination-button {
    display: inline-block;
    padding: 10px 15px;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: bold;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease-in-out;
    margin: 5px;
}

.pagination-button:hover {
    background: linear-gradient(180deg, var(--secondary), var(--primary));
    box-shadow: 0 6px 12px rgba(255, 140, 0, 0.5);
}
