/* Skateboard page specific styles */

.stats-bar {
  display: flex;
  gap: 2rem;
  margin-top: 1.5rem;
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  color: rgba(245, 245, 245, 0.6);
}

.stats-bar strong {
  color: var(--neon-green);
  text-shadow: 0 0 8px var(--neon-green);
}

.level-tag {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: rgba(245, 245, 245, 0.4);
  font-style: italic;
  margin-left: auto;
}

/* Trick Grid */
.trick-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.trick-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  column-gap: 1rem;
  padding: 1.2rem 1.5rem;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
  align-items: center;
}

.trick-card .trick-check {
  grid-column: 1;
  align-self: center;
}

.trick-card .btn-star {
  display: inline-flex;
  vertical-align: middle;
  margin-left: 0.4rem;
}

.trick-card .trick-info {
  grid-column: 2;
  min-width: 0;
}

.trick-card .trick-links {
  grid-column: 3;
}

.trick-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateX(4px);
}

.trick-card.trick-highlight {
  border-color: rgba(255, 45, 123, 0.3);
  background: rgba(255, 45, 123, 0.03);
}

.trick-card.trick-highlight:hover {
  border-color: rgba(255, 45, 123, 0.5);
  box-shadow: 0 0 20px rgba(255, 45, 123, 0.1);
}

.trick-card.completed {
  border-color: rgba(57, 255, 20, 0.3);
  background: rgba(57, 255, 20, 0.03);
}

.trick-card.completed .trick-info h4 {
  color: var(--neon-green);
}

.trick-card.completed .trick-info h4::after {
  content: ' ✓';
  font-size: 0.8em;
}

/* Checkbox */
.trick-check {
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}

.trick-check input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkmark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  transition: all 0.3s ease;
  background: rgba(0, 0, 0, 0.3);
}

.checkmark::after {
  content: '';
  width: 6px;
  height: 12px;
  border: solid var(--neon-green);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.2s ease;
}

.trick-check input:checked ~ .checkmark {
  border-color: var(--neon-green);
  background: rgba(57, 255, 20, 0.1);
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.2);
}

.trick-check input:checked ~ .checkmark::after {
  transform: rotate(45deg) scale(1);
}

.trick-check:hover .checkmark {
  border-color: rgba(255, 255, 255, 0.4);
}

/* Trick Info */

.trick-info h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--yellow);
  margin-bottom: 0.3rem;
  transition: color 0.3s;
}

.trick-info p {
  font-size: 0.82rem;
  color: rgba(245, 245, 245, 0.6);
  line-height: 1.5;
}

/* Links */
.trick-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem;
  flex-shrink: 0;
}

.trick-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.link-yt {
  background: rgba(255, 0, 0, 0.15);
  color: #ff4444;
  border: 1px solid rgba(255, 0, 0, 0.3);
}

.link-yt:hover {
  background: rgba(255, 0, 0, 0.3);
  box-shadow: 0 0 12px rgba(255, 0, 0, 0.3);
  transform: scale(1.1);
}

.link-bili {
  background: rgba(0, 174, 236, 0.15);
  color: #00aeec;
  border: 1px solid rgba(0, 174, 236, 0.3);
}

.link-bili:hover {
  background: rgba(0, 174, 236, 0.3);
  box-shadow: 0 0 12px rgba(0, 174, 236, 0.3);
  transform: scale(1.1);
}

.link-xhs {
  background: rgba(255, 40, 80, 0.15);
  color: #ff2850;
  border: 1px solid rgba(255, 40, 80, 0.3);
}

.link-xhs:hover {
  background: rgba(255, 40, 80, 0.3);
  box-shadow: 0 0 12px rgba(255, 40, 80, 0.3);
  transform: scale(1.1);
}

.link-dy {
  background: rgba(0, 0, 0, 0.3);
  color: #69c9d0;
  border: 1px solid rgba(105, 201, 208, 0.3);
}

.link-dy:hover {
  background: rgba(105, 201, 208, 0.2);
  box-shadow: 0 0 12px rgba(105, 201, 208, 0.3);
  transform: scale(1.1);
}

/* Star (TODO) button below checkbox */
.btn-star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: none;
  background: none;
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
  border-radius: 4px;
}

.btn-star:hover {
  color: #4da6ff;
  text-shadow: 0 0 8px rgba(0, 120, 255, 0.5);
}

.btn-star.active {
  color: #4da6ff;
  text-shadow: 0 0 10px rgba(0, 120, 255, 0.6);
}

/* TODO state - blue card */
.trick-card.todo {
  border-color: rgba(0, 120, 255, 0.4);
  background: rgba(0, 120, 255, 0.05);
}


/* Filter Bar */
.filter-bar {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin-top: 0.8rem;
}

.filter-btn {
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  padding: 0.55rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(245, 245, 245, 0.7);
  cursor: pointer;
  transition: all 0.3s;
}

.filter-btn:hover {
  border-color: #4da6ff;
  color: #4da6ff;
}

.filter-btn.active {
  border-color: #4da6ff;
  background: rgba(0, 120, 255, 0.2);
  color: #4da6ff;
  box-shadow: 0 0 10px rgba(0, 120, 255, 0.2);
}

/* Hidden by filter */
.trick-card.filter-hidden {
  display: none;
}

/* Data Bar (Export/Import) */
.data-bar {
  display: flex;
  gap: 0.5rem;
  margin-left: 1.5rem;
}

.data-btn {
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  padding: 0.55rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(245, 245, 245, 0.7);
  cursor: pointer;
  transition: all 0.3s;
}

.data-btn:hover {
  border-color: var(--electric-blue);
  color: var(--electric-blue);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

.data-export:hover {
  border-color: var(--neon-green);
  color: var(--neon-green);
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.2);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--dark);
  border: 2px solid var(--neon-green);
  color: var(--neon-green);
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 99999;
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.3);
}

.toast-error {
  border-color: var(--hot-pink);
  color: var(--hot-pink);
  box-shadow: 0 0 20px rgba(255, 45, 123, 0.3);
}

.toast-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .trick-card {
    grid-template-columns: auto 1fr auto;
    padding: 1rem;
  }

  .stats-bar {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }

  .data-bar {
    margin-left: 0;
    margin-top: 0.5rem;
  }

  .level-tag {
    display: none;
  }
}
