/**
 * QBO Hacks — Global Floating Career Checkup Widget Styles
 * Provides an isolated, zero-conflict floating launcher and modal overlay across the entire website.
 */

:root {
  --qbo-cc-primary: #38bdf8;
  --qbo-cc-accent: #22c55e;
  --qbo-cc-bg: #0b1120;
  --qbo-cc-card: #0f172a;
}

/* Floating Launcher Container at Bottom-Left */
.qbo-career-launcher-root {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 99990;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  pointer-events: auto;
  font-family: 'Plus Jakarta Sans', 'Inter', 'Hind Siliguri', system-ui, -apple-system, sans-serif;
  user-select: none;
}

/* Tooltip Callout */
.qbo-career-tooltip {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 0 15px rgba(56, 189, 248, 0.2);
  margin-bottom: 0.55rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: qboCareerFloat 3s ease-in-out infinite;
  max-width: 320px;
}

@keyframes qboCareerFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.qbo-career-tooltip-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0 0.2rem;
  cursor: pointer;
  border-radius: 4px;
  transition: color 0.2s ease;
}

.qbo-career-tooltip-close:hover {
  color: #ffffff;
}

/* Launcher Pill Button */
.qbo-career-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1.15rem 0.6rem 0.85rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.98));
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 9999px;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.6), 0 0 20px rgba(56, 189, 248, 0.3);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: visible;
  text-decoration: none;
}

.qbo-career-btn:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(56, 189, 248, 0.8);
  box-shadow: 0 16px 36px -5px rgba(0, 0, 0, 0.7), 0 0 30px rgba(56, 189, 248, 0.45);
}

.qbo-career-btn:active {
  transform: translateY(0) scale(0.98);
}

/* Pulse Dot & Ring */
.qbo-career-pulse-ring {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--qbo-cc-primary);
  opacity: 0.75;
  animation: qboCareerPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  pointer-events: none;
}

.qbo-career-pulse-dot {
  position: absolute;
  top: 11px;
  left: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--qbo-cc-accent);
  pointer-events: none;
}

@keyframes qboCareerPulse {
  0% { transform: scale(1); opacity: 0.8; }
  70% { transform: scale(2.8); opacity: 0; }
  100% { transform: scale(2.8); opacity: 0; }
}

/* Icon Box */
.qbo-career-icon-box {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(34, 197, 94, 0.25));
  border: 1px solid rgba(56, 189, 248, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  flex-shrink: 0;
}

.qbo-career-icon-box svg {
  width: 18px;
  height: 18px;
}

/* Text Box */
.qbo-career-text-box {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.qbo-career-pill-tag {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #38bdf8;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 0.2rem;
}

.qbo-career-pill-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.2;
}

.qbo-career-arrow-box {
  color: #94a3b8;
  margin-left: 0.25rem;
  display: flex;
  align-items: center;
}

.qbo-career-arrow-box svg {
  width: 16px;
  height: 16px;
}

/* Modal Overlay Backdrop */
.qbo-career-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(10, 15, 29, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.qbo-career-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* Modal Window Container */
.qbo-career-modal-container {
  background: var(--qbo-cc-bg);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 20px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 35px rgba(56, 189, 248, 0.18);
  width: 100%;
  max-width: 960px;
  height: 90vh;
  max-height: 840px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.96) translateY(14px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.qbo-career-modal-backdrop.active .qbo-career-modal-container {
  transform: scale(1) translateY(0);
}

/* Modal Top Bar */
.qbo-career-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background: var(--qbo-cc-card);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  user-select: none;
}

.qbo-career-modal-header-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.qbo-career-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  text-transform: uppercase;
}

.qbo-career-modal-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0;
}

.qbo-career-modal-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  transition: all 0.2s ease;
}

.qbo-career-modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
  transform: rotate(90deg);
}

/* Modal Body with Sandboxed Iframe */
.qbo-career-modal-body {
  flex: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  background: var(--qbo-cc-bg);
}

.qbo-career-iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: var(--qbo-cc-bg);
  display: block;
}

/* Loading Placeholder */
.qbo-career-iframe-loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--qbo-cc-bg);
  color: #94a3b8;
  font-size: 0.85rem;
  gap: 0.75rem;
  z-index: 1;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.qbo-career-iframe-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.qbo-career-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(56, 189, 248, 0.2);
  border-top-color: #38bdf8;
  border-radius: 50%;
  animation: qboCareerSpin 0.8s linear infinite;
}

@keyframes qboCareerSpin {
  to { transform: rotate(360deg); }
}

/* Mobile Responsive Layout */
@media (max-width: 768px) {
  .qbo-career-launcher-root {
    bottom: 16px;
    left: 14px;
  }

  .qbo-career-btn {
    padding: 0.5rem 0.95rem 0.5rem 0.65rem;
    min-height: 44px;
  }

  .qbo-career-pill-tag {
    font-size: 0.56rem;
  }

  .qbo-career-pill-title {
    font-size: 0.8rem;
  }

  .qbo-career-modal-backdrop {
    padding: 0;
    align-items: flex-end;
  }

  .qbo-career-modal-container {
    max-width: 100%;
    width: 100%;
    height: 94vh;
    max-height: 94vh;
    border-radius: 20px 20px 0 0;
    border-bottom: none;
    transform: translateY(100%);
  }

  .qbo-career-modal-backdrop.active .qbo-career-modal-container {
    transform: translateY(0);
  }

  .qbo-career-modal-header {
    padding: 0.75rem 1rem;
  }
}
