/* Found Media Archive - Guestbook Styling */

/* Instructions box - similar to footer but with text content */
.instructions-box {
  background-color: var(--white);
  border: 2px solid var(--brown-dark);
  padding: 12px 16px;
  margin-bottom: 8px;
  text-align: center;
}

.instructions-text {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--brown-dark);
  line-height: 1.6;
}

.instructions-text strong {
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
}

.instructions-text a {
  color: var(--brown-dark);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.instructions-text a:hover {
  color: var(--orange-bg);
}

/* Success message box - green themed */
.success-box {
  position: relative;
  background-color: #d4edda;
  border: 2px solid #28a745;
  padding: 12px 16px;
  margin-bottom: 8px;
  text-align: center;
}

.success-text {
  font-size: 0.75rem;
  font-weight: 500;
  color: #155724;
  line-height: 1.6;
}

.success-text strong {
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
}

.success-close {
  position: absolute;
  top: 6px;
  right: 6px;
  background: transparent;
  border: none;
  color: #155724;
  font-size: 1rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  font-weight: 700;
  transition: color 0.2s ease;
}

.success-close:hover {
  color: #0d3f1e;
}

/* Guestbook entries container */
.guestbook-entries {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}

/* Individual entry */
.entry {
  background-color: var(--white);
  border: 2px solid var(--brown-dark);
  padding: 12px;
  text-align: center;
}

.entry-image {
  margin-bottom: 10px;
}

.entry-image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--brown-dark);
  background-color: #f5f5f5;
}

.entry-meta {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--brown-dark);
  font-style: italic;
  margin: 0;
}

.entry-meta .p-author a {
  color: var(--brown-dark);
  text-decoration: none;
  border-bottom: 1px dotted var(--brown-dark);
  transition: all 0.2s ease;
}

.entry-meta .p-author a:hover {
  color: var(--orange-bg);
  border-bottom-color: var(--orange-bg);
}

/* Back link */
.back-link {
  text-align: center;
  margin-bottom: 8px;
}

.back-link a {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brown-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

.back-link a:hover {
  color: var(--orange-bg);
  text-decoration: underline;
}

/* Empty state message (optional, when no entries yet) */
.empty-state {
  background-color: var(--cream);
  border: 2px dashed var(--brown-dark);
  padding: 20px 16px;
  text-align: center;
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 0.75rem;
  color: var(--brown-dark);
  margin: 0;
}

/* Webmentions display - populated via JavaScript in Task 1.10 */
.webmentions {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--brown-dark);
  min-height: 20px;
}

.webmention-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--brown-dark);
  margin-bottom: 6px;
}

.webmention-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.webmention-list li {
  font-size: 0.65rem;
  margin-bottom: 4px;
  padding-left: 0;
}

.webmention-list li::before {
  content: '→';
  margin-right: 4px;
  color: var(--orange-bg);
}

.webmention-list a {
  color: var(--brown-dark);
  text-decoration: none;
}

.webmention-list a:hover {
  color: var(--orange-bg);
  text-decoration: underline;
}

.webmention-empty {
  font-size: 0.65rem;
  color: #888;
  font-style: italic;
}

.webmention-count {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--brown-dark);
}
