/* Skin Selector Modal Styles */

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.skin-selector-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    border-radius: 20px;
    max-width: 1400px;
    max-height: 90vh;
    width: 95%;
    overflow-y: auto;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 36px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Search Container */
.search-container {
    margin-bottom: 24px;
}

.search-container input {
    width: 100%;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
}

.search-container input:focus {
    outline: none;
    border-color: #3b82f6;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-container input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Champions Grid */
.champions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 8px;
}

.champions-grid::-webkit-scrollbar {
    width: 8px;
}

.champions-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.champions-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.champions-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.skin-selector-content .champion-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 164px;
}

.skin-selector-content .champion-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
}

.skin-selector-content .champion-card.has-favorite {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.skin-selector-content .champion-image {
    width: 84px;
    height: 84px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 50%;
    margin: 14px auto 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.skin-selector-content .champion-name {
    display: block;
    width: 100%;
    padding: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #e5e5e5;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    margin-top: auto;
}

.skin-selector-content .favorite-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    color: #fbbf24;
    font-size: 24px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
}

/* Skin Selector Panel */
.skin-selector-panel {
    display: none;
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.back-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.panel-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

/* Skins Grid */
.skins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 8px;
}

.skins-grid::-webkit-scrollbar {
    width: 8px;
}

.skins-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.skins-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.skins-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.skin-selector-content .skin-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
}

.skin-selector-content .skin-card:hover {
    transform: scale(1.03);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

.skin-selector-content .skin-card.selected {
    border-color: #10b981;
    box-shadow: 0 0 24px rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.1);
}

.skin-selector-content .skin-card.success-flash {
    animation: successFlash 0.5s ease-out;
}

@keyframes successFlash {

    0%,
    100% {
        background: rgba(16, 185, 129, 0.1);
    }

    50% {
        background: rgba(16, 185, 129, 0.3);
    }
}

.skin-selector-content .skin-image {
    width: calc(100% - 32px);
    height: 140px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    margin: 16px auto;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.skin-selector-content .skin-info {
    padding: 16px;
    background: rgba(0, 0, 0, 0.3);
    position: relative;
}

.skin-selector-content .skin-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #e5e5e5;
    line-height: 1.4;
}

.skin-selector-content .selected-badge {
    position: absolute;
    top: -90px;
    right: 16px;
    background: #10b981;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.5);
}

/* Skins Count Display */
.skins-count {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    margin-top: 16px;
}

.count-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.count-value {
    font-size: 16px;
    font-weight: 700;
    color: #3b82f6;
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}
