/* ===== PAGE HEADER ===== */
.page-header {
  text-align: center;
  padding: 56px 24px 32px;
}

.page-title {
  font-size: 2.2rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 10px;
}

.page-subtitle {
  color: rgba(255,255,255,0.55);
  font-size: 1rem;
}

/* ===== POEMS GRID ===== */
.poems-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 24px 64px;
}

.poems-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ===== POEM CARD ===== */
.poem-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 28px 30px;
}

.poem-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.poem-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.poem-heading { flex: 1; }

.poem-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #f4a900;
  background: rgba(244,169,0,0.12);
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 8px;
}

.poem-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 3px;
}

.poem-subtitle {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  font-style: italic;
}

.poem-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.poem-stanza {
  font-size: 0.95rem;
  line-height: 1.85;
  color: rgba(255,255,255,0.75);
  white-space: pre-line;
}

/* ===== COMMUNITY POEMS (Day 14) ===== */
.community-section {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 40px;
}

.community-heading {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}

.community-subheading {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 20px;
}

.submit-card {
  background: rgba(244,169,0,0.06);
  border: 1px solid rgba(244,169,0,0.25);
  border-radius: 16px;
  padding: 22px 24px;
  margin-bottom: 24px;
}

.submit-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.submit-input, .submit-textarea {
  width: 100%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 12px 14px;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  outline: none;
  box-sizing: border-box;
  margin-bottom: 10px;
  resize: vertical;
}

.submit-input:focus, .submit-textarea:focus {
  border-color: rgba(244,169,0,0.5);
}

.submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.submit-hint {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
}

.submit-msg {
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 10px;
  min-height: 18px;
}
.submit-msg.success { color: #27ae60; }
.submit-msg.error { color: #e74c3c; }

.login-prompt-card {
  text-align: center;
  padding: 28px 24px;
  background: rgba(255,255,255,0.04);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 24px;
}

.login-prompt-card p {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.login-prompt-card a {
  display: inline-block;
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  color: #fff;
  font-weight: 700;
  padding: 11px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.85rem;
}

.community-loading, .community-empty {
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
  padding: 32px 0;
}

.community-card { padding: 22px 24px; }

.community-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.action-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 100px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: all 0.15s;
}
.action-btn:hover { background: rgba(255,255,255,0.12); }
.action-btn.action-active {
  background: rgba(244,169,0,0.15);
  border-color: rgba(244,169,0,0.4);
  color: #f4a900;
}
.action-btn.action-danger {
  color: rgba(239,68,68,0.8);
}
.action-btn.action-danger:hover {
  background: rgba(239,68,68,0.12);
  border-color: rgba(239,68,68,0.3);
}

/* ===== COMMENTS ===== */
.comments-section {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed rgba(255,255,255,0.08);
}

.comments-loading, .comments-empty, .comments-login-hint {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.comment-row {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}

.comment-author {
  font-weight: 700;
  color: #f4a900;
}

.comment-input-row {
  display: flex;
  gap: 8px;
}

.comment-input {
  flex: 1;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 8px 12px;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  outline: none;
}
.comment-input:focus { border-color: rgba(244,169,0,0.5); }

.comment-send-btn {
  background: linear-gradient(135deg, #f4a900, #e07b00);
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  color: #0a0e1a;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
}

/* ===== SEND TO FRIEND (Day 57) ===== */
.send-picker {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255,255,255,0.08);
}

.send-friend-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.send-friend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 8px 12px;
}

.send-friend-name {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  font-weight: 600;
}

/* ===== SHARED WITH YOU INBOX (Day 57) ===== */
.shared-inbox {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shared-card {
  background: rgba(244,169,0,0.06);
  border: 1px solid rgba(244,169,0,0.25);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.shared-card-text { flex: 1; min-width: 200px; }

.shared-from { color: #f4a900; font-weight: 700; font-size: 0.85rem; }
.shared-title { color: #fff; font-weight: 700; font-size: 0.85rem; }

.shared-excerpt {
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  margin-top: 4px;
  font-style: italic;
}

.shared-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.shared-view-btn {
  padding: 8px 16px;
  font-size: 0.8rem;
  width: auto;
  text-decoration: none;
  display: inline-block;
}

/* Deep-link highlight — briefly draws the eye to a poem someone shared */
.poem-highlighted {
  border-color: rgba(244,169,0,0.7) !important;
  box-shadow: 0 0 0 3px rgba(244,169,0,0.25);
  transition: box-shadow 0.3s, border-color 0.3s;
}

/* ===== MOBILE ===== */
@media (max-width: 600px) {
  .page-header {
    padding: 36px 18px 24px;
  }
  .page-title {
    font-size: 1.7rem;
  }
  .poem-card {
    padding: 22px 20px;
  }
  .submit-row {
    flex-direction: column;
    align-items: stretch;
  }
  .submit-row .btn-primary {
    width: 100%;
  }
}
