/* Profile section headings also carry Bootstrap's text-primary utility. */
.profile-page-detail .section-title {
    color: #0d33cc !important;
}

.profile-page-detail .review-content {
    color: #1D1D1B;
}

/* Sticky Sidebar Styles */
.sticky-sidebar {
    position: sticky;
    top: 1rem;
    height: fit-content;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
}

.sidebar-video-container {
    width: 100%;
}

.sidebar-video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    overflow: hidden;
    border-radius: 8px;
}

.sidebar-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

.sidebar-actions .btn {
    font-size: 0.875rem;
    padding: 0.6rem 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.sidebar-actions .btn-primary {
    background: linear-gradient(135deg, #F8606A 0%, #e54951 100%);
    border: none;
    color: white;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(248, 96, 106, 0.35);
}

.sidebar-actions .btn-primary:hover {
    background: linear-gradient(135deg, #e54951 0%, #d43d45 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(248, 96, 106, 0.45);
}

.sidebar-actions .btn-outline-primary {
    background: transparent;
    border: 2px solid #1E3D6B;
    color: #0d33cc;
}

.sidebar-actions .btn-outline-primary:hover {
    background: #F8606A;
    border-color: #F8606A;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(248, 96, 106, 0.3);
}

.sidebar-rating .text-muted a {
    color: #ff5703 !important;
    font-weight: 500;
}

.sidebar-rating .text-muted a:hover {
    color: #e54951 !important;
    text-decoration: underline !important;
}

.star-rating-display-sidebar {
    position: relative;
    display: inline-block;
    font-size: 1.4rem;
    line-height: 1;
}

.star-rating-display-sidebar .stars-background {
    color: #e9ecef;
}

.star-rating-display-sidebar .stars-filled {
    position: absolute;
    top: 0;
    left: 0;
    color: #ffc107;
    overflow: hidden;
}

/* Mobile Rating Section */
.rating-section-mobile {
    padding: 0.5rem 0;
}

.rating-section-mobile .text-muted a:hover {
    color: #e54951 !important;
    text-decoration: underline !important;
}

.star-rating-display-mobile {
    position: relative;
    display: inline-block;
    font-size: 1.4rem;
    line-height: 1;
}

.star-rating-display-mobile .stars-background {
    color: #e9ecef;
}

.star-rating-display-mobile .stars-filled {
    position: absolute;
    top: 0;
    left: 0;
    color: #ffc107;
    overflow: hidden;
}

/* Mobile Styles */
@media (max-width: 991.98px) {
    .sticky-sidebar {
        position: relative;
        top: auto;
        max-height: none;
        overflow-y: visible;
    }

    .sidebar-video-wrapper {
        padding-bottom: 45%;
        /* Adjust aspect ratio for mobile */
    }

    /* Hide sidebar on mobile - content moved to mobile sections */
    .sidebar-video-container,
    .sidebar-rating,
    .sidebar-actions {
        display: none;
    }

    /* Mobile action bar styling */
    .mobile-action-bar {
        box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .mobile-action-bar .btn {
        font-size: 0.75rem;
        padding: 0.6rem 0.8rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .mobile-action-bar .btn-primary {
        background: linear-gradient(135deg, #F8606A 0%, #e54951 100%);
        border: none;
        color: white;
        box-shadow: 0 3px 10px rgba(248, 96, 106, 0.35);
    }

    .mobile-action-bar .btn-outline-primary {
        background: transparent;
        border: 2px solid #1E3D6B;
        color: #0d33cc;
    }

    /* Add bottom padding to body to account for fixed action bar */
    body {
        padding-bottom: 80px;
    }
}

@media (max-width: 576px) {
    .sticky-sidebar .bg-white {
        margin-bottom: 1rem !important;
    }

    .sidebar-actions .btn {
        font-size: 0.8rem;
        padding: 0.5rem 0.8rem;
    }
}
