/* =========================================
   vgroup.css — password gate + tabs styles
   Add <link rel="stylesheet" href="css/vgroup.css"> to vgroup.html
   ========================================= */

/* ── PASSWORD GATE OVERLAY ── */
.gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(18px) brightness(0.92);
  -webkit-backdrop-filter: blur(18px) brightness(0.92);
  background: rgba(255, 255, 255, 0.45);
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

/* Header floats above the gate overlay so back button is always accessible */
.case-study-header {
  position: relative;
  z-index: 10000;
}

.gate-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ── PASSWORD CARD ── */
.gate-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  padding: 48px 40px 40px;
  width: min(90vw, 360px);
  text-align: center;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.10);
  animation: cardIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

.gate-card h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 1.1rem;
  margin: 0 0 6px;
  color: #111;
}

.gate-card p {
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: 0.82rem;
  color: #777;
  margin: 0 0 24px;
  line-height: 1.5;
}

/* ── PASSWORD INPUT ── */
.gate-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  font-weight: 400;
  padding: 12px 16px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s;
  color: #111;
  background: #fafafa;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}

.gate-input:focus {
  border-color: #111;
}

.gate-input.error {
  border-color: #e05c5c;
  animation: shake 0.35s ease;
}

@keyframes shake {
  0%,100% { transform: translateX(0); }
  25%      { transform: translateX(-6px); }
  75%      { transform: translateX(6px); }
}

/* ── ERROR MESSAGE ── */
.gate-error {
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  color: #e05c5c;
  margin: 0 0 14px;
  min-height: 1.1em;
}

/* ── SUBMIT BUTTON ── */
.gate-btn {
  width: 100%;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 12px 0;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: background 0.18s, transform 0.1s;
}

.gate-btn:hover  { background: #333; }
.gate-btn:active { transform: scale(0.98); }

/* ── TABS BAR ── */
.tabs-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 48px 0;
}

.tabs-bar {
  display: flex;
  gap: 0;
  border-bottom: 1.5px solid #e8e8e8;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tabs-bar::-webkit-scrollbar { display: none; }

/* ── TAB BUTTONS ── */
.tab-btn {
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  color: #999;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 14px 24px 12px;
  cursor: pointer;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
  margin-bottom: -1.5px;
}

.tab-btn:hover { color: #333; }

.tab-btn.active {
  color: #111;
  border-bottom-color: #4caf7d;
  font-weight: 500;
}

/* ── TAB PANELS ── */
.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeUp 0.3s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .tabs-container {
    padding: 24px 20px 0;
  }

  .tab-btn {
    padding: 12px 16px 10px;
    font-size: 0.85rem;
  }

  .gate-card {
    padding: 36px 28px 32px;
  }
}