﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/*body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow: hidden;
}*/

/* Background */
/*.app-background {
    position: fixed;
    inset: 0;
    z-index: 1;
}
*/
/*.background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}*/

/* Popup Overlay */
/*.popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    animation: fadeIn 0.3s ease-out;
}*/

/*.popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}*/

.popup-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
}

.popup-card {
    width: 100%;
    max-width: 56rem;
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(71, 85, 105, 0.5);
    color: white;
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: zoomIn 0.3s ease-out;
}

/* Header */
.popup-header {
    position: relative;
    padding: 1.5rem 1.5rem 1rem;
}

.close-button {
    position: absolute;
    right: 0.75rem;
    top: 0.75rem;
    background: transparent;
    border: none;
    color: rgb(148, 163, 184);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

    .close-button:hover {
        color: white;
        background: rgba(51, 65, 85, 0.8);
        transform: scale(1.1);
    }

.popup-title {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    padding-right: 2rem;
    background: linear-gradient(to right, #facc15, #fbbf24);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.title-accent {
    width: 4rem;
    height: 0.25rem;
    background: linear-gradient(to right, #facc15, #f59e0b);
    border-radius: 9999px;
    margin: 0 auto;
}

/* Content */
.popup-content {
    padding: 0 1.5rem 1.5rem;
}

.coaching-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.coaching-card {
    position: relative;
    padding: 1rem;
    border-radius: 0.75rem;
    background: linear-gradient(to right, rgba(51, 65, 85, 0.4), rgba(71, 85, 105, 0.4));
    border: 1px solid rgba(71, 85, 105, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    animation: slideUp 0.3s ease-out;
}

    .coaching-card:nth-child(1) {
        animation-delay: 0ms;
    }

    .coaching-card:nth-child(2) {
        animation-delay: 100ms;
    }

    .coaching-card:nth-child(3) {
        animation-delay: 200ms;
    }

    .coaching-card:hover {
        background: linear-gradient(to right, rgba(71, 85, 105, 0.6), rgba(100, 116, 139, 0.6));
        border-color: rgba(250, 204, 21, 0.5);
        box-shadow: 0 10px 25px -3px rgba(250, 204, 21, 0.1);
        transform: translateY(-0.25rem);
    }

.light-mode .coaching-card {
    position: relative;
    padding: 1rem;
    border-radius: 0.75rem;
    background: #F6F6F6;
    /*background: linear-gradient(to right, rgba(0,0,0, 0.4), rgba(0,0,0, 0.4));*/
    /*border: 1px solid rgba(71, 85, 105, 0.3);*/
    cursor: pointer;
    transition: all 0.3s ease;
    animation: slideUp 0.3s ease-out;
}

.card-glow {
    position: absolute;
    inset: 0;
    border-radius: 0.75rem;
    background: linear-gradient(to right, rgba(250, 204, 21, 0.05), rgba(251, 191, 36, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.light-mode .card-glow {
    position: absolute;
    inset: 0;
    border-radius: 0.75rem;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.coaching-card:hover .card-glow {
    opacity: 1;
}

.card-content {
    position: relative;
    z-index: 10;
}

.image-container {
    position: relative;
    aspect-ratio: 4/3;
    width: 100%;
    margin-bottom: 0.75rem;
}

.coaching-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.coaching-card:hover .coaching-image {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 0.5rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.coaching-card:hover .play-overlay {
    opacity: 1;
}

.play-button {
    width: 3rem;
    height: 3rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(30, 41, 59);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: scale(0.75);
    transition: transform 0.3s ease;
}

.coaching-card:hover .play-button {
    transform: scale(1);
}

.play-button svg {
    margin-left: 0.125rem;
}

.card-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.coaching-card-title {
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.25;
    min-height: 2.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.coaching-card:hover .coaching-card-title {
    color: #fef3c7;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: rgb(148, 163, 184);
}

.light-mode .card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: rgb(0, 0, 0);
}

.author-avatar {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: linear-gradient(to bottom right, #facc15, #f59e0b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 500;
    color: white;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.author-name {
    font-weight: 500;
}

.separator {
    color: rgb(100, 116, 139);
}

.card-tags {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.coachingTag {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    background: rgba(71, 85, 105, 0.8);
    border: 1px solid rgba(100, 116, 139, 0.3);
    border-radius: 9999px;
    color: rgb(203, 213, 225);
    transition: all 0.2s ease;
}

    .coachingTag:hover {
        background: rgba(100, 116, 139, 0.8);
        transform: scale(1.05);
    }

/* Actions */
.popup-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(71, 85, 105, 0.5);
}

.light-mode .popup-actions {
    border-top: 1px solid rgba(71, 85, 105, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/*.custom-checkbox {
    width: 1rem;
    height: 1rem;
    border: 1px solid rgb(148, 163, 184);
    border-radius: 0.25rem;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .custom-checkbox:checked {
        background: linear-gradient(to right, #facc15, #f59e0b);
        border-color: transparent;
    }

    .custom-checkbox:hover {
        transform: scale(1.1);
    }

.checkbox-label {
    font-size: 0.875rem;
    color: rgb(203, 213, 225);
    cursor: pointer;
    transition: color 0.2s ease;
}

.checkbox-group:hover .checkbox-label {
    color: white;
}*/

.lets-go-button {
    background: #2563eb;
    color: white;
    padding: 0.5rem 2rem;
    border: none;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

    .lets-go-button:hover {
        background: #1d4ed8;
        box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.25);
        transform: scale(1.05);
    }

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(1rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hidden state */
.popup-overlay.hidden {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .coaching-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .popup-card {
        margin: 0.5rem;
    }

    .popup-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .lets-go-button {
        width: 100%;
    }
}
