/* ========== GUESTBOOK SPECIFIC STYLES ========== */

/* Form Styles */
.comment-form-container {
  background: linear-gradient(
    145deg,
    rgba(70, 105, 175, 0.15) 0%,
    rgba(2, 9, 49, 0.72) 100%
  );
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  box-shadow:
    0 4px 30px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 50px rgba(60, 90, 200, 0.03);
  animation: fadeIn 1s ease-out;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-family: "LatoBoldItalic", sans-serif;
  color: var(--text-color-secondary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: white;
  font-family: "LatoRegular", sans-serif;
  font-size: 1rem;
  transition:
    border-color 0.3s ease,
    background 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--line-color);
  background: rgba(0, 0, 0, 0.5);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.submit-btn {
  background: transparent;
  color: white;
  border: 1px solid var(--glass-border);
  padding: 0.8rem 2rem;
  font-size: 1rem;
  font-family: "LatoBoldItalic", sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 50px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.button-icon {
  width: 1rem;
  height: 1rem;
  max-width: 1rem;
  max-height: 1rem;
  flex-shrink: 0;
  display: inline-block;
  transition: transform 0.3s ease;
}

.submit-btn:hover {
  border-color: var(--line-color);
}

/* Comment deletion elements */
.comment-delete-btn {
  opacity: 0.3;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  outline: none;
  flex-shrink: 0;
  align-self: center;
}

.comment-delete-btn:hover {
  opacity: 1;
  transform: scale(1.1);
  background: transparent;
}

.comment-delete-icon {
  width: 0.95rem;
  height: 0.95rem;
  max-width: 0.95rem;
  max-height: 0.95rem;
  display: inline-block;
  vertical-align: middle;
}

.comment-content {
  flex: 1;
  min-width: 0;
}

.comment-star-wrapper {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
}

.comment-star {
  width: 1.6rem;
  height: 1.6rem;
  opacity: 0.75;
  animation: floatStar 4s ease-in-out infinite;
  user-select: none;
  pointer-events: none;
}

@keyframes floatStar {
  0%, 100% {
    transform: scale(1);
    opacity: 0.75;
  }
  50% {
    transform: scale(1.15);
    opacity: 1;
    filter: drop-shadow(0 0 5px rgba(250, 243, 148, 0.6));
  }
}

.textarea-wrapper {
  position: relative;
  width: 100%;
}

.char-counter {
  position: absolute;
  bottom: 0.8rem;
  right: 0.8rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
  font-family: "LatoRegular", sans-serif;
  pointer-events: none;
  transition: color 0.3s ease;
}

.char-counter.near-limit {
  color: #ff9e9e;
  text-shadow: 0 0 5px rgba(255, 107, 107, 0.4);
}

/* Status Messages */
.guestbook-status {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 8px;
  font-family: "LatoRegular", sans-serif;
  font-size: 0.95rem;
  text-align: center;
  transition: all 0.3s ease;
  display: none; /* Hidden by default */
}

.guestbook-status.visible {
  display: block;
}

.guestbook-status.success {
  background: rgba(46, 204, 113, 0.15);
  border: 1px solid rgba(46, 204, 113, 0.3);
  color: #2ecc71;
  box-shadow: 0 0 15px rgba(46, 204, 113, 0.15);
}

.guestbook-status.error {
  background: rgba(231, 76, 60, 0.15);
  border: 1px solid rgba(231, 76, 60, 0.3);
  color: #e74c3c;
  box-shadow: 0 0 15px rgba(231, 76, 60, 0.15);
}

/* Load More / Pull Up Indicator */
.load-more-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 0;
  margin-top: 1rem;
  width: 100%;
  animation: fadeIn 0.5s ease-out;
  cursor: pointer;
}

.load-more-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-color-secondary);
  font-family: "LatoRegular", sans-serif;
  font-size: 0.95rem;
  opacity: 0.7;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.load-more-indicator:hover .load-more-content {
  opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .comment-form-container {
    padding: 1.5rem;
  }
}
