/**
 * Upcoming Sessions Module Styles
 *
 * Clean, simplified design with icon badges on left.
 */

.cpw-upcoming-sessions {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Session Card - 2 Column Layout (Badge + Content) */
.cpw-session-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Featured card (first item) gets slight emphasis */
.cpw-session-card.cpw-session-featured {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* Session Type Badge Wrapper (Left) */
.cpw-session-badge-wrapper {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

/* Badge Icon Container */
.cpw-session-badge {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.cpw-session-badge .badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cpw-session-badge .badge-icon svg {
    width: 30px;
    height: 30px;
}

/* Badge Label */
.cpw-badge-label {
    font-size: 10px;
    color: #6b7280;
    text-align: center;
    white-space: nowrap;
}

/* Session Content */
.cpw-session-content {
    flex: 1;
    min-width: 0;
}

/* Title */
.cpw-session-title {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.3;
}

/* Date & Time Meta */
.cpw-session-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.cpw-session-datetime {
    font-size: 16px;
    color: #4b5563;
}

/* Relative Time Indicators */
.cpw-session-relative {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
}

.cpw-session-relative.cpw-relative-today {
    color: #C05746;
    background: #FCEEED;
}

.cpw-session-relative.cpw-relative-soon {
    color: #D69E2E;
    background: #FEF9E7;
}

.cpw-session-relative.cpw-relative-upcoming {
    color: #5A9FE0;
    background: #EBF4FC;
}

/* Description */
.cpw-session-description {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
}

/* Join Button - Academy Blue */
.cpw-session-button {
    display: inline-block;
    padding: 10px 20px;
    background: #5A9FE0 !important;
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.cpw-session-button:hover {
    background: #4589C9 !important;
    color: #fff !important;
    text-decoration: none !important;
}

/* Spacing between session cards */
.cpw-session-card + .cpw-session-card {
    margin-top: 12px;
}

/* Empty and Error States */
.cpw-upcoming-empty,
.cpw-upcoming-error {
    padding: 24px;
    background: #f9fafb;
    border-radius: 8px;
    text-align: center;
    color: #6b7280;
}

.cpw-upcoming-error {
    background: #fef2f2;
    color: #991b1b;
}

.cpw-upcoming-error .admin-error {
    margin-top: 8px;
    font-size: 12px;
    color: #b91c1c;
}

/* Responsive */
@media (max-width: 600px) {
    .cpw-session-card {
        gap: 12px;
        padding: 16px;
    }

    .cpw-session-badge {
        width: 48px;
        height: 48px;
    }

    .cpw-session-badge .badge-icon svg {
        width: 24px;
        height: 24px;
    }

    .cpw-session-datetime {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .cpw-session-card {
        flex-direction: column;
        align-items: stretch;
    }

    .cpw-session-badge-wrapper {
        flex-direction: row;
        width: 100%;
        gap: 8px;
        padding-bottom: 8px;
        border-bottom: 1px solid #f1f5f9;
        margin-bottom: 4px;
    }

    .cpw-session-badge {
        width: 40px;
        height: 40px;
    }

    .cpw-badge-label {
        font-size: 12px;
    }

    .cpw-session-content {
        flex-basis: 100%;
    }

    .cpw-session-title {
        font-size: 16px;
    }

    .cpw-session-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}
