/* Общие стили */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Raleway", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Навигация */
.navbar {
  background-color: #fff;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 15px 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: "Montserrat", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #2c3e50;
  text-decoration: none;
}

.logo span {
  color: #3498db;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  text-decoration: none;
  color: #555;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s;
  display: flex;
  align-items: center;
}

.nav-links a i {
  margin-right: 8px;
  font-size: 0.9rem;
}

.nav-links a:hover {
  color: #3498db;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #2c3e50;
  cursor: pointer;
}

/* Главная секция */
.hero {
  padding: 80px 0;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.hero-content {
  flex: 1;
  min-width: 300px;
  padding-right: 40px;
}

.main-title {
  font-family: "Montserrat", sans-serif;
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #2c3e50;
}

.main-title span {
  color: #3498db;
}

.subtitle {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 35px;
  max-width: 600px;
}

.cta-buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 50px;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-family: "Montserrat", sans-serif;
}

.primary-btn {
  background-color: #3498db;
  color: white;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.primary-btn:hover {
  background-color: #2980b9;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.secondary-btn {
  background-color: transparent;
  color: #3498db;
  border: 2px solid #3498db;
}

.secondary-btn:hover {
  background-color: #f0f8ff;
  transform: translateY(-3px);
}

.features {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 25px;
  margin-top: 40px;
}

.feature {
  flex: 1;
  min-width: 200px;
  padding: 25px 20px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature i {
  font-size: 2.5rem;
  color: #3498db;
  margin-bottom: 15px;
}

.feature h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #2c3e50;
}

.feature p {
  color: #666;
  font-size: 0.95rem;
}

/* Изображение в hero */
.hero-image {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
}

.image-placeholder {
  width: 100%;
  max-width: 500px;
  height: 350px;
  background: linear-gradient(135deg, #3498db, #8e44ad);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  box-shadow: 0 15px 30px rgba(52, 152, 219, 0.2);
}

.image-placeholder i {
  font-size: 6rem;
  margin-bottom: 20px;
  opacity: 0.9;
}

.image-placeholder p {
  font-size: 1.2rem;
  text-align: center;
  max-width: 80%;
}

/* Секция с призывом к действию */
.cta-section {
  background-color: #2c3e50;
  color: white;
  padding: 80px 0;
  text-align: center;
}

.cta-section h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta-section p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 40px;
  opacity: 0.9;
}

.cta-btn {
  background-color: #3498db;
  color: white;
  font-size: 1.1rem;
  padding: 16px 35px;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.cta-btn:hover {
  background-color: #2980b9;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.cta-btn i {
  margin-left: 10px;
  transition: transform 0.3s;
}

.cta-btn:hover i {
  transform: translateX(5px);
}

/* Футер */
footer {
  background-color: #1a252f;
  color: #ecf0f1;
  padding: 60px 0 20px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section {
  flex: 1;
  min-width: 250px;
}

.footer-section h3,
.footer-section h4 {
  font-family: "Montserrat", sans-serif;
  margin-bottom: 20px;
  color: white;
}

.footer-section h3 {
  font-size: 1.8rem;
}

.footer-section h4 {
  font-size: 1.3rem;
}

.footer-section p {
  color: #bdc3c7;
  margin-bottom: 20px;
  line-height: 1.7;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 12px;
}

.footer-section ul li a {
  color: #bdc3c7;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section ul li a:hover {
  color: #3498db;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #2c3e50;
  border-radius: 50%;
  color: white;
  font-size: 1.2rem;
  transition: all 0.3s;
}

.social-icons a:hover {
  background-color: #3498db;
  transform: translateY(-5px);
}

.footer-section i {
  margin-right: 10px;
  color: #3498db;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #2c3e50;
  color: #95a5a6;
  font-size: 0.9rem;
}

.hint {
  margin-top: 10px;
  font-style: italic;
  color: #7f8c8d;
}

/* Адаптивность */
@media (max-width: 992px) {
  .hero .container {
    flex-direction: column;
  }

  .hero-content {
    padding-right: 0;
    margin-bottom: 50px;
    text-align: center;
  }

  .cta-buttons {
    justify-content: center;
  }

  .features {
    justify-content: center;
  }

  .main-title {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: white;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    margin: 10px 0;
  }

  .menu-toggle {
    display: block;
  }

  .main-title {
    font-size: 2.3rem;
  }

  .subtitle {
    font-size: 1.1rem;
  }

  .cta-section h2 {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }

  .feature {
    min-width: 100%;
  }

  .footer-content {
    flex-direction: column;
  }
}

/* Стили для страницы со стихами */
.poetry-page {
  padding: 60px 0;
}

.page-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #333;
}

.page-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 40px;
  font-size: 1.1rem;
}

.poetry-filters {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.tag-filter {
  padding: 8px 20px;
  background: #f0f0f0;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  transition: all 0.3s;
}

.tag-filter:hover {
  background: #e0e0e0;
}

.tag-filter.active {
  background: #007bff;
  color: white;
}

.poetry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.poetry-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.poetry-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.poetry-card-image {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.poetry-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.1),
    rgba(0, 0, 0, 0.3)
  );
}

.poetry-card-info {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  gap: 10px;
}

.poetry-date {
  background: rgba(255, 255, 255, 0.9);
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

.poetry-annotation-badge {
  background: #ffc107;
  color: #333;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

.poetry-card-content {
  padding: 20px;
}

.poetry-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #333;
}

.poetry-overview {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.poetry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.poetry-tag {
  background: #f0f7ff;
  color: #007bff;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 500;
}

.read-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 500;
  transition: background 0.3s;
}

.read-btn:hover {
  background: #0056b3;
  color: white;
}

.loading,
.error,
.no-poems {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  color: #666;
  font-size: 1.1rem;
}

/* Адаптивность */
@media (max-width: 768px) {
  .poetry-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
  }

  .page-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .poetry-grid {
    grid-template-columns: 1fr;
  }

  .filter-tags {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 10px;
  }
}
