/* MedCena Reviews - Frontend Styles */
.star-list{
	float: right;
	top: 0px;
	position: absolute;
	right: 0;
}


.star-list .badge-rating{
	font-size:14px;
	font-weight:700;
}
.star-list .badge-rating{ 
	top: 1px; 
	position: relative;
}
.medcena-google-reviews {
    margin: 30px 0;
    padding: 25px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Header */
.reviews-header {
    margin-bottom: 25px;
}

.reviews-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px;
    color: #1a1a1a;
}

.reviews-title .google-icon {
    flex-shrink: 0;
}

/* Summary */
.reviews-summary {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.rating-big {
    text-align: center;
    min-width: 120px;
}

.rating-number {
    display: block;
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    color: #1a1a1a;
}

.rating-stars {
    margin: 8px 0;
}

.rating-count {
    font-size: 14px;
    color: #666;
}

/* Stars */
.star {
    font-size: 18px;
}

.star.full {
    color: #fbbc04;
}

.star.half {
    color: #fbbc04;
    position: relative;
}

.star.empty {
    color: #dadce0;
}

/* Rating Distribution Bars */
.rating-distribution {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

.rating-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.bar-label {
    width: 15px;
    font-size: 13px;
    color: #666;
    text-align: right;
}

.bar-track {
    flex: 1;
    height: 8px;
    background: #e8eaed;
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: #fbbc04;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.bar-count {
    width: 35px;
    font-size: 12px;
    color: #666;
    text-align: right;
}

/* Reviews List */
.reviews-list {
    margin-top: 25px;
}

.single-review {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.single-review:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.author-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-photo.placeholder {
    background: #4285f4;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
}

.author-info {
    flex: 1;
    min-width: 0;
}

.author-name {
    display: block;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    margin-bottom: 4px;
}

a.author-name:hover {
    text-decoration: underline;
}

.review-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.review-stars .star {
    font-size: 14px;
}

.review-date {
    font-size: 13px;
    color: #666;
}

.review-text {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    word-wrap: break-word;
}

/* Owner Response */
.owner-response {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #4285f4;
}

.response-header {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.response-text {
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

/* Review Footer */
.review-footer {
    margin-top: 10px;
}

.likes {
    font-size: 13px;
    color: #666;
}

/* Load More */
.reviews-load-more {
    text-align: center;
    margin-top: 20px;
}

.load-more-btn {
    background: #f8f9fa;
    border: 1px solid #dadce0;
    border-radius: 20px;
    padding: 10px 24px;
    font-size: 14px;
    color: #1a73e8;
    cursor: pointer;
    transition: all 0.2s;
}

.load-more-btn:hover {
    background: #e8f0fe;
    border-color: #1a73e8;
}

.load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Footer */
.reviews-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    text-align: center;
}

.google-link {
    font-size: 14px;
    color: #1a73e8;
    text-decoration: none;
}

.google-link:hover {
    text-decoration: underline;
}

/* No Reviews */
.no-reviews {
    text-align: center;
    color: #666;
    padding: 30px;
}

/* Inline Rating (shortcode) */
.medcena-rating-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.medcena-rating-inline .stars .star {
    font-size: 16px;
}

.medcena-rating-inline .rating-value {
    font-weight: 600;
}

.medcena-rating-inline .count {
    color: #666;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 600px) {
    .medcena-google-reviews {
        padding: 15px;
        margin: 20px -15px;
        border-radius: 0;
    }

    .reviews-summary {
        flex-direction: column;
        gap: 20px;
    }

    .rating-big {
        width: 100%;
    }

    .rating-distribution {
        width: 100%;
        max-width: none;
    }

    .rating-number {
        font-size: 36px;
    }

    .review-header {
        flex-wrap: wrap;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .medcena-google-reviews {
        background: #1e1e1e;
        box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    }

    .reviews-title,
    .rating-number,
    .author-name,
    .review-text,
    .response-text {
        color: #e8e8e8;
    }

    .rating-count,
    .review-date,
    .bar-label,
    .bar-count,
    .likes,
    .response-header {
        color: #999;
    }

    .single-review {
        border-color: #333;
    }

    .bar-track {
        background: #333;
    }

    .owner-response {
        background: #2a2a2a;
    }

    .load-more-btn {
        background: #2a2a2a;
        border-color: #444;
        color: #8ab4f8;
    }

    .load-more-btn:hover {
        background: #333;
    }

    .reviews-footer {
        border-color: #333;
    }
}

/* ================================
   SHORTCODE: medcena_google_rating
   Styl dopasowany do MedCena
   ================================ */

.medcena-google-rating-box {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 3px 0px;
    border-radius: 8px;
}

.medcena-google-rating-box .google-stars {
    display: flex;
    align-items: center;
}

.medcena-google-rating-box .stars-row {
    display: flex;
    gap: 2px;
}

.medcena-google-rating-box .star-icon {
    width: 24px;
    height: 24px;
}

.medcena-google-rating-box .google-rating-number {
    display: flex;
    align-items: baseline;
    color: #fff;
    font-weight: 600;
}

.medcena-google-rating-box .rating-value {
    font-size: 16px;
	font-family:Manrope;
	font-weight:700;
}

.medcena-google-rating-box .rating-max {
    font-size: 14px;
	font-weight:400;
	color:#A1A1A1;
}

/* ================================
   SHORTCODE: medcena_google_reviews_list
   Lista opinii w stylu MedCena
   ================================ */

.medcena-google-reviews-list {
    margin: 20px 0;
}

.medcena-google-reviews-list .reviews-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.medcena-google-reviews-list .reviews-list-header h3 {
	font-size: 24px;
	font-weight: 600;
	margin: 0;
	color: #1a1a1a;
	font-family: Host Grotesk;
}

.medcena-google-reviews-list .reviews-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.medcena-google-reviews-list .review-item {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 20px;
}

.medcena-google-reviews-list .review-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.medcena-google-reviews-list .review-rating-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.medcena-google-reviews-list .stars-row {
    display: flex;
    gap: 2px;
}

.medcena-google-reviews-list .star-icon {
    width: 20px;
    height: 20px;
}

.medcena-google-reviews-list .review-rating-text {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.medcena-google-reviews-list .review-date {
    font-size: 14px;
    color: #888;
}

.medcena-google-reviews-list .review-author {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.medcena-google-reviews-list .review-content {
    margin-bottom: 15px;
}

.medcena-google-reviews-list .review-content p {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    margin: 0;
}

.medcena-google-reviews-list .review-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f0f7ff;
    border: 1px solid #d0e3ff;
    border-radius: 20px;
    font-size: 13px;
    color: #4285F4;
}

.medcena-google-reviews-list .review-badge svg {
    flex-shrink: 0;
}

/* Responsywność */
@media (max-width: 600px) {
    
    .medcena-google-rating-box .star-icon {
        width: 20px;
        height: 20px;
    }
    
    .medcena-google-rating-box .rating-value {
        font-size: 20px;
    }
    
    .medcena-google-reviews-list .review-item {
        padding: 15px;
    }
    
    .medcena-google-reviews-list .review-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* ================================
   SHORTCODE: medcena_rating_badge
   Mały badge z gwiazdką i oceną
   ================================ */

.medcena-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    background: #F9F9FF;
}

.medcena-rating-badge .badge-star {
    flex-shrink: 0;
}

.medcena-rating-badge .badge-rating {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.medcena-rating-badge .badge-link {
    font-size: 14px;
    font-weight: 500;
    color: #391B97;
    text-decoration: none;
    margin-left: 6px;
    white-space: nowrap;
}

.medcena-rating-badge .badge-link:hover {
    text-decoration: underline;
}
