/* ==========================================================================
   Resources & Shared Accounts View
   ========================================================================== */

.resources-view-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 6px;
  padding-bottom: 60px;
}

.resources-category-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.res-cat-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--anim-fast);
}

.res-cat-pill:hover {
  background-color: var(--bg-card-hover);
  color: #fff;
}

.res-cat-pill.active {
  background: var(--accent-gold);
  color: #0b0d13;
  font-weight: 700;
  border-color: var(--accent-gold);
}

/* Resources Cards Grid */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 16px;
}

.res-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 155px;
  gap: 12px;
  transition: all var(--anim-fast);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.res-card:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--border-medium);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.res-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.res-category-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
}

.res-category-tag.cat-3d {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.res-category-tag.cat-render {
  color: #fb923c;
  background: rgba(251, 146, 60, 0.12);
  border: 1px solid rgba(251, 146, 60, 0.25);
}

.res-category-tag.cat-cad {
  color: #34d399;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.25);
}

.res-category-tag.cat-office {
  color: #c084fc;
  background: rgba(192, 132, 252, 0.12);
  border: 1px solid rgba(192, 132, 252, 0.25);
}

.res-category-tag.cat-default {
  color: var(--accent-gold);
  background: var(--accent-gold-subtle);
  border: 1px solid var(--accent-gold-border);
}

.res-card-admin-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.res-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.res-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin: 0;
}

.res-desc {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.res-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: auto;
}

.res-file-info {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-family: monospace;
  color: var(--text-dim);
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.res-file-info span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.res-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  color: #0b0d13 !important;
  background: linear-gradient(135deg, #e5be48, #d4af37);
  border: 1px solid rgba(212, 175, 55, 0.8);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--anim-fast);
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.25);
}

.res-download-btn:hover {
  background: linear-gradient(135deg, #f3cf65, #e5be48);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.45);
  transform: translateY(-1px);
}

/* Shared Accounts Section */
.accounts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 16px;
}

.account-card {
  background: linear-gradient(135deg, rgba(22, 26, 38, 0.9), rgba(16, 19, 28, 0.9));
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.account-card:hover {
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-glow-gold);
}

.account-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.account-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-gold);
}

.account-tag {
  font-size: 10px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
}

.account-field-row {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.account-field-label {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
}

.account-field-val {
  font-family: monospace;
  font-size: 12.5px;
  color: #fff;
  letter-spacing: 0.5px;
}

.btn-copy-field {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 13px;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  transition: all var(--anim-fast);
}

.btn-copy-field:hover {
  color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.1);
}
