/* ======================
   にゃんコンボ一覧 CSS
   ====================== */

/* Container */
.combo-container {
    max-width: 1000px;
    margin: 0 auto;
}

.combo-header {
    margin-bottom: 20px;
}

.combo-header h2 {
    font-size: var(--section-title-size);
    margin-bottom: 12px;
}

/* Filters */
.combo-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
    align-items: center;
}

.combo-search-box {
    position: relative;
    flex: 1 1 200px;
    min-width: 180px;
}

.combo-search-input {
    width: 100%;
    padding: 8px 32px 8px 12px;
    border: var(--section-border);
    border-radius: var(--btn-radius);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.combo-search-input:focus {
    border-color: var(--primary-color);
}

.combo-search-clear {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: #999;
    padding: 2px 4px;
}

.combo-filter-select {
    padding: 8px 12px;
    border: var(--section-border);
    border-radius: var(--btn-radius);
    font-size: 0.9rem;
    background: var(--card-bg);
    outline: none;
    cursor: pointer;
    min-width: 140px;
}

.combo-filter-select:focus {
    border-color: var(--primary-color);
}

.combo-count {
    font-size: 0.85rem;
    color: var(--sub-text-color);
    margin-left: auto;
}

/* Combo cards */
.combo-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.combo-card {
    background: var(--card-bg);
    border: var(--section-border);
    border-radius: var(--section-radius);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: box-shadow 0.2s, transform 0.15s;
}

.combo-card:hover {
    box-shadow: var(--section-shadow);
    transform: translateY(-1px);
}

/* Left: Combo name + effect */
.combo-info {
    flex: 0 0 200px;
    min-width: 0;
}

.combo-name {
    font-weight: bold;
    font-size: 0.95rem;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.combo-effect {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.combo-effect-type {
    font-size: 0.8rem;
    color: var(--sub-text-color);
}

.combo-effect-size {
    font-size: 0.75rem;
    font-weight: bold;
    padding: 1px 6px;
    border-radius: 3px;
    white-space: nowrap;
}

/* Effect size badges */
.combo-size-0 {
    background: #e3f2fd;
    color: #1565c0;
}

.combo-size-1 {
    background: #e8f5e9;
    color: #2e7d32;
}

.combo-size-2 {
    background: #fff3e0;
    color: #e65100;
}

.combo-size-3 {
    background: #fce4ec;
    color: #c62828;
}

.combo-size-4 {
    background: #f3e5f5;
    color: #6a1b9a;
}

.combo-size-5 {
    background: #e0f7fa;
    color: #00695c;
}

.combo-effect-value {
    font-size: 0.8rem;
    font-weight: bold;
    color: #e74c3c;
}

/* Center: Unit icons */
.combo-units {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
    flex-wrap: wrap;
}

.combo-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.combo-unit-icon {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
    background: #f0f0f0;
}

.combo-unit-name {
    font-size: 0.65rem;
    color: var(--sub-text-color);
    text-align: center;
    max-width: 52px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* No results */
.combo-no-results {
    text-align: center;
    padding: 40px 20px;
    color: var(--sub-text-color);
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 640px) {
    .combo-card {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 10px 12px;
    }

    .combo-info {
        flex: none;
        display: flex;
        align-items: baseline;
        gap: 10px;
    }

    .combo-name {
        white-space: normal;
    }

    .combo-units {
        gap: 4px;
    }

    .combo-unit-icon {
        width: 32px;
        height: 32px;
    }

    .combo-unit-name {
        font-size: 0.6rem;
        max-width: 40px;
    }

    .combo-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .combo-count {
        margin-left: 0;
    }
}
