/* SSC Kenya - Custom Styles (Shared Hosting Version) */
/* This file contains all custom CSS from globals.css */

:root {
  --gold: #C9A84C;
  --gold-light: #E8C96A;
  --gold-dark: #A07830;
  --black: #0A0A0A;
  --black-soft: #1A1A1A;
  --cream: #FAFAFA;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--black);
  color: var(--cream);
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
}

/* Gold gradient text utility */
.text-gold-gradient {
  background: linear-gradient(135deg, #C9A84C 0%, #E8C96A 50%, #A07830 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Gold border glow */
.gold-glow {
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.3);
}

/* Card styles */
.card-dark {
  background: #111111;
  border: 1px solid #2A2A2A;
  border-radius: 0.75rem;
}

/* Button styles */
.btn-gold {
  background: linear-gradient(135deg, #C9A84C, #E8C96A);
  color: #0A0A0A;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-gold:hover {
  background: linear-gradient(135deg, #E8C96A, #C9A84C);
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.4);
  transform: translateY(-1px);
}

.btn-outline-gold {
  background: transparent;
  color: #C9A84C;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 0.375rem;
  border: 1px solid #C9A84C;
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-outline-gold:hover {
  background: rgba(201, 168, 76, 0.1);
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.2);
}

/* Section divider */
.gold-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #C9A84C, transparent);
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #1A1A1A; }
::-webkit-scrollbar-thumb { background: #C9A84C; border-radius: 3px; }

/* Futuristic page background */
body.futuristic {
  background-color: #0A0A0A;
  background-image:
    linear-gradient(rgba(201,168,76,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  background-attachment: fixed;
}

/* Orb layer */
body.futuristic::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 50% at 10% 10%, rgba(201,168,76,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 90% 90%, rgba(201,168,76,0.05) 0%, transparent 70%),
    radial-gradient(ellipse 80% 40% at 50% 50%, rgba(201,168,76,0.025) 0%, transparent 70%);
  pointer-events: none;
}

/* Futuristic card */
.card-futuristic {
  background: linear-gradient(135deg, #111111 0%, #161616 100%);
  border: 1px solid rgba(201,168,76,0.12);
  border-radius: 0.75rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}

.card-futuristic::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.35), transparent);
}

.card-futuristic:hover {
  border-color: rgba(201,168,76,0.28);
  transform: translateY(-2px);
}

/* Prevent horizontal overflow */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  body.futuristic {
    background-attachment: scroll;
    background-size: 40px 40px;
  }
  
  .gold-glow {
    box-shadow: 0 0 10px rgba(201, 168, 76, 0.2);
  }
  
  .card-futuristic:hover,
  .card-dark:hover {
    transform: none;
  }
  
  .btn-gold, .btn-outline-gold {
    min-height: 44px;
    padding: 0.625rem 1.25rem;
  }
}

/* Animate fade-in utility */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease forwards;
}

/* Loading spinner */
.spinner {
  border: 3px solid rgba(201, 168, 76, 0.1);
  border-top-color: #C9A84C;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Form styles */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #111111;
  border: 1px solid #2A2A2A;
  border-radius: 0.375rem;
  color: #FAFAFA;
  font-size: 0.875rem;
  transition: border-color 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: #C9A84C;
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

.form-input::placeholder {
  color: #666;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #FAFAFA;
  margin-bottom: 0.5rem;
}

.form-error {
  color: #ef4444;
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

.form-success {
  color: #10b981;
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

/* Alert styles */
.alert {
  padding: 1rem;
  border-radius: 0.375rem;
  margin-bottom: 1rem;
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}

.alert-info {
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.3);
  color: #E8C96A;
}

/* Table styles */
.table {
  width: 100%;
  border-collapse: collapse;
}

.table th {
  background: #111111;
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  color: #C9A84C;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #2A2A2A;
}

.table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #1A1A1A;
  color: #FAFAFA;
  font-size: 0.875rem;
}

.table tr:hover {
  background: rgba(201, 168, 76, 0.05);
}

/* Badge styles */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-gold {
  background: rgba(201, 168, 76, 0.1);
  color: #E8C96A;
  border: 1px solid rgba(201, 168, 76, 0.3);
}

.badge-green {
  background: rgba(16, 185, 129, 0.1);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-red {
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-gray {
  background: rgba(156, 163, 175, 0.1);
  color: #d1d5db;
  border: 1px solid rgba(156, 163, 175, 0.3);
}

/* Utility classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.w-full { width: 100%; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.rounded { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1); }
