/**
 * Reviews Summary CSS
 * Rating container, score, star distribution bars
 *
 * Split from index.css - see CSS_SPLIT_PLAN_NO_IMPORT.md
 */

/* Star rating radio buttons (for review submission) */
[role="radio"] {
  display: inline-block;
  width: 24px;
  height: 24px;
  background-image: url('../icons/empty-star.svg');
  background-size: contain;
  background-repeat: no-repeat;
  text-indent: -9999px;
  overflow: hidden;
  border: none;
  cursor: pointer;
  margin-right: 4px;
}

[role="radio"].active,
[role="radio"].filled {
  background-image: url('../icons/full-star.svg');
}

/* Container principal pentru reviews */
.custom-reviews-container {
    max-width: 100%;
    margin: 0;
    padding: 0;
    font-family: inherit;
}

/* Bloc rezumat cu scorul mediu */
.reviews-summary {
    background: var(--brand-color-surface-sand);
    border: 1px solid var(--brand-color-border-sand);
    border-radius: var(--brand-radius-lg);
    padding: var(--space-3);
    margin-bottom: var(--space-3);
}

.rating-summary {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: center;
}

/* Coloana stânga: scor mediu, stele, număr recenzii */
.summary-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.score-number {
    font-size: 3rem;
    font-weight: bold;
    color: #590202;
    line-height: 1;
    margin-bottom: 10px;
}

.score-stars {
    display: flex;
    gap: 4px;
    align-items: center;
    margin-bottom: 8px;
}

.star-icon {
    width: 20px;
    height: 20px;
}

.reviews-count {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
}

/* Coloana dreaptă: distribuția pe stele */
.summary-right {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rating-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rating-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 40px;
}

.star-number {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    line-height: 1;
}

.rating-star-icon {
    width: 14px;
    height: 14px;
}

.rating-bar {
    flex: 1;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.rating-bar-fill {
    height: 100%;
    background: #590202;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.rating-count {
    font-size: 0.8rem;
    color: #666;
    min-width: 35px;
    text-align: left;
    font-weight: 500;
}

/* =====================================================================
   RESPONSIVE - Summary section
   ===================================================================== */

@media (max-width: 768px) {
    .rating-summary {
        grid-template-columns: 1fr 2fr;
        gap: 30px;
    }
    
    .score-number {
        font-size: 2.5rem;
    }
    
    .summary-right {
        gap: 6px;
    }
    
    .rating-bar-row {
        gap: 8px;
    }
    
    .rating-label {
        min-width: 35px;
    }
    
    .rating-bar {
        height: 9px;
    }
}

@media (max-width: 480px) {
    .rating-summary {
        grid-template-columns: 1fr 2fr;
        gap: 15px;
    }
    
    .score-number {
        font-size: 2rem;
    }
    
    .summary-right {
        gap: 5px;
    }
    
    .rating-bar-row {
        gap: 6px;
    }
    
    .rating-label {
        min-width: 30px;
    }
    
    .star-number {
        font-size: 0.8rem;
    }
    
    .rating-star-icon {
        width: 12px;
        height: 12px;
    }
    
    .rating-count {
        font-size: 0.7rem;
        min-width: 20px;
        margin-left: 0px;
        line-height: 1;
    }
}
