/* Современный дизайн для сайта "Вместе навсегда" */

/* Подключение Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* CSS переменные теперь определены в layouts/partials/css-variables.html */
/* Они генерируются из настроек в hugo.toml */

/* Общие улучшения */
body {
  font-family: var(--font-primary);
  line-height: 1.7;
  color: var(--text-color);
  background: linear-gradient(135deg, #fef7f7 0%, #fff 100%);
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* Контейнер */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Хедер */
.header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
  position: relative;
}

.header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.header .container {
  position: relative;
  z-index: 2;
}

.logo {
  padding: 20px 0;
}

.logo__link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: white;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.logo__item {
  border-radius: 50%;
  margin-right: 15px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.logo__text {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
  color: #ffffff;
  filter: contrast(1.2);
}

.logo__subtitle,
.logo__tagline {
  font-size: 14px;
  opacity: 1;
  margin: 8px 0 0 0;
  font-weight: 600;
  text-shadow: 3px 3px 8px rgba(0, 0, 0, 1), 1px 1px 2px rgba(0, 0, 0, 0.8);
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.3) 100%);
  padding: 12px 18px;
  border-radius: 10px;
  backdrop-filter: blur(15px);
  max-width: 450px;
  line-height: 1.5;
  color: #ffffff !important;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  font-family: var(--font-primary);
  letter-spacing: 0.3px;
}

/* Главная область */
.wrapper {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  margin: 40px 0;
}

/* Статьи */
.list__item {
  background: var(--background);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 30px;
  overflow: hidden;
  transition: var(--transition);
}

.list__item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.entry__header {
  padding: 0;
}

.entry__title {
  margin: 0;
  padding: 25px 30px 15px;
}

.entry__title a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  transition: var(--transition);
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

.entry__title a:hover {
  color: var(--primary-color);
}

.entry__thumbnail {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.entry__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.list__item:hover .entry__thumbnail img {
  transform: scale(1.05);
}

.entry__meta {
  padding: 0 30px;
  color: var(--text-light);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.entry__meta time {
  background: var(--secondary-color);
  padding: 5px 12px;
  border-radius: 20px;
  color: var(--primary-color);
  font-weight: 500;
}

.entry__content {
  padding: 20px 30px 30px;
}

.entry__content p {
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

/* Сайдбар */
.sidebar {
  background: var(--background);
}

.widget {
  background: var(--background);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 30px;
  overflow: hidden;
}

.widget__title {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  color: white;
  padding: 18px 24px;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
}

.widget__content {
  padding: 20px;
}

/* Виджет поиска */
.widget-search__field {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 14px;
  transition: var(--transition);
}

.widget-search__field:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

/* Виджет последних постов */
.widget-recent__item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.widget-recent__item:last-child {
  border-bottom: none;
}

.widget-recent__link {
  color: var(--text-color);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
  transition: var(--transition);
  display: block;
}

.widget-recent__link:hover {
  color: var(--primary-color);
}

/* Виджет тегов */
.widget-taglist__link {
  display: inline-block;
  background: var(--background-light);
  color: var(--text-color);
  padding: 6px 12px;
  margin: 0 8px 8px 0;
  border-radius: 20px;
  text-decoration: none;
  font-size: 13px;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.widget-taglist__link:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* Виджет социальных сетей */
.widget-social__item {
  margin-bottom: 15px;
}

.widget-social__item:first-child {
  margin-top: 0;
  margin-bottom: 20px;
  text-align: center;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
}

.widget-social__item img {
  border-radius: var(--border-radius);
  transition: var(--transition);
  width: 100%;
  height: auto;
  display: block;
  margin: 15px auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.widget-social__item:hover img {
  transform: scale(1.02);
  box-shadow: var(--shadow);
}

/* Дополнительные стили для баннера фотостраны */
.widget-social__content {
  padding: 0 !important;
  width: 100%;
}

.widget-social__item:first-child {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 8px;
  margin: 0 0 20px 0;
  padding: 15px;
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.widget-social__item:first-child:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* Специальные стили для баннера фотостраны */
.widget-social__banner {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%) !important;
  border-radius: 8px !important;
  margin: 0 0 20px 0 !important;
  padding: 15px !important;
  border: 1px solid #e9ecef !important;
  transition: all 0.3s ease !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.widget-social__banner:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
  transform: translateY(-2px) !important;
}

.widget-social__banner img {
  max-width: 100% !important;
  margin: 0 auto !important;
  display: block !important;
  border-radius: var(--border-radius) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.widget-social__banner .widget-social__link {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  display: block !important;
  width: 100% !important;
  text-align: center !important;
}

.widget-social__banner .widget-social__link:hover {
  background: transparent !important;
  transform: none !important;
  box-shadow: none !important;
}

/* Футер */
.footer {
  background: linear-gradient(135deg, #333 0%, #222 100%);
  color: white;
  text-align: center;
  padding: 30px 0;
  margin-top: 60px;
}

.footer a {
  color: var(--secondary-color);
  text-decoration: none;
}

.footer a:hover {
  color: white;
}

/* Пагинация */
.pagination {
  text-align: center;
  margin: 40px 0;
}

.pagination__item {
  display: inline-block;
  margin: 0 5px;
}

.pagination__link {
  display: block;
  padding: 10px 15px;
  background: var(--background);
  color: var(--text-color);
  text-decoration: none;
  border-radius: var(--border-radius);
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.pagination__link:hover,
.pagination__link--current {
  background: var(--primary-color);
  color: white;
}

/* Адаптивность */
@media (max-width: 768px) {
  .wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .container {
    padding: 0 15px;
  }
  
  .entry__title a {
    font-size: 22px;
  }
  
  .entry__content,
  .entry__title {
    padding-left: 20px;
    padding-right: 20px;
  }
  
  .logo__text {
    font-size: 24px;
  }
  
  .entry__thumbnail {
    height: 200px;
  }
  
  .logo__subtitle,
  .logo__tagline {
    font-size: 13px;
    padding: 10px 15px;
    max-width: 350px;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 1), 1px 1px 3px rgba(0, 0, 0, 0.9);
  }
  
  .widget-social__item:first-child {
    margin: 0 0 15px 0;
    padding: 12px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
  }
  
  .widget-social__item img {
    max-width: 90%;
    margin: 10px auto;
  }
}

@media (max-width: 480px) {
  .logo {
    padding: 15px 0;
  }
  
  .logo__link {
    flex-direction: column;
    text-align: center;
  }
  
  .logo__item {
    margin-right: 0;
    margin-bottom: 10px;
  }
  
  .entry__thumbnail {
    height: 180px;
  }
  
  .entry__title a {
    font-size: 20px;
  }
  
  .logo__text {
    font-size: 22px;
  }
  
  .logo__subtitle,
  .logo__tagline {
    font-size: 12px;
    padding: 8px 12px;
    max-width: 280px;
    text-shadow: 3px 3px 12px rgba(0, 0, 0, 1), 1px 1px 4px rgba(0, 0, 0, 0.9);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.4) 100%);
  }
  
  .widget-social__item:first-child {
    margin: 0 0 12px 0;
    padding: 10px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
  }
  
  .widget-social__item img {
    max-width: 85%;
    margin: 8px auto;
  }
}

/* Анимации */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.list__item {
  animation: fadeInUp 0.6s ease forwards;
}

.list__item:nth-child(2) { animation-delay: 0.1s; }
.list__item:nth-child(3) { animation-delay: 0.2s; }
.list__item:nth-child(4) { animation-delay: 0.3s; }
.list__item:nth-child(5) { animation-delay: 0.4s; }

/* Улучшения для читаемости */
.entry__content h1,
.entry__content h2,
.entry__content h3 {
  color: var(--text-color);
  margin-top: 25px;
  margin-bottom: 15px;
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

.entry__content strong {
  color: var(--primary-color);
  font-weight: 600;
}

.entry__content em {
  color: var(--text-light);
  font-style: italic;
}

/* Кнопки и ссылки */
.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  color: white;
  padding: 12px 25px;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* Специальные эффекты */
.heart-bg::before {
  content: "💕";
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 20px;
  opacity: 0.7;
}

.entry__thumbnail {
  position: relative;
}

.entry__thumbnail::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(233, 30, 99, 0.1) 0%, rgba(255, 64, 129, 0.1) 100%);
  opacity: 0;
  transition: var(--transition);
}

.list__item:hover .entry__thumbnail::after {
  opacity: 1;
}

/* Дополнительные улучшения типографики */
.entry__content p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 1.2em;
}

.entry__content blockquote {
  border-left: 4px solid var(--primary-color);
  padding-left: 20px;
  margin: 24px 0;
  font-style: italic;
  color: var(--text-light);
  background: var(--background-light);
  padding: 20px;
  border-radius: var(--border-radius);
}

.entry__content code {
  background: var(--background-light);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 0.9em;
  color: var(--primary-color);
}

/* Улучшенная анимация загрузки */
.list__item {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease forwards;
}

/* Градиентный текст для заголовков */
.entry__title a:hover {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}