/* ============================================
   产业 Modal & 店铺详情
   盲盒易拉罐 - 一只打工猫的逆袭故事
   ============================================ */

.industry-modal {
    text-align: center;
}

.shop-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    flex: 1;
    overflow-y: auto;
    padding: 4px;
    min-height: 0;
}

/* 店铺卡片 */
.shop-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.shop-card.locked {
    opacity: 0.5;
}

.shop-card.built {
    cursor: pointer;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, rgba(255, 217, 61, 0.03) 100%);
    border-color: rgba(255, 217, 61, 0.2);
}

.shop-card.built:hover {
    border-color: var(--accent-gold);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 217, 61, 0.15);
}

.shop-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.shop-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.shop-name {
    font-size: 14px;
    font-weight: 700;
    flex: 1;
    text-align: left;
}

.shop-level {
    font-size: 11px;
    color: var(--accent-gold);
    font-weight: 600;
    background: rgba(255, 217, 61, 0.15);
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
}

.shop-body {
    min-height: 20px;
}

.shop-stats {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.shop-stat {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
}

.shop-income {
    color: var(--accent-gold);
}

.shop-emp-count {
    color: var(--accent-green);
}

.shop-lock {
    font-size: 12px;
    color: var(--text-secondary);
    padding: 4px;
}

/* 店铺按钮 */
.shop-footer {
    margin-top: auto;
}

.shop-btn {
    width: 100%;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-main);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.shop-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* 建造按钮 */
.btn-build {
    background: linear-gradient(135deg, var(--accent-green), #27ae60);
    color: white;
}

.btn-build:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}

/* 按钮组（管理和升级并排） */
.shop-btn-group {
    display: flex;
    gap: 6px;
}

.shop-btn-group .shop-btn {
    flex: 1;
}

/* 管理按钮 */
.btn-detail {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-detail:hover {
    border-color: var(--accent-gold);
    background: rgba(255, 217, 61, 0.08);
}

/* 升级按钮 */
.btn-upgrade {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-orange));
    color: var(--bg-primary);
}

.btn-upgrade:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 217, 61, 0.3);
}

/* 按钮中的价格文字 */
.btn-cost {
    font-size: 11px;
    opacity: 0.85;
}

/* 旧样式保留兼容 */
.shop-employee {
    font-size: 11px;
    color: var(--accent-green);
    margin-bottom: 6px;
}

.shop-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 6px;
}

.shop-progress-fill {
    height: 100%;
    background: var(--accent-gold);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.shop-collect-btn {
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    background: var(--accent-green);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
}

.shop-collect-btn:hover {
    transform: scale(1.05);
}

.industry-actions {
    display: flex;
    gap: 10px;
}

.btn-collect-all {
    flex: 1;
    padding: 12px;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-orange));
    color: var(--bg-primary);
    font-family: var(--font-main);
}

.btn-collect-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 217, 61, 0.3);
}

/* 店铺详情弹窗 */
.shop-detail-modal {
    max-width: 420px;
    width: 90%;
}

.shop-detail-content {
    padding: 16px;
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.detail-icon {
    font-size: 36px;
}

.detail-name {
    font-size: 18px;
    font-weight: 700;
    flex: 1;
}

.detail-level {
    font-size: 14px;
    color: var(--accent-gold);
    font-weight: 600;
    background: rgba(255, 217, 61, 0.15);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

.detail-stats {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.detail-stat {
    flex: 1;
    padding: 10px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.detail-section {
    margin-bottom: 14px;
}

.detail-section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.detail-emp-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.detail-emp-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    font-size: 14px;
}

.detail-emp-bonus {
    color: var(--accent-gold);
    font-weight: 600;
    margin-left: auto;
}

.btn-remove-emp {
    background: rgba(255, 71, 87, 0.2);
    color: var(--accent-red);
    border: none;
    padding: 2px 8px;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-remove-emp:hover {
    background: var(--accent-red);
    color: white;
}

.detail-empty {
    padding: 12px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
}

.detail-assign-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.detail-assign-row .emp-select {
    flex: 1;
    padding: 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 13px;
    font-family: var(--font-main);
}

.detail-actions {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}

.detail-actions .btn-upgrade-big {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-orange));
    color: var(--bg-primary);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
}

.detail-actions .btn-upgrade-big:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 217, 61, 0.3);
}

.detail-actions .btn-upgrade-big:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}
