/* ============================================
   F-14 TOMCAT — GLASSMORPHISM CSS
   ============================================ */

/* Base glass panel */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  box-shadow:
    0 8px 32px var(--glass-shadow),
    0 0 0 1px rgba(0,212,255,0.04),
    inset 0 1px 0 rgba(0,212,255,0.1),
    inset 0 -1px 0 rgba(0,0,0,0.3);
  position: relative;
  overflow: hidden;
  padding: 28px;
}

/* Subtle inner shine on top */
.glass-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(0,212,255,0.25) 30%,
    rgba(0,255,229,0.15) 50%,
    rgba(0,212,255,0.25) 70%,
    transparent 100%
  );
  pointer-events: none;
}

/* Diagonal inner light gradient */
.glass-panel::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0,212,255,0.03) 0%,
    transparent 50%,
    rgba(0,0,0,0.1) 100%
  );
  pointer-events: none;
  border-radius: inherit;
}

/* Inset glass for nested elements */
.glass-inset {
  background: rgba(0, 8, 20, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 212, 255, 0.1);
  border-radius: 6px;
  box-shadow:
    inset 0 2px 8px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(0,212,255,0.05);
  position: relative;
}
.glass-inset::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(0,212,255,0.12),
    transparent
  );
  pointer-events: none;
}

/* Result glass — extra glow */
.glass-result {
  background: rgba(0, 20, 50, 0.5);
  backdrop-filter: blur(20px) saturate(200%);
  -webkit-backdrop-filter: blur(20px) saturate(200%);
  border: 1px solid rgba(0, 212, 255, 0.22);
  border-radius: 8px;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(0, 212, 255, 0.06),
    inset 0 1px 0 rgba(0,212,255,0.15),
    inset 0 -1px 0 rgba(0,0,0,0.3);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.glass-result::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 0%,
    rgba(0,212,255,0.06) 0%,
    transparent 60%
  );
  pointer-events: none;
}

/* Hover glow effect on panels */
.glass-panel:hover {
  border-color: rgba(0, 212, 255, 0.28);
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.7),
    0 0 60px rgba(0, 212, 255, 0.06),
    inset 0 1px 0 rgba(0,212,255,0.15);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

/* Active/focused glow */
.glass-panel:focus-within {
  border-color: rgba(0, 212, 255, 0.35);
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.7),
    0 0 80px rgba(0, 212, 255, 0.1),
    inset 0 1px 0 rgba(0,212,255,0.2);
}

/* Frosted glass for header / footer */
.main-header.glass-panel,
.main-footer.glass-panel {
  background: rgba(0, 5, 15, 0.75);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border-radius: 0;
  border-left: none;
  border-right: none;
}
