/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #000000;
  color: #ffffff;
}

code {
  font-family: 'JetBrains Mono', 'Fira Code', source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
    monospace;
}

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

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* App container */
.App {
  min-height: 100vh;
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #000000 100%);
}

/* Landing page specific styles */
.landing-hero {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(26, 26, 26, 0.9) 50%, rgba(0, 0, 0, 0.9) 100%);
  backdrop-filter: blur(10px);
}

/* Glass morphism effect */
.glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #cccccc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Card hover effects */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Button animations */
.btn-animate {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

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

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

/* Loading animation */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Floating elements animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

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

/* Typography enhancements */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.title-shadow {
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

/* Interactive elements */
.interactive {
  cursor: pointer;
  transition: all 0.2s ease;
}

.interactive:hover {
  transform: scale(1.02);
}

.interactive:active {
  transform: scale(0.98);
}

/* Form enhancements */
.form-glow:focus-within {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

/* Navigation styles */
nav.glass-nav {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Dashboard specific styles */
.dashboard-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.dashboard-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Admin panel styles */
.admin-section {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

.color-picker-wrapper {
  position: relative;
  width: 100%;
  height: 40px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.color-picker-wrapper input[type="color"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  cursor: pointer;
}

/* Writer dashboard styles */
.writer-sidebar {
  background: rgba(255, 255, 255, 0.03);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.content-editor {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.stats-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.stats-card:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.05) 100%);
  transform: translateY(-2px);
}

/* Responsive design */
@media (max-width: 768px) {
  .App {
    padding: 0;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  .dashboard-card {
    margin-bottom: 1rem;
  }
}

/* Dark theme enhancements */
.dark-theme {
  --primary: #ffffff;
  --secondary: #cccccc;
  --background: #000000;
  --surface: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --border: rgba(255, 255, 255, 0.1);
}

/* Accessibility improvements */
.focus-visible:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
}

/* Custom component overrides for black/white theme */
.bg-purple-600 { background-color: #000000 !important; }
.bg-purple-700 { background-color: #1a1a1a !important; }
.bg-purple-500 { background-color: #333333 !important; }
.text-purple-300 { color: #cccccc !important; }
.text-purple-200 { color: #e6e6e6 !important; }
.text-purple-100 { color: #f0f0f0 !important; }
.border-purple-500 { border-color: rgba(255, 255, 255, 0.2) !important; }
.border-purple-400 { border-color: rgba(255, 255, 255, 0.3) !important; }

/* Specific overrides for gradients */
.from-purple-600 { --tw-gradient-from: #000000; }
.to-pink-600 { --tw-gradient-to: #333333; }
.from-purple-700 { --tw-gradient-from: #1a1a1a; }
.to-pink-700 { --tw-gradient-to: #404040; }

.from-slate-900 { --tw-gradient-from: #000000; }
.via-purple-900 { --tw-gradient-stops: var(--tw-gradient-from), #1a1a1a, var(--tw-gradient-to); }
.to-slate-900 { --tw-gradient-to: #000000; }