/* Şiir Detay (Poem Detail) Page Styles */

.poem-detail-section {
  padding: 120px 0 80px;
  background: linear-gradient(135deg, #f5f0e8 0%, #e8ddd0 100%);
  min-height: 100vh;
}

.poem-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

/* Back Button */
.back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(254, 128, 93, 0.9);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-family: "Avenir", sans-serif;
  font-weight: 300;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(254, 128, 93, 0.3);
}

.back-button:hover {
  background: rgba(254, 128, 93, 1);
  transform: translateX(-5px);
  box-shadow: 0 6px 20px rgba(254, 128, 93, 0.4);
}

/* Parchment Paper */
.parchment-paper {
  position: relative;
  background: radial-gradient(
      ellipse at top left,
      rgba(139, 99, 62, 0.15),
      transparent 50%
    ),
    radial-gradient(
      ellipse at top right,
      rgba(139, 99, 62, 0.12),
      transparent 50%
    ),
    radial-gradient(
      ellipse at bottom left,
      rgba(139, 99, 62, 0.18),
      transparent 50%
    ),
    radial-gradient(
      ellipse at bottom right,
      rgba(139, 99, 62, 0.15),
      transparent 50%
    ),
    radial-gradient(ellipse at center, #f5e6d3 0%, #e8d4bb 100%);

  padding: 60px;
  margin-bottom: 40px;

  /* Torn/burned edges effect with irregular border */
  clip-path: polygon(
    2% 0%,
    5% 1%,
    8% 0%,
    12% 2%,
    15% 1%,
    18% 2%,
    22% 1%,
    25% 2%,
    28% 1%,
    32% 2%,
    35% 1%,
    38% 2%,
    42% 1%,
    45% 2%,
    48% 1%,
    52% 2%,
    55% 1%,
    58% 2%,
    62% 1%,
    65% 2%,
    68% 1%,
    72% 2%,
    75% 1%,
    78% 2%,
    82% 1%,
    85% 2%,
    88% 1%,
    92% 2%,
    95% 1%,
    98% 2%,
    99% 5%,
    100% 8%,
    99% 12%,
    100% 15%,
    99% 18%,
    100% 22%,
    99% 25%,
    100% 28%,
    99% 32%,
    100% 35%,
    99% 38%,
    100% 42%,
    99% 45%,
    100% 48%,
    99% 52%,
    100% 55%,
    99% 58%,
    100% 62%,
    99% 65%,
    100% 68%,
    99% 72%,
    100% 75%,
    99% 78%,
    100% 82%,
    99% 85%,
    100% 88%,
    99% 92%,
    100% 95%,
    98% 98%,
    95% 99%,
    92% 98%,
    88% 99%,
    85% 98%,
    82% 99%,
    78% 98%,
    75% 99%,
    72% 98%,
    68% 99%,
    65% 98%,
    62% 99%,
    58% 98%,
    55% 99%,
    52% 98%,
    48% 99%,
    45% 98%,
    42% 99%,
    38% 98%,
    35% 99%,
    32% 98%,
    28% 99%,
    25% 98%,
    22% 99%,
    18% 98%,
    15% 99%,
    12% 98%,
    8% 99%,
    5% 98%,
    2% 99%,
    1% 95%,
    0% 92%,
    1% 88%,
    0% 85%,
    1% 82%,
    0% 78%,
    1% 75%,
    0% 72%,
    1% 68%,
    0% 65%,
    1% 62%,
    0% 58%,
    1% 55%,
    0% 52%,
    1% 48%,
    0% 45%,
    1% 42%,
    0% 38%,
    1% 35%,
    0% 32%,
    1% 28%,
    0% 25%,
    1% 22%,
    0% 18%,
    1% 15%,
    0% 12%,
    1% 8%,
    0% 5%
  );

  box-shadow: 0 20px 60px rgba(101, 67, 33, 0.4),
    inset 0 0 100px rgba(139, 99, 62, 0.2),
    inset 0 0 50px rgba(101, 67, 33, 0.1);
}

/* Parchment texture and aging spots */
.parchment-paper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(
      circle at 20% 30%,
      rgba(139, 99, 62, 0.08) 0%,
      transparent 4%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(139, 99, 62, 0.06) 0%,
      transparent 3%
    ),
    radial-gradient(
      circle at 40% 80%,
      rgba(139, 99, 62, 0.07) 0%,
      transparent 5%
    ),
    radial-gradient(
      circle at 90% 70%,
      rgba(139, 99, 62, 0.05) 0%,
      transparent 3%
    ),
    radial-gradient(
      circle at 15% 90%,
      rgba(139, 99, 62, 0.09) 0%,
      transparent 4%
    ),
    radial-gradient(
      circle at 70% 50%,
      rgba(139, 99, 62, 0.04) 0%,
      transparent 2%
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(139, 119, 101, 0.02) 2px,
      rgba(139, 119, 101, 0.02) 4px
    );
  opacity: 0.6;
  pointer-events: none;
}

/* Darker burned edges */
.parchment-paper::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  box-shadow: inset 0 0 80px rgba(101, 67, 33, 0.3),
    inset 0 0 40px rgba(139, 99, 62, 0.2);
  pointer-events: none;
  clip-path: inherit;
}

.parchment-content {
  position: relative;
  z-index: 1;
}

/* Poem Title */
.poem-title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 3rem;
  color: #5d4e37;
  text-align: center;
  margin-bottom: 10px;
  letter-spacing: 2px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* Poem Category */
.poem-category {
  font-family: "Avenir", sans-serif;
  font-weight: 300;
  font-size: 1rem;
  color: #8b7765;
  text-align: center;
  margin-bottom: 40px;
  font-style: italic;
  letter-spacing: 1px;
}

/* Poem Text */
.poem-text {
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: 1.3rem;
  color: #3d3426;
  line-height: 2;
  margin-bottom: 50px;
}

.poem-text p {
  margin-bottom: 30px;
  text-align: left;
  padding-left: 20px;
  border-left: 3px solid rgba(139, 119, 101, 0.3);
}

.poem-text p:last-child {
  margin-bottom: 0;
}

/* Poem Footer */
.poem-footer {
  border-top: 2px solid rgba(139, 119, 101, 0.2);
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.poem-author {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: #5d4e37;
  font-style: italic;
}

.poem-date {
  font-family: "Avenir", sans-serif;
  font-weight: 300;
  font-size: 0.95rem;
  color: #8b7765;
}

/* Navigation Buttons */
.poem-navigation {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 40px;
}

.nav-poem {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.9);
  color: #5d4e37;
  text-decoration: none;
  border-radius: 25px;
  font-family: "Avenir", sans-serif;
  font-weight: 300;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: 2px solid rgba(139, 119, 101, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.nav-poem:hover {
  background: rgba(254, 128, 93, 0.1);
  border-color: rgba(254, 128, 93, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.prev-poem:hover {
  transform: translateY(-2px) translateX(-3px);
}

.next-poem:hover {
  transform: translateY(-2px) translateX(3px);
}

/* Responsive Styles */

/* Tablets (768px - 991px) */
@media (max-width: 991px) {
  .poem-detail-section {
    padding: 100px 0 60px;
  }

  .parchment-paper {
    padding: 50px 40px;
  }

  .poem-title {
    font-size: 2.5rem;
  }

  .poem-text {
    font-size: 1.2rem;
    line-height: 1.9;
  }
}

/* Large Phones (576px - 767px) */
@media (max-width: 767px) {
  .poem-detail-section {
    padding: 90px 0 50px;
  }

  .parchment-paper {
    padding: 40px 30px;
  }

  .poem-title {
    font-size: 2.2rem;
    margin-bottom: 8px;
  }

  .poem-category {
    font-size: 0.9rem;
    margin-bottom: 30px;
  }

  .poem-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
  }

  .poem-text p {
    margin-bottom: 25px;
    padding-left: 15px;
  }

  .poem-footer {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .poem-navigation {
    flex-direction: column;
    gap: 15px;
  }

  .nav-poem {
    width: 100%;
    justify-content: center;
  }
}

/* Small Phones (below 480px) */
@media (max-width: 480px) {
  .poem-detail-section {
    padding: 80px 0 40px;
  }

  .poem-container {
    padding: 0 15px;
  }

  .back-button {
    padding: 10px 20px;
    font-size: 0.85rem;
    margin-bottom: 20px;
  }

  .parchment-paper {
    padding: 30px 20px;
  }

  .poem-title {
    font-size: 1.9rem;
    letter-spacing: 1px;
  }

  .poem-category {
    font-size: 0.85rem;
    margin-bottom: 25px;
  }

  .poem-text {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 30px;
  }

  .poem-text p {
    margin-bottom: 20px;
    padding-left: 12px;
    border-left-width: 2px;
  }

  .poem-author {
    font-size: 1rem;
  }

  .poem-date {
    font-size: 0.85rem;
  }

  .nav-poem {
    padding: 10px 20px;
    font-size: 0.85rem;
  }
}

/* Very Small Phones (below 375px) */
@media (max-width: 375px) {
  .parchment-paper {
    padding: 25px 15px;
  }

  .poem-title {
    font-size: 1.7rem;
  }

  .poem-text {
    font-size: 0.95rem;
  }

  .poem-text p {
    padding-left: 10px;
  }
}

/* Animation */
@keyframes fadeInParchment {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.parchment-paper {
  animation: fadeInParchment 0.8s ease-out;
}
