/* RankBeyond WordPress Plugin - Home Page Styles
 * WordPress Native Color Scheme
 */

/* Reset and base */
.rankbeyond-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-container *,
.rankbeyond-container *::before,
.rankbeyond-container *::after {
  box-sizing: border-box;
}

/* Main card container */
.rankbeyond-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 blue */
.rankbeyond-header {
  padding: 16px 20px;
  background: #1d2327;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.rankbeyond-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  color: white;
  align-items: center;
  gap: 8px;
}

.rankbeyond-logo {
  color: #2271b1;
  font-weight: 600;
}

/* Settings button */
.rankbeyond-settings-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 6px 12px;
  border-radius: 3px;
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.1s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.rankbeyond-settings-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
}

.rankbeyond-settings-btn svg {
  width: 14px;
  height: 14px;
  opacity: 0.9;
}

/* Stats Bar */
.rankbeyond-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: #f6f7f7;
  border-bottom: 1px solid #c3c4c7;
}

.rankbeyond-stat-card {
  padding: 16px 20px;
  text-align: center;
  border-right: 1px solid #c3c4c7;
}

.rankbeyond-stat-card:last-child {
  border-right: none;
}

.rankbeyond-stat-value {
  font-size: 24px;
  font-weight: 600;
  color: #1d2327;
}

.rankbeyond-stat-label {
  font-size: 12px;
  color: #50575e;
  margin-top: 4px;
}

/* Table container */
.rankbeyond-table-container {
  padding: 0;
  overflow-x: auto;
}

/* Table styles - WordPress native */
.rankbeyond-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.rankbeyond-table thead {
  background: #f6f7f7;
  border-bottom: 1px solid #c3c4c7;
}

.rankbeyond-table th {
  padding: 10px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  color: #1d2327;
  white-space: nowrap;
}

.rankbeyond-table th:first-child {
  padding-left: 20px;
}

.rankbeyond-table th:last-child {
  padding-right: 20px;
}

.rankbeyond-table tbody tr {
  transition: background-color 0.1s ease;
  border-bottom: 1px solid #f0f0f1;
}

.rankbeyond-table tbody tr:last-child {
  border-bottom: none;
}

.rankbeyond-table tbody tr:hover {
  background: #f6f7f7;
}

.rankbeyond-table td {
  padding: 12px 16px;
  color: #1d2327;
  vertical-align: middle;
  font-size: 13px;
  line-height: 1.5;
}

.rankbeyond-table td:first-child {
  padding-left: 20px;
}

.rankbeyond-table td:last-child {
  padding-right: 20px;
}

/* Post title */
.post-title {
  font-weight: 500;
  color: #1d2327;
  max-width: 280px;
  word-wrap: break-word;
  line-height: 1.4;
}

/* Post slug */
.post-slug {
  font-family: Consolas, Monaco, monospace;
  background: #f0f0f1;
  padding: 3px 6px;
  border-radius: 3px;
  font-size: 12px;
  color: #50575e;
  display: inline-block;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Status badges - WordPress native */
.status-badge {
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-transform: capitalize;
}

.status-publish {
  background: #d7f0dc;
  color: #1e4620;
}

.status-publish::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #00a32a;
  border-radius: 50%;
}

.status-draft {
  background: #f0f0f1;
  color: #50575e;
}

.status-draft::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #8c8f94;
  border-radius: 50%;
}

.status-pending {
  background: #fcf0e3;
  color: #8a5d00;
}

.status-pending::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #dba617;
  border-radius: 50%;
}

/* Date styling */
.post-date {
  color: #50575e;
  font-size: 13px;
  white-space: nowrap;
}

.post-date small {
  display: block;
  margin-top: 2px;
  color: #8c8f94;
  font-size: 12px;
}

/* Action buttons - WordPress native */
.action-buttons {
  display: flex;
  gap: 6px;
}

.action-btn {
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.1s ease;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.view-btn {
  background: #2271b1;
  color: white;
  border: 1px solid #2271b1;
}

.view-btn:hover {
  background: #135e96;
  border-color: #135e96;
  color: white;
}

.edit-btn {
  background: white;
  color: #2271b1;
  border: 1px solid #2271b1;
}

.edit-btn:hover {
  background: #f6f7f7;
  color: #135e96;
  border-color: #135e96;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: #50575e;
}

.empty-state-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: #c3c4c7;
}

.empty-state-text {
  font-size: 14px;
  margin-bottom: 4px;
  font-weight: 500;
  color: #1d2327;
}

.empty-state-subtext {
  font-size: 13px;
  color: #8c8f94;
}

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

  .rankbeyond-header {
    padding: 12px 16px;
    flex-direction: column;
    align-items: flex-start;
  }

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

  .rankbeyond-settings-btn {
    width: 100%;
    justify-content: center;
  }

  .rankbeyond-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .rankbeyond-stat-card {
    padding: 12px;
  }

  .rankbeyond-stat-value {
    font-size: 20px;
  }

  .rankbeyond-table th,
  .rankbeyond-table td {
    padding: 10px 12px;
  }

  .rankbeyond-table th:first-child,
  .rankbeyond-table td:first-child {
    padding-left: 16px;
  }

  .post-title {
    max-width: 140px;
  }

  .post-slug {
    max-width: 100px;
  }
}
