/**
 * Professional UX/UI Enhancements - Final Polish
 * Additional improvements for buttons, ratings, and interactions
 */

/* Enhanced Sidebar Rating */
.sidebar-rating-display {
    margin-bottom: var(--space-lg, 24px);
    background: var(--color-bg-elevated, #ffffff);
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: var(--radius-lg, 14px);
    padding: var(--space-lg, 24px);
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.08));
}

.sidebar-rating-top {
    display: flex;
    align-items: center;
    gap: var(--space-lg, 24px);
    margin-bottom: var(--space-md, 16px);
}

.rating-value-sidebar {
    font-size: 52px;
    font-weight: 800;
    color: var(--rs-green, #0064E0);
    line-height: 0.9;
    letter-spacing: -0.02em;
}

.rating-max-sidebar {
    font-size: 16px;
    color: var(--color-text-light, #9ca3af);
    font-weight: 600;
}

.sidebar-rating-stars {
    color: var(--rs-green);
    font-size: 20px;
    margin-bottom: 4px;
}

.sidebar-rating-stars .fas {
    color: var(--rs-green);
}

.sidebar-rating-count {
    font-size: 13px;
    color: var(--color-text-secondary, #6b7280);
    font-weight: 500;
}

/* Enhanced Leave Review Button */
.btn-leave-review {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm, 12px);
    width: 100%;
    padding: 16px var(--space-lg, 24px);
    background: linear-gradient(135deg, var(--rs-green) 0%, var(--rs-green-dark) 100%);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    border-radius: var(--radius-lg, 14px);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    box-shadow: 0 2px 8px rgba(0, 181, 103, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.btn-leave-review::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-leave-review:hover::before {
    width: 300px;
    height: 300px;
}

.btn-leave-review:hover {
    background: linear-gradient(135deg, var(--rs-green-dark) 0%, #008f46 100%);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 181, 103, 0.4);
}

/* Enhanced CTA Buttons */
.listing-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm, 12px);
    padding: 18px var(--space-lg, 24px);
    background: linear-gradient(135deg, var(--rs-green, #0064E0) 0%, #0143B5 100%);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.3px;
    box-shadow: 0 2px 6px rgba(0, 166, 81, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.listing-cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.listing-cta-btn:hover::before {
    left: 100%;
}

.listing-cta-btn:first-child {
    border-top-left-radius: var(--radius-lg, 14px);
    border-top-right-radius: var(--radius-lg, 14px);
}

.listing-cta-btn:last-child {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom-left-radius: var(--radius-lg, 14px);
    border-bottom-right-radius: var(--radius-lg, 14px);
}

.listing-cta-btn:hover {
    background: linear-gradient(135deg, var(--rs-green-dark, #0143B5) 0%, #009450 100%);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 166, 81, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.listing-cta-btn i {
    font-size: 16px;
}

.listing-cta-btn span {
    color: #fff;
    font-weight: 700;
}