/* ============================================
   JABANA.TECH - GLOBAL STYLES
   Brown & Blue Tech Theme - Extracted from Next.js
   ============================================ */

/* ============================================
   CUSTOM PROPERTIES
   ============================================ */
:root {
  /* Blue Family */
  --color-blue-50: #e6f3ff;
  --color-blue-100: #cce7ff;
  --color-blue-200: #99cfff;
  --color-blue-300: #66b7ff;
  --color-blue-400: #339fff;
  --color-blue-500: #0087ff;
  --color-blue-600: #006ecc;
  --color-blue-700: #005299;
  --color-blue-800: #003766;
  --color-blue-900: #001b33;

  /* Brown Family */
  --color-brown-50: #faf6f3;
  --color-brown-100: #f5ede7;
  --color-brown-200: #ebdbcf;
  --color-brown-300: #d4b5a0;
  --color-brown-400: #bd8f71;
  --color-brown-500: #a67c52;
  --color-brown-600: #8b6a45;
  --color-brown-700: #6e5538;
  --color-brown-800: #52402a;
  --color-brown-900: #352a1c;

  /* Accent Colors */
  --color-cyan: #00d9ff;
  --color-orange: #ff6b35;
  --color-tech-green: #00ff88;

  /* Background Gradients */
  --bg-gradient-dark: linear-gradient(135deg, #0a1128 0%, #1e3a5f 50%, #0f1c2e 100%);
  --bg-gradient-code: linear-gradient(to bottom, rgba(10, 17, 40, 0.95), rgba(30, 58, 95, 0.95));

  /* Glass Effects */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* ============================================
   BASE STYLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-color: #374151;
}

body {
  color: #f3f4f6;
  font-family: 'Fira Code', 'JetBrains Mono', 'Courier New', monospace;
  background: var(--bg-gradient-dark);
  overflow-x: hidden;
  line-height: 1.6;
}

::selection {
  background: var(--color-blue-500);
  color: white;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-brown-900);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--color-blue-600), var(--color-brown-600));
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--color-blue-500), var(--color-brown-500));
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: all 0.3s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.875rem;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid var(--glass-border);
  color: var(--color-blue-400);
  text-decoration: none;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: var(--color-blue-400);
  box-shadow: 0 10px 30px rgba(0, 135, 255, 0.3);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-blue-600), var(--color-blue-800));
  color: white;
  border: 2px solid var(--color-blue-500);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 135, 255, 0.5);
  border-color: var(--color-blue-400);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--color-brown-600), var(--color-brown-800));
  color: white;
  border: 2px solid var(--color-brown-500);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(166, 124, 82, 0.4);
}

.btn-danger {
  background: linear-gradient(135deg, #dc2626, #991b1b);
  color: white;
  border: 2px solid #ef4444;
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.4);
}

.btn-outline {
  background: transparent;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid var(--color-blue-500);
  color: var(--color-blue-400);
}

.btn-outline:hover {
  background: var(--color-blue-500);
  color: white;
  box-shadow: 0 0 20px rgba(0, 135, 255, 0.5);
  transform: translateY(-2px);
}

/* ============================================
   GLASS EFFECT
   ============================================ */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
}

/* ============================================
   INPUT FIELDS
   ============================================ */
.input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 9999px;
  transition: all 0.3s;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  color: white;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: inherit;
}

.input:focus {
  border-color: var(--color-blue-500);
  box-shadow: 0 0 20px rgba(0, 135, 255, 0.3);
  outline: none;
}

.input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.input-error {
  border-color: #ef4444;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  padding: 2rem;
  box-shadow: var(--glass-shadow);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(0, 135, 255, 0.2);
  border-color: rgba(0, 135, 255, 0.3);
}

.card-glow {
  position: relative;
}

.card-glow::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--color-blue-500), var(--color-brown-500), var(--color-blue-500));
  border-radius: 20px;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s;
  filter: blur(10px);
}

.card-glow:hover::before {
  opacity: 1;
}

.tech-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  padding: 2rem;
  box-shadow: var(--glass-shadow);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.tech-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(0, 135, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

/* ============================================
   TABLES
   ============================================ */
.table-container {
  overflow-x: auto;
  border-radius: 0.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
}

.table {
  width: 100%;
  font-size: 0.875rem;
  text-align: left;
}

.table thead {
  background: linear-gradient(135deg, rgba(0, 135, 255, 0.1), rgba(166, 124, 82, 0.1));
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--color-blue-300);
}

.table th {
  padding: 1rem 1.5rem;
  font-weight: 700;
  border-bottom: 2px solid var(--color-blue-500);
}

.table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.table tbody tr {
  transition: all 0.3s;
}

.table tbody tr:hover {
  background: rgba(0, 135, 255, 0.05);
  transform: scale(1.01);
}

/* ============================================
   BADGES
   ============================================ */
.badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid;
}

.badge-success {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.1));
  color: var(--color-tech-green);
  border-color: var(--color-tech-green);
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.badge-warning {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.2), rgba(234, 179, 8, 0.1));
  color: #fbbf24;
  border-color: #fbbf24;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

.badge-danger {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.1));
  color: #f87171;
  border-color: #f87171;
  box-shadow: 0 0 10px rgba(248, 113, 113, 0.3);
}

.badge-info {
  background: linear-gradient(135deg, rgba(0, 135, 255, 0.2), rgba(0, 135, 255, 0.1));
  color: var(--color-blue-400);
  border-color: var(--color-blue-400);
  box-shadow: 0 0 10px rgba(0, 135, 255, 0.3);
}

/* ============================================
   SECTION HEADINGS
   ============================================ */
.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--color-blue-400), var(--color-brown-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-blue-500), transparent);
}

/* ============================================
   LINKS
   ============================================ */
.tech-link {
  position: relative;
  display: inline-block;
  color: var(--color-blue-400);
  text-decoration: none;
  transition: color 0.3s;
}

.tech-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-blue-500), var(--color-brown-500));
  transition: width 0.3s;
}

.tech-link:hover {
  color: var(--color-blue-300);
}

.tech-link:hover::after {
  width: 100%;
}

/* ============================================
   TEXT GRADIENTS
   ============================================ */
.text-gradient-blue {
  background: linear-gradient(135deg, var(--color-blue-400), var(--color-blue-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-brown {
  background: linear-gradient(135deg, var(--color-brown-400), var(--color-brown-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-mix {
  background: linear-gradient(135deg, var(--color-blue-400), var(--color-brown-400), var(--color-blue-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text {
  background: linear-gradient(135deg, var(--color-blue-400), var(--color-brown-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   GLOW EFFECTS
   ============================================ */
.glow-blue {
  box-shadow: 0 0 20px rgba(0, 135, 255, 0.5);
}

.glow-brown {
  box-shadow: 0 0 20px rgba(166, 124, 82, 0.5);
}

.glow-text-blue {
  text-shadow: 0 0 20px rgba(0, 135, 255, 0.8);
}

.glow-text-brown {
  text-shadow: 0 0 20px rgba(166, 124, 82, 0.8);
}

.shadow-glow {
  box-shadow: 0 0 20px rgba(0, 135, 255, 0.4);
}

.shadow-glow-lg {
  box-shadow: 0 0 40px rgba(0, 135, 255, 0.6);
}

/* ============================================
   ANIMATIONS
   ============================================ */
.animated-bg {
  background: linear-gradient(-45deg, #0a1128, #1e3a5f, #2d4a6f, #1a2f4a);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.pulse-glow {
  animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(0, 135, 255, 0.5);
  }
  50% {
    box-shadow: 0 0 40px rgba(0, 135, 255, 0.8);
  }
}

.float {
  animation: float 3s ease-in-out infinite;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

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

.slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.slide-in-right {
  animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.animate-glow {
  animation: pulseGlow 2s ease-in-out infinite;
}

/* ============================================
   CODE STYLING
   ============================================ */
.code-block {
  background: rgba(0, 0, 0, 0.4);
  border-left: 4px solid var(--color-blue-500);
  padding: 1rem;
  border-radius: 8px;
  font-family: 'Fira Code', monospace;
  overflow-x: auto;
}

/* ============================================
   PATTERNS
   ============================================ */
.grid-pattern {
  background-image:
    linear-gradient(rgba(0, 135, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 135, 255, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
}

.hex-pattern {
  background-image:
    radial-gradient(circle at 50% 50%, rgba(0, 135, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(166, 124, 82, 0.1) 0%, transparent 50%);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.feature-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  padding: 1.5rem;
  border-radius: 1rem;
  transition: all 0.3s;
}

.feature-card:hover {
  transform: scale(1.05);
}

.section {
  padding: 5rem 0;
}

@media (min-width: 768px) {
  .section {
    padding: 8rem 0;
  }
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

.status-badge {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  font-size: 0.875rem;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: .5;
  }
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background-color: #4ade80;
  animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

.bg-dark-800 {
  background-color: rgba(10, 17, 40, 0.8);
}

.bg-dark-900 {
  background-color: rgba(10, 17, 40, 0.95);
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }

  .card,
  .tech-card {
    padding: 1.5rem;
  }

  .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.8125rem;
  }
}
