/* 4gpackages.com - Custom Styles */

*, *::before, *::after { box-sizing: border-box; }

body { font-family: 'Inter', sans-serif; }

/* Tool Card Hover */
.tool-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}
.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

/* Category Badge */
.category-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Tool Page Styles */
.tool-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05);
  padding: 24px;
  margin-bottom: 24px;
}

/* Textarea */
textarea, input[type="text"], input[type="number"], input[type="url"], select {
  width: 100%;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  transition: border-color 0.2s;
  outline: none;
  color: #374151;
  background: #f9fafb;
}
textarea:focus, input[type="text"]:focus, input[type="number"]:focus, input[type="url"]:focus, select:focus {
  border-color: #3b82f6;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

textarea { resize: vertical; min-height: 140px; }

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #2563eb;
  color: white;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.btn-primary:hover { background: #1d4ed8; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f3f4f6;
  color: #374151;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 8px;
  border: 1.5px solid #e5e7eb;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-secondary:hover { background: #e5e7eb; border-color: #d1d5db; }

.btn-success {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #16a34a;
  color: white;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-success:hover { background: #15803d; }

/* Result Box */
.result-box {
  background: #f0f9ff;
  border: 1.5px solid #bae6fd;
  border-radius: 8px;
  padding: 16px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  white-space: pre-wrap;
  word-break: break-all;
  min-height: 80px;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
}
.stat-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 12px;
  text-align: center;
}
.stat-card .stat-value {
  font-size: 22px;
  font-weight: 800;
  color: #1e40af;
  line-height: 1;
}
.stat-card .stat-label {
  font-size: 11px;
  color: #6b7280;
  margin-top: 4px;
  font-weight: 500;
}

/* AdSense Placeholder */
.ad-placeholder {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 2px dashed #bae6fd;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}

/* Hero gradient */
.hero-gradient {
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 40%, #2563eb 60%, #3b82f6 100%);
}

/* Search bar glow */
.search-glow:focus-within {
  box-shadow: 0 0 0 4px rgba(59,130,246,0.2);
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Fancy Text Styles */
.fancy-text-option {
  padding: 8px 12px;
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.fancy-text-option:hover { border-color: #3b82f6; background: #eff6ff; }

/* Password strength bar */
.strength-bar {
  height: 6px;
  border-radius: 3px;
  transition: width 0.3s, background 0.3s;
}

/* Copy toast */
#copyToast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1e3a8a;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s;
  pointer-events: none;
}
#copyToast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Breadcrumb */
.breadcrumb a { color: #2563eb; }
.breadcrumb span { color: #9ca3af; }

/* FAQ accordion */
.faq-item details summary { cursor: pointer; list-style: none; }
.faq-item details summary::-webkit-details-marker { display: none; }
.faq-item details[open] summary { color: #2563eb; }

/* Skeleton loading */
@keyframes shimmer {
  0% { background-position: -200px 0; }
  100% { background-position: calc(200px + 100%) 0; }
}
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200px 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}

/* Tool category header icon */
.cat-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

/* Mobile responsive */
@media (max-width: 640px) {
  .tool-container { padding: 16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
