/* Общие стили */
body {
    margin: 0;
    padding: 0;
    /*background-color: #E1DBE5;*/
	background-image: url("../../static/bg-pattern.jpg");
	background-repeat: repeat;
    font-family: 'Trebuchet MS', sans-serif;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

h1 {
	font-size: 2.25rem;
	text-align: center;
	color: #cdaa9d;
}

h2 {
	font-size: 1.5rem;
	font-weight: 100;
	text-align: center;
	color: #cdaa9d;
	line-height: 2rem;
	margin-top: 16px;
    margin-bottom: 16px;
}

h3 {
	font-size: 1.5rem;
	color: #cdaa9d;
    font-weight: 100;
    margin-top: 8px;
    margin-bottom: 8px;
	line-height: 2rem;
	background: #f9eae5;
    padding: 16px;
    width: -webkit-fill-available;
	box-shadow: inset 4px 0px 0px 0px rgb(205 170 157 / 50%);
}

p {
	color: #59443c;
    margin-top: 16px;
    margin-bottom: 16px;
    line-height: 1.5rem;
    font-size: 0.825rem;
}

a {
    padding: 4px;
    font-weight: 600;
    color: #c1998a;
	display: inline-block;
}

ul {
	/*color: #59443c;*/
    margin-top: 0px;
    margin-bottom: 0px;
    line-height: 1.5rem;
    font-size: 1rem;
	padding-inline-start: 16px;
}


.main-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 520px;
    min-width: 300px;
    height: 100vh; /* Устанавливаем высоту на весь экран */
    background: #fff7f4d1; /*предыдущий серый: 2F3640*/
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Шапка */
.header {
    height: 64px; /* Высота шапки */
    display: flex;
    flex-direction: column;
    background-color: #cdaa9d;
    color: white;
    font-size: 1rem;
    box-sizing: border-box; /* Учет всех отступов */
    padding-top: env(safe-area-inset-top); /* Для устройств с вырезами */
	box-shadow: 0px 4px 16px 12px rgb(0 0 0 / 5%);
    z-index: 1000;
}

/* Верхний контейнер шапки */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    background-color: #cdaa9d;
	padding: 0 12px;
}

.header-title {
	font-size: 1.5rem;
    font-weight: 600;
	text-align: center;
}

.logo {
    height: 40px;
    width: auto;
}

.menu-button {
	border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    padding: 8px;
    background: none;
    border-radius: 8px;
	display: flex;
    justify-content: center;
}


.add-ad-button {
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    background: #FF7A2F;
    border-radius: 8px;
    width: 100%;
    height: 48px;
    margin-top: 24px;
}
}

.menu-icon {
    display: inline-block;
}

/* подвал */
.footer {
    display: flex;
	justify-content: space-around; /* Размещаем кнопки равномерно */
    align-items: center;
    background-color: #cdaa9d;
    padding: 8px 8px 8px 8px;
    scrollbar-width: none; /* Убираем скроллбар в Firefox */
	height: 48px;
	bottom: 0;
	position: sticky;
	left: 0;
	width: auto;
	box-shadow: 0px -4px 16px 12px rgb(100 100 100 / 10%);
	border-top: solid 2px #c1998a;
}

.footer::-webkit-scrollbar {
    display: none; /* Убираем скроллбар в Webkit */
}

.tab {
    /*min-width: 120px;*/
    padding: 8px 16px;
    text-align: center;
    /*background-color: #cdaa9d;*/
    color: white;
    margin-right: 8px;
    border-radius: 16px;
    cursor: pointer;
    white-space: nowrap;
	text-decoration: none;
	width: -webkit-fill-available;
	position: relative;
}

.tab:hover {
    background-color: #c79f90;
}

.tab-selected {
    /*min-width: 120px;*/
    padding: 8px 16px;
    text-align: center;
    background-color: #c1998a;
    color: white;
    margin-right: 8px;
    border-radius: 16px;
    cursor: pointer;
    white-space: nowrap;
	font-weight: 600;
	text-decoration: none;
	box-shadow: inset 0px 4px 0px 0px rgba(0, 0, 0, 0.1);
	position: relative;

}

/* Контейнер для контента */
.content {
    flex: 1; /* Контейнер занимает оставшуюся высоту между шапкой и подвалом */
    overflow-y: auto; /* Включаем прокрутку */
    padding: 16px 16px 80px 16px;
    box-sizing: border-box;
}

/* Элементы списка */
.scroll-container {
    display: flex;
    flex-direction: column;
    gap: 12px; /* Расстояние между элементами */
	margin-bottom: 100px;
}

.mainpage-container-content {
    display: flex;
    flex-direction: column;
    /*align-items: center;*/
}

.item {
    display: block;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px;
    text-decoration: none; /* Убираем подчеркивание */
    color: #333; /* Цвет текста */
    transition: background-color 0.3s ease;
}

.item:hover {
    background-color: #f9f9f9; /* Цвет фона при наведении */
}

.item-header {
    font-size: 16px;
    font-weight: bold;
    color: #000;
    margin-bottom: 8px;
}

.item-text {
    font-size: 14px;
    color: #777;
    margin-top: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3; /* Показывает только 3 строки */
    overflow: hidden;
}

.item-info {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
}

.item-category, .item-city {
    font-size: 12px;
    color: #bbb;
}

/* Подвал */
.content-footer {
    font-size: 0.75rem;
    color: #cdaa9d;
    line-height: 1.5rem;
    margin-bottom: 32px;
}


/* Выпадающее меню */
.dropdown-menu {
    display: none;
    position: absolute;
    bottom: 80px; /* Позиционирование выше кнопки */
    left: 0;
    width: 100%;
    background-color: #0056b3;
    border-radius: 4px;
}

.dropdown-menu.show {
    display: block;
}

.menu-item {
    padding: 12px 16px;
    color: white;
    border-bottom: 1px solid #004494;
    cursor: pointer;
    text-align: center;
    font-size: 1rem;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:hover {
    background-color: #004494;
}

/* Общие стили для страницы createpost */
.inner-header {
    height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    background-color: #1A2026;
    color: white;
	flex-direction: row;
	box-shadow: 0px 4px 16px 12px rgb(0 0 0 / 20%);
    z-index: 1000;
}

.createpost-header .header-left h1 {
    margin: 0;
    font-size: 1.2rem;
}

.createpost-header .header-right .close-button {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Центральная часть */
.createpost-content {
    padding: 20px;
    overflow: auto;
    flex: 1;
	margin-top: 0px;
	margin-bottom: 0px;
}

/* Группа форм */
.form-group {
    margin-bottom: 12px;
}

/* Заголовки полей ввода */
.form-group label {
    font-size: 14px;
    display: block;
    margin-bottom: 8px;
	color: #59443c;
}

/* Поле ввода в одну строку */
.form-group input[type="text"], .form-group input[type="number"], 
.form-group input[type="email"], .form-group input[type="password"], .form-group input[type="date"],
.form-group textarea {
    width: calc(100% - 24px);
    padding: 12px;
    font-size: 14px;
    border: 1px solid #c1998a;
    border-radius: 8px;
    background: #fafafa;
     /* Это важно, чтобы паддинг не влиял на ширину */
}

.form-group input[type="radio"] {
	width: 20px;
    height: 20px;
    margin: 8px;
}

/* Поле с несколькими строками (textarea) */
.form-group textarea {
    height: 200px;
    resize: vertical;
}

/* Радиобатоны */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.radio-group label {
    font-size: 14px;
}

/* Подвал */
.createpost-footer {
    height: 64px;
    background-color: #007bff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    position: relative;
}

.label-radio {
    display: -webkit-inline-box;
    width: 100%;
    margin-top: 8px;
}

.dropdown {
	width: 100%;
    height: 42px;
    border-radius: 8px;
    padding: 8px;
    background: #fafafa;
    font-weight: 400;
	border: 1px solid #c1998a;
}

.sublabel{
	font-size: 12px;
	color: #777;
}

.button-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px; /* Расстояние между строками */
	margin-bottom: 24px;
	margin-top: 24px;
}

.button-row {
    display: flex;
    justify-content: space-between;
    gap: 12px; /* Расстояние между кнопками в одной строке */
}

.button-column {
	display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-direction: column;
	padding: 12px;
    background: #f9eae5;
    border-radius: 16px;
}

.custom-button {
    flex: 1; /* Кнопки равномерно распределяются по ширине строки */
    background-color: #FF7A2F;
    border: none;
    border-radius: 8px;
    padding: 12px;
    color: white;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.primary-button:hover {
    transform: scale(1.05); /* Увеличение при наведении */
}

.secondary-button:hover {
    transform: scale(1.05); /* Увеличение при наведении */
}

.tertiary-button:hover {
    background: #ffece5; /* Увеличение при наведении */
}


.success-pressed-section {
	flex: 1;
    background-color: #5eaf67;
    border: none;
    border-radius: 8px;
    padding: 12px;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s;
	text-decoration: unset;
	font-weight: bold;
    font-size: 1rem;
    line-height: 1.2;
}


.primary-button {
	flex: 1;
    background-color: #b9795c;
    border: none;
    border-radius: 8px;
    padding: 12px;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    box-shadow: inset 0px -4px 0px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
	text-decoration: unset;
	font-weight: bold;
    font-size: 1rem;
    line-height: 1.2;
}


.secondary-button {
	flex: 1;
    background-color: #cdaca5;
    border: none;
    border-radius: 8px;
    padding: 12px;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    box-shadow: inset 0px -4px 0px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
	text-decoration: unset;
	font-weight: bold;
    font-size: 1rem;
    line-height: 1.2;
}

.tertiary-button {
	border: solid 2px #c1998a;
    padding: 8px;
    border-radius: 8px;
    box-shadow: inset 0px -4px 0px rgba(0, 0, 0, 0.1);
    text-decoration: unset;
    font-size: 0.75rem;
}

.button-text-bold {
    font-weight: bold;
    font-size: 20px;
    line-height: 1.2;
}

.button-text-regular {
    font-size: 16px;
    line-height: 1.2;
	font-weight: 300;
}

.ad-content {
	margin-top: 24px;
}

.ad-details {
	color: #fff;
	display: flex;
    width: 100%;
    flex-direction: row;
	gap: 12px;
}

.details-left {
	color: #fff;
	width: 100%;
}

.details-right {
	color: #fff;
}

.details-name {
	color: #999;
}

.details-city {
	color: #999;
}

.ad-title {
	color: #FF7A2F;
	font-size: 16px;
}

.ad-description {
	color: #fff;
	font-size: 14px;
    line-height: 1.5rem;
}

.ad-contact {
	color: #fff;
    font-size: 16px;
    margin-top: 48px;
    margin-bottom: 64px;
}

.note {
	color: #fff;
    font-size: 13px;
    line-height: 1.25rem;
    background: #4A586E;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 24px;
}

.header-logo {
	display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 1rem;
    margin-top: 8px;
    gap: 0px;
	line-height: 0;
	font-weight: 100;
}





/* Панель меню */
.main-menu {
    top: 0;
    margin-left: -12px;
    /*display: block;*/
    position: absolute;
    /* left: 76px; */
    /* height: 300px; */
    background-color: #b58f80;
    color: white;
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    justify-content: space-around;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    visibility: hidden;
    opacity: 0;
    margin-top: 64px;
    flex-direction: column;
    padding: 0 12px 0 12px;
    box-shadow: 0px 20px 20px 0px #00000040;
}

/* Скрытый класс для меню */
.main-menu.hidden {
    visibility: hidden;
    opacity: 0;
}

/* Видимое меню */
.main-menu.visible {
    visibility: visible;
    opacity: 1;
}

/* Стили для ссылок внутри меню */
.main-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: justify;
}

.main-menu li {
    margin: 20px 0;
}

.text-ul-list {
    font-size: 0.825rem;
    color: #59443c;
}

.main-menu a {
    text-decoration: none;
    color: white;
    font-size: 1rem;
    transition: color 0.2s;
	font-weight: 100;
}

.main-menu a:hover {
    color: #ffd5c4;
}

/* Изменение кнопки меню */
.menu-button .menu-icon.close {
    content: "✖";
}

.svgicon {
	fill: #9d7b6f;
	width: 32px;
	height: 32px;
}

.form-block-button-caption {
	display: grid;
    margin-bottom: 12px;
}

.notification {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
	border-radius: 12px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    padding: 10px 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.notification.success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.notification.error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Аватар с рамкой */
.profile-avatar {
    width: 100%;
    max-width: 400px;
    height: auto;
    aspect-ratio: 1 / 1; /* Сохраняем квадратное соотношение */
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 15px;
    border: 5px solid;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Цвет рамки в зависимости от пола */
.border-male {
    border-color: #93c2ff; /* Голубая рамка */
}

.border-female {
    border-color: #ffb1b1; /* Розовая рамка */
}

/* Цвет рамки в зависимости от пола */
.border-m {
    border: 2px solid #93c2ff; /* Голубая рамка */
}

.border-f {
    border: 2px solid #ffb1b1; /* Розовая рамка */
}


/* Описание профиля */
.profile-description {
	text-align: left;
    margin-top: 32px;
}

.profile-description p{
	font-size: 1rem;
}

/* Информация о пользователе */
.profile-info p{
	font-size: 1rem;
}

.info-row {
    display: flex;
	width: 50%;
    padding: 24px 0;
	flex-direction: column;
}

.info-edit-row {
    display: flex;
	width: 50%;
	flex-direction: column;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: bold;
    text-align: left;
	color: #cdaa9d;
	font-size: 0.825rem;
}

.info-value {
    text-align: left;
}

.edit-profile-container {
    max-width: 400px;
    margin: 20px auto;
    padding: 15px;
    text-align: center;
}

.avatar-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.avatar-upload span {
    font-weight: bold;
    margin-bottom: 10px;
}

.avatar-preview {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid #ccc;
    margin-bottom: 10px;
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.delete-avatar {
    background: red;
    color: white;
    border: none;
    padding: 8px;
    cursor: pointer;
    margin-top: 5px;
}

.delete-avatar:hover {
    background: darkred;
}

.avatar-upload-section {
	/*align-content: center;*/
	display: flex;
    justify-content: space-between;
	padding: 0px;
	margin-right: 12px;
	gap: 12px;
	flex-wrap: wrap;
}

.input-subtitle {
	font-size: 0.75rem;
    color: #cdaa9d;
    line-height: 1rem;
    margin-bottom: 12px;
	display: flex;
}

.info-pair-block {
	display: flex;
    gap: 12px;
    border-bottom: 1px solid #f9eae5;
}

.info-pair-edit-block {
	display: flex;
    gap: 12px;
}

.toggle-item {
    display: flex;
    align-items: baseline;
    margin-bottom: 16px;
}

.toggle-label {
    position: relative;
    width: 48px;
    height: 20px;
    display: inline-block;
    cursor: pointer;
}

.toggle-label input {
    display: none;
}

.toggle-slider {
    position: absolute;
    width: 100%;
    height: 24px;
    background: #ccc;
    border-radius: 20px;
    transition: 0.3s;
}

.toggle-slider::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    left: 2px;
    bottom: 2px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}

input:checked + .toggle-label .toggle-slider {
    background: #4CAF50;
}

input:checked + .toggle-label .toggle-slider::before {
    transform: translateX(85%);
}

.toggle-text {
    margin-right: 12px;
    align-self: baseline;
    width: 100%;
}

.hidden-checkbox {
    display: none;
}



.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
	margin-top: 16px;
}

.tag {
    background-color: #c1998a;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 14px;
    cursor: default;
}

.no-tags {
    color: gray;
}

.tag-toggle {
    background-color: #ddd;
    color: #999;
    padding: 10px 16px;
    border-radius: 15px;
    font-size: 14px;
    cursor: pointer;
}

.tag-toggle.selected {
    background-color: #c1998a;
    color: white;
}

.tags-container {
	display: flex;
    padding: 24px 0;
    flex-direction: column;
}


.user-status {
    font-size: 12px;
	text-align: center;
}

.user-status .online {
    color: green;
	font-weight: bold;	/* Зеленый для онлайн */
}

.user-status .offline {
    color: #aaa; /* Серый для оффлайн */
}

.profile-coins-block {
	display: flex;
    align-items: baseline;
    margin-bottom: 12px;
    justify-content: space-between;
    padding: 8px;
    background: #f9eae5;
    border-radius: 12px;
}

.content-info-section {
	padding: 8px;
    background: #f9eae5;
    border-radius: 12px;
}


/* Закрепленный тоггл-контейнер */
.toggle-buttons {
    display: flex;
    position: sticky;
    top: 50px; /* Чуть ниже шапки */
    z-index: 10;
    justify-content: center;
	min-height: 48px;
	padding: 8px;
    background: #f9eae5;
}

/* Закрепленный контейнер для дроп дауна */
.sticky-dropdown-container {
    display: flex;
    position: sticky;
    top: 50px; /* Чуть ниже шапки */
    z-index: 10;
    justify-content: center;
	padding: 8px;
    background: #f9eae5;
}

/* Кнопки переключения */
.toggle-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: #fff6f4;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
	font-size: 1rem;
	color: #cdaa9d;
	font-weight: 100;
}

.toggle-btn.active {
    background: #b9795c;
    color: white;
	font-size: 1.1rem;
	box-shadow: inset 0px -4px 0px rgba(0, 0, 0, 0.1);
	font-weight: 600;
}

/* Контейнер лайков */
.likes-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Карточка лайка */
.like-card {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    background: #fff;
    box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.05);
    transition: 0.1s;
	font-weight: 100;
}

.like-card:hover {
    transform: scale(1.03);
}

/* Фото пользователя */
.avatar {
    max-width: 64px;
    max-height: 64px;
    border-radius: 5%;
    margin-right: 15px;
    object-fit: cover;
	aspect-ratio: 1 / 1;
}

/* Информация пользователя */
.info {
    display: flex;
    flex-direction: column;
	gap: 8px;
	width: 100%;
}

/* Имя и возраст */
.name {
    font-size: 16px;
    font-weight: bold;
    color: #59443c;
}

/* Город */
.city {
    font-size: 14px;
    color: #cdaa9d;
}

/* Скрытый блок */
.hidden {
    display: none;
}

.likedate {
	font-size: 0.7rem;
    color: #999;
}

.empty-likes-message {
    text-align: center;
    font-size: 1rem;
    color: #cdaa9d;
    margin-top: 20px;
}

.badge {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: red;
    border-radius: 50%;
}

.ad-text {
    color: #777;
    font-size: 0.825rem;
}

.profiles-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
	margin-bottom: 64px;
}

.profile-card {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    background: #fff;
    box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.05);
    transition: 0.1s;
	font-weight: 100;
}

.search-panel {
	background: #f9eae5;
    padding: 12px;
	border-bottom: solid 1px #cdaa9d;
	box-shadow: 0px 8px 12px 1px rgba(0, 0, 0, 0.15);
    z-index: 500;
}


.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
            background: #fff7f4;
            padding: 20px;
            border-radius: 10px;
            text-align: center;
			display: flex;
			flex-direction: column;
			gap: 16px;
        }

.cancel-button, .delete-button {
    margin: 10px;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
}

.cancel-button {
    background: gray;
    color: white;
}

.delete-button {
    background: red;
    color: white;
}

/* 📱 Медиа-запрос для адаптации под мобильные устройства */
@media (max-width: 600px) {
    .profile-avatar {
        max-width: 300px; /* Уменьшаем размер */
    }
}