/* Bulk Pack Opening Styles */

/* Quantity selector container */
.pack-quantity-selector {
    display: flex;
    align-items: center;
    margin-top: 10px;
    justify-content: center;
}

/* Quantity input */
.pack-quantity-input {
    width: 50px;
    text-align: center;
    margin: 0 5px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Quantity buttons */
.pack-quantity-btn {
    background-color: #444;
    color: white;
    border: none;
    border-radius: 4px;
    width: 30px;
    height: 30px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.pack-quantity-btn:hover {
    background-color: #555;
}

.pack-quantity-btn:active {
    background-color: #333;
}

/* Bulk open summary modal */
.bulk-open-summary {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}

.bulk-open-summary.active {
    display: flex;
}

.bulk-summary-content {
    background-color: #222;
    border-radius: 10px;
    padding: 20px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    color: white;
}

.bulk-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #444;
}

.bulk-summary-header h2 {
    margin: 0;
    color: gold;
}

.bulk-summary-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* Rarity summary section */
.bulk-rarity-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.rarity-count {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
}

.rarity-count-common {
    background-color: #777;
    color: white;
}

.rarity-count-uncommon {
    background-color: #3a3;
    color: white;
}

.rarity-count-rare {
    background-color: #33a;
    color: white;
}

.rarity-count-legendary {
    background-color: #a93;
    color: white;
}

.rarity-count-mythic {
    background-color: #a3a;
    color: white;
}

/* Cards grid */
.bulk-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.bulk-card-item {
    position: relative;
    transition: transform 0.2s;
}

.bulk-card-item:hover {
    transform: scale(1.05);
    z-index: 2;
}

.bulk-card-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.bulk-card-new {
    position: absolute;
    top: -8px;
    left: -8px;
    background-color: #f39c12;
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Action buttons */
.bulk-summary-actions {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 15px;
}

.bulk-summary-button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.bulk-summary-close-btn {
    background-color: #3498db;
    color: white;
}

.bulk-summary-close-btn:hover {
    background-color: #2980b9;
}

/* Unopened packs indicator */
.unopened-packs-indicator {
    display: inline-block;
    background-color: #e74c3c;
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 12px;
    margin-left: 10px;
    font-weight: bold;
}

/* Bulk open button */
.bulk-open-button {
    background-color: #e67e22;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 15px;
    margin-top: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.bulk-open-button:hover {
    background-color: #d35400;
}

/* Loading spinner for bulk opening */
.bulk-opening-spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.bulk-opening-message {
    text-align: center;
    margin-top: 20px;
    font-size: 18px;
    color: white;
}