/* AuditWave SEO - Admin styles v2.0.1 */
:root {
  --awseo-font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --awseo-border-color: #e0e0e0;
  --awseo-bg-light: #f8f9fa;
  --awseo-bg-white: #ffffff;
  --awseo-text-dark: #2c3338;
  --awseo-text-light: #5f6a73;
  --awseo-green: #28a745;
  --awseo-yellow: #f39c12;
  --awseo-red: #e74c3c;
  --awseo-blue: #3498db;
  --awseo-radius: 8px;
  --awseo-primary: #0f3460;
}

.awseo-wrap {
  font-family: var(--awseo-font-family);
  max-width: 1200px;
}

/* Homepage Section */
.awseo-homepage-section {
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
  border: 2px solid var(--awseo-primary);
  border-radius: var(--awseo-radius);
  padding: 25px;
  margin-bottom: 30px;
}

.awseo-homepage-section h2 {
  margin-top: 0;
  color: var(--awseo-primary);
  font-size: 20px;
}

.awseo-homepage-actions {
  margin: 20px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.awseo-homepage-actions button .dashicons,
.awseo-header-actions button .dashicons {
  vertical-align: middle;
  margin-right: 6px;
  position: relative;
  top: 1px;
}

.awseo-homepage-result {
  margin-top: 20px;
  padding: 20px;
  background: var(--awseo-bg-white);
  border-radius: var(--awseo-radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.awseo-homepage-score {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.awseo-homepage-score .awseo-score-circle {
  width: 60px;
  height: 60px;
  font-size: 22px;
}

.awseo-homepage-score .awseo-score-label {
  font-size: 18px;
  font-weight: 600;
  color: var(--awseo-text-dark);
}

/* Header Actions */
.awseo-header-actions {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

#awseo-progress,
#awseo-homepage-progress {
  font-size: 13px;
  color: var(--awseo-text-light);
}

/* Post List Table */
.awseo-post-list {
  border-radius: var(--awseo-radius);
}

.awseo-post-list th,
.awseo-post-list td {
  vertical-align: middle;
  padding: 12px 14px;
}

.awseo-col-title a {
  font-weight: 600;
  color: var(--awseo-primary);
  text-decoration: none;
}

.awseo-col-title a:hover {
  color: var(--awseo-blue);
}

/* Score Circle */
.awseo-score-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border: 2px solid var(--awseo-bg-white);
}

.awseo-score-good {
  background: var(--awseo-green);
}

.awseo-score-warning {
  background: var(--awseo-yellow);
}

.awseo-score-bad {
  background: var(--awseo-red);
}

/* Report Details */
.awseo-report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 20px;
  background: var(--awseo-bg-light);
  border: 1px solid var(--awseo-border-color);
  border-radius: var(--awseo-radius);
}

/* Card Styling */
.awseo-report-card {
  background: var(--awseo-bg-white);
  border-radius: var(--awseo-radius);
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  border: 1px solid var(--awseo-border-color);
  border-left-width: 4px;
  transition: box-shadow 0.2s ease;
}

.awseo-report-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.awseo-report-card.awseo-pass {
  border-left-color: var(--awseo-green);
}

.awseo-report-card.awseo-warn {
  border-left-color: var(--awseo-yellow);
}

.awseo-report-card.awseo-fail {
  border-left-color: var(--awseo-red);
}

.awseo-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.awseo-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.awseo-card-head h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--awseo-text-dark);
  flex-grow: 1;
}

.awseo-card-score {
  font-weight: 700;
  font-size: 12px;
  color: #fff;
  padding: 3px 10px;
  border-radius: 12px;
  min-width: 20px;
  text-align: center;
  line-height: 1.5;
}

.awseo-pass .awseo-card-icon,
.awseo-pass .awseo-card-score {
  background-color: var(--awseo-green);
}

.awseo-warn .awseo-card-icon,
.awseo-warn .awseo-card-score {
  background-color: var(--awseo-yellow);
}

.awseo-fail .awseo-card-icon,
.awseo-fail .awseo-card-score {
  background-color: var(--awseo-red);
}

.awseo-card-body {
  color: var(--awseo-text-light);
  font-size: 13px;
  line-height: 1.6;
}

.awseo-card-status {
  margin: 0 0 10px 0;
  color: var(--awseo-text-dark);
  font-weight: 500;
}

.awseo-card-details {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
}

.awseo-card-details li {
  margin-bottom: 5px;
  display: flex;
  justify-content: space-between;
}

.awseo-card-details li strong {
  color: #444;
  padding-right: 8px;
}

/* Suggestions Card */
.awseo-suggestions-card {
  grid-column: 1 / -1;
  border-left-color: var(--awseo-blue);
  background: #f0f7ff;
}

.awseo-suggestions-card .awseo-card-icon,
.awseo-suggestions-card .awseo-card-score {
  background-color: var(--awseo-blue);
}

.awseo-suggestions-list {
  margin: 0;
  padding-left: 18px;
}

.awseo-report-meta {
  margin-top: 12px;
  font-size: 12px;
  color: #777;
  text-align: right;
}

/* Button Styles */
.awseo-download-post-pdf {
  background: none;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  padding: 2px 8px;
  font-size: 16px;
  margin-left: 5px;
  transition: background 0.2s;
}

.awseo-download-post-pdf:hover {
  background: #f0f0f0;
}

/* Responsive */
@media screen and (max-width: 782px) {
  .awseo-report-grid {
    grid-template-columns: 1fr;
  }

  .awseo-header-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .awseo-homepage-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Loading spinner animation */
@keyframes awseo-spin {
  to { transform: rotate(360deg); }
}

.awseo-loading .dashicons {
  animation: awseo-spin 1s linear infinite;
}
