/* === IN DEVELOPMENT PAGE STYLES === */

/* Page Header */
.indev-header {
  padding: 120px 0 60px;
  text-align: center;
}

.indev-title {
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 16px;
  color: #fff;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.indev-subtitle {
  color: var(--muted); /* Inherits from style.css */
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Grid Layout */
.dev-feed {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding-bottom: 80px;
}

/* Card Container */
.dev-item {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: #1a1512;
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 320px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* The first item spans across both columns */
.dev-item.featured {
  grid-column: 1 / -1;
  min-height: 450px;
}

.dev-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.6);
  border-color: rgba(224, 90, 1, 0.4);
}

/* Background Media (Image or Video) */
.dev-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.5s ease;
  opacity: 0.6;
  filter: saturate(0.8);
  background: #000;
}

.dev-item:hover .dev-bg {
  transform: scale(1.05);
  opacity: 0.4;
  filter: saturate(1.1);
}

/* Gradient Overlay */
.dev-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
}

/* Text Content */
.dev-info {
  position: relative;
  z-index: 2;
  padding: 32px;
}

.dev-tags {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

/* Status Pills */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Status Colors */
.st-active { border-color: rgba(224, 90, 1, 0.4); color: #ffae00; }
.st-active::before { content:''; display:block; width:6px; height:6px; background:#ffae00; border-radius:50%; box-shadow: 0 0 8px #ffae00; }

.st-concept { border-color: rgba(64, 150, 255, 0.4); color: #64b5f6; }
.st-concept::before { content:''; display:block; width:6px; height:6px; background:#64b5f6; border-radius:50%; }

.dev-info h3 {
  font-size: 1.75rem;
  margin: 0 0 10px;
  color: #fff;
}

.dev-info p {
  color: #ccc;
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.5;
  max-width: 600px;
}

/* Responsive */
@media (max-width: 768px) {
  .dev-feed { grid-template-columns: 1fr; }
  .dev-item.featured { min-height: 350px; }
  .dev-info { padding: 24px; }
  .dev-info h3 { font-size: 1.4rem; }
  .indev-header { padding: 100px 0 40px; }
}

/* === GLASS MODAL & GALLERY === */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.modal-backdrop.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-glass {
  width: 100%;
  max-width: 900px;
  background: rgba(22, 18, 15, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transform: translateY(0);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.modal-backdrop.hidden .modal-glass {
  transform: translateY(20px) scale(0.95);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  display: grid;
  place-items: center;
  transition: all 0.2s;
}

.modal-close-btn:hover {
  background: #E05A01;
  border-color: #E05A01;
}

.modal-gallery {
  position: relative;
  background: #000;
  aspect-ratio: 16 / 9;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#modal-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.15s ease;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 5;
}

.gallery-nav:hover {
  background: rgba(224, 90, 1, 0.8);
}

.nav-left { left: 16px; padding-right: 2px; }
.nav-right { right: 16px; padding-left: 2px; }

.gallery-counter {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.6);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: #fff;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.1);
}

.modal-content {
  padding: 24px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

#modal-title { margin: 0 0 8px; font-size: 1.5rem; color: #fff; }
#modal-desc { margin: 0; color: rgba(255,213,185,0.6); font-size: 1rem; line-height: 1.5; }

@media (max-width: 600px) {
  .modal-gallery { aspect-ratio: 4 / 3; }
  .modal-content { padding: 20px; }
}