/* Draft Board Builder Styles */

#draft-board-builder {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.dbb-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.dbb-header h2 {
    margin: 0;
    font-size: 28px;
    color: #333;
}

.dbb-controls {
    display: flex;
    gap: 10px;
}

.dbb-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dbb-btn-primary {
    background-color: #4CAF50;
    color: white;
}

.dbb-btn-primary:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.dbb-btn-secondary {
    background-color: #f44336;
    color: white;
}

.dbb-btn-secondary:hover {
    background-color: #da190b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.dbb-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
}

/* Player Pool */
.dbb-player-pool {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.dbb-player-pool h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
    color: #333;
}

.dbb-search {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.dbb-search input,
.dbb-search select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.dbb-search input:focus,
.dbb-search select:focus {
    outline: none;
    border-color: #4CAF50;
}

.dbb-player-list {
    max-height: 600px;
    overflow-y: auto;
}

.dbb-loading {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 16px;
}

.dbb-player-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    cursor: grab;
    transition: all 0.2s ease;
    position: relative;
}

.dbb-player-card:hover {
    border-color: #4CAF50;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
    transform: translateX(5px);
}

.dbb-player-card.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.dbb-player-tier {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dbb-player-tier.Platinum {
    background: linear-gradient(135deg, #e5e5e5 0%, #ffffff 100%);
    color: #333;
    border: 1px solid #999;
}

.dbb-player-tier.Gold {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333;
    border: 1px solid #d4af37;
}

.dbb-player-tier.Silver {
    background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
    color: #333;
    border: 1px solid #999;
}

.dbb-player-tier.Bronze {
    background: linear-gradient(135deg, #cd7f32 0%, #e39b5f 100%);
    color: white;
    border: 1px solid #8b5a2b;
}

.dbb-player-name {
    font-weight: 700;
    font-size: 15px;
    color: #333;
    margin-bottom: 6px;
    padding-right: 60px;
}

.dbb-player-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #666;
    flex-wrap: wrap;
    gap: 6px;
}

.dbb-player-team {
    font-weight: 600;
    color: #555;
}

.dbb-player-position {
    background: #2196F3;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 11px;
}

/* Position color coding */
.dbb-player-position.PG,
.dbb-player-position.SG\/PG,
.dbb-player-position.PG\/SG { 
    background: #e91e63; 
}

.dbb-player-position.SG,
.dbb-player-position.SG\/SF { 
    background: #9c27b0; 
}

.dbb-player-position.SF,
.dbb-player-position.SF\/PF { 
    background: #4CAF50; 
}

.dbb-player-position.PF,
.dbb-player-position.PF\/C,
.dbb-player-position.PF\/SF { 
    background: #ff9800; 
}

.dbb-player-position.C { 
    background: #00bcd4; 
}

.dbb-player-rank {
    font-weight: 700;
    color: #4CAF50;
}

/* Draft Board */
.dbb-draft-board {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.dbb-draft-board h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 20px;
    color: #333;
}

.dbb-board-controls {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.dbb-board-controls label {
    font-size: 14px;
    font-weight: 600;
    color: #555;
}

.dbb-board-controls select {
    margin-left: 10px;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.dbb-board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

.dbb-board-slot {
    background: #f5f5f5;
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 15px;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.dbb-board-slot.drag-over {
    background: #e8f5e9;
    border-color: #4CAF50;
    border-style: solid;
}

.dbb-board-slot.filled {
    background: white;
    border-style: solid;
    border-color: #4CAF50;
}

.dbb-slot-number {
    font-size: 12px;
    color: #999;
    font-weight: 600;
    margin-bottom: 5px;
}

.dbb-slot-empty {
    font-size: 13px;
    color: #999;
    text-align: center;
}

.dbb-board-player {
    width: 100%;
    position: relative;
}

.dbb-remove-player {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.2s ease;
    z-index: 10;
}

.dbb-remove-player:hover {
    background: #da190b;
    transform: scale(1.1);
}

/* Message */
.dbb-message {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 6px;
    font-weight: 600;
    display: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
}

.dbb-message.success {
    background: #4CAF50;
    color: white;
    display: block;
}

.dbb-message.error {
    background: #f44336;
    color: white;
    display: block;
}

/* Scrollbar */
.dbb-player-list::-webkit-scrollbar {
    width: 8px;
}

.dbb-player-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.dbb-player-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.dbb-player-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsive */
@media (max-width: 968px) {
    .dbb-container {
        grid-template-columns: 1fr;
    }
    
    .dbb-player-pool {
        order: 2;
    }
    
    .dbb-draft-board {
        order: 1;
    }
    
    .dbb-board-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 600px) {
    .dbb-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .dbb-board-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
