/* Shared styles for AI News frontend */

:root {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background: #0f172a;
  color: #e5e7eb;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* Navigation */
nav {
  background: #020617;
  padding: 16px 24px;
  border-bottom: 1px solid #1e293b;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 24px;
  align-items: center;
}

nav a {
  color: #e5e7eb;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover {
  color: #6366f1;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

/* Card */
.card {
  background: #020617;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.8);
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
}

/* Typography */
h1 {
  margin: 0 0 12px;
  font-size: 2rem;
  font-weight: 700;
  color: #f9fafb;
}

h2 {
  margin: 0 0 16px;
  font-size: 1.75rem;
  font-weight: 600;
  color: #f9fafb;
}

h3 {
  margin: 0 0 12px;
  font-size: 1.5rem;
  font-weight: 600;
  color: #f9fafb;
}

p {
  margin: 0 0 18px;
  color: #9ca3af;
  font-size: 1rem;
}

/* Form */
form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

input[type="email"] {
  flex: 1 1 200px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid #374151;
  background: #0f172a;
  color: #f9fafb;
  font-size: 1rem;
  transition: border-color 0.2s;
}

input[type="email"]:focus {
  outline: none;
  border-color: #6366f1;
}

input[type="email"]::placeholder {
  color: #6b7280;
}

button[type="submit"] {
  border: none;
  border-radius: 999px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #6366f1, #ec4899);
  color: white;
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
  white-space: nowrap;
  transition: filter 0.2s;
}

button[type="submit"]:hover:not(:disabled) {
  filter: brightness(1.1);
}

button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.hint {
  margin-top: 12px;
  font-size: 0.875rem;
  color: #6b7280;
}

/* Status messages */
.status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.95rem;
}

.status--success {
  background: rgba(74, 222, 128, 0.1);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.2);
}

.status--error {
  background: rgba(248, 113, 113, 0.1);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.2);
}

.status--loading {
  background: rgba(99, 102, 241, 0.1);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

/* About page styles */
.about-section {
  margin-bottom: 48px;
}

.about-section h2 {
  margin-bottom: 24px;
}

.about-section p {
  font-size: 1.1rem;
  line-height: 1.8;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.feature-list li {
  padding: 12px 0;
  padding-left: 32px;
  position: relative;
  color: #d1d5db;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #4ade80;
  font-weight: bold;
  font-size: 1.2rem;
}

.media-placeholder {
  background: #1e293b;
  border: 2px dashed #475569;
  border-radius: 12px;
  padding: 48px;
  text-align: center;
  color: #64748b;
  margin: 24px 0;
}

.media-placeholder img,
.media-placeholder video {
  max-width: 100%;
  border-radius: 8px;
  margin: 16px 0;
}

/* Responsive */
@media (max-width: 640px) {
  .container {
    padding: 16px;
  }

  .card {
    padding: 24px;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  form {
    flex-direction: column;
  }

  input[type="email"],
  button[type="submit"] {
    width: 100%;
  }
}
