/*

46. CSS för inspelade klasser på kontosidan

*/




/* Inspelade klasser - Tom sida */

.inspelade-klasser-empty {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-message {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #666;
}

.button-studio-online {
    display: inline-block;
    background: var(--accent, #6A8D73);
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.button-studio-online:hover {
    background: var(--accent-dark, #5a7a63);
    color: white;
}

/* Inspelade klasser - Lista */
.inspelade-klasser-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 1rem;
}

.inspelad-klass-item {
    background: var(--base-2, #f7f8f9);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.klass-title {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    color: var(--accent, #6A8D73);
}

.klass-instruktor {
    color: var(--contrast, #A89F91);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.klass-description {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: var(--contrast-2, #666);
}

/* Video */
.klass-video {
    width: 98%;
    margin: 0 auto 1.5rem auto;
    cursor: pointer;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: auto;
    border-radius: 8px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
}

.video-play-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 54%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-left: 25px solid white;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
}

.klass-video:hover .video-play-button {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(0, 0, 0, 0.9);
}

/* Meta information */
.klass-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--contrast, #A89F91);
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Lightbox */
.video-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.video-lightbox.active {
    display: flex;
}

.video-lightbox-content {
    width: 90%;
    max-width: 1200px;
    aspect-ratio: 16/9;
    position: relative;
}

.video-lightbox iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 10000;
}

.video-lightbox-close::before,
.video-lightbox-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 3px;
    background: white;
}

.video-lightbox-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.video-lightbox-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* Responsiv */
@media (max-width: 768px) {
    .inspelad-klass-item {
        padding: 1.5rem;
    }
    
    .klass-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .video-lightbox-content {
        width: 95%;
    }
    
    .video-lightbox-close {
        top: 10px;
        right: 20px;
    }
}