/* ── project-iot.css ─────────────────────────────────── */

/* IoT accent — cyjan / electric blue, tech/hardware vibe */
:root {
  --iot-accent:      #06b6d4;
  --iot-accent2:     #22d3ee;
  --iot-grad-start:  #0ea5e9;
  --iot-grad-end:    #06b6d4;
}

/* Category badge */
.proj-category {
  color: var(--iot-accent2);
}

/* Title span gradient */
.proj-title span,
.iot-grad {
  background: linear-gradient(135deg, var(--iot-grad-start), var(--iot-grad-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Primary button */
.btn-primary {
  background: linear-gradient(135deg, var(--iot-grad-start), var(--iot-grad-end));
  border-color: transparent;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #0284c7, #0891b2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.35);
}

/* Team avatar accent */
.iot-avatar {
  background: linear-gradient(135deg, var(--iot-grad-start), var(--iot-grad-end)) !important;
}

/* ── GALLERY ────────────────────────────────────────────── */
.iot-gallery {
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: start;
}

.iot-gallery .gallery-item img {
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.iot-gallery .iot-tall img {
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

@media (max-width: 900px) {
  .iot-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 500px) {
  .iot-gallery {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ── LANGUAGE BAR ───────────────────────────────────────── */
.lang-bars {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.lang-bar-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

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

.lang-bar-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

.lang-bar-pct {
  font-size: 0.75rem;
  font-family: 'Courier New', monospace;
  color: rgba(255, 255, 255, 0.45);
}

.lang-bar-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 99px;
  overflow: hidden;
}

.lang-bar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.6s ease;
}

.lang-bar-fill.kotlin     { background: linear-gradient(90deg, #7f52ff, #a97bff); }
.lang-bar-fill.ruby       { background: linear-gradient(90deg, #cc342d, #e05c54); }
.lang-bar-fill.swift      { background: linear-gradient(90deg, #f05138, #f47c5d); }
.lang-bar-fill.typescript { background: linear-gradient(90deg, #3178c6, #5a9fd4); }
.lang-bar-fill.javascript { background: linear-gradient(90deg, #f7df1e, #fae96a); }

/* ── DEPS TABLE ─────────────────────────────────────────── */
.deps-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.deps-group {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  overflow: hidden;
}

.deps-group-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.2rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.88rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
}

.deps-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.15s;
}

.deps-item:last-child {
  border-bottom: none;
}

.deps-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.deps-name {
  font-family: 'Courier New', monospace;
  font-size: 0.78rem;
  color: var(--iot-accent2);
  font-weight: 600;
}

.deps-version {
  font-family: 'Courier New', monospace;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
}

.deps-desc {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  text-align: right;
}

/* ── SCRIPTS TABLE ──────────────────────────────────────── */
.scripts-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  overflow: hidden;
}

.scripts-table th {
  padding: 0.7rem 1.1rem;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.scripts-table td {
  padding: 0.65rem 1.1rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.scripts-table tr:last-child td {
  border-bottom: none;
}

.scripts-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.scripts-table td:first-child {
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  color: var(--iot-accent);
  font-weight: 600;
  white-space: nowrap;
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .deps-item {
    grid-template-columns: 1fr auto;
  }
  .deps-desc {
    display: none;
  }
}

@media (max-width: 640px) {
  .deps-item {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
  .deps-version {
    font-size: 0.68rem;
  }
  .scripts-table th:last-child,
  .scripts-table td:last-child {
    display: none;
  }
}