/* Typography Imports - must be at top */
@import url("https://fonts.googleapis.com/css2?family=Raleway:wght@100;300;400;500;700;900&family=Orbitron:wght@400;500;700;900&display=swap");

/* ===================================
   COLOR PALETTE
   =================================== */

:root {
  /* Primary Colors */
  --color-primary-purple: #8261ee;
  --color-primary-pink: #ff589e;
  --color-accent-orange: #FF9170;
  --color-accent-purple-light: #a759d1;
  --color-purple-darker: #9d5bd9;

  /* Glitch/Cyber Theme Colors */
  --color-cyber-cyan: #64dcdc;
  --color-cyber-aqua: #00fff9;
  --color-cyber-magenta: #ff00c1;

  /* Background Colors */
  --color-bg-black: #0a0a0a;
  --color-bg-dark: #000;
  --color-bg-white: #fff;
  --color-bg-light-purple: #f2f2fe;

  /* Text Colors */
  --color-text-dark: #1e1e1e;
  --color-text-medium: #3B566E;
  --color-text-light: #777;
  --color-text-lighter: #7a7a7a;
  --color-text-muted: #6F8BA4;
  --color-text-white: #fff;

  /* Border/Divider Colors */
  --color-border: #eee;

  /* Legacy mappings for backwards compatibility */
  --accent-color: var(--color-primary-purple);
  --button-color: var(--color-primary-pink);
  --secondary-text: var(--color-text-light);
  --dark-text: var(--color-text-dark);

  /* Font Weights */
  --font-weight-light: 100;
  --font-weight-book: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700;
  --font-weight-black: 900;

  /* Border Radius */
  --border-radius-small: 20px;
  --border-radius-full: 100px;
  --border-radius-button: 20px;

  /* Box Shadows */
  --shadow-card: 0 2px 48px 0 rgba(0, 0, 0, 0.10);
  --shadow-nav: 0px 0px 15px rgba(0,0,0,0.1);

  /* Spacing */
  --spacing-xs: 15px;
  --spacing-sm: 20px;
  --spacing-md: 30px;
  --spacing-lg: 60px;
  --spacing-xl: 80px;
  --spacing-xxl: 100px;

  /* Transitions */
  --transition-standard: all 0.3s ease 0s;

  /* Gradients */
  --gradient-purple: linear-gradient(127deg, #a759d1 0%, #8261ee 91%);
  --gradient-purple-alt: linear-gradient(135deg, #a759d1 0%, #8261ee 100%);
}

/* Selection */
::selection {
  background: var(--color-primary-pink);
  color: var(--color-text-white);
}

/* Base Styles */
body {
  font-family: 'Raleway', sans-serif;
  font-weight: var(--font-weight-regular);
  background: var(--color-bg-white);
  color: var(--color-text-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Navigation */
.navbar {
  background: var(--gradient-purple);
  box-shadow: var(--shadow-nav);
  padding: 1.2rem 0;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 600;
  color: white !important;
  letter-spacing: -0.5px;
}

.navbar-brand:hover {
  color: #f0f0f0 !important;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  transition: all 0.3s;
}

.nav-link:hover {
  color: white !important;
  transform: translateY(-1px);
}

/* Main Layout */
.main-content {
  flex: 1;
  padding: 3rem 0;
}

/* Cards */
.card {
  border: none;
  border-radius: var(--border-radius-small);
  box-shadow: var(--shadow-card);
  padding: 2.5rem;
  margin-bottom: 2rem;
  background: var(--color-bg-white);
  transition: var(--transition-standard);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 60px 0 rgba(0, 0, 0, 0.15);
}

.card-header-custom {
  border-bottom: 3px solid var(--color-primary-purple);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

/* Typography */
h1 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--dark-text);
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dark-text);
  margin-bottom: 1.5rem;
}

.subtitle {
  color: var(--secondary-text);
  font-size: 1rem;
  margin-bottom: 0;
}

.text-muted {
  color: var(--secondary-text) !important;
}

/* Forms */
.form-label {
  font-weight: 500;
  color: var(--dark-text);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-control {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  transition: all 0.3s;
}

.form-control:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.2rem rgba(88, 166, 28, 0.15);
}

/* Buttons */
.btn-primary,
.main-button {
  background: var(--color-primary-purple);
  border: none;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: var(--font-weight-medium);
  border-radius: var(--border-radius-button);
  text-transform: uppercase;
  letter-spacing: 0.25px;
  color: var(--color-text-white);
  transition: var(--transition-standard);
  box-shadow: 0 2px 8px rgba(130, 97, 238, 0.3);
}

.btn-primary:hover,
.main-button:hover {
  background: var(--color-primary-pink);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 88, 158, 0.4);
  color: var(--color-text-white);
}

.btn-primary:active,
.main-button:active {
  transform: translateY(0);
}

.btn-primary:disabled,
.main-button:disabled {
  background: var(--bs-gray-600);
  cursor: not-allowed;
  opacity: 0.8;
  transform: none;
  box-shadow: none;
}

.btn-success {
  background: var(--color-primary-purple);
  border: none;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: var(--font-weight-medium);
  border-radius: var(--border-radius-button);
  text-transform: uppercase;
  letter-spacing: 0.25px;
  transition: var(--transition-standard);
  box-shadow: 0 2px 8px rgba(130, 97, 238, 0.3);
}

.btn-success:hover {
  background: var(--color-primary-pink);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 88, 158, 0.4);
}

.btn-success:disabled {
  background: var(--bs-gray-600);
  cursor: not-allowed;
  opacity: 0.8;
  transform: none;
  box-shadow: none;
}

.btn.disabled,
.btn:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.main-button-slider {
  font-size: 1rem;
  border-radius: var(--border-radius-button);
  padding: 12px 20px;
  background: var(--color-accent-orange);
  text-transform: uppercase;
  color: var(--color-text-white);
  letter-spacing: 1px;
  transition: var(--transition-standard);
  border: none;
}

.main-button-slider:hover {
  background: var(--color-primary-purple);
  color: var(--color-text-white);
}

.btn-outline-warning {
  color: #ff9800;
  border: 2px solid #ff9800;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s;
}

.btn-outline-warning:hover {
  background: #ff9800;
  border-color: #ff9800;
  color: white;
}

/* Alerts */
.alert {
  border: none;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.alert-danger {
  background: #fee;
  color: #c33;
  border-left: 4px solid #c33;
}

.alert-success {
  background: #f0e7ff;
  color: #6b21a8;
  border-left: 4px solid var(--color-primary-purple);
}

.alert-warning {
  background: #fff3cd;
  color: #856404;
  border-left: 4px solid #ffb300;
}

/* Code Blocks */
.code-block {
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 1.25rem;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 0.9rem;
  overflow-x: auto;
}

.code-block code {
  color: #d63384;
  background: transparent;
}

pre {
  background: #2d2d2d;
  color: #f8f8f2;
  padding: 1.25rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1rem 0;
}

/* Info Boxes */
.info-box {
  background: #f0f7ff;
  border-left: 4px solid var(--button-color);
  padding: 1.25rem;
  border-radius: 8px;
  margin: 1.5rem 0;
}

/* Badges */
.badge-custom {
  background: var(--accent-color);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.85rem;
}

/* Credentials Display */
.credential-box {
  background: #fafafa;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.credential-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--secondary-text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.credential-value {
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 0.9rem;
  color: var(--dark-text);
  word-break: break-all;
}

/* Footer Links */
.footer-link {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e0e0e0;
  color: var(--secondary-text);
}

.footer-link a {
  color: var(--button-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.footer-link a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

/* Tables */
.table {
  margin-top: 1rem;
}

.table thead {
  background: #f8f9fa;
}

.table th {
  font-weight: 600;
  color: var(--dark-text);
  border-bottom: 2px solid var(--accent-color);
}

/* Captcha */
.captcha-container {
  margin: 1.5rem 0;
}

/* ===================================
   SERVICE CARDS
   =================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-card {
  background: var(--color-bg-white);
  border-radius: var(--border-radius-small);
  box-shadow: var(--shadow-card);
  padding: 2rem;
  text-decoration: none;
  color: var(--color-text-dark);
  transition: var(--transition-standard);
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 60px 0 rgba(0, 0, 0, 0.15);
  text-decoration: none;
  color: var(--color-text-dark);
}

.service-card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.service-card-title {
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: 0.75rem;
  color: var(--color-text-dark);
}

.service-card-description {
  color: var(--color-text-medium);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-card-badge {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border-radius: var(--border-radius-button);
  font-size: 0.75rem;
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: auto;
}

.service-card-badge.active {
  background: var(--color-primary-purple);
  color: var(--color-text-white);
}

.service-card-badge.coming-soon {
  background: var(--color-text-muted);
  color: var(--color-text-white);
}

/* Service-specific hover effects */
.service-card[data-service="nutrition"]:hover {
  border-color: #58a61c;
}

.service-card[data-service="weather"]:hover {
  border-color: #4ca5fc;
}

.service-card[data-service="flights"]:hover {
  border-color: #7c3aed;
}

.service-card[data-service="stocks"]:hover {
  border-color: #eab308;
}

/* Responsive Design */
@media (max-width: 768px) {
  .card {
    padding: 1.5rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  .main-content {
    padding: 2rem 0;
  }
}
