/* CSS Variables - Preserving Jupiter's design language */
:root {
  --bg-main: #0a0e13;
  --bg-card: #181c23;
  --bg-card2: #23272f;
  --bg-btn: #d4ff7f;
  --bg-btn-hover: #c3e86e;
  --text-main: #e6f1ff;
  --text-secondary: #b2b9c6;
  --text-green: #d4ff7f;
  --text-red: #ff4d6a;
  --border-card: #23272f;
  --border-btn: #d4ff7f;
  --input-bg: #23272f;
  --input-border: #23272f;
  --input-text: #e6f1ff;
  --tab-bg: #23272f;
  --tab-active: #3a3f2e;
  --tab-inactive: #23272f;
  --tab-text-active: #d4ff7f;
  --tab-text-inactive: #b2b9c6;
  --chart-pink: #ff4d6a;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: "Inter", Arial, sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-main);
}

h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.5rem;
}
h4 {
  font-size: 1.25rem;
}
h5 {
  font-size: 1.125rem;
}
h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

a {
  color: var(--text-green);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--bg-btn-hover);
}

/* Header */
.header {
  width: 100%;
  background: var(--bg-main);
  display: flex;
  align-items: center;
  padding: 0 2rem;
  height: 56px;
  border-bottom: 1px solid var(--bg-card);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-main);
  margin-right: 2rem;
  text-decoration: none;
}

.header .logo:hover {
  color: var(--text-green);
}

.header .logo img {
  width: 28px;
  height: 28px;
  margin-right: 0.5rem;
}

.header .nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
}

.header .nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.25rem;
  transition: color 0.2s;
  position: relative;
}

.header .nav a:hover,
.header .nav a.active {
  color: var(--text-green);
}

.header .nav a.active::after {
  content: "";
  position: absolute;
  bottom: -1rem;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--text-green);
}

.header .right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header .search-btn,
.header .menu-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.2s;
}

.header .search-btn:hover,
.header .menu-btn:hover {
  color: var(--text-green);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-card);
  padding: 1rem 2rem;
  z-index: 99;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 0.75rem 0;
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 1px solid var(--border-card);
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--text-green);
}

/* Main Content */
.main-content {
  min-height: calc(100vh - 56px);
  padding: 2rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Cards */
.card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.card-header {
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.card-subtitle {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--bg-btn);
  color: var(--bg-main);
}

.btn-primary:hover {
  background: var(--bg-btn-hover);
  color: var(--bg-main);
}

.btn-secondary {
  background: var(--bg-card2);
  color: var(--text-secondary);
  border: 1px solid var(--border-card);
}

.btn-secondary:hover {
  background: var(--bg-card);
  color: var(--text-main);
}

.btn-outline {
  background: transparent;
  color: var(--text-green);
  border: 1px solid var(--border-btn);
}

.btn-outline:hover {
  background: var(--bg-card2);
  color: var(--text-green);
}

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

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

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.75rem;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 8px;
  color: var(--input-text);
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--text-green);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Grid Layouts */
.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));
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--bg-main) 0%, var(--bg-card) 100%);
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Article Cards */
.article-card {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s;
}

.article-card:hover {
  transform: translateY(-2px);
}

.article-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.article-card-content {
  padding: 1.5rem;
}

.article-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.article-card-excerpt {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.article-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Footer */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-card);
  padding: 3rem 2rem 2rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-section h3 {
  color: var(--text-main);
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-section ul li a:hover {
  color: var(--text-green);
}

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border-card);
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border-card);
  padding: 1rem 2rem;
  z-index: 1000;
  display: none;
}

.cookie-banner.show {
  display: block;
}

.cookie-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-banner-text {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.cookie-banner-actions {
  display: flex;
  gap: 1rem;
}

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

  .header .nav {
    display: none;
  }

  .header .menu-btn {
    display: block;
  }

  .main-content {
    padding: 1rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .cookie-banner-content {
    flex-direction: column;
    text-align: center;
  }

  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  h3 {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 0 0.5rem;
  }

  .main-content {
    padding: 0.5rem;
  }

  .hero {
    padding: 2rem 0;
  }

  .hero-title {
    font-size: 1.75rem;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}

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

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

.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 Accessibility */
.btn:focus,
.form-input:focus,
.form-textarea:focus,
.form-select:focus,
a:focus {
  outline: 2px solid var(--text-green);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .header,
  .footer,
  .cookie-banner,
  .mobile-menu {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .main-content {
    padding: 0;
  }
}
