/**
 * SERP Preview Styles
 */

.prorank-serp-preview {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
}

.serp-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e0e0e0;
}

.serp-preview-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #1e1e1e;
}

.serp-preview-container {
  background: #fff;
  border: 1px solid #dfe1e5;
  border-radius: 8px;
  padding: 20px;
  font-family: arial, sans-serif;
  margin-bottom: 20px;
}

.serp-preview-container.mobile {
  max-width: 400px;
  margin: 0 auto 20px;
}

.serp-result {
  position: relative;
}

.serp-url {
  color: #202124;
  font-size: 14px;
  line-height: 1.3;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
}

.serp-title-wrapper {
  position: relative;
  margin-bottom: 4px;
}

.serp-title {
  color: #1a0dab;
  font-size: 20px;
  line-height: 1.3;
  margin: 0;
  font-weight: normal;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.serp-title:hover {
  text-decoration: underline;
}

.mobile .serp-title {
  font-size: 18px;
}

.serp-description-wrapper {
  position: relative;
}

.serp-description {
  color: #4d5156;
  font-size: 14px;
  line-height: 1.58;
  margin: 0;
}

.mobile .serp-description {
  font-size: 14px;
  line-height: 1.43;
}

/* Character Counters */
.char-counter {
  position: absolute;
  right: 0;
  top: 0;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 3px;
  background: #f0f0f0;
  color: #757575;
}

.char-counter.good {
  background: #d4edda;
  color: #155724;
}

.char-counter.warning {
  background: #fff3cd;
  color: #856404;
}

.char-counter.error {
  background: #f8d7da;
  color: #721c24;
}

/* Editor Section */
.serp-editor {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

.serp-field {
  margin-bottom: 20px;
}

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

.serp-field input,
.serp-field textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.15s;
}

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

.serp-field input.warning,
.serp-field textarea.warning {
  border-color: #f0b849;
}

.serp-field input.error,
.serp-field textarea.error {
  border-color: #d63638;
}

.field-help {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: #757575;
}

/* Tips Section */
.serp-preview-tips {
  background: #f8f9fa;
  border-radius: 4px;
  padding: 15px;
  margin-top: 20px;
}

.serp-preview-tips h4 {
  margin: 0 0 10px 0;
  font-size: 14px;
  font-weight: 600;
  color: #1e1e1e;
}

.serp-preview-tips ul {
  margin: 0;
  padding-left: 20px;
}

.serp-preview-tips li {
  margin-bottom: 5px;
  font-size: 13px;
}

.tip-success {
  color: #155724;
}

.tip-warning {
  color: #856404;
}

.tip-error {
  color: #721c24;
}

/* Responsive */
@media (max-width: 782px) {
  .serp-preview-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .serp-preview-header .components-toggle-control {
    margin-top: 10px;
  }
}