/* =========================================================
   NISMARA FLIGHT CARD – FINAL STABLE VERSION
   Compatible with WordPress + Gutenberg + Gutenverse
   ========================================================= */

/* === GRID CONTAINER === */
.nismara-flight-grid {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 1.5rem;

  align-items: stretch;
  justify-items: stretch;

  margin-top: 2rem;
}

/* Force Gutenberg / Gutenverse wrapper */
.wp-block-column .nismara-flight-grid,
.guten-element .nismara-flight-grid {
  width: 100% !important;
  max-width: 100% !important;
  display: grid !important;
}

/* === CARD === */
.flight-card-nis {
  width: 100%;
  max-width: 100%;
  height: 100%;

  display: flex;
  flex-direction: column;

  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #56365C;

  background: #ffffff;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.flight-card-nis:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(86, 54, 92, 0.25);
}

/* === HEADER === */
.flight-header-nis {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 0.8rem 1rem;
  background: #f9faff;
  border-bottom: 1px solid #e6e6e6;
}

.flight-header-nis .left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.flight-header-nis .callsign {
  background: #56365C;
  color: #ffffff;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.85rem;
}

.flight-header-nis .aircraft {
  font-size: 0.8rem;
  color: #333;
}

.flight-header-nis .date {
  background: #000;
  color: #fff;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 6px;
}

/* === IMAGE === */
.flight-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* === BODY (ROUTE) === */
.flight-body {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 1rem 1.2rem;
  text-align: center;
  margin-bottom: 0.6rem;
}

.flight-body .airport {
  flex: 1;
}

.flight-body .airport strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: #000;
}

.flight-body .airport span {
  display: block;
  font-size: 0.8rem;
  color: #444;
}

.flight-body .route-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.flight-body .plane-icon {
  font-size: 1.3rem;
}

.flight-body .duration {
  background: #000;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
}

/* === PILOT INFO === */
.flight-pilot {
  text-align: center;
  font-size: 0.85rem;
  color: #000;
  font-weight: 500;
  margin-bottom: 0.6rem;
}

/* === STATUS BAR (BOTTOM) === */
.flight-status-bottom {
  margin-top: auto;
  padding: 0.8rem 1rem;

  border-top: 1px solid #eee;
  text-align: center;
}

.status-bar-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #000;
  margin-bottom: 0.4rem;
}

.status-bar {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #eaeaea;
  overflow: hidden;
}

.status-fill {
  height: 6px;
  width: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #56365C, #795F80);
  transition: width 0.3s ease;
}

/* === MOBILE === */
@media (max-width: 768px) {
  .nismara-flight-grid {
    display: flex !important;
    flex-direction: column;
    gap: 1.5rem;
  }

  .flight-card-nis {
    width: 100%;
    max-width: 100%;
  }
}
