/* \templates\modern\css\fair.css */

:root {
    --fair-green: #4CAF50;       /* Свежая зелень */
    --fair-green-dark: #388E3C;
    --fair-yellow: #FFEB3B;      /* Солнце */
    --fair-orange: #FF9800;      /* Овощи/Мед */
    --fair-bg: #F1F8E9;          /* Очень светлый зеленый фон */
    --text-color: #333;
}

.fair-wrapper {
    max-width: 960px;
    margin: 40px auto;
    font-family: 'Segoe UI', 'Comic Sans MS', sans-serif; /* Чуть более "домашний" шрифт */
    color: var(--text-color);
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.15); /* Зеленоватая тень */
    overflow: hidden;
    padding: 0 0 30px 0;
}

/* --- Баннер в разработке --- */
.dev-banner {
    background: repeating-linear-gradient(
        45deg,
        #FFC107,
        #FFC107 10px,
        #FFD54F 10px,
        #FFD54F 20px
    );
    color: #5D4037;
    text-align: center;
    padding: 10px;
    font-weight: bold;
    font-size: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.dev-icon {
    font-size: 18px;
}

/* --- Заголовок --- */
.fair-header {
    text-align: center;
    padding: 40px 20px 20px;
    background: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="%234CAF50" opacity="0.1"/></svg>'); /* Паттерн точки */
}

.fair-header h1 {
    color: var(--fair-green-dark);
    margin: 0;
    font-size: 2.2em;
    font-weight: 800;
}

.fair-header .subtitle {
    color: var(--fair-orange);
    font-size: 1.2em;
    font-weight: 600;
    margin-top: 5px;
}

.fair-header .description {
    max-width: 700px;
    margin: 20px auto;
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

/* --- Категории (Кружочки) --- */
.fair-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin: 30px 0;
    padding: 0 20px;
}

.cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100px;
}

.cat-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cat-icon svg {
    width: 35px;
    height: 35px;
}

/* Цвета иконок */
.cat-icon.green { background: #8BC34A; }
.cat-icon.yellow { background: #FFC107; }
.cat-icon.red { background: #FF7043; }
.cat-icon.blue { background: #4FC3F7; }

.cat-item:hover .cat-icon {
    transform: scale(1.15) rotate(5deg);
}

.cat-item span {
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    color: #666;
}

/* --- Блок примеров (Mockups) --- */
.mock-listings-area {
    background-color: var(--fair-bg);
    padding: 30px 20px;
    margin: 0 20px;
    border-radius: 15px;
    border: 2px dashed #C8E6C9; /* Эффект вырезанного купона или доски */
}

.mock-listings-area h3 {
    text-align: center;
    color: var(--fair-green-dark);
    margin-top: 0;
    margin-bottom: 25px;
    opacity: 0.8;
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* Карточка товара */
.listing-card {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    opacity: 0.9; /* Чуть прозрачные, чтобы показать "примерность" */
}

.card-badge {
    position: absolute;
    top: 10px;
    right: -25px;
    background: #e0e0e0;
    color: #888;
    padding: 5px 30px;
    font-size: 10px;
    text-transform: uppercase;
    transform: rotate(45deg);
    font-weight: bold;
    z-index: 2;
}

.card-image-placeholder {
    height: 120px;
    background: #f9f9f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px; /* Эмодзи как картинка */
    margin-bottom: 15px;
}

.img-veg { background: #E8F5E9; }
.img-honey { background: #FFF8E1; }
.img-egg { background: #E1F5FE; }

.card-details h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #333;
}

.card-details .author {
    font-size: 12px;
    color: #888;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
}

.card-details .desc {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 15px;
    font-style: italic;
}

.price-tag {
    display: inline-block;
    background: var(--fair-green);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
}

/* --- Подвал --- */
.fair-footer {
    text-align: center;
    margin-top: 30px;
    padding: 0 20px;
    font-size: 16px;
    color: var(--fair-green-dark);
    font-weight: 500;
}

/* Адаптив */
@media screen and (max-width: 600px) {
    .fair-header h1 { font-size: 1.6em; }
    .cat-item { width: 40%; } /* По 2 в ряд */
    .fair-wrapper { margin: 20px auto; }
}