/* Globotech — Component Styles (IDE mockup, mobile mockup, misc) */

/* ── IDE / CODE PANEL MOCKUP ─────────────────────────────────────────────── */
.ide-mockup {
  background: #0f1117;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
  font-family: 'Fira Code', 'Cascadia Code', monospace;
  font-size: 13px;
}
.ide-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #1a1d27;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ide-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.ide-dot--red   { background: #ff5f57; }
.ide-dot--amber { background: #ffbd2e; }
.ide-dot--green { background: #28c840; }
.ide-body {
  padding: 20px;
  line-height: 1.7;
  color: #abb2bf;
  overflow: auto;
}
.ide-body .kw  { color: #c678dd; }
.ide-body .fn  { color: #61afef; }
.ide-body .str { color: #98c379; }
.ide-body .cm  { color: #5c6370; font-style: italic; }
.ide-body .num { color: #d19a66; }

/* ── MOBILE DEVICE MOCKUP ────────────────────────────────────────────────── */
.mobile-mockup {
  position: relative;
  width: 260px;
  margin: 0 auto;
}
.mobile-frame {
  position: relative;
  background: #0f1117;
  border-radius: 36px;
  border: 3px solid rgba(255,255,255,0.12);
  padding: 48px 12px 36px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4), inset 0 0 0 1px rgba(255,255,255,0.04);
}
.mobile-notch {
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 100px; height: 24px;
  background: #0f1117;
  border-radius: 12px;
  border: 3px solid rgba(255,255,255,0.08);
}
.mobile-screen {
  border-radius: 22px;
  overflow: hidden;
  background: #1a1d27;
  min-height: 420px;
}
.mobile-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── CALCULATOR / PRICING WIDGET ─────────────────────────────────────────── */
.calc-widget {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 28px;
  backdrop-filter: blur(12px);
}
.calc-widget__label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal, #33c5f3);
  margin-bottom: 6px;
}
.calc-widget__val {
  font-size: 40px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.calc-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.12);
  outline: none;
  margin: 16px 0;
}
.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--teal, #33c5f3);
  cursor: pointer;
  box-shadow: 0 0 0 4px rgba(51,197,243,0.2);
}

/* ── CMS PANEL MOCKUP ────────────────────────────────────────────────────── */
.cms-panel {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e8e8ea;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}
.cms-panel__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid #e8e8ea;
  background: #fafafa;
  font-size: 13px;
  font-weight: 600;
  color: #333;
}
.cms-panel__body { padding: 18px; }
.cms-panel__field {
  margin-bottom: 14px;
}
.cms-panel__field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #888;
  margin-bottom: 4px;
}
.cms-panel__input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 13px;
  color: #333;
  background: #fff;
}
.cms-panel__btn {
  padding: 9px 18px;
  background: var(--teal, #33c5f3);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

/* ── RESPONSIVE SPLIT PANELS ─────────────────────────────────────────────── */
.split-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split-panels--reverse { direction: rtl; }
.split-panels--reverse > * { direction: ltr; }
@media (max-width: 768px) {
  .split-panels,
  .split-panels--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
}

/* ── BADGE / CHIP ─────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}
.badge--teal {
  background: rgba(51,197,243,0.12);
  color: var(--teal, #33c5f3);
  border: 1px solid rgba(51,197,243,0.25);
}
.badge--green {
  background: rgba(52,211,153,0.12);
  color: #34d399;
  border: 1px solid rgba(52,211,153,0.25);
}
.badge--purple {
  background: rgba(167,139,250,0.12);
  color: #a78bfa;
  border: 1px solid rgba(167,139,250,0.25);
}
.badge--dot::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

/* ── GLASS CARD ───────────────────────────────────────────────────────────── */
.glass-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius, 20px);
  backdrop-filter: blur(12px);
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(51,197,243,0.3);
}

/* ── ICON BOX ─────────────────────────────────────────────────────────────── */
.icon-box {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(51,197,243,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-box svg,
.icon-box img {
  width: 24px; height: 24px;
}
.icon-box--lg {
  width: 64px; height: 64px;
  border-radius: 16px;
}
.icon-box--lg svg,
.icon-box--lg img {
  width: 32px; height: 32px;
}

/* ── TESTIMONIAL CARD ────────────────────────────────────────────────────── */
.testimonial-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 28px;
}
.testimonial-card__quote {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-card__quote::before { content: '\201C'; }
.testimonial-card__quote::after  { content: '\201D'; }
.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-card__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(51,197,243,0.3);
}
.testimonial-card__name {
  font-weight: 700;
  font-size: 14px;
  color: #fff;
}
.testimonial-card__role {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}
.testimonial-card__stars {
  color: #f59e0b;
  font-size: 13px;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

/* ── STAT PILL ────────────────────────────────────────────────────────────── */
.stat-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  text-align: center;
  min-width: 120px;
}
.stat-pill__val {
  font-size: 28px;
  font-weight: 800;
  color: var(--teal, #33c5f3);
  line-height: 1;
}
.stat-pill__lbl {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── AVATAR STACK ─────────────────────────────────────────────────────────── */
.avatar-stack {
  display: flex;
}
.avatar-stack__item {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid #1a1d27;
  margin-left: -10px;
  object-fit: cover;
}
.avatar-stack__item:first-child { margin-left: 0; }
.avatar-stack__count {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid #1a1d27;
  margin-left: -10px;
  background: rgba(51,197,243,0.15);
  color: var(--teal, #33c5f3);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── TOOLTIP ──────────────────────────────────────────────────────────────── */
[data-tooltip] {
  position: relative;
  cursor: default;
}
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1a1d27;
  color: #fff;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 100;
}
[data-tooltip]:hover::after { opacity: 1; }

/* ── DIVIDER ──────────────────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: rgba(255,255,255,0.07);
  margin: 48px 0;
}
.divider--teal {
  background: linear-gradient(90deg, transparent, var(--teal, #33c5f3), transparent);
}

/* ── SCROLL PROGRESS BAR ─────────────────────────────────────────────────── */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: var(--teal, #33c5f3);
  width: 0%;
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ── BACK-TO-TOP ──────────────────────────────────────────────────────────── */
#back-to-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--teal, #33c5f3);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 999;
  box-shadow: 0 4px 16px rgba(51,197,243,0.4);
}
#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}
#back-to-top:hover {
  background: #1ab0e0;
  transform: translateY(-2px);
}

/* ── COOKIE BANNER ───────────────────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #0f1117;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 9998;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner__text { font-size: 13px; color: rgba(255,255,255,0.7); }
.cookie-banner__btns { display: flex; gap: 10px; flex-shrink: 0; }

/* ── MODAL OVERLAY ───────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal-box {
  background: #1a1d27;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 40px;
  max-width: 520px;
  width: 90%;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s ease;
}
.modal-overlay.open .modal-box {
  transform: translateY(0) scale(1);
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: none;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover { background: rgba(255,255,255,0.12); }

/* ── NOTICE / ALERT BANNERS ──────────────────────────────────────────────── */
.notice {
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}
.notice--success {
  background: rgba(52,211,153,0.1);
  border: 1px solid rgba(52,211,153,0.25);
  color: #34d399;
}
.notice--error {
  background: rgba(248,113,113,0.1);
  border: 1px solid rgba(248,113,113,0.25);
  color: #f87171;
}
.notice--info {
  background: rgba(51,197,243,0.1);
  border: 1px solid rgba(51,197,243,0.25);
  color: var(--teal, #33c5f3);
}

/* ── PAGINATION ───────────────────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 40px 0;
}
.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.pagination a {
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.07);
}
.pagination a:hover {
  background: rgba(51,197,243,0.12);
  color: var(--teal, #33c5f3);
  border-color: rgba(51,197,243,0.3);
}
.pagination .current {
  background: var(--teal, #33c5f3);
  color: #fff;
}

/* ── BREADCRUMBS ─────────────────────────────────────────────────────────── */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 24px;
}
.breadcrumbs a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
}
.breadcrumbs a:hover { color: var(--teal, #33c5f3); }
.breadcrumbs .sep { opacity: 0.3; }
.breadcrumbs .current { color: rgba(255,255,255,0.8); }

/* ── TAG CLOUD ────────────────────────────────────────────────────────────── */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag-cloud a {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: all 0.2s;
}
.tag-cloud a:hover {
  background: rgba(51,197,243,0.12);
  border-color: rgba(51,197,243,0.3);
  color: var(--teal, #33c5f3);
}

/* ── FORM FIELD FOCUS GLOW ───────────────────────────────────────────────── */
.form-field {
  position: relative;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--teal, #33c5f3);
  box-shadow: 0 0 0 3px rgba(51,197,243,0.15);
}

/* ── LOADING SPINNER ─────────────────────────────────────────────────────── */
.spinner {
  width: 24px; height: 24px;
  border: 2px solid rgba(255,255,255,0.12);
  border-top-color: var(--teal, #33c5f3);
  border-radius: 50%;
  animation: spinRing 0.7s linear infinite;
}

/* ── RESPONSIVE VISIBILITY ───────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
}
@media (min-width: 769px) {
  .hide-desktop { display: none !important; }
}
