/* My Account - Loyalty Points Styles */

.truebeep-loyalty-account {
  padding: 20px 0;
}

/* Dashboard Loyalty Section */
.truebeep-dashboard-loyalty {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  color: #333333;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.loyalty-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.welcome-content p.welcome-content-text {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  color: #333333;
}

.welcome-content .points-count {
  color: transparent;
  background: linear-gradient(to left, #4d84ff, #3330fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 26px;
  font-weight: 600;
}

.tier-status {
  margin: 0 0 0 0;
  font-size: 14px;
  color: #666666;
}

.loyalty-icon {
  flex-shrink: 0;
}

.loyalty-icon svg {
  width: 40px;
  height: 40px;
  color: #4a90e2;
}

.loyalty-wallet-section p {
  margin: 0 0 12px 0;
  font-size: 14px;
  font-weight: 400;
  color: #333333;
}

.wallet-buttons-dashboard {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.wallet-btn-dashboard img {
  max-width: 100%;
  width: auto;
  height: 40px;
}

@media (max-width: 768px) {
  .loyalty-welcome {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .welcome-content h3 {
    font-size: 18px;
  }

  .wallet-buttons-dashboard {
    flex-direction: column;
    width: 100%;
  }

  .wallet-btn-dashboard {
    justify-content: center;
  }
}

/* Overview Cards */
.loyalty-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.loyalty-card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 20px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.loyalty-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.card-icon {
  flex-shrink: 0;
}

.card-icon svg {
  width: 48px;
  height: 48px;
}

.points-balance .card-icon svg {
  color: #667eea;
}

.tier-status .card-icon svg {
  color: #764ba2;
}

.tier-status strong {
  text-transform: uppercase;
}

.card-content h3 {
  margin: 0 0 8px 0;
  font-size: 14px;
  font-weight: 600;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.points-value {
  font-size: 36px;
  font-weight: bold;
  color: #667eea;
  line-height: 1;
}

.tier-value {
  font-size: 24px;
  font-weight: 600;
  color: #764ba2;
  text-transform: capitalize;
}

/* Statistics Section */
.loyalty-stats {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 40px;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}

.stat-item {
  text-align: center;
  flex: 1;
  min-width: 150px;
}

.stat-label {
  display: block;
  font-size: 13px;
  color: #6c757d;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  display: block;
  font-size: 24px;
  font-weight: 600;
  color: #212529;
}

/* Digital Wallets Section */
.loyalty-wallets {
  background: white;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 40px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.loyalty-wallets h3 {
  margin: 0 0 10px 0;
  font-size: 20px;
  font-weight: 600;
  color: #212529;
}

.loyalty-wallets p {
  color: #6c757d;
  margin-bottom: 20px;
}

.wallet-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.wallet-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s;
  padding: 0px;
  border: 0;
}

.wallet-btn svg {
  width: 24px;
  height: 24px;
}

/* How It Works Section */
.loyalty-info {
  margin-top: 40px;
}

.loyalty-info h3 {
  font-size: 20px;
  font-weight: 600;
  color: #212529;
  margin-bottom: 25px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.info-item {
  text-align: center;
}

.info-icon {
  font-size: 48px;
  margin-bottom: 15px;
}

.info-item h4 {
  font-size: 18px;
  font-weight: 600;
  color: #212529;
  margin-bottom: 10px;
}

.info-item p {
  color: #6c757d;
  font-size: 14px;
  line-height: 1.6;
}

/* Transactions Table (for future use) */
.loyalty-transactions {
  margin-top: 40px;
}

.loyalty-transactions h3 {
  font-size: 20px;
  font-weight: 600;
  color: #212529;
  margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .loyalty-overview {
    grid-template-columns: 1fr;
  }

  .loyalty-card {
    padding: 20px;
  }

  .points-value {
    font-size: 28px;
  }

  .tier-value {
    font-size: 20px;
  }

  .loyalty-stats {
    flex-direction: column;
    align-items: stretch;
  }

  .stat-item {
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 15px;
  }

  .stat-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .wallet-buttons {
    grid-template-columns: 1fr;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Integration with WooCommerce My Account styles */
.woocommerce-account .truebeep-loyalty-account {
  max-width: 100%;
}

.woocommerce-MyAccount-navigation-link--loyalty a:before {
  content: '⭐';
  margin-right: 5px;
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
  .loyalty-card {
    background: #1a1a1a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }

  .loyalty-stats {
    background: #2a2a2a;
  }

  .loyalty-wallets {
    background: #1a1a1a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }

  .card-content h3,
  .stat-label {
    color: #adb5bd;
  }

  .loyalty-wallets h3,
  .loyalty-info h3,
  .info-item h4,
  .stat-value {
    color: #f8f9fa;
  }

  .loyalty-wallets p,
  .info-item p {
    color: #adb5bd;
  }
}
