/* Modal overlay - elhomályosított háttér */
.trainer-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.5s ease;
}

.trainer-modal.active {
    display: flex;
}

/* Modal content box - egységes méret */
.trainer-modal-content {
    background: #f8f8f8;
    border-radius: 20px;
    padding: 3rem;
    width: 90%;
    max-width: 600px;
    height: 450px; /* Fix magasság */
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.6s ease;
    display: flex;
    flex-direction: column;
}

/* Close gomb - jobb felső sarok */
.trainer-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 2.5rem;
    color: #666;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
    font-weight: 300;
}

.trainer-modal-close:hover {
    color: #CD853F;
}

/* Modal cím */
.trainer-modal-content h3 {
    color: #CD853F;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    padding-right: 2rem;
    font-family: 'Montserrat', sans-serif;

}

/* Modal body - scrollozható tartalom */
.trainer-modal-body {
    flex: 1;
    overflow-y: auto;
    padding-right: 1rem;
    text-align: justify;
}

.trainer-modal-body p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
}

/* Scrollbar stílus */
.trainer-modal-body::-webkit-scrollbar {
    width: 8px;
}

.trainer-modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.trainer-modal-body::-webkit-scrollbar-thumb {
    background: #CD853F;
    border-radius: 10px;
}

.trainer-modal-body::-webkit-scrollbar-thumb:hover {
    background: #B8733D;
}

/* Animációk */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 767.98px) {
    .trainer-modal-content {
        width: 95%;
        height: 60vh;
        padding: 2rem;
        border-radius: 15px;
    }
    
    .trainer-modal-close {
        top: 1rem;
        right: 1.5rem;
        font-size: 2rem;
    }
    
    .trainer-modal-content h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .trainer-modal-body p {
        font-size: 0.95rem;
    }
}

@media (max-width: 575.98px) {
    .trainer-modal-content {
        height: 60vh;
        padding: 1.5rem;
    }
}