/**
 * Argus Shield - Arsenal & Tools Styles
 * Premium, human-crafted design
 */

/* ============================================
   NAV DROPDOWN
   ============================================ */
.nav__dropdown {
  position: relative;
}

.nav__dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 220px;
  background: rgba(15, 15, 36, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.nav__dropdown:hover .nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav__dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.nav__dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-bright);
}

.nav__dropdown-item--current {
  background: rgba(0, 212, 255, 0.08);
  color: var(--cyan-glow);
}

.nav__dropdown-item--disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.nav__dropdown-icon {
  font-size: 16px;
}

.nav__dropdown-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================
   ARSENAL HERO
   ============================================ */
.arsenal-hero {
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}

.arsenal-hero__bg {
  position: absolute;
  inset: 0;
}

.arsenal-hero__gradient {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(45, 45, 122, 0.4) 0%, transparent 70%);
  filter: blur(60px);
}

.arsenal-hero__grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(0, 212, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(180deg, black 0%, transparent 80%);
}

.arsenal-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.arsenal-hero__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--cyan-glow);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}

.arsenal-hero__label-icon {
  display: flex;
}

.arsenal-hero__label-icon svg {
  width: 16px;
  height: 16px;
}

.arsenal-hero__title {
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-bright);
  margin-bottom: 20px;
  line-height: 1;
}

.arsenal-hero__desc {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
}

/* ============================================
   TOOLS GRID
   ============================================ */
.tools-section {
  padding: 0 0 80px;
  position: relative;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Tool Card */
.tool-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 32px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, transparent 50%);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: xor;
  -webkit-mask-composite: xor;
  pointer-events: none;
}

.tool-card--active {
  cursor: pointer;
}

.tool-card--active:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 60px rgba(0, 212, 255, 0.1);
}

.tool-card--soon {
  opacity: 0.6;
}

.tool-card__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-core);
  margin-bottom: 24px;
}

.tool-card__status-dot {
  width: 6px;
  height: 6px;
  background: var(--green-core);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green-core);
  animation: pulse 2s ease-in-out infinite;
}

.tool-card__status--soon {
  color: var(--text-muted);
}

.tool-card__icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(0, 212, 255, 0.05) 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--cyan-glow);
}

.tool-card__icon svg {
  width: 28px;
  height: 28px;
}

.tool-card--soon .tool-card__icon {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  color: var(--text-muted);
}

.tool-card__title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 10px;
}

.tool-card__desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.tool-card__tags {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.tool-card__tag {
  font-size: 11px;
  font-weight: 500;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  color: var(--text-muted);
}

.tool-card__action {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--cyan-glow);
  transition: gap 0.3s;
}

.tool-card__action svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s;
}

.tool-card--active:hover .tool-card__action svg {
  transform: translateX(4px);
}

.tool-card__action--disabled {
  color: var(--text-muted);
}

/* ============================================
   REPORT SECTION
   ============================================ */
.report-section {
  padding: 40px 0 80px;
}

.report-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 32px 40px;
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.08) 0%, rgba(244, 63, 94, 0.02) 100%);
  border: 1px solid rgba(244, 63, 94, 0.15);
  border-radius: 20px;
}

.report-card__content {
  display: flex;
  align-items: center;
  gap: 20px;
}

.report-card__icon {
  width: 52px;
  height: 52px;
  background: rgba(244, 63, 94, 0.15);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--danger);
  flex-shrink: 0;
}

.report-card__icon svg {
  width: 26px;
  height: 26px;
}

.report-card__text h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 4px;
}

.report-card__text p {
  font-size: 14px;
  color: var(--text-secondary);
}

.report-card__btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.3);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--danger);
  cursor: pointer;
  transition: all 0.3s;
  flex-shrink: 0;
}

.report-card__btn:hover {
  background: rgba(244, 63, 94, 0.25);
  border-color: rgba(244, 63, 94, 0.5);
}

.report-card__btn svg {
  width: 18px;
  height: 18px;
}

/* ============================================
   NETWORKS SECTION
   ============================================ */
.networks-section {
  padding: 60px 0 100px;
}

.networks-header {
  text-align: center;
  margin-bottom: 40px;
}

.networks-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 8px;
}

.networks-desc {
  font-size: 15px;
  color: var(--text-muted);
}

.networks-grid {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.network-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  transition: all 0.3s;
}

.network-item--active {
  border-color: rgba(0, 212, 255, 0.3);
  background: rgba(0, 212, 255, 0.05);
}

.network-item--soon {
  opacity: 0.5;
}

.network-item__icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.network-item--active .network-item__icon {
  color: var(--cyan-glow);
}

.network-item__icon svg {
  width: 24px;
  height: 24px;
}

.network-item__name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.network-item__status {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.network-item--active .network-item__status {
  background: rgba(34, 197, 94, 0.15);
  color: var(--green-core);
}

/* ============================================
   MODAL
   ============================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 16, 0.9);
  backdrop-filter: blur(8px);
}

.modal__container {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  transform: scale(0.95) translateY(20px);
  transition: transform 0.3s;
  
  /* Hide scrollbar but keep functionality */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.modal__container::-webkit-scrollbar {
  display: none; /* Chrome/Safari/Opera */
}

.modal.active .modal__container {
  transform: scale(1) translateY(0);
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.modal__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-bright);
}

.modal__close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 10px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.modal__close:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.modal__close svg {
  width: 20px;
  height: 20px;
}

.modal__body {
  padding: 20px 24px;
}

.modal__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
}

.modal__footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 4px;
}

/* Form Elements */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-label .required {
  color: var(--danger);
}

.form-label .optional {
  color: var(--text-muted);
  font-weight: 400;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-deep);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text-primary);
  transition: all 0.2s;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-faint);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--cyan-glow);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 70px;
}

.form-hint {
  display: block;
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 4px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}

.btn--primary {
  background: linear-gradient(135deg, var(--cyan-glow) 0%, var(--cyan-bright) 100%);
  color: var(--bg-void);
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.4);
}

.btn--primary svg {
  width: 18px;
  height: 18px;
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

/* Modal Success State */
.modal__success {
  padding: 32px 24px;
  text-align: center;
}

.modal__success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: rgba(34, 197, 94, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-core);
}

.modal__success-icon svg {
  width: 28px;
  height: 28px;
}

.modal__success h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 8px;
}

.modal__success p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.5;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .tools-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .arsenal-hero {
    padding: 140px 0 60px;
  }
  
  .arsenal-hero__title {
    font-size: 48px;
  }
  
  .report-card {
    flex-direction: column;
    text-align: center;
    padding: 28px;
  }
  
  .report-card__content {
    flex-direction: column;
  }
  
  .networks-grid {
    flex-direction: column;
    align-items: center;
  }
  
  .network-item {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
  
  .modal__footer {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
}