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

:root {
  --primary: #dc2626;
  --primary-light: #f87171;
  --primary-dark: #991b1b;
  --accent: #f97316;
  --bg-dark: #0f172a;
  --card-bg-dark: #1e293b;
  --text-dark: #f1f5f9;
  --text-secondary-dark: #94a3b8;
  --border-dark: #334155;
  --bg-light: #f8fafc;
  --card-bg-light: #ffffff;
  --text-light: #1e293b;
  --text-secondary-light: #64748b;
  --border-light: #e2e8f0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-dark);
  line-height: 1.6;
  transition: background-color 0.3s, color 0.3s;
}

body.light-mode {
  background-color: var(--bg-light);
  color: var(--text-light);
}

/* Navbar */
.navbar {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 20px;
}

.nav-title {
  font-size: 1.6rem;
  font-weight: bold;
  color: white;
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background-color 0.3s;
  font-size: 0.95rem;
  white-space: nowrap;
}

.nav-menu a:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.nav-menu a.nav-innov-link {
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background-color: rgba(255, 255, 255, 0.1);
}

/* Language Switch */
.lang-switch {
  display: flex;
  gap: 0.25rem;
  margin-left: 1rem;
}

.lang-btn {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: background-color 0.3s;
  white-space: nowrap;
}

.lang-btn:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.lang-btn.active {
  background: #ffffff;
  color: #333333;
  border-color: #ffffff;
}

.theme-toggle {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background-color 0.3s;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Main Content */
.main-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 30px 20px;
}

.view {
  animation: fadeIn 0.4s ease;
}

.view.hidden {
  display: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.section-subtitle {
  color: var(--text-secondary-dark);
  font-size: 1.1rem;
}

body.light-mode .section-subtitle {
  color: var(--text-secondary-light);
}

/* Hero Image */
.hero-image {
  max-width: 825px;
  margin: 0 auto 40px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-dark);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

body.light-mode .hero-image {
  border-color: var(--border-light);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.hero-image img {
  display: block;
  width: 100%;
  height: auto;
}

/* Cards List */
.cards-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* Info Card */
.info-card {
  background: var(--card-bg-dark);
  border: 1px solid var(--border-dark);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

body.light-mode .info-card {
  background: var(--card-bg-light);
  border-color: var(--border-light);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.info-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

body.light-mode .info-card:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.card-image {
  height: 160px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.info-card:hover .card-image img {
  transform: scale(1.08);
}

.card-emoji-banner {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  background: linear-gradient(135deg, var(--primary-dark), var(--accent));
}

.card-content {
  padding: 20px;
}

.card-category {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.card-title {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.card-summary {
  color: var(--text-secondary-dark);
  font-size: 0.95rem;
}

body.light-mode .card-summary {
  color: var(--text-secondary-light);
}

/* Detail View */
.btn-back {
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  margin-bottom: 24px;
  transition: background-color 0.3s;
}

.btn-back:hover {
  background: var(--primary-dark);
}

.detail-card {
  background: var(--card-bg-dark);
  border: 1px solid var(--border-dark);
  border-radius: 16px;
  overflow: hidden;
}

body.light-mode .detail-card {
  background: var(--card-bg-light);
  border-color: var(--border-light);
}

.detail-image {
  height: 350px;
  overflow: hidden;
}

.detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-emoji {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  background: linear-gradient(135deg, var(--primary-dark), var(--accent));
}

.detail-header {
  padding: 30px 30px 0;
}

.detail-title {
  font-size: 2rem;
  margin-bottom: 15px;
}

.detail-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.detail-meta-badge {
  background: var(--primary);
  color: white;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
}

.detail-content {
  padding: 30px;
}

.detail-content h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.detail-content h4 {
  font-size: 1.15rem;
  margin: 20px 0 10px;
  color: var(--primary-light);
}

body.light-mode .detail-content h4 {
  color: var(--primary-dark);
}

.detail-content p {
  margin-bottom: 15px;
  color: var(--text-secondary-dark);
}

body.light-mode .detail-content p {
  color: var(--text-secondary-light);
}

.detail-content ul {
  margin: 0 0 15px 25px;
  color: var(--text-secondary-dark);
}

body.light-mode .detail-content ul {
  color: var(--text-secondary-light);
}

.detail-content li {
  margin-bottom: 8px;
}

.detail-content strong {
  color: var(--text-dark);
}

body.light-mode .detail-content strong {
  color: var(--text-light);
}

/* Footer */
.footer {
  text-align: center;
  padding: 30px;
  color: var(--text-secondary-dark);
  border-top: 1px solid var(--border-dark);
  margin-top: 40px;
}

body.light-mode .footer {
  color: var(--text-secondary-light);
  border-top-color: var(--border-light);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    height: auto;
    padding: 15px;
    gap: 12px;
  }

  .nav-menu {
    gap: 3px;
  }

  .nav-menu a {
    padding: 6px 10px;
    font-size: 0.85rem;
  }

  .section-header h2 {
    font-size: 1.6rem;
  }

  .cards-list {
    grid-template-columns: 1fr;
  }

  .detail-title {
    font-size: 1.5rem;
  }

  .detail-header,
  .detail-content {
    padding: 20px;
  }
}
