/* ===== ROOT ===== */
:root {
  --bg: #0f1116;
  --panel: #171a22;
  --card: #1e2230;
  --text: #ffffff;
  --muted: #9aa3b2;
  --accent: #4f7cff;
  --accent2: #22c55e;
  --border: rgba(255,255,255,0.08);
}

/* ===== GLOBAL ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(23, 26, 34, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 22px;
  font-weight: bold;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  margin: 0 10px;
  transition: 0.3s;
}

.nav a:hover {
  color: var(--text);
}

/* ===== SEARCH ===== */
.search input {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text);
  outline: none;
}

/* ===== HERO ===== */
.hero {
  text-align: center;
  padding: 70px 20px;
}

.hero h1 {
  font-size: 42px;
  font-weight: 700;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: var(--muted);
  margin-top: 10px;
}

/* ===== GRID ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 30px;
}

/* ===== CARD ===== */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: 0.3s;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(79,124,255,0.2);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card-content {
  padding: 12px;
}

.card h3 {
  font-size: 15px;
  margin-bottom: 5px;
}

.card p {
  font-size: 13px;
  color: var(--muted);
}

/* ===== BUTTON ===== */
.btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 12px;
  background: var(--accent);
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
  transition: 0.3s;
}

.btn:hover {
  background: var(--accent2);
}

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  padding: 25px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  margin-top: 40px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .header {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 500px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 30px;
  }
}