/* WP Soft App Info Main Styles */
.wp-soft-info-container {
  --wp-soft-primary: #4a6cf7;
  --wp-soft-secondary: #6b7280;
  --wp-soft-accent: #f97316;
  --wp-soft-light: #f3f4f6;
  --wp-soft-dark: #1f2937;
  --wp-soft-border: #e5e7eb;
  --wp-soft-radius: 8px;
  --wp-soft-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);

  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  margin: 2rem 0;
  color: var(--wp-soft-dark);
}

/* RTL Support */
.rtl .wp-soft-info-container {
  direction: rtl;
  text-align: right;
}

/* App Info Display Styles - Table Format */
.wp-soft-info-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--wp-soft-radius);
  overflow: hidden;
  box-shadow: var(--wp-soft-shadow);
  margin-bottom: 1.5rem;
}

.wp-soft-info-table tr:nth-child(odd) {
  background-color: var(--wp-soft-light);
}

.wp-soft-info-table tr:nth-child(even) {
  background-color: #ffffff;
}

.wp-soft-info-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--wp-soft-border);
}

.wp-soft-info-table tr:last-child td {
  border-bottom: none;
}

.wp-soft-info-table td:first-child {
  font-weight: 600;
  width: 40%;
  color: var(--wp-soft-dark);
}

.rtl .wp-soft-info-table td:first-child {
  text-align: right;
}

/* App Info Display Styles - List Format */
.wp-soft-info-ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  border-radius: var(--wp-soft-radius);
  overflow: hidden;
  box-shadow: var(--wp-soft-shadow);
}

.wp-soft-info-ul li {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--wp-soft-border);
}

.wp-soft-info-ul li:nth-child(odd) {
  background-color: var(--wp-soft-light);
}

.wp-soft-info-ul li:nth-child(even) {
  background-color: #ffffff;
}

.wp-soft-info-ul li:last-child {
  border-bottom: none;
}

.wp-soft-info-ul li strong {
  color: var(--wp-soft-dark);
  margin-right: 0.5rem;
}

.rtl .wp-soft-info-ul li strong {
  margin-right: 0;
  margin-left: 0.5rem;
}

/* App Info Display Styles - DL Format */
.wp-soft-info-dl {
  display: grid;
  grid-template-columns: 40% 60%;
  margin: 0 0 1.5rem 0;
  border-radius: var(--wp-soft-radius);
  overflow: hidden;
  box-shadow: var(--wp-soft-shadow);
}

.wp-soft-info-dl dt,
.wp-soft-info-dl dd {
  padding: 0.75rem 1rem;
  margin: 0;
  border-bottom: 1px solid var(--wp-soft-border);
}

.wp-soft-info-dl dt {
  font-weight: 600;
  background-color: var(--wp-soft-light);
  color: var(--wp-soft-dark);
}

.wp-soft-info-dl dd {
  background-color: #ffffff;
}

.wp-soft-info-dl dt:last-of-type,
.wp-soft-info-dl dd:last-of-type {
  border-bottom: none;
}

/* Thumbnail Styles */
.wp_soft_thumbnail {
  text-align: center;
  margin-bottom: 1.5rem;
}

.wp_soft_thumbnail img {
  border-radius: var(--wp-soft-radius);
  max-width: 120px;
  height: auto;
  box-shadow: var(--wp-soft-shadow);
  border: 3px solid #fff;
}

/* App Meta Bar - Download, Rating and Thumbnail Combined */
.wp-soft-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to right, #f8fafc, #eef2ff);
  border-radius: var(--wp-soft-radius);
  padding: 1rem;
  margin: 1.5rem 0;
  box-shadow: var(--wp-soft-shadow);
}

.rtl .wp-soft-meta-bar {
  background: linear-gradient(to left, #f8fafc, #eef2ff);
}

.wp-soft-meta-thumbnail {
  flex: 0 0 60px;
}

.wp-soft-meta-thumbnail img {
  width: 60px;
  height: 60px;
  border-radius: var(--wp-soft-radius);
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wp-soft-meta-info {
  flex: 1;
  padding: 0 1rem;
}

.wp-soft-meta-title {
  font-weight: 600;
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
}

.wp-soft-meta-rating {
  display: flex;
  align-items: center;
}

.wp-soft-rating-stars {
  display: inline-flex;
  margin-right: 0.5rem;
}

.rtl .wp-soft-rating-stars {
  margin-right: 0;
  margin-left: 0.5rem;
}

.wp-soft-rating-stars .star {
  color: var(--wp-soft-accent);
  font-size: 1rem;
}

.wp-soft-rating-count {
  color: var(--wp-soft-secondary);
  font-size: 0.85rem;
}

.wp-soft-meta-download {
  flex: 0 0 auto;
}

.wp-soft-download-btn {
  display: inline-flex;
  align-items: center;
  background-color: var(--wp-soft-primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 24px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.wp-soft-download-btn:hover {
  background-color: #3b5bdb;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
  color: white;
}

.wp-soft-download-icon {
  margin-right: 0.5rem;
}

.rtl .wp-soft-download-icon {
  margin-right: 0;
  margin-left: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .wp-soft-info-dl {
    grid-template-columns: 1fr;
  }

  .wp-soft-meta-bar {
    flex-direction: column;
    text-align: center;
  }

  .wp-soft-meta-thumbnail {
    margin-bottom: 1rem;
  }

  .wp-soft-meta-info {
    margin-bottom: 1rem;
    padding: 0;
  }

  .wp-soft-meta-rating {
    justify-content: center;
  }
}

/* Customization Variables (for easy theming) */
.wp-soft-info-container.theme-blue {
  --wp-soft-primary: #3b82f6;
  --wp-soft-accent: #f59e0b;
}

.wp-soft-info-container.theme-green {
  --wp-soft-primary: #10b981;
  --wp-soft-accent: #6366f1;
}

.wp-soft-info-container.theme-red {
  --wp-soft-primary: #ef4444;
  --wp-soft-accent: #f97316;
}

/* Optional: Animation Effects */
.wp-soft-download-btn {
  position: relative;
  overflow: hidden;
}

.wp-soft-download-btn:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.wp-soft-download-btn:hover:after {
  transform: translateX(0);
}
