:root {
  --bg-color: #121212;
  --surface-color: #1e1e1e;
  --primary-color: #ff3b30;
  --text-primary: #ffffff;
  --text-secondary: #aaaaaa;
  --border-color: #333333;
  --radius: 8px;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  --transition: 0.3s ease;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-color);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* Header */
header {
  background-color: var(--surface-color);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
}

nav ul {
  display: flex;
  gap: 20px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Main */
main {
  padding: 40px 0;
  min-height: calc(100vh - 120px);
}

.section-title {
  font-size: 1.8rem;
  margin-bottom: 20px;
  border-left: 4px solid var(--primary-color);
  padding-left: 10px;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.card {
  background-color: var(--surface-color);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

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

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

.card-content {
  padding: 15px;
}

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

.card-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.tag {
  display: inline-block;
  background-color: var(--border-color);
  color: var(--text-secondary);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  margin-right: 5px;
}

.tag.verified {
  background-color: rgba(40, 167, 69, 0.2);
  color: #28a745;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--border-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 20px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -34px;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--primary-color);
}

.timeline-date {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 5px;
}

/* Forms */
.form-group {
  margin-bottom: 15px;
}

.form-control {
  width: 100%;
  padding: 10px;
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 4px;
}

.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  transition: background-color var(--transition);
}

.btn:hover {
  background-color: #d32f2f;
}

/* FAQ */
.faq-item {
  background-color: var(--surface-color);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-q {
  padding: 15px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
}

.faq-a {
  padding: 0 15px;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition), padding var(--transition);
  color: var(--text-secondary);
}

.faq-item.active .faq-a {
  padding: 0 15px 15px;
  max-height: 500px;
}

/* Footer */
footer {
  background-color: var(--surface-color);
  border-top: 1px solid var(--border-color);
  padding: 40px 0 20px;
  text-align: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
}

.footer-nav a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.copyright {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

/* Search */
.search-bar {
  display: flex;
  margin-bottom: 20px;
}
.search-bar input {
  flex: 1;
  padding: 10px;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 4px 0 0 4px;
}
.search-bar button {
  border-radius: 0 4px 4px 0;
}

/* PWA Install */
#pwa-install {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--surface-color);
  padding: 15px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--primary-color);
  z-index: 1000;
}

/* Back to top */
#back-to-top {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: var(--primary-color);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  cursor: pointer;
  z-index: 1000;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.breadcrumb a {
  color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
  nav ul {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background-color: var(--surface-color);
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
  }
  
  nav ul.active {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: block;
  }
}
