/* Import custom fonts */
@font-face {
  font-family: 'SpecialElite';
  src: url('/kommentare/SpecialElite-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'Stylish';
  src: url('/kommentare/Stylish-Regular.ttf') format('truetype');
}

button.sending {
  opacity: 0.6;
  cursor: not-allowed;
}


.comment-form {
  display: none; /* hidden by default */
}
.comments-list {
  display: none; /* also hidden by default */
}
.cancel-comment-btn {
  margin-left: 10px;
  background: rgba(255,255,255,0.08);
  color: #eee;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Stylish', sans-serif;
}
.cancel-comment-btn:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
  box-shadow: 0 0 12px rgba(255,255,255,0.3);
}

/* Write Comment button */
.write-comment-btn {
  display: inline-block;
  margin: 10px 0;
  padding: 10px 20px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  font-family: 'Stylish', sans-serif;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(6px);
}

.write-comment-btn:hover {
  background: rgba(255,255,255,0.18);
  color: #fff;
  border-color: #fff;
  box-shadow: 0 0 12px rgba(255,255,255,0.3);
  transform: translateY(-2px);
}



/* Base container with frosted glass effect */
.fade-box {
  display: none;
  background: rgba(20, 20, 20, 0.6); /* semi-transparent dark */
  color: #f0f0f0;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
  max-width: 800px;
  margin: auto;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeSlideIn 0.8s ease forwards;
  transition: box-shadow 0.4s ease, transform 0.4s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.15);
  font-family: 'SpecialElite', serif; /* inside content font */
}

/* Glow effect on hover */
.fade-box:hover {
  box-shadow: 0 12px 32px rgba(255,255,255,0.25);
  transform: translateY(-5px);
}

/* Keyframes for fade + slide */
@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Headings and labels use Stylish font */
.fade-box h3,
.comment-form label,
.reply-form label {
  font-family: 'Stylish', sans-serif;
  font-weight: 500;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 5px;
}

/* Inputs and textareas */
.comment-form input,
.comment-form textarea,
.reply-form input,
.reply-form textarea {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  border: none;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 14px;
  resize: vertical;
  font-family: 'SpecialElite', serif;
  backdrop-filter: blur(4px);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Focus states */
.comment-form input:focus,
.comment-form textarea:focus,
.reply-form input:focus,
.reply-form textarea:focus {
  outline: none;
  background: rgba(255,255,255,0.15);
  box-shadow: 0 0 8px rgba(255,255,255,0.25);
}

/* Buttons */
.comment-form button,
.reply-form button {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Stylish', sans-serif;
}

.comment-form button:hover,
.reply-form button:hover {
  background: rgba(255,255,255,0.2);
  box-shadow: 0 0 12px rgba(255,255,255,0.3);
}

/* Individual comments */
.comment {
  margin: 15px 0;
  padding: 15px;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  font-family: 'SpecialElite', serif;
  backdrop-filter: blur(6px);
  animation: fadeSlideIn 0.6s ease forwards;
}

.comment:hover {
  background: rgba(255,255,255,0.12);
  box-shadow: 0 0 16px rgba(255,255,255,0.25);
}

/* Avatar */
.comment img {
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: middle;
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.2);
}

/* Name + date */
.comment strong {
  font-size: 15px;
  color: #fff;
}

.comment span {
  font-size: 12px;
  color: #ccc;
  margin-left: 8px;
}

/* Reply button */
.reply-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: #ddd;
  padding: 6px 12px;
  cursor: pointer;
  margin-top: 8px;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-family: 'Stylish', sans-serif;
}

.reply-btn:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-color: #fff;
  box-shadow: 0 0 10px rgba(255,255,255,0.25);
}

/* Replies indentation + animation */
.replies {
  margin-left: 40px;
  margin-top: 10px;
  overflow: hidden;
  border-left: 1px solid rgba(255,255,255,0.1);
  padding-left: 15px;
}

.reply-form {
  margin-top: 10px;
  background: rgba(255,255,255,0.05);
  padding: 12px;
  border-radius: 8px;
  animation: slideDown 0.5s ease forwards;
  backdrop-filter: blur(6px);
}

/* Slide down animation for replies */
@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    max-height: 500px;
    transform: translateY(0);
  }
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .fade-box {
    padding: 12px;
    backdrop-filter: blur(6px);
  }
  .comment {
    padding: 8px;
  }
  .comment-form input,
  .comment-form textarea {
    font-size: 12px;
  }
}
