/* assets/css/card-select.css */

.card-selection-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.selection-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(26, 26, 46, 0.7);
    border-radius: 20px;
    border: 2px solid rgba(102, 126, 234, 0.3);
}

.selection-header h1 {
    font-size: 32px;
    margin-bottom: 10px;
    color: white;
}

.selection-subtitle {
    color: #b0b0b0;
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto;
}

.selection-subtitle strong {
    color: #667eea;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.card-select-item {
    background: rgba(26, 26, 46, 0.8);
    border-radius: 20px;
    padding: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.card-select-item:hover {
    border-color: rgba(102, 126, 234, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.card-select-item.selected {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.card-anime {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

.card-rarity {
    color: #b0b0b0;
    font-size: 12px;
}

.card-image {
    width: 100%;
    height: 350px;
    margin: 0 auto 20px;
    overflow: hidden;
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.2);
}

.card-image-real {
    width: 100%;
    height: 350px;
    object-fit: cover;
}


.card-name {
    font-size: 22px;
    font-weight: bold;
    color: white;
    margin-bottom: 15px;
    min-height: 30px;
}

.card-stats {
    display: flex;
    justify-content: space-around;
    margin: 15px 0;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.card-stats .stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.card-stats .stat i {
    font-size: 18px;
    color: #667eea;
}

.card-stats .stat span {
    font-size: 18px;
    font-weight: bold;
    color: white;
}

.card-stats .stat small {
    font-size: 11px;
    color: #b0b0b0;
}

.card-description {
    color: #b0b0b0;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
    min-height: 60px;
}

.btn-select-card {
    width: 100%;
    padding: 12px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-select-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.btn-select-card:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

.selection-info {
    background: rgba(26, 26, 46, 0.7);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    color: #b0b0b0;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.selection-info i {
    color: #667eea;
    font-size: 20px;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .selection-header {
        padding: 20px;
    }
    
    .selection-header h1 {
        font-size: 24px;
    }
    
    .card-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .card-selection-container {
        padding: 10px;
    }
    
    .card-select-item {
        padding: 15px;
    }
}