/**
 * Equipment Module Styles
 * IPS Music Application
 */

/* Equipment Grid Cards */
.eqGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.eqCard { background: var(--theme-area_background); border-radius: 8px; overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; border: 1px solid var(--theme-area_background_dark, rgba(0,0,0,0.08)); }
.eqCard:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.eqCard__photo { aspect-ratio: 1; background: var(--theme-area_background_dark, #f5f5f5); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.eqCard__photo img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.eqCard__photo .eqCard__placeholder { font-size: 48px; color: var(--theme-text_light, #999); }
.eqCard__body { padding: 12px; }
.eqCard__brand { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--theme-text_light, #888); margin-bottom: 2px; }
.eqCard__model { font-size: 14px; font-weight: 600; line-height: 1.3; }
.eqCard__meta { margin-top: 8px; display: flex; align-items: center; gap: 8px; font-size: 12px; }
.eqCard__artistCount { display: inline-flex; align-items: center; gap: 4px; color: var(--theme-text_light, #888); }

/* Confidence Badges */
.eqBadge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 12px; font-size: 11px; font-weight: 600; }
.eqBadge--confirmed { background: #e8f5e9; color: #2e7d32; }
.eqBadge--secondary { background: #e3f2fd; color: #1565c0; }
.eqBadge--visual { background: #fff3e0; color: #e65100; }
.eqBadge--community { background: #f3e5f5; color: #7b1fa2; }
.eqBadge--unverified { background: #f5f5f5; color: #757575; }
.eqBadge--disputed { background: #ffebee; color: #c62828; }

/* Context badges */
.eqContext { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 4px; font-size: 11px; background: var(--theme-area_background_dark, #f0f0f0); }
.eqContext--live { border-left: 3px solid #ff5722; }
.eqContext--studio { border-left: 3px solid #2196f3; }
.eqContext--touring { border-left: 3px solid #ff9800; }

/* Source type badges */
.eqSource { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--theme-text_light, #888); }
.eqSource i { width: 16px; text-align: center; }

/* Equipment Detail Page */
.eqDetail { display: grid; grid-template-columns: 1fr 320px; gap: 24px; }
.eqDetail__main {}
.eqDetail__sidebar {}
.eqDetail__gallery { border-radius: 8px; overflow: hidden; background: var(--theme-area_background_dark, #f5f5f5); margin-bottom: 16px; }
.eqDetail__gallery img { width: 100%; height: auto; object-fit: contain; max-height: 400px; }
.eqDetail__specs { width: 100%; border-collapse: collapse; }
.eqDetail__specs td { padding: 8px 12px; border-bottom: 1px solid var(--theme-area_background_dark, #eee); }
.eqDetail__specs td:first-child { font-weight: 600; width: 40%; color: var(--theme-text_light, #666); }

/* Artist Equipment Tab */
.eqArtistTab {}
.eqArtistTab__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.eqArtistTab__count { font-size: 24px; font-weight: 700; }
.eqCategoryGroup { margin-bottom: 24px; }
.eqCategoryGroup__title { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--theme-text_light); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--theme-area_background_dark, #eee); display: flex; align-items: center; gap: 8px; }
.eqCategoryGroup__title i { color: var(--theme-link_color, #2196f3); }

/* Equipment List Item (in artist tab) */
.eqListItem { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 6px; transition: background 0.15s; }
.eqListItem:hover { background: var(--theme-area_background_dark, rgba(0,0,0,0.03)); }
.eqListItem__photo { width: 48px; height: 48px; border-radius: 6px; background: var(--theme-area_background_dark, #f5f5f5); display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.eqListItem__photo img { width: 100%; height: 100%; object-fit: contain; }
.eqListItem__info { flex: 1; min-width: 0; }
.eqListItem__name { font-weight: 600; font-size: 14px; }
.eqListItem__brand { font-size: 12px; color: var(--theme-text_light, #888); }
.eqListItem__badges { display: flex; gap: 6px; flex-shrink: 0; }

/* Setup Cards */
.eqSetupCard { background: var(--theme-area_background); border: 1px solid var(--theme-area_background_dark, rgba(0,0,0,0.08)); border-radius: 8px; padding: 16px; transition: box-shadow 0.2s; }
.eqSetupCard:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.eqSetupCard--current { border-left: 4px solid #4caf50; }
.eqSetupCard__title { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.eqSetupCard__meta { font-size: 12px; color: var(--theme-text_light, #888); display: flex; gap: 12px; flex-wrap: wrap; }

/* Signal Chain Canvas */
.eqChainContainer { position: relative; border: 1px solid var(--theme-area_background_dark, #ddd); border-radius: 8px; overflow: hidden; background: #fafafa; }
.eqChainCanvas { width: 100%; height: 500px; }
.eqChainControls { position: absolute; top: 8px; right: 8px; display: flex; gap: 4px; z-index: 10; }
.eqChainControls button { width: 32px; height: 32px; border-radius: 6px; border: 1px solid var(--theme-area_background_dark, #ddd); background: white; cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* Signal Chain List (mobile/fallback) */
.eqChainList { list-style: none; padding: 0; margin: 0; }
.eqChainList__item { display: flex; align-items: center; gap: 12px; padding: 10px 0; position: relative; }
.eqChainList__item:not(:last-child)::after { content: ''; position: absolute; left: 20px; bottom: -4px; width: 2px; height: 8px; background: var(--theme-area_background_dark, #ccc); }
.eqChainList__num { width: 40px; height: 40px; border-radius: 50%; background: var(--theme-link_color, #2196f3); color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.eqChainList__label { font-weight: 600; }
.eqChainList__type { font-size: 12px; color: var(--theme-text_light, #888); }

/* Contributors */
.eqContributors { display: flex; flex-wrap: wrap; gap: 8px; }
.eqContributor { display: flex; align-items: center; gap: 6px; padding: 4px 10px; background: var(--theme-area_background_dark, #f5f5f5); border-radius: 16px; font-size: 12px; }
.eqContributor img { width: 20px; height: 20px; border-radius: 50%; }

/* Filter Bar */
.eqFilterBar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; padding: 12px; background: var(--theme-area_background); border-radius: 8px; }
.eqFilterBar select, .eqFilterBar input { padding: 6px 12px; border-radius: 6px; border: 1px solid var(--theme-area_background_dark, #ddd); font-size: 13px; }

/* Submit Form */
.eqForm { max-width: 720px; }
.eqForm__tabs { display: flex; gap: 0; margin-bottom: 24px; border-bottom: 2px solid var(--theme-area_background_dark, #eee); }
.eqForm__tab { padding: 10px 20px; font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.2s; }
.eqForm__tab--active { border-bottom-color: var(--theme-link_color, #2196f3); color: var(--theme-link_color, #2196f3); }
.eqForm__section { display: none; }
.eqForm__section--active { display: block; }
.eqForm__row { margin-bottom: 16px; }
.eqForm__label { display: block; font-weight: 600; margin-bottom: 4px; font-size: 13px; }
.eqForm__help { font-size: 12px; color: var(--theme-text_light, #888); margin-top: 2px; }

/* Responsive */
@media (max-width: 768px) {
    .eqGrid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
    .eqDetail { grid-template-columns: 1fr; }
    .eqDetail__sidebar { order: -1; }
    .eqChainCanvas { height: 300px; }
    .eqCard__body { padding: 8px; }
    .eqCard__model { font-size: 13px; }
}
