/* info.css */
/* -----------------------------------
   Страницы информации: автор, сборник, описание
----------------------------------- */

/* Заголовок и подзаголовок */
.info-header {
  text-align: center;
  margin-bottom: 2em;
}
.info-title {
  font-family: var(--body-font);
  font-size: 24px; 
  color: var(--accent);
  margin-bottom: 0.3em;
}
.info-subtitle {
  font-family: var(--ui-font);
  font-size: 13px;
  text-align: center;
  color: var(--muted);
  margin-bottom: 1em;
}

/* Автор и годы жизни */
.info-author, .info-years {
  font-family: var(--body-font);
  font-style: italic;
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 1em;
}

/* Основное описание */
.info-description {
  max-width: 600px;
  margin: 1.5em auto;
  line-height: 1.4;
  font-family: var(--ui-font);
  font-size: 13px;
  text-align: justify;
}

/* Примечания */
.notes {
  margin-top: 18px;
  border-top: 1px dashed #ddd;
  padding-top: 12px;
  font-size: 13px;
  color: var(--muted, #6b6b6b);
  text-align: justify;
  text-justify: inter-word;
}

details summary {
  cursor: pointer;
  outline: none;
  font-family: var(--ui-font, "Inter", Arial, sans-serif);
  font-style: italic;
  margin-bottom: 8px;
  color: var(--muted, #6b6b6b);
}

.notes-content {
  font-family: var(--ui-font);
  line-height: 1.5;
  max-width: 100%;
}

.line-notes {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px dashed #e0e0e0;
}

.line-notes h4 {
  color: var(--accent);
  margin-bottom: 10px;
  font-size: 13px;
  font-family: var(--body-font);
}

/* Цитата с объяснением */
.quote-with-explanation {
  margin: 20px 0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  max-width: 100%;
}

.quote-block {
  padding: 18px 20px;
  background: #f8f8f8;
  font-family: var(--body-font);
  font-size: 15px;
  color: var(--text-color, #222222);
  font-style: italic;
  line-height: 1.5;
  text-align: left;
}

.explanation-block {
  padding: 16px 20px;
  background: #fcfcfc;
  border-top: 1px solid #e8e8e8;
  font-family: var(--ui-font, "Inter", Arial, sans-serif);
  font-size: 13px;
  color: var(--muted, #6b6b6b);
  line-height: 1.5;
  text-align: justify;
  text-justify: inter-word;
}

.explanation-block p {
  margin: 0 0 12px 0;
  max-width: none;
}

.explanation-block p:last-child {
  margin-bottom: 0;
}

/* Оптимизация для десктопа */
@media (min-width: 768px) {
  .notes-content {
    max-width: 100%;
  }
  
  .quote-with-explanation {
    max-width: 100%;
    margin: 20px auto;
  }
  
  .quote-block {
    padding: 20px 24px;
    font-size: 16px;
    line-height: 1.6;
  }
  
  .explanation-block {
    padding: 18px 24px;
    font-size: 13px;
    line-height: 1.6;
  }
  
  /* Ограничение ширины для лучшей читаемости на широких экранах */
  @media (min-width: 1200px) {
    .notes-content {
      max-width: 100%;
    }
    
    .quote-with-explanation {
      max-width: 100%;
    }
  }
}

.line-reference {
  margin: 10px 0;
  padding: 8px 12px;
  background: #f8f8f8;
  border-left: 3px solid var(--body-font);
  font-style: italic;
  color: var(--text-color, #222222);
}

.line-reference em {
  font-style: italic;
  color: var(--accent);
}

/* Карточки сборников произведений на странице автора */
    .collections-section {
      margin: 2em 0;
    }
    
    .section-title {
      font-family: var(--ui-font);
      font-size: 17px; 
      color: var(--muted);
      margin-bottom: 1.2em; 
      text-align: center;
      border-bottom: 1px solid #eee;
      padding-bottom: 0.5em;
    }
    
    .collections-list {
      list-style: none;
      padding: 0;
      margin: 0;
    }
    
    .collection-item {
      margin-bottom: 1.2em; 
      padding: 1.2em; 
      border: 1px solid #eee;
      border-radius: 5px;
      transition: all 0.3s ease;
    }
    
    .collection-item:hover {
      border-color: var(--accent);
      background: rgba(173,126,45,0.02);
    }
    
    .collection-title {
      font-family: var(--body-font);
      font-size: 16px; 
      margin-bottom: 0.4em; 
    }
    
    .collection-title a {
      color: var(--text-color);
      text-decoration: none;
    }
    
    .collection-title a:hover {
      color: var(--accent);
    }
    
    .collection-meta {
      font-family: var(--ui-font);
      font-size: 13px;
      font-style: italic;
      color: var(--muted);
      margin-bottom: 0.8em; 
    }
    
    .collection-description {
      font-size: 13px; 
      line-height: 1.5;
      margin-bottom: 0.8em; 
    }
    
    .collection-stats {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 12px; 
      color: var(--muted);
    }
    
    .poems-count {
      background: var(--accent);
      color: white;
      padding: 0.2em 0.6em; 
      border-radius: 12px;
      font-size: 0.75em; 
    }
    
/* содержание сборника */    
.poems-section {
  margin: 3em 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5em;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.5em;
}

.section-header-title {
  font-family: var(--ui-font);
  font-size: 17px;
  color: var(--muted);
  margin: 0;
}

/* Кнопки аккордеона */
.accordion-controls {
  display: flex;
  gap: 0.5em;
}

.accordion-btn {
  background: transparent;
  border: 1px solid rgba(173,126,45,0.1);
  color: var(--muted);
  padding: 0.5em 1em;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9em;
  transition: all 0.3s ease;
}

.accordion-btn:hover {
  background: rgba(173,126,45,0.05);
  color: var(--accent);
  border-color: var(--accent);
}

.sections-list {
  margin-bottom: 3em;
}

.section-item {
  margin-bottom: 16px;
}

.section-title-link {
  font-family: var(--body-font);
  font-size: 18px;
  color: var(--text-color);
  margin: 1.5em 0 1em 0;
  padding-bottom: 0.5em;
  border-bottom: 2px solid var(--accent);
  text-decoration: none;
  display: block;
  transition: all 0.3s ease;
}

.section-title-link:hover {
  color: var(--accent);
  border-bottom-color: var(--text-color);
}

.cycle-title-link {
  font-family: var(--body-font);
  font-size: 17px;
  color: var(--text-color);
  margin: 1.5em 0 0.8em 0;
  padding-bottom: 0.3em;
  border-bottom: 1px dashed #ddd;
  text-decoration: none;
  display: block;
  transition: all 0.3s ease;
}

.cycle-title-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Аккордеон для списков стихотворений */
.accordion {
  margin-bottom: 0.5em;
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8em 1em;
  border: 1px solid rgba(173,126,45,0.1);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.accordion-header:hover {
  background: rgba(173,126,45,0.08);
}

.accordion-title {
  font-family: var(--ui-font);
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  margin: 0;
}

.accordion-icon {
  font-size: 1.2em;
  color: var(--muted);
  transition: transform 0.3s ease;
}

.accordion.open .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion.open .accordion-content {
  max-height: 2000px;
}

.poems-list {
  list-style: none;
  padding: 1em 0;
  margin: 0;
  display: grid;
  gap: 0.8em;
}

.poem-item {
  padding: 0.8em 1em;
  border: 1px solid transparent;
  border-radius: 3px;
  transition: all 0.2s ease;
}

.poem-item:hover {
  background: rgba(173,126,45,0.03);
  border-color: rgba(173,126,45,0.2);
}

.poem-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  color: var(--text-color);
}

.poem-title {
  font-family: var(--body-font);
  font-size: 16px;
}

.poem-meta {
  font-size: 0.85em;
  color: var(--muted);
}
