/*
====================================================================================================
COMMON.CSS - Совместимость с DataLife Engine
====================================================================================================
Минимальный файл для поддержки DLE функционала
Основные стили находятся в styles.css (модульная система)
====================================================================================================
*/

/* =============================================================================
   CSS VARIABLES ALIASES (для совместимости со старым кодом)
   ============================================================================= */

:root {
  /* Старые переменные → Новые переменные */
  --bg: var(--color-bg);
  --bg-lighter: var(--color-bg-lighter);
  --bg-darker: var(--color-bg-darker);
  --bg-black: var(--color-bg-black);
  
  --tt: var(--color-text);
  --tt-lighter: var(--color-text-light);
  --tt-lightest: var(--color-text-lighter);
  --tt-lightest-2: rgba(255, 255, 255, 0.6);
  --tt-colored: #576586;
  
  --bdc: var(--border-color);
  --bdc-darker: var(--border-color-dark);
  --bdc-colored: rgba(87, 101, 134, 0.2);
  
  --bsh: var(--shadow-base);
  --bsh-2: var(--shadow-lg);
  
  --gradient: var(--gradient);
  --accent: var(--color-accent);
  --accent-darker: var(--color-accent-hover);
  
  /* UI переменные */
  --ui-bg: var(--color-bg);
  --ui-bg-darker: var(--color-bg-lighter);
  --ui-bg-darkest: var(--color-bg-darker);
  --ui-bg-accent: #11222c;
  --ui-tt-on-accent: #fff;
  --ui-bdc: var(--border-color);
}

/* =============================================================================
   DLE СПЕЦИФИЧНЫЕ СТИЛИ
   ============================================================================= */

/* DLE Content Grid (автоматическая сетка для новостей) */
#dle-content {
  display: grid;
  grid-auto-flow: row dense;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

/* Элементы на всю ширину */
#dle-content > *:not(.grid-item) {
  grid-column: 1 / -1;
}

/* =============================================================================
   HOVER ЭФФЕКТЫ (Desktop only)
   ============================================================================= */

@media screen and (min-width: 1220px) {
  /* Карточки */
  .item:hover .item__title,
  .short:hover .short__title {
    color: var(--color-accent);
  }
  
  .item:hover .item__img img,
  .tile:hover img,
  .short:hover img,
  .choose:hover img {
    transform: scale(1.1);
  }
  
  /* Плитка */
  .tile:hover .item__title .line-clamp {
    text-decoration: underline;
  }
  
  /* Навигация */
  .nav__list > li:hover > a,
  .nav__list-hidden a:hover {
    color: var(--color-accent);
  }
  
  .nav__list li:hover .nav__list-hidden {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Футер */
  .footer__menu a:hover {
    text-decoration: underline;
  }
  
  /* Сайдбар */
  .fresh__title:hover,
  .int:hover .int__title {
    text-decoration: underline;
  }
  
  /* Пагинация */
  .pagination__pages a:hover,
  .pagination__btn-loader a:hover {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
  }
  
  /* Теги */
  .page__tags a:hover {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
  }
  
  /* Соцсети */
  .footer__socials a:hover {
    background: var(--color-accent);
    color: #fff;
    transform: scale(1.1);
  }
  
  /* Избранное */
  .page__fav:hover .fal {
    color: var(--color-accent);
  }
  
  /* Speedbar */
  .speedbar a:hover {
    text-decoration: underline;
  }
  
  /* Комментарии */
  .lcomm:hover .ltext {
    border-color: var(--color-accent);
  }
  
  .lcomm:hover .ltext::before {
    border-bottom-color: var(--color-accent);
  }
}

/* =============================================================================
   СТРАНИЦА "ПРАЙС РЕКЛАМА" (legacy)
   ============================================================================= */

#rekl {
  float: left;
  width: 430px;
  height: 800px;
  margin-bottom: 10px;
  background: url(/uploads/price2.png) center no-repeat;
  position: relative;
}

#rtab {
  float: left;
  margin-right: 8px;
}

.rkb {
  position: absolute;
  border: 1px solid #C7C7C7;
  color: transparent;
  text-align: center;
}

#rk1 { top: 60px; left: 2px; width: 427px; height: 38px; line-height: 38px; }
#rk2 { top: 294px; left: 3px; width: 311px; height: 38px; line-height: 38px; }
#rk3 { top: 648px; left: 75px; width: 240px; height: 35px; line-height: 35px; }
#rk4 { top: 496px; left: 240px; width: 75px; height: 63px; line-height: 63px; }
#rk5 { top: 144px; left: 321px; width: 107px; height: 100px; line-height: 100px; }
#rk6 { top: 105px; left: 2px; width: 170px; height: 182px; line-height: 181px; }
#rk7 { top: 340px; left: 75px; width: 240px; height: 143px; line-height: 143px; }
#rk8 { top: 363px; left: 249px; width: 59px; height: 88px; line-height: 88px; }

.rkh {
  background-color: #D12020 !important;
  color: #fff;
  cursor: pointer;
}

#rtab table {
  cursor: pointer;
  border: 1px solid #E3DDD1;
  padding: 0;
  margin: 0;
  margin-bottom: 20px;
  border-spacing: 0;
}

#rtab thead td {
  border: none;
  line-height: 1.1em;
  height: 36px;
  font-weight: bold;
  vertical-align: middle;
  background: #F1EEE8;
  min-width: 20px;
  border-bottom: 1px solid #E3DDD1;
}

#rtab tbody tr:nth-child(2n+0) {
  background-color: #f1eee8;
}

#rtab h2 {
  margin-bottom: 20px;
}

.silka a {
  color: #3D77A8;
  font-size: 20px;
}

.silka {
  text-align: center;
  margin-top: 10px;
}

.bancen {
  margin: 0 auto;
  display: block;
}

.eril {
  font-size: 12px;
  color: #ccc;
}

/* =============================================================================
   ДОПОЛНИТЕЛЬНЫЕ УТИЛИТЫ (для совместимости)
   ============================================================================= */

/* Скрытие пустых элементов */
#category option:empty,
.ui-helper-hidden-accessible:empty,
#related_news:empty,
#result-registration:empty {
  display: none;
}

/* Переходы (transitions) */
.anim,
button,
.btn,
a,
.popular img,
.attent img,
.top-item img,
.nav__list-hidden {
  transition: 
    color var(--duration-base),
    background-color var(--duration-base),
    opacity var(--duration-base),
    box-shadow var(--duration-base),
    transform var(--duration-base);
}

/* =============================================================================
   BREAKPOINTS (для совместимости)
   ============================================================================= */

@media screen and (min-width: 1600px) {
  :root {
    /* Увеличенные отступы для больших экранов */
    --indent: 40px;
    --indent-negative: -40px;
    --max-width: 1480px;
  }
}

@media screen and (max-width: 1220px) {
  :root {
    --indent: 40px;
    --indent-negative: -40px;
  }
}

/* =============================================================================
   PRINT
   ============================================================================= */

@media print {
  /* Скрыть навигацию и интерактивные элементы при печати */
  .nav,
  .header__btn-login,
  .header__btn-search,
  .pagination,
  .comment-form {
    display: none !important;
  }
}

/*
====================================================================================================
КОНЕЦ ФАЙЛА
====================================================================================================
Этот файл содержит только:
1. Aliases старых CSS переменных для совместимости
2. DLE-специфичные стили (#dle-content)
3. Hover эффекты для desktop
4. Legacy страницу "Прайс реклама"
5. Минимальные утилиты

Основные стили находятся в styles.css (модульная система)
====================================================================================================
*/
