/* Stone Collective - UI Components */

/* ========================================
   BUTTONS
   ======================================== */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #67E3F9;
  color: var(--color-black);
  padding: 12px 24px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow:
    0 32px 24px 0 rgba(255, 255, 255, 0.05) inset,
    0 2px 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 0 0 1px rgba(0, 0, 0, 0.15) inset,
    0 -2px 1px 0 rgba(0, 0, 0, 0.20) inset,
    0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: opacity var(--transition-fast), background var(--transition-fast);
}

.button:hover {
  opacity: 0.85;
}

.button:active {
  opacity: 0.75;
}

/* Small Button Variant */
.button.is-small {
  padding: 8px 20px;
  font-size: 14px;
}

/* Secondary Button Variant */
.button.is-secondary {
  background: rgba(0, 0, 0, 0.05);
  color: var(--color-text);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.05) inset,
    0 -2px 1px 0 rgba(0, 0, 0, 0.05) inset,
    0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.button.is-secondary:hover {
  background: rgba(0, 0, 0, 0.1);
  opacity: 1;
}

/* Link Button Variant */
.button.is-link {
  background: transparent;
  color: var(--color-text);
  padding: 12px 0;
  box-shadow: none;
}

.button.is-link:hover {
  opacity: 0.7;
}

/* Icon Button Variant */
.button.is-icon {
  gap: 8px;
}

.button.is-icon svg,
.button.is-icon .icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Alternate Button - For dark backgrounds */
.button.is-alternate {
  background: #EEEEEE;
  color: var(--color-black);
  box-shadow:
    0 32px 24px 0 rgba(255, 255, 255, 0.05) inset,
    0 2px 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 0 0 1px rgba(0, 0, 0, 0.15) inset,
    0 -2px 1px 0 rgba(0, 0, 0, 0.20) inset,
    0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Alternate Secondary - For dark backgrounds */
.button.is-secondary.is-alternate {
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.15) inset,
    0 -2px 1px 0 rgba(0, 0, 0, 0.05) inset,
    0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.button.is-secondary.is-alternate:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Alternate Link - For dark backgrounds */
.button.is-link.is-alternate {
  background: transparent;
  color: var(--color-white);
  box-shadow: none;
}

/* Dark Button Variant */
.button.is-dark {
  background: var(--color-black);
  color: var(--color-white);
  box-shadow:
    0 32px 24px 0 rgba(255, 255, 255, 0.03) inset,
    0 2px 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 -2px 1px 0 rgba(0, 0, 0, 0.3) inset,
    0 1px 2px 0 rgba(0, 0, 0, 0.1);
}

.button.is-dark:hover {
  opacity: 0.9;
}

/* ========================================
   FORM ELEMENTS
   ======================================== */

/* Form Field Label */
.form_field-label {
  display: block;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--color-text);
}

/* Form Input */
.form_input {
  width: 100%;
  background: rgba(5, 11, 12, 0.05);
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text);
  transition: background var(--transition-fast), box-shadow var(--transition-fast);
}

.form_input::placeholder {
  color: rgba(5, 11, 12, 0.5);
}

.form_input:focus {
  outline: none;
  background: rgba(5, 11, 12, 0.03);
  box-shadow: 0 0 0 2px rgba(103, 227, 249, 0.5);
}

/* Textarea Variant */
.form_input.is-text-area {
  min-height: 180px;
  resize: vertical;
}

/* Select Input Variant */
.form_input.is-select-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23050b0c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 48px;
  cursor: pointer;
}

/* Alternate Form Input - For dark backgrounds */
.form_input.is-alternate {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
}

.form_input.is-alternate::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form_input.is-alternate:focus {
  background: rgba(255, 255, 255, 0.15);
}

/* Select Input Alternate */
.form_input.is-select-input.is-alternate {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

/* Form Label Alternate */
.form_field-label.is-alternate {
  color: var(--color-white);
}

/* ========================================
   CHECKBOX & RADIO
   ======================================== */

/* Checkbox */
.form_checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.form_checkbox-icon {
  width: 20px;
  height: 20px;
  background: rgba(5, 11, 12, 0.05);
  border-radius: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.form_checkbox-icon svg {
  width: 14px;
  height: 14px;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.form_checkbox input {
  display: none;
}

.form_checkbox input:checked + .form_checkbox-icon {
  background: rgb(103, 227, 249);
}

.form_checkbox input:checked + .form_checkbox-icon svg {
  opacity: 1;
}

.form_checkbox-label {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.4;
}

/* Checkbox Alternate */
.form_checkbox.is-alternate .form_checkbox-icon {
  background: rgba(255, 255, 255, 0.1);
}

.form_checkbox.is-alternate .form_checkbox-label {
  color: var(--color-white);
}

/* Radio */
.form_radio {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.form_radio-icon {
  width: 20px;
  height: 20px;
  background: rgba(5, 11, 12, 0.05);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.form_radio-icon::after {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--color-black);
  border-radius: 50%;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.form_radio input {
  display: none;
}

.form_radio input:checked + .form_radio-icon {
  background: rgb(103, 227, 249);
}

.form_radio input:checked + .form_radio-icon::after {
  opacity: 1;
}

.form_radio-label {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text);
}

/* Radio Alternate */
.form_radio.is-alternate .form_radio-icon {
  background: rgba(255, 255, 255, 0.1);
}

.form_radio.is-alternate .form_radio-icon::after {
  background: var(--color-white);
}

.form_radio.is-alternate .form_radio-label {
  color: var(--color-white);
}

/* ========================================
   TAGS
   ======================================== */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(5, 11, 12, 0.05);
  color: var(--color-text);
  padding: 4px 10px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
}

.tag.is-text {
  background: transparent;
  padding: 4px 0;
}

/* Tag Alternate - For dark backgrounds */
.tag.is-alternate {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
}

.tag.is-text.is-alternate {
  background: transparent;
  color: var(--color-white);
}

/* ========================================
   TAB LINK
   ======================================== */

.tab-link {
  display: inline-block;
  background: var(--color-white);
  color: var(--color-text);
  padding: 10px 24px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition-fast), opacity var(--transition-fast);
}

.tab-link:hover {
  opacity: 0.85;
}

.tab-link.is-active {
  background: rgb(103, 227, 249);
}

/* Tab Link Alternate */
.tab-link.is-alternate {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
}

.tab-link.is-alternate.is-active {
  background: var(--color-white);
  color: var(--color-black);
}

/* ========================================
   CATEGORY FILTER LINK
   ======================================== */

.category-filter-link {
  display: inline-block;
  background: transparent;
  color: var(--color-text);
  padding: 8px 16px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.category-filter-link:hover {
  background: rgba(5, 11, 12, 0.05);
}

.category-filter-link.is-active {
  background: rgba(5, 11, 12, 0.05);
}

/* Category Filter Link Alternate */
.category-filter-link.is-alternate {
  color: var(--color-white);
}

.category-filter-link.is-alternate:hover,
.category-filter-link.is-alternate.is-active {
  background: rgba(255, 255, 255, 0.1);
}

/* ========================================
   SLIDER ARROW
   ======================================== */

.slider-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(5, 11, 12, 0.05);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.slider-arrow:hover {
  background: rgba(5, 11, 12, 0.1);
}

.slider-arrow svg {
  width: 24px;
  height: 24px;
}

.slider-arrow.is-left svg {
  transform: rotate(180deg);
}

/* Slider Arrow Alternate */
.slider-arrow.is-alternate {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
}

.slider-arrow.is-alternate:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ========================================
   ICON SIZES
   ======================================== */

.icon-embed-xxsmall {
  width: 12px;
  height: 12px;
}

.icon-embed-xsmall {
  width: 16px;
  height: 16px;
}

.icon-embed-small {
  width: 20px;
  height: 20px;
}

.icon-embed-medium {
  width: 24px;
  height: 24px;
}

.icon-embed-large {
  width: 32px;
  height: 32px;
}

.icon-embed-xlarge {
  width: 48px;
  height: 48px;
}
