/**
 * School Kudos Core - Kudos Single View Styles
 *
 * Enhances the single kudos post view with breadcrumb-style header and back button.
 *
 * @package SchoolKudosCore
 * @since 1.0.0
 */

/* Hide default breadcrumbs and header on single kudos view */
body.sk-kudos-single-view .bb-yoast-breadcrumbs,
body.sk-kudos-single-view .bb-single-main-nav.groups-nav,
body.sk-kudos-single-view #item-header {
    display: none !important;
}

/* ==========================================================================
   Breadcrumb-Style Header for Single View
   ========================================================================== */

.sk-single-breadcrumb-header {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    margin: 0 0 20px 0;
    border: 1px solid var(--bb-content-border-color);
    border-radius: 8px;
}

.sk-single-breadcrumb-header .sk-breadcrumb-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.sk-back-button::after {
    content: '';
    width: 1px;
    height: 24px;
    background-color: #9ca3af;
    flex-shrink: 0;
    margin-left: 12px;
}

.sk-breadcrumb-items {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.sk-breadcrumb-item {
    font-size: 14px;
    line-height: 1.4;
}

.sk-breadcrumb-link {
    text-decoration: none;
    font-weight: 500;
}

.sk-single-breadcrumb-header .sk-breadcrumb-item.sk-post-title {
    font-weight: 500;
    max-width: 500px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sk-single-breadcrumb-header .sk-breadcrumb-separator {
    color: #6b7280;
    font-size: 14px;
    user-select: none;
    font-weight: 400;
}

.sk-back-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 0;
}

.sk-single-breadcrumb-header .sk-back-button .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .sk-single-breadcrumb-header .sk-breadcrumb-left {
        gap: 0;
    }

    .sk-back-button::after {
        display: none;
    }

    .sk-breadcrumb-items {
        display: none;
    }

    .sk-back-button {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 14px;
    }

    .sk-single-breadcrumb-header .sk-back-button .dashicons {
        font-size: 16px;
        width: 16px;
        height: 16px;
    }

    .sk-single-breadcrumb-header .sk-back-button .sk-back-text {
        display: inline;
    }
}

.therisereport-kudos-post-meta-footer .therisereport-tags-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

body .therisereport-kudos-post-meta-footer .team-or-group-name {
    font-size: 12px;
}

.group-kudos-single .therisereport-kudos-post-meta-footer {
    align-items: flex-end;
}
