/**
 * Styles for the Trainer Modal
 */

/* Modal Container */
.ecm-trainer-modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

.ecm-trainer-modal-container.active {
    opacity: 1;
    visibility: visible;
}

/* Modal */
.ecm-trainer-modal {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.ecm-trainer-modal.show {
    transform: translateY(0);
    opacity: 1;
}

/* Close Button */
.ecm-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 36px;
    font-weight: bold;
    color: #777;
    cursor: pointer;
    z-index: 1;
    line-height: 1;
    transition: color 0.2s ease;
}

.ecm-modal-close:hover {
    color: #333;
}

/* Modal Content */
.ecm-modal-content {
    display: flex;
    flex-direction: row;
    height: 100%;
    max-height: 90vh;
    overflow: hidden;
}

/* Modal Left Side (Image) */
.ecm-modal-left {
    flex: 0 0 40%;
    background-color: #f5f5f5;
    position: relative;
    overflow: hidden;
    max-width: 600px;
    max-height: 400px;
}

.ecm-modal-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ecm-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Image Placeholder */
.ecm-modal-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #e0e0e0;
    font-size: 120px;
    font-weight: bold;
    color: #777;
}

/* Modal Right Side (Content) */
.ecm-modal-right {
    flex: 0 0 60%;
    padding: 40px;
    overflow-y: auto;
    max-height: 90vh;
    box-sizing: border-box;
}

/* Modal Text Elements */
.ecm-modal-name {
    font-size: 32px;
    font-weight: bold;
    margin: 0 0 10px;
    color: #333;
}

.ecm-modal-position {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
    font-style: italic;
}

.ecm-modal-description {
    margin-bottom: 25px;
    line-height: 1.6;
    color: #444;
}

/* Contact Information */
.ecm-modal-contact {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.ecm-modal-contact > div {
    margin-bottom: 10px;
    font-size: 16px;
}

.ecm-modal-contact a {
    color: #0073aa;
    text-decoration: none;
}

.ecm-modal-contact a:hover {
    text-decoration: underline;
}

.ecm-modal-contact-label {
    font-weight: bold;
    margin-right: 5px;
}


/* Modal Buttons */
.ecm-modal-buttons {
    display: flex;
    gap: 15px;
}

.ecm-modal-profile-btn,
.ecm-modal-courses-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.ecm-modal-profile-btn:hover,
.ecm-modal-courses-btn:hover {
    background-color: #005d87;
}

/* Make Grid Items with Modal Clickable */
.ecm-trainer-modal-enabled .ecm-trainer-item {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ecm-trainer-modal-enabled .ecm-trainer-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Body Class when Modal is Open */
body.ecm-modal-open {
    overflow: hidden;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .ecm-modal-content {
        flex-direction: column;
    }
    
    .ecm-modal-left {
        flex: 0 0 auto;
        height: 400px;
    }
    
    .ecm-modal-right {
        flex: 1;
        padding: 30px;
    }
    
    .ecm-modal-name {
        font-size: 24px;
    }
    
    .ecm-modal-position {
        font-size: 16px;
    }
    
    .ecm-modal-buttons {
        flex-direction: column;
    }
    
    .ecm-modal-profile-btn,
    .ecm-modal-courses-btn {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .ecm-modal-left {
        height: 400px;
    }
    
    .ecm-modal-right {
        padding: 20px;
    }
    
    .ecm-modal-social {
        flex-wrap: wrap;
    }
}

/* Animation for Modal Elements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ecm-modal-name,
.ecm-modal-position,
.ecm-modal-description,
.ecm-modal-contact,
.ecm-modal-social,
.ecm-modal-buttons {
    animation: fadeInUp 0.5s ease forwards;
}

.ecm-modal-position {
    animation-delay: 0.1s;
}

.ecm-modal-description {
    animation-delay: 0.2s;
}

.ecm-modal-contact {
    animation-delay: 0.3s;
}

.ecm-modal-social {
    animation-delay: 0.4s;
}

.ecm-modal-buttons {
    animation-delay: 0.5s;
}

/**
 * Minimale CSS für SVG Social Media Icons
 */

/* Social Media Icons Container */
.ecm-modal-social {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

/* Social Media Icon Basis-Stil */
.ecm-modal-social-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #f0f0f0;
  color: #333;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.ecm-modal-social-icon:hover {
  background-color: #0073aa;
  color: #fff;
}

/* Icon-Größen */
.ecm-modal-social-icon svg {
  width: 20px;
  height: 20px;
}

/* Spezifische Farben für verschiedene Social Media Plattformen - optional */
.ecm-facebook {
  color: #1877f2;
}

.ecm-instagram {
  color: #e4405f;
}

.ecm-youtube {
  color: #ff0000;
}

.ecm-twitter {
  color: #1da1f2;
}

.ecm-linkedin {
  color: #0077b5;
}

.ecm-xing {
  color: #006567;
}

.ecm-whatsapp {
  color: #25d366;
}

/* Gemeinsamer Hover-Effekt für alle Icons */
.ecm-modal-social-icon:hover {
  background-color: #0073aa;
  color: #fff !important;
}