/* =============================================================
   Inside Cyber Defense — Project Pages Shared Styles
   Direction 3 "Structured Authority"
   Palette: Navy #1D2D4A · Gold #B8860B · Off-white #FAFAF8
   Used by all 11 cybersecurity project detail pages.
   ============================================================= */

/* ---------------------------------------------------------------
   COMING SOON / IN-PROGRESS STATE
   Applied to project/lab pages while content is being written.
   Remove this section and swap .coming-soon-section for real
   content when the page is ready to publish.
--------------------------------------------------------------- */
.coming-soon-section {
  background-color: #FAFAF8;
  padding: 80px 0 100px;
}

.coming-soon-card {
  background: #ffffff;
  border-radius: 8px;
  border-top: 3px solid #B8860B;
  box-shadow: 0 1px 4px rgba(0,0,0,.07), 0 4px 18px rgba(0,0,0,.06);
  max-width: 560px;
  margin: 0 auto;
  padding: 56px 48px 52px;
  text-align: center;
}

.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #B8860B;
  background: rgba(184,134,11,.08);
  border: 1px solid rgba(184,134,11,.22);
  border-radius: 100px;
  padding: 5px 16px;
  margin-bottom: 28px;
}

.coming-soon-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(29,45,74,.05);
  border: 2px solid rgba(184,134,11,.22);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
}

.coming-soon-icon i {
  font-size: 28px;
  color: #B8860B;
}

.coming-soon-title {
  font-family: 'Lora', Georgia, serif;
  font-weight: 700;
  font-size: 26px;
  color: #1D2D4A;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.coming-soon-text {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: #6B7280;
  margin-bottom: 36px;
}

/* ---------------------------------------------------------------
   PAGE LAYOUT
--------------------------------------------------------------- */
.project-content {
  background-color: #FAFAF8;
  padding: 48px 0 72px;
}

/* ---------------------------------------------------------------
   PROJECT SECTION CARD
--------------------------------------------------------------- */
.project-section {
  margin-bottom: 32px;
  background-color: #ffffff;
  padding: 32px 36px;
  border-radius: 8px;
  border-top: 3px solid #B8860B;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07), 0 4px 18px rgba(0, 0, 0, 0.06);
}

.project-section h3 {
  font-family: 'Lora', Georgia, serif;
  color: #1D2D4A;
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.project-section h3 i {
  color: #B8860B;
  font-size: 18px;
  flex-shrink: 0;
}

.project-section p {
  font-family: 'Inter', sans-serif;
  color: #374151;
  font-size: 15px;
  line-height: 1.7;
}

.project-section ul {
  padding-left: 20px;
}

.project-section ul li {
  margin-bottom: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: #374151;
}

.project-section ul li strong {
  color: #1D2D4A;
  font-weight: 600;
}

.project-meta {
  margin-top: 20px;
  font-size: 14px;
  color: #6B7280;
  font-family: 'Inter', sans-serif;
}

.project-meta strong {
  color: #1D2D4A;
  font-weight: 600;
}

/* ---------------------------------------------------------------
   PROJECT GALLERY
   PLACEHOLDER IMAGE SPEC: 800×533px (3:2 ratio)
--------------------------------------------------------------- */
.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.gallery-item {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07), 0 4px 12px rgba(0, 0, 0, 0.06);
  background-color: #F3F2EF;
  border: 1px solid rgba(28, 28, 30, 0.08);
}

/* Lightbox anchor */
.gallery-item a.lightbox {
  display: block;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  line-height: 0;
}

/* Navy overlay on hover */
.gallery-item a.lightbox::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(29, 45, 74, 0.55);
  opacity: 0;
  transition: opacity 0.22s ease;
  z-index: 1;
}

/* Gold magnifier icon on hover */
.gallery-item a.lightbox::after {
  content: '\f00e';
  font-family: 'FontAwesome';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
  font-size: 30px;
  color: #B8860B;
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 2;
  pointer-events: none;
  line-height: 1;
}

.gallery-item a.lightbox:hover::before,
.gallery-item a.lightbox:hover::after {
  opacity: 1;
}

.gallery-item a.lightbox:hover::after {
  transform: translate(-50%, -50%) scale(1);
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.gallery-item a.lightbox:hover img {
  transform: scale(1.04);
}

.gallery-item p {
  padding: 10px 14px;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #6B7280;
  background-color: #fff;
  margin: 0;
  line-height: 1.4;
  border-top: 1px solid rgba(28, 28, 30, 0.07);
}

/* ---------------------------------------------------------------
   EXPANDABLE "MORE SCREENSHOTS" SECTION
--------------------------------------------------------------- */
.gallery-more {
  display: none;
  margin-top: 4px;
}

.gallery-more.is-open {
  display: block;
}

/* Toggle button */
.gallery-toggle-wrap {
  margin-top: 18px;
  text-align: center;
}

.gallery-toggle-btn {
  background: transparent;
  border: 1.5px solid rgba(184, 134, 11, 0.5);
  color: #B8860B;
  padding: 8px 24px;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.gallery-toggle-btn:hover {
  background: #B8860B;
  border-color: #B8860B;
  color: #fff;
}

.gallery-toggle-btn i {
  margin-right: 6px;
}

/* ---------------------------------------------------------------
   VIDEO EMBED
--------------------------------------------------------------- */
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  background-color: #0F1E33;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-placeholder-note {
  margin-top: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #9CA3AF;
  font-style: italic;
}

/* ---------------------------------------------------------------
   CODE SNIPPET BLOCK
--------------------------------------------------------------- */
.code-snippet {
  background-color: #0F1E33;
  color: #F0EDE8;
  border-radius: 6px;
  padding: 20px 24px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  line-height: 1.65;
  overflow-x: auto;
  margin-top: 16px;
  border-left: 3px solid #B8860B;
}

/* ---------------------------------------------------------------
   PROJECT NAVIGATION BAR
--------------------------------------------------------------- */
.project-nav-section {
  background-color: #1D2D4A;
  padding: 28px 0;
  border-top: none;
}

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

/* Override btn-border for navy background */
.project-nav-section .btn-border {
  color: rgba(240, 237, 232, 0.85);
  border-color: rgba(240, 237, 232, 0.35);
  background-color: transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.project-nav-section .btn-border:hover {
  background-color: rgba(240, 237, 232, 0.1);
  border-color: rgba(240, 237, 232, 0.65);
  color: #F0EDE8;
}

/* btn-common in project nav */
.project-nav-section .btn-common {
  background-color: #B8860B;
  border-color: #B8860B;
  color: #fff;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.project-nav-section .btn-common:hover {
  background-color: #9A710A;
  border-color: #9A710A;
  box-shadow: 0 4px 14px rgba(184, 134, 11, 0.35);
}

/* Hero button transition */
.header-button .btn {
  transition: background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

@media (max-width: 575px) {
  .project-nav-bar {
    flex-direction: column;
    gap: 12px;
  }
}

/* ---------------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------------- */
@media (max-width: 767px) {
  .project-section {
    padding: 22px 18px;
  }

  .gallery-item img {
    height: 180px;
  }

  .project-gallery {
    grid-template-columns: 1fr;
  }

  .gallery-toggle-btn {
    width: 100%;
  }
}

/* ---------------------------------------------------------------
   NIVO LIGHTBOX — Direction 3 (Navy + Gold)
--------------------------------------------------------------- */

/* Backdrop */
.nivo-lightbox-overlay {
  background: rgba(15, 30, 51, 0.95) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ---- CLOSE button ---- */
.nivo-lightbox-close {
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(184, 134, 11, 0.08);
  border: 1.5px solid rgba(184, 134, 11, 0.4);
  color: #B8860B;
  text-decoration: none;
  transition: background 0.22s ease, border-color 0.22s ease,
              box-shadow 0.22s ease, transform 0.3s ease;
  z-index: 9999999;
}

.nivo-lightbox-close:hover,
.nivo-lightbox-close:focus {
  background: rgba(184, 134, 11, 0.2);
  border-color: #B8860B;
  box-shadow: 0 0 16px rgba(184, 134, 11, 0.4);
  transform: rotate(90deg) scale(1.1);
  color: #fff;
  text-decoration: none;
}

.nivo-lightbox-close .icon-close {
  font-size: 15px;
  line-height: 1;
  display: block;
}

/* ---- PREV / NEXT buttons ---- */
.nivo-lightbox-nav {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(184, 134, 11, 0.08);
  border: 1.5px solid rgba(184, 134, 11, 0.4);
  text-decoration: none;
  font-size: 0;
  color: transparent;
  transition: background 0.22s ease, border-color 0.22s ease,
              box-shadow 0.22s ease, transform 0.22s ease;
  top: 50%;
  margin-top: -24px;
  z-index: 9999999;
}

.nivo-lightbox-prev { left: 18px; }
.nivo-lightbox-next { right: 18px; }

.nivo-lightbox-nav:hover,
.nivo-lightbox-nav:focus {
  background: rgba(184, 134, 11, 0.2);
  border-color: #B8860B;
  box-shadow: 0 0 18px rgba(184, 134, 11, 0.4);
  transform: scale(1.1);
  text-decoration: none;
}

/* Chevron icons */
.nivo-lightbox-prev::before,
.nivo-lightbox-next::before {
  font-family: 'FontAwesome';
  font-size: 17px;
  color: #B8860B;
  line-height: 1;
  display: block;
  transition: color 0.2s ease;
}

.nivo-lightbox-prev::before { content: '\f053'; }
.nivo-lightbox-next::before { content: '\f054'; }

.nivo-lightbox-nav:hover::before,
.nivo-lightbox-nav:focus::before { color: #F0EDE8; }

/* ---- Image caption ---- */
.nivo-lightbox-title-wrap {
  bottom: -4px;
}

.nivo-lightbox-title {
  display: inline-block;
  background: rgba(15, 30, 51, 0.82);
  border: 1px solid rgba(184, 134, 11, 0.35);
  border-radius: 20px;
  padding: 5px 18px;
  font-family: 'Inter', sans-serif;
  color: rgba(240, 237, 232, 0.9);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Mobile */
@media (max-width: 575px) {
  .nivo-lightbox-nav {
    width: 38px;
    height: 38px;
    margin-top: -19px;
  }
  .nivo-lightbox-prev { left: 6px; }
  .nivo-lightbox-next { right: 6px; }
  .nivo-lightbox-prev::before,
  .nivo-lightbox-next::before { font-size: 14px; }
  .nivo-lightbox-close {
    width: 38px;
    height: 38px;
    top: 10px;
    right: 10px;
  }
}

/* ---------------------------------------------------------------
   PROJECT OVERVIEW HEADLINE
--------------------------------------------------------------- */
.project-section .proj-headline {
  font-family: 'Lora', Georgia, serif;
  font-size: 21px;
  font-weight: 700;
  color: #1D2D4A;
  line-height: 1.45;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

/* ---------------------------------------------------------------
   PROJECT LINKS ROW
--------------------------------------------------------------- */
.proj-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.proj-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 4px;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: background-color 0.2s ease, color 0.2s ease,
              border-color 0.2s ease, box-shadow 0.2s ease;
}

.proj-link-btn.github {
  background-color: #1D2D4A;
  color: #F0EDE8;
  border: 1px solid #1D2D4A;
}
.proj-link-btn.github:hover {
  background-color: #263f6b;
  border-color: #263f6b;
  color: #fff;
  box-shadow: 0 4px 14px rgba(29,45,74,0.28);
  text-decoration: none;
}

.proj-link-btn.demo {
  background-color: transparent;
  color: #B8860B;
  border: 1.5px solid rgba(184,134,11,0.5);
}
.proj-link-btn.demo:hover {
  background-color: #B8860B;
  border-color: #B8860B;
  color: #fff;
  text-decoration: none;
}

.proj-link-btn.writeup {
  background-color: transparent;
  color: #6B7280;
  border: 1.5px solid rgba(107,114,128,0.38);
}
.proj-link-btn.writeup:hover {
  background-color: #6B7280;
  border-color: #6B7280;
  color: #fff;
  text-decoration: none;
}

/* ---------------------------------------------------------------
   ASSET PLACEHOLDER  (replace when diagram / screenshot is ready)
--------------------------------------------------------------- */
.proj-asset-placeholder {
  margin: 28px 0;
  padding: 44px 24px;
  border: 2px dashed rgba(184,134,11,0.3);
  border-radius: 8px;
  background: rgba(29,45,74,0.025);
  text-align: center;
}

.proj-asset-placeholder .placeholder-icon {
  font-size: 34px;
  color: rgba(184,134,11,0.38);
  margin-bottom: 12px;
}

.proj-asset-placeholder .placeholder-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: #B8860B;
  margin-bottom: 8px;
}

.proj-asset-placeholder .placeholder-desc {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #9CA3AF;
  line-height: 1.55;
  margin: 0;
}

/* ---------------------------------------------------------------
   METRICS LIST
--------------------------------------------------------------- */
.project-section .proj-metrics {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
}

.project-section .proj-metrics li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(28,28,30,0.07);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: #374151;
}

.project-section .proj-metrics li:last-child {
  border-bottom: none;
}

.proj-metrics .metric-icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(184,134,11,0.08);
  border: 1px solid rgba(184,134,11,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 3px;
}

.proj-metrics .metric-icon i {
  font-size: 12px;
  color: #B8860B;
}

/* ---------------------------------------------------------------
   SKILL TAGS
--------------------------------------------------------------- */
.proj-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.proj-tag {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 5px 13px;
  border-radius: 100px;
  background: rgba(29,45,74,0.06);
  border: 1px solid rgba(29,45,74,0.16);
  color: #374151;
}

.proj-tag.crypto {
  background: rgba(184,134,11,0.07);
  border-color: rgba(184,134,11,0.28);
  color: #7a5500;
}

@media (max-width: 575px) {
  .proj-link-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ---------------------------------------------------------------
   SKILL TAGS — SHOW MORE / SHOW LESS (mobile only)
--------------------------------------------------------------- */
.proj-tags-controls {
  display: none; /* hidden on desktop */
}

@media (max-width: 767px) {
  .proj-tag-extra {
    display: none;
  }

  .proj-tag-extra.visible {
    display: inline-block;
  }

  .proj-tags-controls {
    display: flex;
    gap: 8px;
    margin-top: 12px;
  }
}

.proj-tags-btn {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  border: 1.5px solid var(--navy, #1D2D4A);
  background: transparent;
  color: var(--navy, #1D2D4A);
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}

.proj-tags-btn:hover {
  background: var(--navy, #1D2D4A);
  color: #fff;
}
