/* Google Play Store Components CSS */

/* Reviews Section */
.reviews-section {
    padding: 24px 0;
    border-bottom: 1px solid var(--border-color);
}

.reviews-header {
    margin-bottom: 24px;
}

.rating-overview {
    display: flex;
    gap: 32px;
    margin-top: 16px;
    align-items: flex-start;
}

.overall-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 120px;
}

.rating-large {
    font-size: 48px;
    font-weight: 300;
    color: var(--text-primary);
    line-height: 1;
}

.stars-large {
    display: flex;
    gap: 4px;
}

.stars-large .star-icon {
    font-size: 20px;
    color: #dadce0;
}

.stars-large .star-icon.filled {
    color: #fbbc04;
}

.stars-large .star-icon.half {
    position: relative;
    color: #dadce0;
}

.stars-large .star-icon.half::before {
    content: '★';
    position: absolute;
    left: 0;
    color: #fbbc04;
    width: 50%;
    overflow: hidden;
}

.total-reviews {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
}

.rating-breakdown {
    flex: 1;
    max-width: 300px;
}

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

.star-count {
    font-size: 12px;
    color: var(--text-secondary);
    width: 8px;
}

.rating-bar {
    flex: 1;
    height: 8px;
    background-color: var(--background-color);
    border-radius: 4px;
    overflow: hidden;
}

.rating-fill {
    height: 100%;
    background-color: #fbbc04;
    transition: width 0.3s ease;
}

/* Review Items */
.reviews-list {
    margin-bottom: 24px;
}

.review-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.reviewer-info {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
}

.reviewer-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    flex-shrink: 0;
}

.reviewer-details {
    flex: 1;
}

.reviewer-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    display: block;
    margin-bottom: 4px;
}

.review-rating {
    display: flex;
    gap: 2px;
    margin-bottom: 4px;
}

.review-rating .star-icon {
    font-size: 14px;
    color: #dadce0;
}

.review-rating .star-icon.filled {
    color: #fbbc04;
}

.review-date {
    font-size: 12px;
    color: var(--text-secondary);
}

.review-content {
    margin-bottom: 12px;
    margin-left: 44px;
}

.review-content p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
}

.review-actions {
    margin-left: 44px;
}

.helpful-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}

.helpful-btn:hover {
    color: var(--primary-color);
}



.view-all-reviews-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-all-reviews-btn:hover {
    background-color: rgba(26, 115, 232, 0.04);
    border-color: var(--primary-color);
}

/* What's New Section */
.whats-new-section {
    padding: 24px 0;
    border-bottom: 1px solid var(--border-color);
}

.update-info {
    margin-bottom: 12px;
}

.update-info p {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.update-date {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Similar Apps Section */
.similar-apps-section {
    padding: 24px 0;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.app-card {
    display: flex;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--surface-color);
    transition: all 0.2s ease;
    cursor: pointer;
}

.app-card:hover {
    box-shadow: var(--shadow-light);
    border-color: var(--primary-color);
}

.app-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    flex-shrink: 0;
    background-color: var(--background-color);
}

.app-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.app-card-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
}

.app-card-developer {
    font-size: 12px;
    color: var(--text-secondary);
}

.app-card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
}

.app-card-rating .rating-score {
    font-size: 12px;
    color: var(--text-secondary);
}

.app-card-rating .star-icon {
    font-size: 14px;
    color: #fbbc04;
}

/* Data Safety Section (if needed in future) */
.data-safety-section {
    padding: 24px 0;
    border-bottom: 1px solid var(--border-color);
}

.safety-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.safety-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    background-color: var(--background-color);
    border-radius: var(--border-radius);
}

.safety-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--secondary-color);
}

.safety-content {
    flex: 1;
}

.safety-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.safety-description {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Mobile Responsive for Components */
@media (max-width: 768px) {
    .rating-overview {
        flex-direction: column;
        gap: 16px;
    }
    
    .overall-rating {
        flex-direction: row;
        align-items: center;
        min-width: auto;
    }
    
    .rating-large {
        font-size: 32px;
    }
    
    .rating-breakdown {
        max-width: none;
    }
    
    .review-content,
    .review-actions {
        margin-left: 0;
    }
    
    .reviewer-info {
        flex-direction: column;
        gap: 8px;
    }
    
    .apps-grid {
        grid-template-columns: 1fr;
    }
    
    .safety-items {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .reviews-section,
    .whats-new-section,
    .similar-apps-section {
        padding: 16px 0;
    }
    
    .rating-overview {
        gap: 12px;
    }
    
    .overall-rating {
        gap: 4px;
    }
    
    .rating-large {
        font-size: 24px;
    }
    
    .stars-large .star-icon {
        font-size: 16px;
    }
    
    .app-card {
        padding: 12px;
    }
    
    .app-card-icon {
        width: 40px;
        height: 40px;
    }
} 