/* css/style.css - Shared Styles for ZapMi Calculator Hub */

/* CSS Variables */
:root {
  --primary: #8b5cf6;
  --primary-dark: #7c3aed;
  --dark: #0f172a;
  --card: #1e293b;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --success: #10b981;
  --danger: #ef4444;
  --border: #334155;
}

/* Global Reset & Base */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--dark);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary);
}

/* Buttons */
.btn-primary {
  @apply bg-gradient-to-r from-purple-600 to-indigo-600 text-white font-semibold px-6 py-3 rounded-full hover:shadow-xl transform hover:scale-105 transition-all duration-200 inline-block;
}

/* Cards */
.card {
  background: var(--card);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 25px -5px rgba(139, 92, 246, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Forms */
input, select, textarea {
  @apply w-full p-3 rounded-lg bg-slate-700 text-white border border-slate-600 focus:border-purple-500 focus:ring-2 focus:ring-purple-500 focus:outline-none transition-all duration-200;
}

input::placeholder, select::placeholder {
  color: #94a3b8;
}

/* Overlay & Popup */
.overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
  z-index: 999;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

.popup {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 90%;
  max-width: 520px;
  background: var(--card);
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.popup.active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  visibility: visible;
}

/* Result Boxes */
.result-box {
  @apply mt-4 p-4 rounded-lg text-center font-bold;
}

.result-success { @apply bg-green-900/30 text-green-400; }
.result-danger { @apply bg-red-900/30 text-red-400; }
.result-normal { @apply bg-slate-700 text-white; }

/* Breadcrumbs */
.breadcrumb {
  @apply text-sm text-gray-400;
}

.breadcrumb a {
  @apply hover:text-purple-400 transition-colors;
}

/* Utility Classes */
.text-gradient {
  background: linear-gradient(to right, #a78bfa, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shadow-glow {
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.transition-all {
  transition: all 0.3s ease;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  .btn-primary { @apply px-5 py-2.5 text-sm; }
  .popup { width: 95%; }
}

/* Print Styles */
@media print {
  .overlay, .popup, header, footer, .adsbygoogle { display: none !important; }
  body { background: white; color: black; }
}

