/* --------------------------------------------------------------------------
   1. Base Typography & Container
   -------------------------------------------------------------------------- */
.poem-container,
.poem-container * {
  font-family: 'Roboto', sans-serif !important;
}

.poem-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 1.5rem;
}

/* Global spacing between sections */
  .poem-container > * + * {
    margin-top: 2rem;
  }
  
/* --------------------------------------------------------------------------
   1.5 Poem Header & Author Information
   -------------------------------------------------------------------------- */
/* Poem header layout */
.poem-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.author-info {
  flex: 1;
  min-width: 200px;
  margin-right: 20px;
  margin-bottom: 15px;
}

/* --------------------------------------------------------------------------
   1.6 Premium Views Feature
   -------------------------------------------------------------------------- */
.publication-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.publication-date {
  color: #777;
  font-size: 0.9rem;
}

.view-count {
  color: #0d77b5;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
}

.view-count::before {
  content: "⭐";
  margin-right: 4px;
}

.premium-teaser {
  color: #ff9800;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  display: flex;
  align-items: center;
  border: 1px dashed #ff9800;
  padding: 2px 8px;
  border-radius: 4px;
  transition: all 0.2s ease-in-out;
}

.premium-teaser:hover {
  background-color: #fff8e1;
  color: #f57c00;
  border-color: #f57c00;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   2. Content Sections
   -------------------------------------------------------------------------- */

/* Workshop & Contest Blocks */
  .workshop-container,
  .contest-container {
    background-color: #f0f0f0;
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 0; /* spacing via global rule above */
}

/* Workshop and Contest title links */
.workshop-title a.workshop-link,
.contest-title a.contest-link {
  color: #0d77b5;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

.workshop-title a.workshop-link:hover,
.contest-title a.contest-link:hover {
  color: #0a5d8a;
  text-decoration: underline;
}

/* Contest winner badge positioning with link */
.contest-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.contest-title .contest-winner-badge {
  margin-left: 10px;
}

/* Custom spacing between workshop and contest containers */
.workshop-container + .contest-container {
  margin-top: 1.5rem;
  }
  
/* Main poem content spacing */
.contest-container + .poem-main-container {
  margin-top: 2rem;
}

/* Info Panels - Poem Details and Author Bio */
.poem-details-container,
.author-bio {
  border: 1px solid #e0e0e0;
  border-radius: 0.5rem;
  padding: 1rem;
  margin: 0; /* spacing via global rule above */
}

/* Different background colors for panels */
.poem-details-container {
  background-color: #f9f9f9;
}

.author-bio {
  background-color: #f7f7f7;
}

/* Custom spacing for info panels */
.poem-main-container + .poem-details-container,
.poem-details-container + .author-bio {
  margin-top: 2rem;
}

/* Panel headings */
.poem-details-container h3,
.author-bio h3,
#comments h3,
.comment-wrapper h3 {
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0 0 0.5rem;
}

/* Subscribe Button Styling */
.subscribe-btn {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

/* Panel paragraphs */
.poem-details-container p,
.author-bio p {
  margin: 0.5rem 0;
}

/* --------------------------------------------------------------------------
   3. Comments Section
   -------------------------------------------------------------------------- */
#comments,
.comment-wrapper {
  padding-top: 1rem;
  border-top: 1px solid #e0e0e0;
  margin: 0;
}

/* Spamicide / details styling */
#comments details,
.comment-wrapper details {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 0.25rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}

#comments details summary,
.comment-wrapper details summary {
  list-style: none;
  cursor: pointer;
  font-weight: 500;
  margin: 0;
}

#comments details summary::-webkit-details-marker,
.comment-wrapper details summary::-webkit-details-marker {
  display: none;
}

#comments details[open] summary,
.comment-wrapper details[open] summary {
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   4. Floating Comment Button (Mobile Only)
   -------------------------------------------------------------------------- */
   .floating-comment-button {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #0d77b5;
    color: #fff;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: block !important; /* Ensure visibility */
  width: auto;              /* Allow content to determine width */
  max-width: 90%;           /* Prevent extending beyond screen edges */
}

.floating-comment-button,
.floating-comment-button a,
.floating-comment-button button {
  border: none !important;
  outline: none !important;
}

  .floating-comment-button a {
    color: inherit;
    text-decoration: none;
    display: block;
  }
  
  /* Hide on desktop, show only on small screens */
  @media (min-width: 768px) {
    .floating-comment-button {
      display: none;
    }
  }