/* ── Guestbook Widget Styles ─────────────────────────────────────────────── */

.gbw-wrap {
  font-family: inherit;
  max-width: 100%;
}

/* Header */
.gbw-header {
  color: #f0ebe4;
  text-align: center;
  padding: 20px 16px 24px;
}

.gbw-title {
  font-weight: 700;
  color: #f0ebe4;
}

/* Form area */
.gbw-form-wrap {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gbw-notice {
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
}
.gbw-notice.gbw-success {
  background: rgba(80, 180, 100, 0.25);
  color: #c9f5d0;
  border: 1px solid rgba(80, 180, 100, 0.4);
}
.gbw-notice.gbw-error {
  background: rgba(220, 80, 80, 0.25);
  color: #ffd0d0;
  border: 1px solid rgba(220, 80, 80, 0.4);
}

.gbw-input {
  background-color: #f8f6f1;
  border: 2px solid rgba(149, 124, 102, 0.4);
  border-radius: 4px;
  padding: 14px 16px;
  font-size: 1.15rem;
  color: #5a4a3a;
  width: 100%;
  box-sizing: border-box;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  font-family: inherit;
}

.gbw-input:focus {
  outline: none;
  border-color: #957c66;
  box-shadow: 0 0 0 3px rgba(149, 124, 102, 0.2);
}

.gbw-input::placeholder {
  color: #9a8776;
}

textarea.gbw-input {
  resize: vertical;
  min-height: 140px;
  line-height: 1.5;
}

.gbw-form-footer {
  display: flex;
  justify-content: center;
  padding: 8px 0 4px;
}

.gbw-submit-btn {
  background-color: #f0ebe4;
  color: #5a4a3a;
  padding: 10px 30px;
  border: 1px solid rgba(90, 74, 58, 0.3);
  border-radius: 6px;
  font-size: 1.1rem;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.1s,
    box-shadow 0.2s;
  box-shadow:
    2px 2px 6px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.gbw-submit-btn:hover {
  background-color: #e8e0d5;
  box-shadow:
    2px 4px 12px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.gbw-submit-btn:active {
  transform: translateY(1px);
  box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
}

.gbw-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Entries header */
.gbw-entries-header {
  padding: 10px 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.15);
}

.gbw-entries-count {
  color: rgba(240, 235, 228, 0.7);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Entries list */
.gbw-entries-list {
  padding: 0 16px 16px;
}

.gbw-no-entries {
  color: rgba(240, 235, 228, 0.6);
  font-style: italic;
  text-align: center;
  padding: 24px 0;
  margin: 0;
}

/* Individual entry */
.gbw-entry {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  animation: gbw-fade-in 0.3s ease;
}

.gbw-entry:last-child {
  border-bottom: none;
}

@keyframes gbw-fade-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gbw-entry-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.gbw-entry-name {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
}

.gbw-entry-time {
  color: rgba(240, 235, 228, 0.5);
  font-size: 0.8rem;
  margin-left: auto;
}

.gbw-entry-message {
  color: rgba(240, 235, 228, 0.9);
  font-size: 1.05rem;
  margin: 0;
  line-height: 1.55;
}

/* ── Admin delete button ─────────────────────────────────────────────────── */
.gbw-delete-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  padding: 3px 8px;
  background: rgba(220, 60, 60, 0.15);
  color: rgba(255, 180, 180, 0.85);
  border: 1px solid rgba(220, 60, 60, 0.3);
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition:
    background 0.18s,
    color 0.18s,
    border-color 0.18s,
    opacity 0.18s;
  flex-shrink: 0;
}

.gbw-delete-btn:hover {
  background: rgba(220, 60, 60, 0.35);
  color: #ffb3b3;
  border-color: rgba(220, 60, 60, 0.6);
}

.gbw-delete-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Slide-out animation on delete */
.gbw-entry.gbw-removing {
  animation: gbw-slide-out 0.3s ease forwards;
}

@keyframes gbw-slide-out {
  0% {
    opacity: 1;
    max-height: 200px;
    transform: translateX(0);
  }
  60% {
    opacity: 0;
    transform: translateX(20px);
  }
  100% {
    opacity: 0;
    max-height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
  }
}

/* Admin indicator bar */
.gbw-admin-bar {
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(220, 60, 60, 0.25);
  padding: 5px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.gbw-admin-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 180, 180, 0.7);
  padding: 2px 6px;
  border: 1px solid rgba(220, 60, 60, 0.3);
  border-radius: 3px;
  background: rgba(220, 60, 60, 0.1);
}
