* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.header h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.header .subtitle {
    opacity: 0.9;
    font-size: 14px;
    margin-bottom: 15px;
}

.nav-links {
    margin-top: 15px;
}

.nav-link {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 6px;
    transition: background 0.3s;
    font-weight: 600;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.3);
}

.filter-section {
    padding: 30px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 250px;
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: border-color 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
}

.stats {
    font-size: 16px;
    font-weight: 600;
    color: #667eea;
}

.btn-clear {
    padding: 10px 20px;
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.btn-clear:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(197, 48, 48, 0.4);
}

.btn-clear:active {
    transform: translateY(0);
}

.roster-grid {
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.champion-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s, background 0.3s, border-color 0.3s;
    border: 2px solid transparent;
}

.champion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.champion-card.has-stars {
    background: linear-gradient(135deg, #fffef5 0%, #fff9e6 100%);
    border: 2px solid;
    border-image: linear-gradient(135deg, #ffd700 0%, #667eea 100%) 1;
    box-shadow: 0 3px 15px rgba(255, 215, 0, 0.2);
}

.champion-card.has-stars:hover {
    border-image: linear-gradient(135deg, #ffd700 0%, #667eea 100%) 1;
    box-shadow: 0 5px 25px rgba(255, 215, 0, 0.3);
}

.champion-card.hidden {
    display: none;
}

.champion-icon-box {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 32px;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.champion-icon-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.champion-card-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.star-selector {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 10px;
}

.star {
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.2s, color 0.2s;
    user-select: none;
    color: #ddd;
}

.star.filled {
    color: #ffd700;
}

.star:hover {
    transform: scale(1.2);
}

.star:active {
    transform: scale(0.9);
}

.action-section {
    padding: 40px 30px;
    text-align: center;
    border-top: 2px solid #f0f0f0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.action-section h3 {
    color: #333;
    font-size: 22px;
    margin-bottom: 10px;
}

.help-text {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.btn:active {
    transform: translateY(0);
}

.btn-suggestions {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
}

@media (max-width: 1200px) {
    .roster-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .roster-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
        padding: 20px;
    }

    .champion-icon-box {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .champion-card-name {
        font-size: 13px;
        min-height: 35px;
    }

    .star {
        font-size: 20px;
    }

    .filter-section {
        padding: 20px;
    }
}

@media (max-width: 500px) {
    .roster-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }

    .star {
        font-size: 18px;
        gap: 2px;
    }
}
