/* ====================================================================
   BRUTAL THEME SELECTOR - Responsive Horizontal Cards
   ==================================================================== */

.theme-selector-window {
    background: var(--io-surface-raised);
    position: relative;
    padding: var(--io-space-md);
    user-select: none;
}

.theme-selector-header {
    display: none;
}

/* Theme grid - responsive columns */
.theme-grid {
    display: grid;
    gap: var(--io-space-xs);
    /* Default: 1 column (narrow) */
    grid-template-columns: 1fr;
}

/* 2 columns when width >= 600px */
@media (min-width: 600px) {
    .theme-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 3 columns when width >= 900px */
@media (min-width: 900px) {
    .theme-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Theme card - horizontal layout */
.theme-card {
    display: flex;
    align-items: center;
    gap: var(--io-space-md);
    padding: var(--io-space-sm);
    background: var(--io-surface-sunken);
    border-left: 2px solid transparent;
    cursor: pointer;
    transition: all var(--io-transition-base);
    position: relative;
}

.theme-card:hover {
    background: var(--io-surface-hover);
    border-left-color: var(--io-border);
}

.theme-card.active {
    border-left-color: var(--io-accent);
}

.theme-card.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--io-accent);
    box-shadow: 0 0 8px var(--io-accent-glow);
}

/* Color preview bar */
.theme-preview {
    width: 60px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.theme-color-bar {
    width: 40px;
    height: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Theme info text */
.theme-info {
    flex: 1;
    min-width: 0;
}

.theme-name {
    font-size: var(--io-text-sm);
    color: var(--io-text-primary);
    text-transform: lowercase;
    letter-spacing: 0.02em;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.theme-desc {
    font-size: var(--io-text-xs);
    color: var(--io-text-tertiary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.theme-card.active .theme-name {
    color: var(--io-accent);
}

/* Loading state */
.theme-selector-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: var(--io-text-tertiary);
    font-size: var(--io-text-sm);
}

/* Error state */
.theme-selector-error {
    padding: var(--io-space-lg);
    text-align: center;
    color: var(--io-error);
}