/* Simple WP Reviews - Enhanced Styles */

.swr-reviews-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Statistics Container */
.swr-stats {
    position: relative;
    overflow: hidden;
}

.swr-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 25%, transparent 25%), 
                linear-gradient(-45deg, rgba(255,255,255,0.1) 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.1) 75%), 
                linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.1) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    opacity: 0.3;
    pointer-events: none;
}

/* Controls styling */
.swr-controls select {
    cursor: pointer;
    transition: all 0.3s ease;
}

.swr-controls select:hover {
    border-color: #9ca3af;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.swr-controls select:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Review cards */
.swr-review {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.swr-review:hover {
    border-color: #e5e7eb;
}

.swr-review .swr-rating {
    display: flex;
    gap: 2px;
}

.swr-review .swr-name {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Student count badge */
.swr-students {
    position: relative;
    font-size: 12px !important;
    font-weight: 600;
    white-space: nowrap;
}

.swr-students::before {
    content: '👥';
    margin-right: 4px;
}

/* Form styling enhancements */
#swr-review-form input:focus,
#swr-review-form select:focus,
#swr-review-form textarea:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

#swr-review-form button {
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

#swr-review-form button:hover {
    background: #0f1419;
}

#swr-review-form button:active {
    transform: translateY(0);
}

/* Load more button */
#swr-load-more {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#swr-load-more::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;
}

#swr-load-more:hover::before {
    left: 100%;
}

#swr-load-more:hover {
    background: #0f172a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .swr-stats {
        padding: 20px;
    }
    
    .swr-stats > div {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 20px;
    }
    
    .swr-controls {
        grid-template-columns: 1fr;
    }
    
    .swr-review {
        flex-direction: column;
        text-align: center;
    }