@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
  --bg-main: #121212;
  --bg-panel: #1c1c1c;
  --bg-card: #232323;

  --accent-primary: #2dd4bf;
  /* emerald */
  --accent-secondary: #f59e0b;
  /* amber */
  --accent-soft: #a78bfa;
  /* violet */

  --text-main: #f5f5f5;
  --text-muted: #a1a1aa;

  --border-soft: rgba(255, 255, 255, 0.08);
  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.6);
}

* {
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, #1a1a1a, #0d0d0d);
  color: var(--text-main);
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 24px;
}

/* ===== HEADINGS ===== */
h1 {
  text-align: center;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 20px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== BUTTONS ===== */
.btn {
  cursor: pointer;
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 600;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #111;
  transition: all 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.35);
}

.btn-toggle {
  display: block;
  margin: auto;
  margin-bottom: 25px;
}

/* ===== TEXT BOX ===== */
.text-box {
  width: 70%;
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translate(-50%, -900px);
  background: linear-gradient(180deg, #1f1f1f, #141414);
  color: var(--text-main);
  padding: 22px;
  border-radius: 16px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  transition: all 0.9s cubic-bezier(.22, .61, .36, 1);
}

.text-box.show {
  transform: translate(-50%, 0);
}

.text-box h3 {
  margin-top: 0;
  font-weight: 600;
}

/* ===== INPUTS ===== */
select,
textarea {
  width: 100%;
  margin-top: 10px;
  background: #101010;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 10px;
  color: var(--text-main);
  font-size: 14px;
}

textarea {
  height: 140px;
  resize: none;
}

select option {
  background: #101010;
  color: var(--text-main);
}

/* ===== CLOSE BUTTON ===== */
.text-box .close {
  float: right;
  cursor: pointer;
  font-weight: bold;
  color: var(--accent-secondary);
}

/* ===== MAIN GRID ===== */
main {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* ===== CARDS ===== */
.box {
  background: linear-gradient(180deg, var(--bg-card), #1a1a1a);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  transition: all 0.25s ease;
}

.box:hover {
  transform: translateY(-6px) scale(1.02);
}

.box.active {
  box-shadow:
    0 0 0 3px rgba(45, 212, 191, 0.35),
    0 0 30px rgba(167, 139, 250, 0.4);
}

.box img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.box .info {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-soft));
  color: #111;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 12px;
  text-align: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  main {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 760px) {
  main {
    grid-template-columns: repeat(2, 1fr);
  }

  .text-box {
    width: 90%;
  }
}

@media (max-width: 480px) {
  main {
    grid-template-columns: 1fr;
  }
}