/* ============================================================
   MALA OS v2 — Yacht Directory View Styles
   ============================================================ */

@import url('../tokens.css');

/* ── Yacht Grid ── */
.yacht-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.yacht-card {
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-base);
  cursor: pointer;
}

.yacht-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.yacht-card-image {
  position: relative;
  height: 160px;
  background: var(--surface-elevated);
  overflow: hidden;
}

.yacht-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.yacht-card:hover .yacht-card-image img {
  transform: scale(1.05);
}

.yacht-card-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 22, 40, 0.8) 100%);
}

.yacht-card-badge {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
}

.yacht-card-completeness {
  position: absolute;
  bottom: var(--space-3);
  right: var(--space-3);
}

.yacht-card-body {
  padding: var(--space-4);
}

.yacht-card-name {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.yacht-card-meta {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

.yacht-card-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
}

.yacht-card-spec {
  text-align: center;
  padding: var(--space-2);
  background: var(--surface-panel);
  border-radius: var(--radius-md);
}

.yacht-card-spec-value {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
}

.yacht-card-spec-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.yacht-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--surface-glass-border);
  background: rgba(255, 255, 255, 0.01);
}

.yacht-card-supplier {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.yacht-card-actions {
  display: flex;
  gap: var(--space-1);
}

/* ── Yacht List View (Table) ── */
.yacht-list-row {
  display: grid;
  grid-template-columns: 48px 1fr 120px 100px 100px 120px 48px;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--surface-glass-border);
  transition: background var(--transition-fast);
}

.yacht-list-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.yacht-list-thumb {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: var(--surface-elevated);
}

.yacht-list-name {
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  font-size: var(--text-sm);
}

.yacht-list-name .meta {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: var(--weight-regular);
  margin-top: 2px;
}

/* ── View Toggle ── */
.view-toggle {
  display: flex;
  gap: var(--space-1);
  background: var(--surface-panel);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--radius-md);
  padding: var(--space-1);
}

.view-toggle-btn {
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.view-toggle-btn.active {
  background: var(--gold-500);
  color: var(--text-inverse);
}

/* ── Filter Bar ── */
.filter-bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-5);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.filter-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: var(--weight-semibold);
}

/* ── Bulk Actions ── */
.bulk-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  background: var(--surface-panel);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
}

.bulk-bar-left {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.bulk-count {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.bulk-count strong {
  color: var(--gold-500);
}

.bulk-bar-right {
  display: flex;
  gap: var(--space-2);
}
