/* 
 * Dunamis Growth - Customer Interface CSS
 * Production version - 2025-10-11
 */

/* Customer-specific variables */
:root {
  --customer-primary: #673AB7;
  --customer-primary-dark: #5E35B1;
  --customer-primary-light: #D1C4E9;
  --customer-accent: #FF4081;
  --customer-background: #F5F5F5;
  --customer-card-bg: #FFFFFF;
  --customer-text: #212121;
  --customer-text-secondary: #757575;
  --customer-divider: #BDBDBD;
}

/* Customer interface specific styles */
.customer-interface {
  background-color: var(--customer-background);
}

/* Dashboard welcome section */
.dashboard-welcome {
  margin-bottom: 20px;
}

/* Stats cards */
.dashboard-stats {
  margin-bottom: 20px;
}

.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.stat-card {
  flex: 1;
  min-width: 200px;
  background-color: var(--customer-card-bg);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 20px;
  display: flex;
  align-items: center;
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--customer-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
}

.stat-icon i {
  color: var(--customer-primary);
  font-size: 24px;
}

.stat-content h4 {
  margin: 0;
  font-size: 14px;
  color: var(--customer-text-secondary);
}

.stat-value {
  margin: 5px 0 0;
  font-size: 24px;
  font-weight: 500;
  color: var(--customer-text);
}

/* Dashboard sections */
.dashboard-sections {
  margin-bottom: 20px;
}

.section-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.section-row .card {
  flex: 1;
  min-width: 300px;
}

/* Fun fact container */
.fun-fact-container {
  background-color: var(--customer-primary-light);
  border-radius: 8px;
  padding: 20px;
  position: relative;
}

.fun-fact-container:before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 60px;
  color: rgba(103, 58, 183, 0.2);
  font-family: Georgia, serif;
}

#fun-fact-text {
  margin: 0;
  font-style: italic;
  padding-left: 20px;
}

/* Empty state */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
}

.empty-state i {
  font-size: 48px;
  color: var(--customer-divider);
  margin-bottom: 10px;
}

.empty-state p {
  margin: 0 0 10px;
  color: var(--customer-text-secondary);
}

.hint-text {
  font-size: 14px;
  color: var(--customer-text-secondary);
  font-style: italic;
}

/* Review list item */
.review-item {
  padding: 15px;
  border-bottom: 1px solid var(--customer-divider);
}

.review-item:last-child {
  border-bottom: none;
}

.review-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.review-restaurant {
  font-weight: 500;
}

.review-date {
  font-size: 12px;
  color: var(--customer-text-secondary);
}

.review-rating {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.review-stars {
  color: #FFD700;
  margin-right: 10px;
}

.review-category {
  font-size: 12px;
  color: var(--customer-text-secondary);
}

.review-comment {
  margin: 0;
  font-size: 14px;
}

/* Reward item */
.reward-item {
  padding: 15px;
  border-bottom: 1px solid var(--customer-divider);
  display: flex;
  align-items: center;
}

.reward-item:last-child {
  border-bottom: none;
}

.reward-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--customer-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
}

.reward-icon i {
  color: var(--customer-primary);
  font-size: 20px;
}

.reward-content {
  flex: 1;
}

.reward-title {
  font-weight: 500;
  margin: 0 0 5px;
}

.reward-description {
  font-size: 14px;
  color: var(--customer-text-secondary);
  margin: 0;
}

.reward-points {
  background-color: var(--customer-primary-light);
  color: var(--customer-primary);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}

/* Restaurant item */
.restaurant-item {
  padding: 15px;
  border-bottom: 1px solid var(--customer-divider);
  display: flex;
}

.restaurant-item:last-child {
  border-bottom: none;
}

.restaurant-image {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  margin-right: 15px;
}

.restaurant-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.restaurant-content {
  flex: 1;
}

.restaurant-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 5px;
}

.restaurant-name {
  font-weight: 500;
  margin: 0;
}

.restaurant-rating {
  display: flex;
  align-items: center;
}

.restaurant-stars {
  color: #FFD700;
  font-size: 16px;
  margin-right: 5px;
}

.restaurant-rating-value {
  font-weight: 500;
}

.restaurant-details {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 5px;
}

.restaurant-detail {
  font-size: 12px;
  color: var(--customer-text-secondary);
  margin-right: 15px;
  display: flex;
  align-items: center;
}

.restaurant-detail i {
  font-size: 14px;
  margin-right: 5px;
}

.restaurant-description {
  font-size: 14px;
  margin: 0;
  color: var(--customer-text-secondary);
}

/* Review form */
.review-form {
  padding: 20px;
}

.review-form-header {
  margin-bottom: 20px;
}

.review-form-title {
  margin: 0 0 5px;
}

.review-form-subtitle {
  margin: 0;
  color: var(--customer-text-secondary);
  font-size: 14px;
}

.review-categories {
  margin-bottom: 20px;
}

.review-category-item {
  margin-bottom: 15px;
}

.review-category-label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.star-rating {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.star {
  color: #E0E0E0;
  font-size: 24px;
  cursor: pointer;
  transition: color 0.2s;
}

.star.filled {
  color: #FFD700;
}

.star:hover {
  color: #FFD700;
}

.rating-description {
  margin-left: 10px;
  font-size: 14px;
  color: var(--customer-text-secondary);
}

.word-counter {
  font-size: 12px;
  color: var(--customer-text-secondary);
  text-align: right;
  margin-top: 5px;
}

/* Photo upload */
.photo-upload {
  margin-bottom: 20px;
}

.photo-upload-label {
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
}

.photo-upload-button {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background-color: var(--customer-primary);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.photo-upload-button:hover {
  background-color: var(--customer-primary-dark);
}

.photo-upload-button i {
  margin-right: 8px;
}

.photo-preview {
  margin-top: 10px;
  display: none;
}

.photo-preview img {
  max-width: 100%;
  max-height: 200px;
  border-radius: 4px;
}

.photo-actions {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}

/* Points summary */
.points-summary {
  background-color: var(--customer-primary-light);
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
}

.points-summary-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 500;
}

.points-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}

.points-item:last-child {
  margin-bottom: 0;
  padding-top: 5px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  font-weight: 500;
}

/* Profile section */
.profile-header {
  text-align: center;
  margin-bottom: 30px;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: var(--customer-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  overflow: hidden;
}

.profile-avatar i {
  font-size: 60px;
  color: var(--customer-primary);
}

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

.profile-name {
  margin: 0 0 5px;
  font-size: 24px;
}

.profile-email {
  margin: 0;
  color: var(--customer-text-secondary);
}

.profile-stats {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
}

.profile-stat {
  text-align: center;
}

.profile-stat-value {
  font-size: 24px;
  font-weight: 500;
  margin: 0 0 5px;
}

.profile-stat-label {
  color: var(--customer-text-secondary);
  font-size: 14px;
  margin: 0;
}

/* Settings section */
.settings-section {
  margin-bottom: 30px;
}

.settings-section-title {
  margin: 0 0 15px;
  font-size: 18px;
  font-weight: 500;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--customer-divider);
}

.settings-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid var(--customer-divider);
}

.settings-item:last-child {
  border-bottom: none;
}

.settings-item-label {
  font-weight: 500;
}

.settings-item-description {
  font-size: 14px;
  color: var(--customer-text-secondary);
  margin: 5px 0 0;
}

/* Review code modal */
#review-code-input {
  font-size: 24px;
  letter-spacing: 5px;
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .stats-row, .section-row {
    flex-direction: column;
  }
  
  .stat-card, .section-row .card {
    width: 100%;
  }
  
  .profile-stats {
    flex-wrap: wrap;
    gap: 20px;
  }
  
  .profile-stat {
    flex: 1;
    min-width: 80px;
  }
}

/* Fun fact animation */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fun-fact-container {
  animation: fadeIn 0.5s ease-in-out;
}

/* Review floating action button */
#review-fab {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--customer-accent);
  color: white;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  z-index: 100;
  transition: transform 0.2s, background-color 0.2s;
}

#review-fab:hover {
  transform: scale(1.05);
  background-color: #ff5a92;
}

#review-fab:active {
  transform: scale(0.95);
}
