/*
 * components.css
 *
 * Defines reusable UI components such as buttons and cards used
 * across the NetGrade site.  These classes build upon the variables
 * defined in base.css.  To modify the appearance of all buttons or
 * cards, edit the styles below.
 */

/* Buttons */
.btn {
  display: inline-block;
  padding: var(--sp-2) var(--sp-4);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--r-sm);
  cursor: pointer;
  text-align: center;
  transition: transform 0.2s, filter 0.2s;
}
.btn-primary {
  background: var(--accent);
  color: #0a0b0c;
}
.btn-secondary {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Cards */
.card {
  background: var(--panel);
  padding: var(--sp-4);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6);
}

/* Coverage map embed */
.map-embed {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0,0,0,0.2);
}

.map-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
