/* Custom Styles for SportsTravelRatings */

:root {
    --primary: #0d6efd;
    --primary-dark: #0a58ca;
    --star-color: #ffc107;
    --star-empty: #dee2e6;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Star Rating Styles */
.star-rating {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 2px;
}

.star-rating input {
    display: none;
}

.star-rating label {
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--star-empty);
    transition: color 0.15s ease;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: var(--star-color);
}

/* Display stars */
.stars-display {
    color: var(--star-color);
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.stars-display .empty {
    color: var(--star-empty);
}

/* Category Cards */
.category-card {
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    display: block;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
}

.category-icon {
    font-size: 2.5rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto;
}

/* Item Cards */
.item-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08) !important;
}

/* Criteria Badge */
.criteria-score {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: white;
    border-radius: 20px;
    padding: 4px 12px;
    border: 1px solid #dee2e6;
    font-size: 0.85rem;
}

/* Rating Summary */
.rating-bar {
    height: 8px;
    border-radius: 4px;
    background: #e9ecef;
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    border-radius: 4px;
    background: var(--star-color);
    transition: width 0.3s ease;
}

/* Mobile Optimizations */
@media (max-width: 576px) {
    .category-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .star-rating label {
        font-size: 1.75rem; /* Larger touch target on mobile */
    }
    
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.25rem;
    }
}

/* Loading spinner */
.loading {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    border: 3px solid rgba(0,0,0,0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Alert animations */
.alert {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Star rating in lists - compact */
.stars-small {
    color: var(--star-color);
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #6610f2 100%);
    color: white;
    border-radius: 12px;
    padding: 2rem;
}

/* Subcategory filter pills */
.filter-pill {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    background: #e9ecef;
    color: #495057;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.15s;
}

.filter-pill:hover,
.filter-pill.active {
    background: var(--primary);
    color: white;
}

/* No results */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
    opacity: 0.5;
}
