/**
 * The Spin The Wheel — Page Module: image-picker.css
 * Domain: thespinthewheel.com/image-picker-wheel
 * High-performance, mobile-first responsive styling
 */

/* 1. Stage Banner & Actions */
.stage-banner-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 0.75rem;
}

.stage-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    background: var(--primary);
    color: #ffffff;
    padding: 0.15rem 0.55rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
}

.wheel-stage-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    width: 100%;
    margin-top: 1rem;
    margin-bottom: 0.75rem;
}

.stage-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 0.65rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    min-height: 42px;
    box-sizing: border-box;
}

.stage-action-btn:hover {
    color: var(--text-primary);
    background: var(--bg-card-hover, rgba(255, 255, 255, 0.08));
    border-color: var(--border-accent);
}

/* 2. Drag & Drop Upload Zone */
.image-drop-zone {
    margin-top: 1rem;
    border: 2px dashed var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.25rem 1rem;
    text-align: center;
    background: var(--bg-surface-elevated, rgba(255, 255, 255, 0.03));
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.image-drop-zone:hover,
.image-drop-zone.dragover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.08);
}

/* 3. Picture Gallery Tray */
.drawn-tray-container {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.85rem;
    box-sizing: border-box;
}

.drawn-tray-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.65rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.drawn-tray-title {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
}

.drawn-tray-actions {
    display: flex;
    gap: 0.35rem;
}

.drawn-tray-btn {
    background: var(--bg-surface-elevated, rgba(255, 255, 255, 0.05));
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    cursor: pointer;
    transition: all 0.15s ease;
    min-height: 30px;
}

.drawn-tray-btn:hover {
    color: var(--text-primary);
    border-color: var(--border-accent);
}

/* 4. Picture Card List */
.picture-card-list {
    max-height: 280px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-right: 0.25rem;
}

.picture-card-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.45rem 0.65rem;
    transition: all 0.15s ease;
}

.picture-card-item:hover {
    border-color: var(--border-accent);
}

.picture-card-thumb {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    flex-shrink: 0;
}

.picture-card-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.picture-card-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.picture-card-meta {
    font-size: 0.725rem;
    color: var(--text-muted);
}

.picture-card-remove-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.25rem 0.45rem;
    border-radius: var(--radius-xs);
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 32px;
}

.picture-card-remove-btn:hover {
    color: var(--accent-rose, #ef4444);
    background: rgba(239, 68, 68, 0.1);
}

/* 5. Winner Image Spotlight Frame */
.winner-image-spotlight-frame {
    width: 140px;
    height: 140px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 1rem auto;
    border: 3px solid var(--accent-cyan);
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.4);
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
}

.winner-image-spotlight {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 6. Mobile Responsiveness */
@media (max-width: 768px) {
    .wheel-stage-actions {
        grid-template-columns: repeat(2, 1fr);
    }
    .stage-action-btn {
        min-height: 44px;
        font-size: 0.85rem;
    }
}
