/* Modern Star Rating System */
.star-rating-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 20px;
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    overflow: hidden;
}

.star-rating-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    border-radius: 20px;
    padding: 2px;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.star-rating-container:hover::before {
    opacity: 1;
}

.star-rating-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    text-align: center;
}

.star-rating-display {
    font-size: 2rem;
    font-weight: 700;
    color: #8b5cf6;
    text-shadow: 0 2px 4px rgba(139, 92, 246, 0.3);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.star-rating-display:hover {
    transform: scale(1.1);
    color: #ec4899;
}

.stars-container {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.star {
    width: 3rem;
    height: 3rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.star::before {
    content: '★';
    font-size: 2.5rem;
    color: #d1d5db;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.star:hover::before {
    color: #fbbf24;
    transform: scale(1.2) rotate(10deg);
    filter: drop-shadow(0 4px 8px rgba(251, 191, 36, 0.4));
}

.star.active::before {
    color: #f59e0b;
    transform: scale(1.1);
    filter: drop-shadow(0 3px 6px rgba(245, 158, 11, 0.5));
}

.star.selected::before {
    color: #8b5cf6;
    transform: scale(1.3) rotate(-5deg);
    filter: drop-shadow(0 6px 12px rgba(139, 92, 246, 0.6));
}

.star.selected:hover::before {
    color: #ec4899;
    transform: scale(1.4) rotate(5deg);
    filter: drop-shadow(0 8px 16px rgba(236, 72, 153, 0.7));
}

/* Platform Cards with Real Logos */
.platform-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.platform-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(236, 72, 153, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.platform-card:hover::before {
    opacity: 1;
}

.platform-card:hover {
    border-color: #8b5cf6;
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.15);
}

.platform-card.selected {
    border-color: #8b5cf6;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(236, 72, 153, 0.1));
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2);
}

.platform-logo {
    width: 3rem;
    height: 3rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.platform-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}

.platform-card:hover .platform-logo {
    transform: scale(1.1) rotate(5deg);
}

.platform-card:hover .platform-logo img {
    transform: scale(1.1);
}

.platform-name {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.platform-subtitle {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.platform-checkbox {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    background: white;
    transition: all 0.3s ease;
    cursor: pointer;
}

.platform-checkbox:checked {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    border-color: #8b5cf6;
}

.platform-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Animated Progress Bar */
.progress-container {
    background: #f3f4f6;
    border-radius: 12px;
    height: 8px;
    overflow: hidden;
    position: relative;
    margin: 1rem 0;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6 0%, #ec4899 100%);
    border-radius: 12px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Category Filter Buttons */
.category-filter {
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.category-filter::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 ease;
}

.category-filter:hover::before {
    left: 100%;
}

.category-filter.active {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    color: white;
    border-color: #8b5cf6;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

.category-filter:not(.active) {
    background: #f9fafb;
    color: #6b7280;
    border-color: #e5e7eb;
}

.category-filter:not(.active):hover {
    background: #f3f4f6;
    color: #374151;
    border-color: #d1d5db;
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .star {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .star::before {
        font-size: 2rem;
    }
    
    .platform-card {
        padding: 1rem;
    }
    
    .platform-logo {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .stars-container {
        gap: 0.25rem;
    }
}

/* Loading Animation for Images */
.platform-logo.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

