/* ============================================= */
/* ============== BASE STYLES ================ */
/* ============================================= */

:root {
  --primary-color: #6e48aa;
  --secondary-color: #9d50bb;
  --accent-color: #25B981;
  --text-color: #333;
  --light-text: #e2e8f0;
  --dark-bg: #1e293b;
  --darker-bg: #0f172a;
  --light-bg: #f9f9f9;
  --border-color: #eee;
  --success-color: #d1e7dd;
  --success-text: #0f5132;
  --warning-color: #fff3cd;
  --warning-text: #664d03;
  --danger-color: #f8d7da;
  --danger-text: #842029;
}

.truewp-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  color: var(--text-color);
  line-height: 1.6;
}

/* ============================================= */
/* ============== HEADER STYLES =============== */
/* ============================================= */

.truewp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 20px;
  color: white;
}

.truewp-header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.truewp-header-left img,
.truewp-plugin-icon {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  object-fit: contain;
  background: white;
  padding: 5px;
}

.truewp-header-info h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
	color: #ffffff;
}

.truewp-author {
  margin: 5px 0 0;
  font-size: 16px;
}

.truewp-author a,
div.author_profile a {
  color: white;
  text-decoration: none;
  font-weight: 600;
}

.truewp-download-button {
  background: white;
  color: var(--primary-color);
  padding: 12px 25px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.truewp-download-button:hover {
  background: #f5f5f5;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* ============================================= */
/* ============== MAIN LAYOUT ================ */
/* ============================================= */

.truewp-main {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
}

/* ============================================= */
/* ============== TAB SYSTEM ================= */
/* ============================================= */

.truewp-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

.truewp-tablinks {
  padding: 10px 20px;
/*   background: #f5f5f5; */
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.truewp-tablinks:hover {
  background: #6e48aa;
}

.truewp-tablinks.active {
  background: var(--primary-color);
  color: white;
}

.truewp-tab-pane {
  display: none;
  padding: 20px 0;
}

.truewp-tab-pane.active {
  display: block;
}

/* ============================================= */
/* ============== CARD COMPONENTS ============ */
/* ============================================= */

.truewp-sidebar-card,
.truewp-stat-item,
.truewp-plugin-card,
.truewp-review,
.truewp-author-profile,
.truewp-versions-container {
  background: var(--light-bg);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.truewp-sidebar-card h3,
.truewp-author-plugins h3 {
  margin: 0 0 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
  color: var(--primary-color);
}

.truewp-plugin-card:hover,
.truewp-review:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* ============================================= */
/* ============== STATS GRID ================= */
/* ============================================= */

.truewp-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.truewp-stat-item {
  text-align: center;
}

.truewp-stat-item h3 {
  margin: 0 0 10px;
  font-size: 16px;
  color: #666;
}

.truewp-stat-item p {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-color);
}

/* ============================================= */
/* ============== RATING SYSTEM ============== */
/* ============================================= */

.truewp-stars-outer {
  position: relative;
  display: inline-block;
  font-family: 'Font Awesome 6 Free';
	font-size: 28px; /* added later */
}

.truewp-stars-outer::before {
  content: "\f005\f005\f005\f005\f005";
  color: #ccc;
  font-weight: 900;
}

.truewp-stars-inner {
  position: absolute;
  top: 0;
  left: 0;
  white-space: nowrap;
  overflow: hidden;
  width: 0%;
}

.truewp-stars-inner::before {
  content: "\f005\f005\f005\f005\f005";
  color: #ffb900;
  font-weight: 900;
}

/* ============================================= */
/* ============== SIDEBAR STYLES ============= */
/* ============================================= */

.truewp-sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.truewp-sidebar-list li {
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
}

.truewp-sidebar-list strong {
  font-weight: 600;
}

.truewp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
}

.truewp-tag {
  background: #e0e0e0;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 12px;
}

.truewp-sidebar-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.truewp-sidebar-links li {
  margin-bottom: 10px;
}

.truewp-sidebar-links a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s;
}

.truewp-sidebar-links a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* ============================================= */
/* ============== CONTRIBUTORS =============== */
/* ============================================= */

.truewp-contributors {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.truewp-contributor {
  text-align: center;
}

.truewp-contributor a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #555;
  transition: all 0.3s ease;
}

.truewp-contributor a:hover {
  color: var(--primary-color);
  transform: translateY(-3px);
}

.truewp-contributor img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-color);
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.truewp-contributor a:hover img {
  border-color: var(--secondary-color);
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.truewp-contributor span {
  font-size: 13px;
  word-break: break-word;
  line-height: 1.3;
}

/* ============================================= */
/* ============== SCREENSHOTS ================ */
/* ============================================= */

.truewp-screenshots-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.truewp-screenshot-item {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.truewp-screenshot-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.truewp-screenshot-item img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid var(--border-color);
}

.truewp-screenshot-caption {
  margin: 0;
  padding: 15px;
  font-size: 14px;
  color: #555;
  text-align: center;
}

/* ============================================= */
/* ============== FAQ SECTION ================ */
/* ============================================= */






/* #faq {
  padding: 20px 0;
}

#faq dt {
  font-size: 18px;
  font-weight: 600;
  color: #2c3338;
  margin: 25px 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  position: relative;
  padding-left: 30px;
  transition: all 0.3s ease;
}

#faq dt:hover {
  color: var(--primary-color);
}

#faq dt.active {
  color: #d63638;
}

#faq dt:before {
  content: '+';
  position: absolute;
  left: 0;
  top: 0;
  font-size: 22px;
  color: var(--primary-color);
  font-weight: bold;
  transition: all 0.3s ease;
}

#faq dt.active:before {
  content: '-';
  color: #d63638;
}

#faq dd {
  margin: 0 0 20px;
  padding: 0 0 0 30px;
  display: none;
}

#faq dd.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

#faq dd p {
  margin-bottom: 15px;
  line-height: 1.6;
  color: #50575e;
}

#faq dd a {
  color: var(--primary-color);
  text-decoration: none;
}

#faq dd a:hover {
  text-decoration: underline;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
} */

/* ============================================= */
/* ============== REVIEWS ==================== */
/* ============================================= */

.truewp-review-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.truewp-review-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 15px;
  object-fit: cover;
}

.truewp-review-meta h3 {
  margin: 0 0 5px;
  font-size: 16px;
  color: #2c3338;
}

.truewp-review-date {
  font-size: 13px;
  color: #757575;
}

.truewp-review-content h4 {
  margin: 0 0 10px;
  font-size: 17px;
  color: #1d2327;
}

.truewp-review-content p {
  margin: 0;
  line-height: 1.6;
  color: #50575e;
}

/* ============================================= */
/* ============== AUTHOR PROFILE ============= */
/* ============================================= */

.truewp-author-profile {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.truewp-author-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  text-align: center;
}

.truewp-author-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.2);
  overflow: hidden;
  margin-bottom: 20px;
}

.truewp-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.truewp-author-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 20px;
  background: #fff;
  border-top: 1px solid var(--border-color);
}

.truewp-profile-link,
.truewp-website-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 20px;
  background: #f5f5f5;
  color: #555;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.truewp-profile-link:hover {
  background: var(--primary-color);
  color: white;
}

.truewp-website-link:hover {
  background: var(--secondary-color);
  color: white;
}

/* ============================================= */
/* ============== VERSIONS TABLE ============= */
/* ============================================= */

.truewp-version-search {
  margin: 20px 0;
}

.truewp-search-input {
  width: 100%;
  max-width: 400px;
  padding: 10px 15px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 14px;
}

.truewp-versions-table-container {
  overflow-x: auto;
  margin-top: 20px;
}

.truewp-versions-table {
  width: 100%;
  border-collapse: collapse;
}

.truewp-versions-table th {
  background: #f5f5f5;
  padding: 12px 15px;
  text-align: left;
  font-weight: 600;
  color: #2c3338;
}

.truewp-versions-table td {
  padding: 12px 15px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.truewp-versions-table tr:hover {
  background: var(--light-bg);
}

.truewp-version-number {
  font-family: monospace;
  font-size: 14px;
}

.truewp-version-download-button,
.truewp-plugin-link,
.truewp-plugin-card-link {
  display: inline-block;
  padding: 8px 15px;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 13px;
  transition: all 0.3s ease;
}

.truewp-version-download-button:hover,
.truewp-plugin-link:hover,
.truewp-plugin-card-link:hover {
  background: var(--secondary-color);
}

.truewp-version-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
}

.truewp-version-badge.trunk {
  background: #f0f0f1;
  color: #2c3338;
}

.truewp-version-type {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
}

.truewp-version-type.stable {
  background: var(--success-color);
  color: var(--success-text);
}

.truewp-version-type.beta {
  background: var(--warning-color);
  color: var(--warning-text);
}

.truewp-version-type.trunk {
  background: var(--danger-color);
  color: var(--danger-text);
}

/* ============================================= */
/* ============== FOOTER STYLES ============== */
/* ============================================= */

.site-footer {
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
  color: var(--light-text);
  padding: 4rem 0 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  font-size: 2rem;
  font-weight: 700;
  color: #999;
  margin-bottom: 1rem;
}

.footer-logo span {
  color: var(--accent-color);
}

.footer-tagline {
  font-size: 1.1rem;
  color: #94a3b8;
  margin-bottom: 1.5rem;
}

.footer-description {
  color: #94a3b8;
  margin-bottom: 2rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.05);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transform: translateY(-2px);
}

.footer-heading {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: var(--accent-color);
}

.footer-links ul {
  list-style: none;
  padding-left: 0;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateX(5px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.footer-legal p {
  color: #94a3b8;
  margin: 0;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.legal-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.legal-links a:hover {
  color: #ffffff;
}

.footer-payment {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-payment span {
  color: #94a3b8;
  font-size: 0.9rem;
}

.payment-methods {
  display: flex;
  gap: 0.8rem;
  font-size: 1.5rem;
}

.payment-methods i {
  color: #cbd5e1;
  transition: all 0.2s ease;
}

.payment-methods i:hover {
  color: #ffffff;
  transform: translateY(-2px);
}

/* ============================================= */
/* ============== RESPONSIVE STYLES ========== */
/* ============================================= */

@media (max-width: 1024px) {
  .truewp-main {
    grid-template-columns: 1fr;
  }
  
  .truewp-sidebar {
    order: -1;
  }
}

@media (max-width: 768px) {
  .truewp-header {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  
  .truewp-header-left {
    flex-direction: column;
  }
  
  .truewp-plugin-icon {
    width: 60px;
    height: 60px;
  }
  
  .truewp-stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .truewp-contributors {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
  }
  
  .truewp-contributor img {
    width: 40px;
    height: 40px;
  }
  
  .footer-main {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .truewp-versions-table {
    display: block;
  }
  
  .truewp-versions-table thead {
    display: none;
  }
  
  .truewp-versions-table tr {
    display: block;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
  }
  
  .truewp-versions-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    border-bottom: 1px dotted var(--border-color);
  }
  
  .truewp-versions-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #2c3338;
    margin-right: 15px;
  }
}

@media (max-width: 480px) {
  .truewp-stats-grid {
    grid-template-columns: 1fr;
  }
  
  .truewp-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 5px;
  }
  
  .truewp-contributors {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .truewp-screenshots-gallery {
    grid-template-columns: 1fr;
  }
  
  .footer-main {
    grid-template-columns: 1fr;
  }
  
  .footer-links {
    margin-bottom: 2rem;
  }
}