/* assets/style.css */

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f5f5f5;
}

/* Цветовые темы */
body.theme-default {
    --primary: #ff6b00;
    --secondary: #0066cc;
}
body.theme-blue {
    --primary: #0066cc;
    --secondary: #00aaff;
}
body.theme-green {
    --primary: #00a84f;
    --secondary: #008f3d;
}

header {
    background: var(--primary);
    color: #fff;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.logo span.phone-email {
    font-size: 12px;
    display: block;
}

.lang-switch a {
    color: #fff;
    margin-right: 5px;
    text-decoration: none;
}

.main-wrapper {
    display: flex;
    padding: 10px;
    gap: 10px;
}

/* Левая колонка: категории + кнопка "добавить" */
.sidebar-left {
    width: 20%;
}

/* Центральная лента */
.content {
    width: 50%;
}

/* Правая колонка: популярные, баннеры, топ пользователей */
.sidebar-right {
    width: 30%;
}

/* Карточка объявления */
.ad-card {
    background: #fff;
    border-radius: 6px;
    margin-bottom: 10px;
    padding: 10px;
    box-shadow: 0 0 4px rgba(0,0,0,0.1);
}

.ad-card .title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.ad-card .price {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    background: #ffe5cc;
    font-weight: bold;
    margin-right: 10px;
}

.ad-card .phone {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    background: #e2f5ff;
}

.ad-card .thumbs {
    display: flex;
    gap: 5px;
    margin-top: 5px;
}

.ad-card .thumbs img {
    max-width: 32%;
    border-radius: 4px;
    object-fit: contain; /* чтобы фото не обрезалось */
    background: #000;
}

/* Таймер и лайки */
.ad-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
    font-size: 12px;
}

.ad-meta .timer {
    font-weight: bold;
}

.ad-meta .like-block {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

/* Меню категорий */
.category-menu {
    background: #fff;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 10px;
    box-shadow: 0 0 4px rgba(0,0,0,0.1);
}

.category-menu .cat-group {
    margin-bottom: 5px;
}

.category-menu .cat-group-title {
    font-weight: bold;
    margin-bottom: 3px;
}

.category-menu a {
    display: block;
    font-size: 14px;
    text-decoration: none;
    color: #333;
    padding: 3px 0;
}

/* Кнопка добавить объявление слева */
.add-ad-button {
    margin-top: 10px;
    display: block;
    text-align: center;
    background: var(--secondary);
    color: #fff;
    padding: 10px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
}

/* Популярные и баннеры справа */
.box {
    background: #fff;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 10px;
    box-shadow: 0 0 4px rgba(0,0,0,0.1);
}

/* Баннер */
.banner img {
    max-width: 100%;
    border-radius: 4px;
    display: block;
}

/* Топ пользователей */
.top-users li {
    font-size: 14px;
}

/* Формы логина/регистрации в шапке */
.header-form {
    display: inline-block;
}

.header-form input {
    margin-right: 4px;
    padding: 2px 4px;
}

/* Адаптив */
@media (max-width: 900px) {
    .main-wrapper {
        flex-direction: column;
    }
    .sidebar-left,
    .content,
    .sidebar-right {
        width: 100%;
    }
}
