/* Minibadge Gallery - Dark Theme Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: black;
    color: wheat;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.4;
}

.app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Controls */
.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1rem;
    background-color: #111;
    border-bottom: 1px solid #333;
    align-items: center;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 120px;
}

.control-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #ccc;
}

.control-group select,
.control-group input[type="text"] {
    padding: 0.5rem;
    background-color: #222;
    border: 1px solid #444;
    color: wheat;
    border-radius: 4px;
    font-size: 0.9rem;
}

.control-group select:focus,
.control-group input[type="text"]:focus {
    outline: none;
    border-color: #666;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

/* Checkbox Groups */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.85rem;
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
}

.status-badge {
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status-badge.trade {
    background-color: #ff8c00;
    color: white;
}

.status-badge.collected {
    background-color: #32cd32;
    color: white;
}

.status-badge.missing {
    background-color: #dc143c;
    color: white;
}

/* Gallery */
.gallery {
    flex: 1;
    padding: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.5rem;
    align-content: start;
}

.badge-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.badge-images {
    display: flex;
    flex-direction: row;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.badge-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.badge-image:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
    z-index: 10;
}

/* Badge Placeholder */
.badge-placeholder {
    background-color: #333;
    border: 2px dashed #666;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
}

.badge-placeholder:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
    z-index: 10;
    border-color: #888;
}

.placeholder-content {
    text-align: center;
    color: #999;
}

.placeholder-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.placeholder-text {
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
}

/* Tooltip */
.tooltip {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.9);
    color: wheat;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    max-width: 200px;
    z-index: 1000;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
}

.tooltip-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #fff;
}

.tooltip-variant {
    font-style: italic;
    color: #ccc;
    margin-bottom: 0.25rem;
}

.tooltip-status {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 0.25rem;
    flex-wrap: wrap;
}

.tooltip-status .status-badge {
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
}

.tooltip-details {
    color: #ccc;
    font-size: 0.75rem;
}

.tooltip-details div {
    margin-bottom: 0.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .control-group {
        min-width: auto;
    }
    
    .checkbox-group {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 0.25rem;
    }
    
    .badge-image {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .controls {
        padding: 0.5rem;
        gap: 1rem;
    }
    
    .gallery {
        padding: 0.5rem;
        grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    }
    
    .badge-image {
        width: 50px;
        height: 50px;
    }
}
