/* Board Student View - Styly pro studenty */

/* Post Content - Text wrapping */
.post-content {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Modal Close Button */
.modal-close {
  float: right;
  cursor: pointer;
  font-size: 2.5rem;
  font-weight: bold;
  line-height: 0.8;
  color: #aaa;
  transition: all 0.2s;
}

.modal-close:hover {
  color: #dc3545;
  transform: scale(1.1);
}

/* Comment Section */
.comment-container {
  margin-top: 1rem;
  border-top: 1px solid rgba(0,0,0,0.08);
  padding-top: 0.75rem;
}

.comment-toggle {
  cursor: pointer;
  font-weight: bold;
  color: #666;
  font-size: 0.9rem;
  transition: color 0.2s;
  user-select: none;
}

.comment-toggle:hover {
  color: #333;
}

.comment-section {
  margin-top: 0.75rem;
}

.comment-list {
  max-height: 250px;
  overflow-y: auto;
  padding: 5px;
  margin-bottom: 1rem;
  background: #fdfdfd;
  border-radius: 12px;
}

.comment {
  background: #f1f1f1;
  padding: 0.5rem 0.75rem;
  border-radius: 12px;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  position: relative;
  word-wrap: break-word;
}

.comment.comment-owner {
  background: #fff9c4;
  border: 1px solid #fbc02d;
}

.comment-content {
  margin: 0;
  padding-right: 20px;
}

.comment-meta {
  margin-top: 0.25rem;
  text-align: right;
  font-size: 0.75rem;
  color: #999;
}

.comment-delete-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  background: none;
  border: none;
  color: #aaa;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}

.comment-delete-btn:hover {
  color: #dc3545;
}

.no-comments {
  color: #999;
  font-size: 0.9rem;
  text-align: center;
  padding: 1rem 0;
}

.comment-form {
  display: flex;
  gap: 0.5rem;
}

.comment-form textarea {
  flex-grow: 1;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 0.5rem;
  font-size: 0.9rem;
  resize: vertical;
  min-height: 40px;
}

.comment-form button {
  background: #FFCB2B;
  border: none;
  border-radius: 12px;
  padding: 0 1rem;
  font-weight: bold;
  cursor: pointer;
}

.comment-login-prompt {
  text-align: center;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 12px;
}

.comment-login-prompt p {
  margin: 0 0 0.5rem 0;
}

/* Alert Styles */
.alert.alert-center {
  text-align: center;
  margin-bottom: 2rem;
}

.alert.alert-error-border {
  border: 2px solid #dc3545;
  background-color: #fff5f5;
  color: #721c24;
}

.alert.alert-error-border h3 {
  margin-top: 0;
  font-size: 1.2rem;
}

/* Empty State */
.empty-state.empty-state-card {
  background: #FFFFFF;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  color: #999;
}

.empty-state .empty-icon {
  font-size: 3rem;
}

.empty-state-add-btn {
  margin-top: 1rem;
  min-width: 180px;
}

/* Post Actions */
.post-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

.like-button-disabled {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #e53935;
}

/* Comment Admin Hint */
.comment-admin-hint {
  font-size: 0.75rem;
  color: #dc3545;
  margin-left: 0.5rem;
}

.comment-admin-hint[title] {
  cursor: help;
}

/* Form Styles */
.post-form {
  margin-top: 1rem;
}

.form-row {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.char-counter {
  display: block;
  text-align: right;
  margin-bottom: 0.5rem;
  font-weight: normal;
  color: #999;
}

/* Drop Zone */
#dropZone {
  border: 2px dashed #ccc;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}

#dropZone:hover {
  border-color: #FFCB2B;
  background: #fffef5;
}

#fileSizeError {
  color: #E74C3C;
  display: none;
}

#filePreview {
  margin-top: 0.5rem;
  display: none;
}

/* Edit Form */
.edit-form-container {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

/* Video/Audio Embed */
.video-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-top: 56.25%; /* 16:9 aspect ratio */
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Click-to-play YouTube embed */
.yt-video {
  position: relative;
  cursor: pointer;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

.yt-video::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}

.yt-video img,
.yt-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.yt-video img {
  object-fit: cover;
}

.yt-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 68px;
  height: 48px;
  background: #ff0000;
  transform: translate(-50%, -50%);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.yt-play::after {
  content: "";
  position: absolute;
  left: 27px;
  top: 14px;
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent #fff;
}

.yt-video:hover .yt-play,
.yt-video:focus-visible .yt-play {
  transform: translate(-50%, -50%) scale(1.06);
}

.yt-video:focus-visible {
  outline: 3px solid rgba(255, 203, 43, 0.85);
  outline-offset: 2px;
}

.audio-controls {
  width: 100%;
}

/* Inline form styles */
form[style*="display: inline"],
form[style*="display:inline"] {
  display: inline !important;
}

/* Hidden elements */
input[style*="display:none"],
input[style*="display: none"] {
  display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
  .comment-form {
    flex-direction: column;
  }
  
  .comment-form button {
    width: 100%;
  }
  
  .form-row {
    flex-direction: column;
  }
}


