/* RankBeyond WordPress Plugin - Settings Page Styles
 * WordPress Native Color Scheme - FULL WIDTH layout matching home page
 */

/* Reset and base - FULL WIDTH like home page */
.rankbeyond-settings-container {
  margin: 20px 20px 20px 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

.rankbeyond-settings-container *,
.rankbeyond-settings-container *::before,
.rankbeyond-settings-container *::after {
  box-sizing: border-box;
}

/* Main card container - matches home page */
.rankbeyond-settings-card {
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
  border: 1px solid #c3c4c7;
  overflow: hidden;
}

/* Header section - WordPress dark, matches home page */
.rankbeyond-settings-header {
  padding: 16px 20px;
  background: #1d2327;
  color: white;
}

.settings-title {
  margin: 0 0 4px 0;
  font-size: 18px;
  font-weight: 600;
  color: white;
}

.settings-subtitle {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
}

/* Success notice - Toast style */
.rankbeyond-success-notice {
  margin: 0;
  padding: 0;
  background: none;
  border: none;
}

.notice-content {
  background: #1d2327;
  color: white;
  padding: 12px 16px;
  border-radius: 4px;
  position: fixed;
  top: 40px;
  right: 20px;
  z-index: 99999;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: slideIn 0.2s ease-out;
  max-width: 300px;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.notice-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #00a32a;
}

.notice-title {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 2px;
  color: white;
}

.notice-subtitle {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

/* Form container - matches home page stats area */
.settings-form-container {
  padding: 20px;
  background: #f6f7f7;
}

/* Form styling */
.settings-form {
  background: white;
  border-radius: 4px;
  padding: 20px;
  border: 1px solid #c3c4c7;
}

/* Field groups */
.field-group {
  margin-bottom: 20px;
}

.field-group:last-of-type {
  margin-bottom: 0;
}

.field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #1d2327;
  margin-bottom: 8px;
}

/* Input styling - WordPress native */
.field-input {
  width: 100%;
  max-width: 400px;
  padding: 8px 10px;
  border: 1px solid #8c8f94;
  border-radius: 4px;
  font-size: 13px;
  font-family: inherit;
  transition: all 0.1s ease;
  background: white;
  color: #1d2327;
}

.field-input:focus {
  outline: none;
  border-color: #2271b1;
  box-shadow: 0 0 0 1px #2271b1;
}

.field-input::placeholder {
  color: #8c8f94;
}

/* Select dropdown styling */
select.field-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%231d2327' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 8px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 36px;
  cursor: pointer;
}

/* Field description */
.field-description {
  margin-top: 6px;
  font-size: 12px;
  color: #646970;
  line-height: 1.5;
}

.field-description a {
  color: #2271b1;
  text-decoration: none;
}

.field-description a:hover {
  color: #135e96;
  text-decoration: underline;
}

/* Buttons container */
.flex-buttons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #c3c4c7;
}

/* Save button - WordPress primary */
.save-button {
  background: #2271b1;
  border: 1px solid #2271b1;
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.1s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.save-button:hover {
  background: #135e96;
  border-color: #135e96;
}

.save-button:active {
  transform: scale(0.98);
}

.save-button svg {
  width: 14px;
  height: 14px;
}

/* Responsive */
@media (max-width: 782px) {
  .rankbeyond-settings-container {
    margin: 10px;
  }

  .rankbeyond-settings-header {
    padding: 12px 16px;
  }

  .settings-title {
    font-size: 16px;
  }

  .settings-form-container {
    padding: 16px;
  }

  .settings-form {
    padding: 16px;
  }

  .field-input {
    max-width: none;
  }

  .save-button {
    width: 100%;
    justify-content: center;
  }

  .notice-content {
    left: 10px;
    right: 10px;
    max-width: none;
  }
}
