/**
 * Blackboard Styles for Meets Tutor
 * 
 * Positioned on right side (like tutor-v2)
 * Canvas shifts left when blackboard appears
 */

.meets-blackboard {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 350px;
  min-height: 350px;
  max-height: 450px;
  background: #1a3d2e;  /* Dark green blackboard from tutor-v2 */
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  z-index: 100; /* Above canvas but within screen share container */
  display: flex;
  flex-direction: column;
  opacity: 1;
  /* Simple transitions - no animation to avoid double appearance */
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              min-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.5s ease-in-out;
  pointer-events: auto;
  overflow: hidden;
}

.meets-blackboard.hidden {
  opacity: 0;
  pointer-events: none;
  /* Slide off-screen when hidden */
  transform: translateY(-20px);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

/* Slide-in animation */
@keyframes slideInBounce {
  0% {
    top: -500px;
    opacity: 0;
  }
  60% {
    top: 10px;
    opacity: 1;
  }
  80% {
    top: -5px;
  }
  100% {
    top: 3px;
    opacity: 1;
  }
}

.meets-blackboard.slide-in {
  animation: slideInBounce 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Fade-in for content */
@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.meets-blackboard.fade-in {
  animation: fadeInScale 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Blackboard Header */
.blackboard-header {
  background: rgba(0, 0, 0, 0.3);
  padding: 12px 16px;
  cursor: default;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.blackboard-title {
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.3px;
}

.blackboard-controls {
  display: flex;
  gap: 8px;
}

.blackboard-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  font-size: 14px;
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.blackboard-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.blackboard-btn:active {
  transform: translateY(0);
}

.blackboard-content {
  padding: 16px;
  color: #e8f4ea;  /* Chalk color from tutor-v2 */
  font-family: 'Architects Daughter', cursive;
  font-size: 14px;
  line-height: 1.6;
  overflow-y: auto;
  flex: 1;
  min-height: 120px;
  max-height: 400px;
}

.blackboard-content::-webkit-scrollbar {
  width: 6px;
}

.blackboard-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}

.blackboard-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.chalk-line {
  margin: 12px 0;
  animation: chalkWrite 600ms cubic-bezier(0, 0, 0.2, 1);
  animation-fill-mode: both;
}

@keyframes chalkWrite {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .meets-blackboard {
    width: 300px;
    min-height: 300px;
  }
  
  .blackboard-content {
    padding: 12px;
    font-size: 13px;
  }
  
  .blackboard-header {
    padding: 10px 12px;
  }
  
  .blackboard-title {
    font-size: 12px;
  }
}

@media (max-width: 768px) {
  .meets-blackboard {
    width: 280px;
    min-height: 280px;
  }
  
  .blackboard-content {
    padding: 10px;
    font-size: 12px;
  }
}

