/* Deck Builder Styles */

.deck-builder {
    width: 100%;
    height: 100%;
    background-color: #1a1a1a;
    color: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.deck-builder-header {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: #222;
    border-bottom: 1px solid #333;
}

.deck-builder-header h2 {
    margin: 0 auto;
    font-size: 24px;
    text-align: center;
}

.back-button {
    background: none;
    border: none;
    color: #aaa;
    font-size: 16px;
    cursor: pointer;
    padding: 5px 10px;
    margin-right: 15px;
}

.back-button:hover {
    color: #fff;
}

.deck-section {
    padding: 10px;
    background-color: #222;
}

.deck-container {
    background-color: #1a1a1a;
    border-radius: 4px;
    border: 1px solid #333;
}

.deck-card, .card-list-card {
    width: 100%;
    aspect-ratio: 1/1.35;
    background-color: #333;
    border: 1px solid #444;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s, opacity 0.2s, box-shadow 0.2s;
    padding: 0;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.deck-card:hover, .card-list-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.empty-card {
    background-color: #222;
    border: 1px dashed #444;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.card-cost {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: rgba(0,0,0,0.7);
    color: #fff;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: bold;
}

.card-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
    padding: 20px 5px 5px;
    font-size: 12px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.filter-section {
    padding: 10px;
    background-color: #222;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
}

.filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.filter-btn {
    padding: 5px 15px;
    border: 1px solid #444;
    border-radius: 15px;
    background-color: #333;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.filter-btn:hover {
    background-color: #444;
}

.filter-btn.active {
    background-color: #4a4a4a;
    border-color: #666;
}

.card-list-section {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    background-color: #1a1a1a;
}

.card-list-container {
    background-color: #222;
    border-radius: 4px;
    border: 1px solid #333;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .deck-builder {
        height: 100vh;
    }
    
    .deck-builder-header {
        padding: 5px;
    }
    
    .filter-container {
        gap: 5px;
    }
    
    .filter-btn {
        padding: 3px 10px;
        font-size: 12px;
    }
    
    .card-list-container {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
} 