/**
 * Site Basics Settings Styles
 * 
 * @package ProRank\SEO
 */

.prorank-site-basics-settings {
  max-width: 1000px;
  margin: 0 auto;
}

.prorank-site-basics-settings .prorank-settings-header {
  margin-bottom: 24px;
}

.prorank-site-basics-settings .prorank-settings-header h2 {
  margin: 0 0 8px 0;
  font-size: 24px;
  font-weight: 600;
  color: #1e1e1e;
}

.prorank-site-basics-settings .prorank-settings-header p {
  margin: 0;
  font-size: 14px;
  color: #646970;
}

/* Modern Tab Panel Styles */
.prorank-site-basics-tabs {
  margin-top: 20px;
}

.prorank-site-basics-tabs .components-tab-panel__tabs {
  display: flex;
  gap: 8px;
  border-bottom: none;
  margin-bottom: 24px;
  background: #f0f0f1;
  padding: 4px;
  border-radius: 8px;
}

.prorank-site-basics-tabs .components-tab-panel__tabs-item {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #646970;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s ease;
  min-height: 40px;
}

.prorank-site-basics-tabs .components-tab-panel__tabs-item:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.5);
  color: #1e1e1e;
}

.prorank-site-basics-tabs .components-tab-panel__tabs-item.is-active {
  background: #fff;
  color: #3858e9;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Modern Image Upload Grid */
.prorank-site-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.prorank-image-upload-box {
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.prorank-image-upload-box:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: #3b82f6;
}

.prorank-image-upload-header {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: white;
  border-bottom: 1px solid #e0e0e0;
}

.prorank-image-upload-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.prorank-image-upload-info {
  flex: 1;
}

.prorank-image-upload-info h4 {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 600;
  color: #1e1e1e;
}

.prorank-image-upload-info p {
  margin: 0 0 8px 0;
  font-size: 14px;
  color: #50575e;
}

.prorank-image-upload-specs {
  display: inline-block;
  font-size: 12px;
  color: #757575;
  background: #f0f0f1;
  padding: 4px 8px;
  border-radius: 4px;
}

.prorank-image-upload-area {
  padding: 20px;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Upload Trigger Button */
.prorank-image-upload-trigger {
  width: 100%;
  padding: 40px;
  background: white;
  border: 2px dashed #d0d0d0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.prorank-image-upload-trigger:hover {
  border-color: #3b82f6;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.02) 0%, rgba(118, 75, 162, 0.02) 100%);
}

.prorank-upload-text {
  font-size: 14px;
  font-weight: 500;
  color: #3b82f6;
}

.prorank-upload-hint {
  font-size: 12px;
  color: #757575;
}

/* Modern Image Preview */
.prorank-image-preview-modern {
  width: 100%;
}

.prorank-image-preview-wrapper {
  position: relative;
  width: 100%;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

.prorank-image-preview-wrapper img {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  display: block;
}

.prorank-image-preview-wrapper.og-preview img {
  aspect-ratio: 16/9;
  object-fit: cover;
}

.prorank-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.prorank-image-preview-wrapper:hover .prorank-image-overlay {
  opacity: 1;
}

.prorank-image-action-btn {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.prorank-image-action-btn.primary {
  background: white;
  color: #3b82f6;
}

.prorank-image-action-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.prorank-image-action-btn.destructive {
  background: #ef4444;
  color: white;
}

.prorank-image-action-btn.destructive:hover {
  background: #dc2626;
  transform: translateY(-2px);
}

.prorank-image-filename {
  padding: 8px 12px;
  background: #f8f9fa;
  font-size: 12px;
  color: #50575e;
  text-align: center;
  border-top: 1px solid #e0e0e0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Verification Service Styles */
.prorank-verification-service {
  padding: 16px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background: #f9f9f9;
}

.prorank-verification-status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

/* Preview Box - Google Search Result Style */
.prorank-preview-box {
  padding: 16px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 1px 6px rgba(32,33,36,.28);
  margin-top: 16px;
  font-family: arial, sans-serif;
}

.prorank-preview-box:hover {
  box-shadow: 0 2px 8px rgba(32,33,36,.32);
}

/* Info Section */
.prorank-info-section {
  padding: 16px;
  background: #f0f8ff;
  border-radius: 4px;
  border-left: 4px solid #3858e9;
}

.prorank-best-practices {
  padding: 16px;
  background: #f9f9f9;
  border-radius: 4px;
}

/* Modern Card Styles */
.prorank-site-basics-settings .components-card {
  margin-bottom: 20px;
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.prorank-site-basics-settings .components-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.prorank-site-basics-settings .components-card__header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
}

.prorank-site-basics-settings .components-card__header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #1e1e1e;
  letter-spacing: -0.02em;
}

.prorank-site-basics-settings .components-card__body {
  padding: 24px;
}

/* Modern Form Control Styles */
.prorank-site-basics-settings .components-text-control__input,
.prorank-site-basics-settings .components-textarea-control__input,
.prorank-site-basics-settings .components-select-control__input {
  font-size: 14px;
  border-radius: 8px;
  border: 1px solid #ddd;
  padding: 10px 12px;
  transition: all 0.2s ease;
  width: 100%;
  max-width: 600px;
}

/* Wider inputs for URLs and IDs */
.prorank-site-basics-settings .components-base-control {
  max-width: 100%;
}

.prorank-site-basics-settings input[type="url"],
.prorank-site-basics-settings input[type="text"][placeholder*="http"],
.prorank-site-basics-settings input[placeholder*="facebook"],
.prorank-site-basics-settings input[placeholder*="twitter"],
.prorank-site-basics-settings input[placeholder*="instagram"],
.prorank-site-basics-settings input[placeholder*="youtube"] {
  max-width: 100%;
}

.prorank-site-basics-settings .components-text-control__input:focus,
.prorank-site-basics-settings .components-textarea-control__input:focus,
.prorank-site-basics-settings .components-select-control__input:focus {
  border-color: #3858e9;
  box-shadow: 0 0 0 3px rgba(56, 88, 233, 0.1);
  outline: none;
}

.prorank-site-basics-settings .components-base-control__label {
  font-size: 14px;
  font-weight: 500;
  color: #1e1e1e;
  margin-bottom: 8px;
  display: block;
}

.prorank-site-basics-settings .components-base-control__help {
  font-size: 13px;
  color: #646970;
  margin-top: 6px;
  line-height: 1.5;
}

/* Modern Button Styles */
.prorank-site-basics-settings .components-button {
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s ease;
}

.prorank-site-basics-settings .components-button.is-primary {
  background: linear-gradient(135deg, #3858e9 0%, #5172ff 100%);
  border: none;
  color: #fff;
  box-shadow: 0 2px 8px rgba(56, 88, 233, 0.25);
}

.prorank-site-basics-settings .components-button.is-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #2747d8 0%, #4062ee 100%);
  box-shadow: 0 4px 12px rgba(56, 88, 233, 0.35);
  transform: translateY(-1px);
}

.prorank-site-basics-settings .components-button.is-secondary {
  background: #fff;
  border: 1px solid #ddd;
  color: #1e1e1e;
}

.prorank-site-basics-settings .components-button.is-secondary:hover:not(:disabled) {
  background: #f8f9fa;
  border-color: #3858e9;
  color: #3858e9;
}

.prorank-site-basics-settings .components-button.is-link.is-destructive {
  color: #d63638;
}

.prorank-site-basics-settings .components-button.is-link.is-destructive:hover:not(:disabled) {
  color: #b91c1f;
}

/* Additional Profiles List */
.prorank-site-basics-settings .prorank-additional-profile {
  padding: 12px;
  background: #f9f9f9;
  border-radius: 4px;
  margin-bottom: 8px;
}

/* Additional profile grid */
.prorank-add-profile-grid {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 12px;
  align-items: end;
}

/* Responsive Styles */
@media (max-width: 782px) {
  .prorank-site-basics-settings {
    padding: 0 16px;
  }
  
  .prorank-site-basics-tabs .components-tab-panel__tabs {
    flex-wrap: wrap;
    gap: 4px;
  }

  .prorank-site-basics-tabs .components-tab-panel__tabs-item {
    padding: 8px 12px;
    font-size: 13px;
    min-height: 36px;
  }
  
  .prorank-image-preview img {
    max-width: 100%;
  }

  .prorank-add-profile-grid,
  div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .prorank-site-basics-settings .components-text-control__input {
    max-width: 100%;
  }
}

/* Dark Mode Support */
body.admin-color-midnight .prorank-site-basics-settings .prorank-settings-header h2,
body.admin-color-ocean .prorank-site-basics-settings .prorank-settings-header h2,
body.admin-color-ectoplasm .prorank-site-basics-settings .prorank-settings-header h2,
body.admin-color-coffee .prorank-site-basics-settings .prorank-settings-header h2,
body.admin-color-blue .prorank-site-basics-settings .prorank-settings-header h2,
body.admin-color-modern .prorank-site-basics-settings .prorank-settings-header h2 {
  color: #f0f0f1;
}

body.admin-color-midnight .prorank-site-basics-settings .components-card,
body.admin-color-ocean .prorank-site-basics-settings .components-card,
body.admin-color-ectoplasm .prorank-site-basics-settings .components-card,
body.admin-color-coffee .prorank-site-basics-settings .components-card,
body.admin-color-blue .prorank-site-basics-settings .components-card,
body.admin-color-modern .prorank-site-basics-settings .components-card {
  background: #2c3338;
  color: #f0f0f1;
}

body.admin-color-midnight .prorank-site-basics-settings .components-card__header,
body.admin-color-ocean .prorank-site-basics-settings .components-card__header,
body.admin-color-ectoplasm .prorank-site-basics-settings .components-card__header,
body.admin-color-coffee .prorank-site-basics-settings .components-card__header,
body.admin-color-blue .prorank-site-basics-settings .components-card__header,
body.admin-color-modern .prorank-site-basics-settings .components-card__header {
  border-bottom-color: #40464d;
}

/* Loading State */
.prorank-loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  gap: 16px;
}

.prorank-loading-container p {
  margin: 0;
  color: #646970;
  font-size: 14px;
}