@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Nunito:wght@400;600;700;800;900&family=Sniglet:wght@800&display=swap');

:root {
    --lazy-blue: #0088ff;
    --lazy-yellow: #ffcc00;
    --lazy-pink: #ff0077;
    --lazy-orange: #ff6600;
    --lazy-purple: #7b2cbf;
    --lazy-cyan: #00b4d8;
    --site-max-width: 1650px; /* Широкоформатный контейнер */
/* Переменные шрифтов */
    --font-logo: 'Sniglet', 'Fredoka One', cursive, sans-serif;
    --font-main: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
   font-family: var(--font-main);
}

body {
    background: #52b788 linear-gradient(180deg, #38b6ff 0%, #70d6ff 50%, #99e2ff 100%);
    background-attachment: fixed;
    color: #1c1917;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: var(--font-main);
    line-height: 1.6;
}

/* --- СОХРАНЯЕМ МУЛЬТЯШНЫЙ ШРИФТ ТОЛЬКО ДЛЯ ЛОГО И КРУПНЫХ ЗАГОЛОВКОВ --- */
.logo-title {
    font-family: var(--font-logo) !important;
    font-size: 3.2rem;
    color: var(--lazy-pink);
    text-decoration: none;
    text-shadow: 4px 4px 0 #fff, -4px -4px 0 #fff, 4px -4px 0 #fff, -4px 4px 0 #fff, 6px 6px 10px rgba(0,0,0,0.3);
}

.hero-content h1,
.block-header,
.form-card-header h1 {
    font-family: var(--font-logo);
    letter-spacing: 0.5px;
}
/* --- КНОПКИ И МЕНЮ (Плотный, четкий шрифт) --- */
.btn-cartoon,
.nav-menu a,
.lang-btn {
    font-family: var(--font-main);
    font-weight: 800; /* Четкое начертание для кнопок */
}

/* --- ТЕКСТ СТАТЕЙ (Максимально комфортный для глаз) --- */
.article-body,
.article-body p {
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 1.15rem;
    line-height: 1.75;
    color: #1e293b;
}
.article-title {
    font-family: var(--font-main);
    font-weight: 900;
}

/* 3D Кнопки */
.btn-cartoon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 50px;
    border: 3px solid #fff;
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.2);
    cursor: pointer;
    text-shadow: 1px 1px 0px rgba(0,0,0,0.4);
    transition: all 0.15s ease;
}

.btn-cartoon:hover { transform: translateY(-3px); box-shadow: 0 9px 0 rgba(0,0,0,0.2); }
.btn-cartoon:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(0,0,0,0.2); }

.btn-yellow { background: linear-gradient(180deg, #ffea00 0%, #ffaa00 100%); color: #422006; text-shadow: none; }
.btn-blue { background: linear-gradient(180deg, #00b4d8 0%, #0077b6 100%); }
.btn-pink { background: linear-gradient(180deg, #ff0077 0%, #d60062 100%); }
.btn-orange { background: linear-gradient(180deg, #ff6600 0%, #cc5200 100%); }
.btn-sm { padding: 8px 16px; font-size: 0.9rem; }
/* Фиолетовый (в стиле Робби Злобного) */
.btn-purple { background: linear-gradient(180deg, #9d4edd 0%, #7b2cbf 100%); }
/* Зеленый (сочный яблочный / спортивный) */
.btn-green { background: linear-gradient(180deg, #2ecc71 0%, #27ae60 100%); }
/* Бирюзовый / Мятный (в стиле Пикселя) */
.btn-cyan { background: linear-gradient(180deg, #00f5d4 0%, #00b4d8 100%); color: #004b57; text-shadow: none; }
/* Сиреневый (в стиле Трикси) */
.btn-magenta { background: linear-gradient(180deg, #f72585 0%, #7209b7 100%); }
/* Красный (яркий акцент) */
.btn-red { background: linear-gradient(180deg, #ff4d4d 0%, #cc0000 100%); }


/* Wide Header */
.header {
    width: 100%;
    max-width: var(--site-max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
}

.logo-title {
    font-size: 3.2rem;
    color: var(--lazy-pink);
    text-decoration: none;
    text-shadow: 4px 4px 0 #fff, -4px -4px 0 #fff, 4px -4px 0 #fff, -4px 4px 0 #fff, 6px 6px 10px rgba(0,0,0,0.3);
}

.logo-sub {
    background: var(--lazy-yellow);
    padding: 4px 15px;
    border-radius: 15px;
    font-size: 0.95rem;
    border: 2px solid #fff;
    font-weight: bold;
    display: inline-block;
}

.nav-menu {
    display: flex;
    gap: 15px;
    background: rgba(255, 255, 255, 0.4);
    padding: 10px 20px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 3px solid #fff;
}

/* Wide Hero Banner */
.hero-banner {
    width: 100%;
    max-width: var(--site-max-width);
    margin: 10px auto 25px;
    padding: 0 30px;
}

.hero-content {
    background: linear-gradient(135deg, #ff0055 0%, #ff5500 100%);
    border: 6px solid #fff;
    border-radius: 35px;
    padding: 45px 30px;
    text-align: center;
    color: #fff;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.hero-content h1 { font-size: 3.5rem; text-shadow: 4px 4px 0 #000; margin-bottom: 10px; }
.hero-content p { font-size: 1.3rem; max-width: 900px; margin: 0 auto 25px; line-height: 1.5; }

/* Широкоформатная Сетка (3 колонки) */
.wrapper {
    width: 100%;
    max-width: var(--site-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 300px 1fr 300px; /* Левый сайдбар, Контент, Правый сайдбар */
    gap: 30px;
    padding: 0 30px;
}

/* Сайдбары */
.sidebar {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    border: 5px solid #fff;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    height: fit-content;
}

.block-header {
    background: var(--lazy-yellow);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 1.1rem;
    text-align: center;
    border: 3px solid #fff;
    box-shadow: 0 4px 0 rgba(0,0,0,0.1);
    margin-bottom: 15px;
    font-weight: bold;
}

/* Персонажи */
.char-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.char-card {
    display: flex; flex-direction: column; align-items: center; text-decoration: none;
    color: #333; background: #f8fafc; padding: 12px; border-radius: 15px; border: 2px solid #e2e8f0;
    transition: transform 0.2s;
}
.char-card:hover { transform: scale(1.05); border-color: var(--lazy-pink); }
.avatar { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: bold; border: 2px solid #fff; margin-bottom: 5px; }
.char-card.pink .avatar { background: var(--lazy-pink); }
.char-card.blue .avatar { background: var(--lazy-blue); }
.char-card.purple .avatar { background: var(--lazy-purple); }
.char-card.yellow .avatar { background: var(--lazy-yellow); color: #000; }
.char-card.cyan .avatar { background: var(--lazy-cyan); }
.char-card.magenta .avatar { background: #e0aaff; }

/* Поля ввода и Формы */
.lazy-input {
    width: 100%; padding: 14px 20px; font-size: 1rem; border: 3px solid #cbd5e1;
    border-radius: 20px; outline: none; background: #f8fafc; transition: all 0.2s ease;
}
.lazy-input:focus { border-color: var(--lazy-pink); background: #fff; box-shadow: 0 0 12px rgba(255, 0, 119, 0.2); }

/* Реклама Яндекс РСЯ (Широкоформатная) */
.yandex-ad-box {
    background: rgba(255, 255, 255, 0.9);
    border: 3px dashed var(--lazy-yellow);
    border-radius: 25px;
    padding: 15px;
    margin: 20px auto;
    text-align: center;
    position: relative;
    backdrop-filter: blur(5px);
}
.ad-label {
    position: absolute; top: -12px; left: 25px; background: var(--lazy-yellow);
    color: #000; font-size: 0.7rem; font-weight: bold; padding: 2px 10px; border-radius: 10px; border: 1px solid #fff;
}
.container-ad { width: 100%; max-width: var(--site-max-width); padding: 0 30px; }

/* Широкая карточка регистрации */
.lazy-form-card {
    background: #fff;
    border-radius: 35px;
    border: 6px solid #fff;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.wide-reg-container {
    display: grid;
    grid-template-columns: 1fr 380px; /* Колонки: Форма ввода | Сайдбар формы */
    gap: 40px;
    margin-top: 25px;
}

.form-card-header { text-align: left; margin-bottom: 20px; border-bottom: 3px solid #f1f5f9; padding-bottom: 15px; }
.form-card-header h1 { color: var(--lazy-pink); font-size: 2.8rem; text-shadow: 3px 3px 0 #000; }

.registration-top-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: bold; margin-bottom: 8px; color: #334155; font-size: 1.05rem; }

.form-group-row { display: flex; gap: 15px; align-items: flex-end; }
.flex-grow { flex: 1; }

.check-result-box { font-weight: bold; font-size: 0.95rem; margin-top: -10px; margin-bottom: 15px; }

.captcha-wrapper { display: flex; gap: 15px; align-items: center; }
.captcha-img { border: 3px solid var(--lazy-yellow); border-radius: 18px; overflow: hidden; background: #fff; }

.attention-box { background: #fff9db; border: 3px dashed var(--lazy-yellow); padding: 20px; border-radius: 20px; font-size: 1rem; color: #854d0e; }

/* DLE Список Новостей (Сетка) */
.dle-news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 25px; }
.news-card { background: #fff; border-radius: 25px; border: 5px solid #fff; padding: 20px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); display: flex; flex-direction: column; justify-content: space-between; }
.card-image img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 18px; }

.footer { text-align: center; padding: 40px; margin-top: 50px; background: rgba(0,0,0,0.25); color: #fff; }

/* Адаптивность под планшеты и мобилки */
@media (max-width: 1280px) {
    .wrapper { grid-template-columns: 280px 1fr; }
    .right-sidebar { display: none; } /* Скрываем 3-ю колонку на неидеальных экранах */
    .wide-reg-container { grid-template-columns: 1fr; }
}

@media (max-width: 850px) {
    .wrapper { grid-template-columns: 1fr; }
    .header { flex-direction: column; gap: 20px; }
    .nav-menu { flex-wrap: wrap; justify-content: center; }
}

/* Цветная обводка для каждого персонажа при наведении */
.char-card.pink:hover { border-color: var(--lazy-pink); transform: translateY(-4px); }      /* Стефани */
.char-card.blue:hover { border-color: var(--lazy-blue); transform: translateY(-4px); }      /* Спортакус */
.char-card.purple:hover { border-color: var(--lazy-purple); transform: translateY(-4px); }  /* Робби */
.char-card.yellow:hover { border-color: var(--lazy-yellow); transform: translateY(-4px); }  /* Зигги */
.char-card.orange:hover { border-color: var(--lazy-orange); transform: translateY(-4px); }  /* Стинги */
.char-card.cyan:hover { border-color: var(--lazy-cyan); transform: translateY(-4px); }      /* Пиксель */
.char-card.magenta:hover { border-color: #e0aaff; transform: translateY(-4px); }           /* Трикси */




/* Фиксированная сетка и компактный размер карточек */
.char-grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 8px; 
}

.char-card {
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    text-decoration: none;
    color: #1e293b; 
    background: #f8fafc; 
    padding: 8px; 
    border-radius: 16px; 
    border: 2px solid #e2e8f0;
    transition: all 0.2s ease;
    margin-bottom: 10px;
}

/* Строгий контроль размера кружка и самой аватарки */
.avatar-face {
    width: 50px !important;
    height: 50px !important;
    max-width: 50px !important;
    max-height: 50px !important;
    border-radius: 50%;
    overflow: hidden;
   /* border: 2px solid #fff; */
    box-shadow: 0 3px 6px rgba(0,0,0,0.12);
    background: #e2e8f0;
    flex-shrink: 0;
}

.avatar-face img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center top;
    display: block;
}

.char-card span {
    font-size: 0.8rem;
    font-weight: bold;
    margin-top: 4px;
    white-space: nowrap;
}


.hero-content {
    /* 0.5 — это 50% затемнения. Поставьте 0.3 для 30% или 0.7 для 70% */
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9)), 
                url('/templates/latbr1/images/77adba080c4a96e4c8cd19786373f194.jpg') center/cover no-repeat;
    
    border: 6px solid #fff;
    border-radius: 35px;
    padding: 60px 30px;
    text-align: center;
    color: #fff;
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}


/* --- Верхняя сервисная панель --- */
.top-bar {
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(8px);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding: 6px 0;
    width: 100%;
}

.top-bar-container {
    width: 100%;
    max-width: var(--site-max-width);
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* Доп. сервисное меню */
.top-nav {
    display: flex;
    gap: 15px;
    align-items: center;
}

.top-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: bold;
    opacity: 0.9;
    transition: all 0.2s;
}

.top-nav a:hover {
    opacity: 1;
    color: var(--lazy-yellow);
    transform: translateY(-1px);
}

.top-nav a.accent-link {
    color: #ff0077;
    background: #fff;
    padding: 2px 10px;
    border-radius: 12px;
    box-shadow: 0 2px 0 rgba(0,0,0,0.2);
}

/* Переключатель языков */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-label {
    color: #fff;
    font-size: 0.8rem;
    font-weight: bold;
    opacity: 0.8;
}

.lang-buttons {
    display: flex;
    gap: 5px;
    background: rgba(0,0,0,0.2);
    padding: 3px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.3);
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 15px;
    text-decoration: none;
    color: #fff;
    font-size: 0.8rem;
    font-weight: bold;
    transition: all 0.2s;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lang-btn.active {
    background: var(--lazy-yellow);
    color: #000;
    box-shadow: 0 2px 0 rgba(0,0,0,0.2);
}

.lang-btn .flag { font-size: 0.9rem; }

/* Мобильная адаптация */
@media (max-width: 768px) {
    .top-bar-container {
        justify-content: center;
    }
    .top-nav {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
}


/* Добавлен класс .full-article для работы текущего static.tpl */
.lazy-article-card,
.full-article {
    background: #ffffff; /* Белый мультяшный фон */
    border: 6px solid #ffffff;
    border-radius: 35px;
    padding: 35px 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    margin-bottom: 30px;
}

/* Оформление текста внутри статей */
.article-body {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #334155;
}

.article-body p {
    margin-bottom: 18px;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    border: 4px solid var(--lazy-yellow);
    margin: 15px 0;
}


/* ==========================================
   СТИЛИ ПОИСКА (search.tpl & searchresult.tpl)
   ========================================== */

.search-form-container {
    background: #f8fafc;
    border: 3px dashed var(--lazy-yellow);
    border-radius: 25px;
    padding: 25px;
    margin-bottom: 25px;
}

/* Стилизация таблицы и элементов формы DLE */
.search-form-container table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.search-form-container td {
    padding: 6px;
    font-weight: 700;
    color: #334155;
    font-size: 0.95rem;
}

.search-form-container input[type="text"],
.search-form-container select {
    width: 100%;
    padding: 10px 16px;
    font-size: 1rem;
    border: 3px solid #cbd5e1;
    border-radius: 18px;
    background: #fff;
    outline: none;
    transition: all 0.2s ease;
    font-family: var(--font-main);
    font-weight: 700;
}

.search-form-container input[type="text"]:focus,
.search-form-container select:focus {
    border-color: var(--lazy-pink);
    box-shadow: 0 0 10px rgba(255, 0, 119, 0.2);
}

.search-form-container input[type="radio"],
.search-form-container input[type="checkbox"] {
    accent-color: var(--lazy-pink);
    transform: scale(1.2);
    margin-right: 6px;
}

/* Кнопка "Найти" в форме DLE */
.search-form-container input[type="button"],
.search-form-container input[type="submit"],
.search-form-container button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    background: linear-gradient(180deg, #ff0077 0%, #d60062 100%);
    border-radius: 50px;
    border: 3px solid #fff;
    box-shadow: 0 5px 0 rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.15s ease;
}

.search-form-container input[type="button"]:hover,
.search-form-container input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 0 rgba(0, 0, 0, 0.2);
}

/* Статус результатов поиска */
.search-status-box {
    background: #e0f2fe;
    border: 3px solid #7dd3fc;
    color: #0369a1;
    padding: 15px 20px;
    border-radius: 20px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 25px;
}

/* Результаты поиска (searchresult.tpl) */
.search-results-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-result-item {
    background: #f8fafc;
    border: 3px solid #e2e8f0;
    border-radius: 22px;
    padding: 20px;
    transition: all 0.2s ease;
}

.search-result-item:hover {
    border-color: var(--lazy-blue);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.search-item-title {
    font-size: 1.4rem;
    font-weight: 900;
}

.search-item-title a {
    color: var(--lazy-blue);
    text-decoration: none;
}

.search-item-title a:hover {
    color: var(--lazy-pink);
}

.search-item-meta {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: bold;
    margin: 6px 0 14px;
}

.search-item-body {
    font-size: 1rem;
    line-height: 1.6;
    color: #334155;
    margin-bottom: 15px;
}

/* Вывод списком заголовков */
.search-result-item.short-mode {
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-title-link {
    color: var(--lazy-blue);
    font-weight: 800;
    font-size: 1.1rem;
    text-decoration: none;
}

.short-date {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: bold;
}

