/* ============================================================
   PROJECT DETAIL PAGES — Additional Styles
   ============================================================ */

/* Button small variant */
.btn-sm {
  padding: 10px 20px;
  font-size: 0.82rem;
  border-radius: 10px;
}

/* Project Hero */
.project-hero {
  padding: calc(var(--nav-h) + 64px) 0 80px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.project-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.project-hero-text {
  flex: 1;
}

.project-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.project-hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.project-hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 560px;
}

.project-hero-visual {
  flex-shrink: 0;
}

.project-hero-icon {
  width: 160px;
  height: 160px;
  background: var(--accent-dim);
  border: 1px solid rgba(56, 189, 248, 0.15);
  border-radius: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--accent);
}

/* Detail Grid */
.project-detail-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

/* Detail Blocks */
.detail-block {
  margin-bottom: 48px;
}

.detail-block h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.detail-block h2 i {
  color: var(--accent);
  font-size: 1rem;
}

.detail-block p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 14px;
}

/* Architecture Cards */
.architecture-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.arch-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}

.arch-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.arch-card-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.arch-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.arch-card p {
  font-size: 0.83rem !important;
  color: var(--text-muted) !important;
  line-height: 1.6 !important;
  margin-bottom: 0 !important;
}

/* Feature List */
.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  color: var(--text-secondary);
  font-size: 0.93rem;
  border-bottom: 1px solid var(--border);
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list li i {
  color: var(--accent);
  font-size: 0.75rem;
  margin-top: 5px;
  flex-shrink: 0;
}

/* Sidebar */
.project-detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px;
}

.sidebar-card h3 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.sidebar-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.sidebar-list {
  list-style: none;
  padding: 0;
}

.sidebar-list li {
  padding: 6px 0;
  font-size: 0.87rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.sidebar-list li:last-child {
  border-bottom: none;
}

/* Status Badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
}

.status-badge.active {
  color: #28c840;
}

.status-badge .badge-dot {
  background: #28c840;
}

/* Other Projects */
.other-projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.other-project-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.4s, transform 0.4s var(--ease), box-shadow 0.4s;
  text-decoration: none;
}

.other-project-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}

.other-project-icon {
  width: 52px;
  height: 52px;
  background: var(--accent-dim);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.other-project-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.other-project-card p {
  font-size: 0.87rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.other-project-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s var(--ease);
}

.other-project-card:hover .other-project-link {
  gap: 14px;
}

/* Responsive */
@media (max-width: 900px) {
  .project-detail-grid {
    grid-template-columns: 1fr;
  }

  .project-detail-sidebar {
    position: static;
  }

  .project-hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .project-hero-badges {
    justify-content: center;
  }

  .project-hero-desc {
    max-width: 100%;
  }

  .architecture-cards {
    grid-template-columns: 1fr;
  }

  .other-projects-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .project-hero {
    padding: calc(var(--nav-h) + 40px) 0 56px;
  }

  .project-hero-icon {
    width: 120px;
    height: 120px;
    font-size: 3rem;
    border-radius: 28px;
  }
}
