/* Deployment trigger comment */
.exercise-details__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.exercise-details__back-button-wrapper {
    margin-bottom: 2rem;
}

.exercise-details__back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--brand-color-midnight-sky);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
}

.exercise-details__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.exercise-details__left-column {
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.exercise-details__media {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.exercise-details__thumbnail {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgb(0 0 0 / 10%);
}

.exercise-details__video-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--link-color, #06c);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    text-align: center;
    transition: background-color 0.2s;
}

.exercise-details__video-link:hover {
    background-color: var(--link-hover-color, #0052a3);
}

.exercise-details__header {
    margin-bottom: 2rem;
}

.exercise-details__title {
    font-size: 2rem;
    margin: 0 0 1rem;
    color: var(--brand-color-midnight-sky);
}

.exercise-details__difficulty {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.exercise-details__difficulty-label {
    font-weight: 600;
}

.exercise-details__difficulty-value {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.exercise-details__difficulty-value--beginner {
    background-color: #e7f5e7;
    color: #2a7a2a;
}

.exercise-details__difficulty-value--intermediate {
    background-color: #fff3cd;
    color: #856404;
}

.exercise-details__difficulty-value--advanced {
    background-color: #f8d7da;
    color: #721c24;
}

.exercise-details__info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

.exercise-details__info-item h3 {
    font-size: 1.125rem;
    margin: 0 0 0.5rem;
    color: var(--brand-color-midnight-sky);
}

.exercise-details__info-item p {
    margin: 0;
    color: var(--text-color, #666);
}

.exercise-details__description {
    width: 100%;
}

.exercise-details__description h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--brand-color-midnight-sky);
}

.exercise-details__description p {
    line-height: 1.6;
    margin-bottom: 1rem;
    color: var(--text-color, #666);
}

.exercise-details__description strong {
    font-variation-settings: "wght" 700, "wdth" 100;
}

.exercise-details__error {
    text-align: center;
    padding: 4rem 2rem;
}

.exercise-details__error h2 {
    color: var(--error-color, #dc3545);
    margin-bottom: 1rem;
}

/* Video wrapper styles */
.exercise-details__video-wrapper {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
}

.exercise-details__play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.9;
}

.exercise-details__watch-text {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgb(0 0 0 / 50%);
}

/* Modal styles */
.exercise-details__modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0 0 0 / 90%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.exercise-details__modal-content {
    position: relative;
    width: 100%;
    max-width: 1200px;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
}

.exercise-details__modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgb(0 0 0 / 60%);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: white;
    transition: background-color 0.2s;
}

.exercise-details__modal-close:hover {
    background: rgb(0 0 0 / 80%);
}

.exercise-details__modal-video {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
}

.exercise-details__modal-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Mobile styles */
@media (width <= 768px) {
    .exercise-details__container {
        padding: 1rem;
    }

    .exercise-details__back-button-wrapper {
        margin-bottom: 1.5rem;
    }

    .exercise-details__back-button {
        font-size: 0.875rem;
    }

    .exercise-details__wrapper {
        grid-template-columns: 1fr;
    }

    .exercise-details__left-column {
        position: static;
    }

    .exercise-details__info {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .exercise-details__title {
        font-size: 1.5rem;
    }

    .exercise-details__modal-close {
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
    }
}
