/* Modal Transitions */
.modal-enter-active, .modal-leave-active {
  transition: opacity .3s ease;
}

.modal-enter, .modal-leave-to {
  opacity: 0;
}

.modal-mask {
  position: fixed;
  z-index: 9998;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, .5);
  display: flex;
  transition: opacity .3s ease;
}

.modal-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.modal-overlay {
  background: rgba(0, 0, 0, 0.5);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.modal-window {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.33);
  position: relative;
  max-width: 90%;
  max-height: 90%;
  overflow-y: auto;
  transform: scale(0.7);
  transition: all 0.3s ease;
}

.modal-window.open {
  transform: scale(1);
}

.modal-window__close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1000;
}

.modal-window__close img {
  width: 20px;
  height: 20px;
}

.modal-window__content {
  padding: 30px;
  max-width: 800px;
}

/* Modal Card Styles */
.modal__card {
  display: flex;
  gap: 30px;
}

.modal__card-aside {
  flex-shrink: 0;
  width: 200px;
}

.modal__card-portrait {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
}

.modal__card-portrait-title {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.modal__card-content {
  flex: 1;
}

.modal__card-content h2 {
  margin: 0 0 10px 0;
  font-size: 24px;
  color: #333;
}

.modal__card-content h3 {
  margin: 5px 0;
  font-size: 16px;
  color: #666;
  font-weight: normal;
}

.modal__card-content p {
  line-height: 1.6;
  color: #333;
  margin-top: 20px;
}

/* Question Modal Styles */
.modal__footer {
  padding: 20px 0;
}

.modal__highlight-text {
  font-size: 20px;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
  line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 768px) {
  .modal__card {
    flex-direction: column;
    gap: 20px;
  }
  
  .modal__card-aside {
    width: 100%;
    text-align: center;
  }
  
  .modal-window__content {
    padding: 20px;
  }
  
  .modal-window {
    max-width: 95%;
    max-height: 95%;
  }
} 