/* =========================
   VARIABLES
========================= */
:root {
  --bg: #0b0d0d;
  --fg: #f5f5f7;
  --muted: #9b9b9b;
  --accent: #ff2a2a;
  --accent-soft: rgba(255, 42, 42, 0.25);
  --accent-strong: rgba(255, 42, 42, 0.6);
  --accent-dark: #8b0000;
  --gradient-primary: linear-gradient(90deg, #ff7f00, #ff2a2a);
}

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

/* =========================
   BASE
========================= */
html, body {
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: system-ui, sans-serif;
  background: radial-gradient(1200px 600px at 50% -10%, #1a0000, var(--bg));
  color: var(--fg);
  min-height: 100vh;
}

/* =========================
   HEADER
========================= */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 0, 0, 0.95);
  padding: 20px;
  text-align: center;
}

.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
}

.logo {
  width: 200px;
  height: auto;
}

.subtitle {
  color: var(--muted);
  font-size: 1rem;
  margin-top: 10px;
}

/* =========================
   SEARCH
========================= */
#search {
  margin-top: 16px;
  width: min(320px, 90vw);
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid #2a2a2a;
  background: #0f0f14;
  color: var(--fg);
  text-align: center;
  font-size: 1rem;
  outline: none;
  display: block;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 0 10px rgba(77, 163, 255, 0.3);
}

#search:focus {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-soft);
}

/* =========================
   MAIN CONTENT AREA
========================= */
main {
  padding: 24px 0;
}

/* =========================
   CARDS SECTION
========================= */
.card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  padding: 16px;
}

.card {
  width: 200px;
  height: 300px;
  background: #0f0f14;
  border-radius: 18px;
  border: 1px solid #2a2a2a;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px var(--accent-soft);
}

/* =========================
   EFFECTS ON HOVER
========================= */
.card:hover {
  border: 2px solid var(--accent);
}

.card .info {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 8px;
  text-align: center;
  font-size: 14px;
  border-radius: 10px;
}

/* =========================
   FOOTER
========================= */
footer {
  text-align: center;
  padding: 24px;
  font-size: 0.75rem;
  color: var(--muted);
}

/* =========================
   STYLES FOR TOTAL CLICKS
========================= */
.total-clicks {
  font-size: 1.5rem;
  font-weight: bold;
  margin-top: 20px;
  color: var(--accent);
}

/* =========================
   COLORS AND GRADIENTS
========================= */
h1 {
  font-size: 2.5rem;
  color: var(--gradient-primary);
  background: -webkit-linear-gradient(45deg, #ff7f00, #ff2a2a);
  -webkit-background-clip: text;
  text-align: center;
  margin-bottom: 20px;
}
