/**
 * Modal Styles
 * Modern modal/popup for team members and other content
 *
 * @package GRPCMedia
 */

/* ===============================================
   MODAL BASE
   =============================================== */

.grpcmedia-team-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 16px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: scale(0.9) translateY(-20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-content.modal-show {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* ===============================================
   MODAL CLOSE BUTTON
   =============================================== */

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 40px;
  height: 40px;
  padding: 0;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #e0e0e0;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: #e74c3c;
  border-color: #e74c3c;
  transform: rotate(90deg);
}

.modal-close svg {
  width: 20px;
  height: 20px;
  color: #333;
  transition: color 0.3s ease;
}

.modal-close:hover svg {
  color: #fff;
}

/* ===============================================
   MODAL BODY
   =============================================== */

.modal-body {
  padding: 40px;
  text-align: center;
}

.modal-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 4px solid var(--grpc-primary, #2F2483);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.modal-name {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.modal-position {
  font-size: 16px;
  color: var(--grpc-primary, #2F2483);
  font-weight: 600;
  margin-bottom: 20px;
}

.modal-bio {
  font-size: 15px;
  line-height: 1.7;
  color: #666;
  margin-bottom: 20px;
  text-align: left;
}

.modal-experience,
.modal-skills {
  font-size: 14px;
  color: #555;
  margin-bottom: 12px;
  text-align: left;
}

.modal-experience strong,
.modal-skills strong {
  color: #333;
}

/* ===============================================
   MODAL CONTACT
   =============================================== */

.modal-contact {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
  flex-wrap: wrap;
}

.modal-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #f8f9fa;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.modal-contact-item:hover {
  background: var(--grpc-primary, #2F2483);
  border-color: var(--grpc-primary, #2F2483);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(47, 36, 131, 0.25);
}

.modal-contact-item i {
  font-size: 16px;
}

/* ===============================================
   BODY MODAL OPEN STATE
   =============================================== */

body.modal-open {
  overflow: hidden;
}

/* ===============================================
   MODAL SCROLLBAR
   =============================================== */

.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 0 16px 16px 0;
}

.modal-content::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: var(--grpc-primary, #2F2483);
}

/* ===============================================
   RESPONSIVE
   =============================================== */

@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    max-height: 85vh;
  }

  .modal-body {
    padding: 30px 20px;
  }

  .modal-name {
    font-size: 24px;
  }

  .modal-position {
    font-size: 14px;
  }

  .modal-contact {
    flex-direction: column;
  }

  .modal-contact-item {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .modal-image {
    width: 120px;
    height: 120px;
  }

  .modal-name {
    font-size: 20px;
  }

  .modal-close {
    width: 36px;
    height: 36px;
    top: 12px;
    right: 12px;
  }

  .modal-close svg {
    width: 18px;
    height: 18px;
  }
}


