/* ========================================
   CPU Architecture Selector Styles
   ======================================== */

.cpu-architecture-selector {
  margin: 1.25rem 0;
  padding: 1.25rem;
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
}

.cpu-selector__label {
  margin-bottom: 0.875rem;
  font-weight: 500;
  color: #2c3e50;
  font-size: 0.85rem;
  letter-spacing: 0.2px;
}

.cpu-selector__buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.875rem;
}

@media (max-width: 768px) {
  .cpu-selector__buttons {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

.cpu-selector__button {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: #ffffff;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  color: #2c3e50;
  transition: all 0.25s ease;
  text-align: left;
}

.cpu-selector__button:hover {
  border-color: #0a3cff;
  background: #f5f8ff;
  box-shadow: 0 2px 6px rgba(10, 60, 255, 0.1);
}

.cpu-selector__button:focus-visible {
  outline: 2px solid #0a3cff;
  outline-offset: 2px;
}

.cpu-selector__button.is-active {
  border-color: #0a3cff;
  background: #f0f7ff;
  box-shadow: 0 0 0 2px rgba(10, 60, 255, 0.15);
}

.cpu-selector__button.is-active .cpu-selector__icon {
  color: #0a3cff;
  background: #e8f0ff;
}

.cpu-selector__button.is-active .cpu-selector__arch {
  color: #0a3cff;
  font-weight: 600;
}

.cpu-selector__button.is-active .cpu-selector__desc {
  color: #0a3cff;
}

.cpu-selector__icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #f0f0f0;
  color: #888888;
  transition: all 0.25s ease;
}

.cpu-selector__button:hover .cpu-selector__icon {
  background: #e8f0ff;
  color: #0a3cff;
}

.cpu-selector__icon svg {
  width: 100%;
  height: 100%;
  stroke-width: 1.5;
}

.cpu-selector__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-width: 0;
}

.cpu-selector__arch {
  font-size: 0.95rem;
  font-weight: 600;
  color: #2c3e50;
  line-height: 1.2;
  white-space: nowrap;
}

.cpu-selector__desc {
  font-size: 0.75rem;
  color: #888888;
  margin-top: 0.2rem;
  font-weight: 400;
  line-height: 1.2;
}

.cpu-selector__button:hover .cpu-selector__desc {
  color: #0a3cff;
}

.cpu-selector__checkmark {
  width: 22px;
  height: 22px;
  min-width: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #0a3cff;
  color: white;
  flex-shrink: 0;
  animation: popIn 0.3s ease;
}

.cpu-selector__checkmark svg {
  width: 60%;
  height: 60%;
  stroke: white;
  stroke-width: 3;
}

@keyframes popIn {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}

@media (max-width: 640px) {
  .cpu-architecture-selector {
    margin: 1rem 0;
    padding: 1rem;
  }
  
  .cpu-selector__label {
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
  }
  
  .cpu-selector__buttons {
    gap: 0.625rem;
  }
  
  .cpu-selector__button {
    padding: 0.75rem 0.875rem;
    gap: 0.625rem;
  }
  
  .cpu-selector__icon {
    width: 32px;
    height: 32px;
  }
  
  .cpu-selector__arch {
    font-size: 0.875rem;
  }
  
  .cpu-selector__desc {
    font-size: 0.7rem;
  }
}
