/**
 * Recent Replays Module Styles
 *
 * Clean, simplified design matching Upcoming Sessions.
 */

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

/* Replay Item - 2 Column Layout (Badge + Content) */
.cpw-replay-item {
    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);
}

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

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

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

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

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

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

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

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

/* Replay Date */
.cpw-replay-date {
    font-size: 16px;
    color: #4b5563;
    margin-bottom: 8px;
}

/* Replay Link - Bold, 16px, Academy Blue */
.cpw-replay-link {
    font-size: 16px;
    font-weight: 600;
    color: #5A9FE0;
    text-decoration: none;
    transition: color 0.15s ease;
}

.cpw-replay-link:hover {
    color: #4589C9;
    text-decoration: none;
}

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

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

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

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

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

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

    .cpw-replay-date {
        font-size: 14px;
    }

    .cpw-replay-link {
        font-size: 14px;
    }
}

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

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

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

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

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

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