/* =========================================================
   LukeRalph.ca Drone Library
   Page-specific stylesheet
   Loads after style.css and video.css
   ========================================================= */

/* ===== Drone Library Page ===== */
body.drone-library{
  --video-accent: #76c7ff;
}

body.drone-library .video-page{
  position: relative;
  z-index: 2;
  isolation: isolate;
  width: min(1180px, calc(100% - 28px));
  margin: 28px auto 44px;
  padding: 22px;
}

.drone-page-panel{
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  box-shadow:
    0 18px 60px rgba(0,0,0,0.46),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

.drone-page-panel::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #131821;
  border-radius: inherit;
  pointer-events: none;
}

.drone-page-panel > *{
  position: relative;
  z-index: 1;
}

.drone-logo-hero{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
  background: #182030;
}

.drone-logo-wrap{
  display: flex;
  align-items: center;
  min-width: 0;
}

.drone-page-logo{
  display: block;
  width: min(430px, 100%);
  max-height: 110px;
  object-fit: contain;
  object-position: left center;
}

body.drone-library .video-tools{
  background: #101620;
  border-color: rgba(255,255,255,0.12);
  backdrop-filter: none;
}

body.drone-library .video-card,
body.drone-library .drone-spec-card,
body.drone-library .empty{
  background: #101620;
  backdrop-filter: none;
}

body.drone-library .video-info,
body.drone-library .specsheet{
  background: #101620;
}

body.drone-library input[type="search"],
body.drone-library .filter-btn,
body.drone-library .backlink{
  background: #1a2332;
}

body.drone-library .video-frame,
body.drone-library .video-frame video{
  background: #000;
}

body.drone-library .video-section-head h2{
  display: flex;
  align-items: center;
  gap: 10px;
}

body.drone-library .video-section-head h2::before{
  content: "";
  width: 4px;
  height: 22px;
  border-radius: 999px;
  background: var(--accent);
}

.drone-specs{
  margin-top: 34px;
}

.drone-spec-grid{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.drone-spec-card{
  grid-column: span 4;
  overflow: hidden;
  border: 1px solid var(--video-line);
  border-radius: 22px;
  box-shadow: 0 12px 34px rgba(0,0,0,0.30);
}

.drone-spec-card:hover,
body.drone-library .video-card:hover{
  border-color: rgba(77,163,255,0.62);
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(0,0,0,0.38);
}

.spec-img{
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
  border-bottom: 1px solid var(--video-line);
}

.spec-img.legacy{
  filter: grayscale(0.25) contrast(1.05);
}

.specsheet{
  font-family: var(--mono);
  font-size: 12px;
}

.specsheet .hdr{
  padding: 13px 14px;
  border-bottom: 1px solid var(--video-line);
  color: var(--video-text);
  background: #182030;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.specsheet table{
  width: 100%;
  border-collapse: collapse;
}

.specsheet td{
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  vertical-align: top;
  background: #101620;
}

.specsheet tr:last-child td{
  border-bottom: 0;
}

.specsheet td.k{
  width: 34%;
  color: var(--video-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

@media (max-width: 1080px){
  .drone-spec-card{
    grid-column: span 6;
  }
}

@media (max-width: 680px){
  body.drone-library .video-page{
    width: min(100% - 20px, 1180px);
    margin-top: 12px;
    padding: 14px;
  }

  .drone-logo-hero{
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .drone-page-logo{
    width: 100%;
    max-height: 95px;
  }

  body.drone-library .backlink{
    width: fit-content;
  }

  .drone-spec-card{
    grid-column: span 12;
  }
}
