* {
    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: 800px;
    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;
}

.input-section {
    padding: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.input-wrapper {
    position: relative;
    margin-bottom: 10px;
}

.champion-input {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: border-color 0.3s;
}

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

.champion-input:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #667eea;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.autocomplete-dropdown.show {
    display: block;
}

.autocomplete-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.autocomplete-item:hover,
.autocomplete-item.selected {
    background-color: #f0f0ff;
}

.autocomplete-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #fafafa;
}

.autocomplete-item.disabled:hover {
    background-color: #fafafa;
}

.autocomplete-item .usage {
    font-size: 12px;
    color: #666;
    margin-left: 10px;
}

.autocomplete-item .maxed {
    color: #ff4444;
    font-weight: bold;
}

.counter {
    text-align: center;
    margin-top: 15px;
    font-size: 18px;
    font-weight: 600;
    color: #667eea;
}

.counter.full {
    color: #ff4444;
}

.list-section {
    padding: 30px;
    max-height: 500px;
    overflow-y: auto;
}

.list-header {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.champion-list {
    list-style: none;
}

.champion-item {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.champion-item:hover {
    transform: translateX(5px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.champion-number {
    font-weight: bold;
    color: #667eea;
    margin-right: 15px;
    min-width: 30px;
}

.champion-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
    flex-shrink: 0;
    overflow: hidden;
}

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

.champion-name {
    flex: 1;
    font-size: 16px;
    color: #333;
}

.remove-btn {
    background: #ff4444;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.remove-btn:hover {
    background: #cc0000;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #999;
}

.empty-state p {
    font-size: 18px;
    margin-bottom: 10px;
}

.buttons-section {
    padding: 20px 30px;
    background: #f8f9fa;
    display: flex;
    gap: 15px;
    justify-content: center;
    border-top: 2px solid #e0e0e0;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-danger {
    background: #ff4444;
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

.usage-summary {
    padding: 20px 30px;
    background: #f0f0ff;
    border-top: 2px solid #e0e0e0;
}

.usage-summary h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 16px;
}

.usage-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.usage-tag {
    background: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    border: 1px solid #e0e0e0;
}

.usage-tag.maxed {
    background: #ffe0e0;
    border-color: #ff4444;
    color: #ff4444;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-content h2 {
    margin-bottom: 15px;
    color: #333;
}

.modal-content p {
    margin-bottom: 25px;
    color: #666;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.modal-buttons .btn {
    padding: 10px 25px;
}

.suggestions-modal {
    max-width: 700px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.suggestions-summary {
    font-weight: 600;
    color: #667eea;
    margin-bottom: 20px;
}

.suggestions-list {
    max-height: 50vh;
    overflow-y: auto;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f8f9fa;
}

.suggestion-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
}

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

.suggestion-item.valid {
    background: #f0fff4;
}

.suggestion-item.missing {
    background: #fff5f5;
    color: #999;
}

.suggestion-number {
    font-weight: bold;
    color: #667eea;
    margin-right: 10px;
    min-width: 35px;
}

.suggestion-status {
    margin-right: 10px;
    font-size: 16px;
}

.suggestion-name {
    flex: 1;
}

@media (max-width: 600px) {
    .container {
        margin: 0;
        border-radius: 0;
    }

    .buttons-section {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}
