/* Vellora Draws - Components CSS */
/* Y2K Post-Tech Theme - Reusable Components */

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  min-width: 44px;
  min-height: 44px;
  border: 2px solid var(--primary-color);
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(255, 0, 255, 0.1));
  color: var(--text-light);
  text-decoration: none;
  font-weight: bold;
  border-radius: 25px;
  transition: all 0.3s ease;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 255, 255, 0.2);
}

.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 {
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.2), rgba(255, 0, 255, 0.2));
  box-shadow: 0 6px 20px rgba(0, 255, 255, 0.4);
  transform: translateY(-2px);
}

.btn:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

.btn:active {
  transform: translateY(0);
}

.btn-secondary {
  border-color: var(--secondary-color);
  box-shadow: 0 4px 15px rgba(255, 0, 255, 0.2);
}

.btn-secondary:hover {
  box-shadow: 0 6px 20px rgba(255, 0, 255, 0.4);
}

.btn-accent {
  border-color: var(--accent-color);
  color: var(--bg-primary);
  background: linear-gradient(135deg, var(--accent-color), #ffcc00);
  box-shadow: 0 4px 15px rgba(255, 255, 0, 0.2);
}

.btn-accent:hover {
  box-shadow: 0 6px 20px rgba(255, 255, 0, 0.4);
}

/* Cards */
.card {
  background: rgba(0, 20, 40, 0.8);
  border: 1px solid var(--border-glow);
  border-radius: 15px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-neon);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 255, 255, 0.3);
}

.card-header {
  border-bottom: 1px solid rgba(0, 255, 255, 0.2);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.card-title {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-light);
  font-weight: 500;
}

.form-input {
  width: 100%;
  min-height: 44px;
  padding: 12px 16px;
  background: rgba(0, 20, 40, 0.8);
  border: 2px solid rgba(0, 255, 255, 0.3);
  border-radius: 10px;
  color: var(--text-light);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 10px var(--border-glow);
}

.form-input::placeholder {
  color: rgba(204, 204, 255, 0.6);
}

.form-select {
  width: 100%;
  min-height: 44px;
  padding: 12px 16px;
  background: rgba(0, 20, 40, 0.8);
  border: 2px solid rgba(0, 255, 255, 0.3);
  border-radius: 10px;
  color: var(--text-light);
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 10px var(--border-glow);
}

/* Number Display */
.number-display {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--bg-primary);
  font-weight: bold;
  font-size: 1.2rem;
  border-radius: 50%;
  margin: 0.25rem;
  box-shadow: 0 4px 15px rgba(0, 255, 255, 0.3);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 4px 15px rgba(0, 255, 255, 0.3); }
  50% { box-shadow: 0 6px 20px rgba(0, 255, 255, 0.6); }
  100% { box-shadow: 0 4px 15px rgba(0, 255, 255, 0.3); }
}

/* Alerts */
.alert {
  padding: 1rem 1.5rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  border-left: 4px solid;
}

.alert-info {
  background: rgba(0, 255, 255, 0.1);
  border-left-color: var(--primary-color);
  color: var(--text-light);
}

.alert-warning {
  background: rgba(255, 255, 0, 0.1);
  border-left-color: var(--accent-color);
  color: var(--text-light);
}

.alert-success {
  background: rgba(0, 255, 0, 0.1);
  border-left-color: #00ff00;
  color: var(--text-light);
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 3px solid rgba(0, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Grid System */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Utilities */
.text-center {
  text-align: center;
}

.text-glow {
  text-shadow: 0 0 10px currentColor;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus states for all interactive elements */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus,
[tabindex]:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #ffffff;
    --secondary-color: #ffffff;
    --accent-color: #ffffff;
    --border-glow: rgba(255, 255, 255, 0.8);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .card {
    padding: 1rem;
  }
  
  .number-display {
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }
}