/* ===================================
   CENTRAL DA CONTA - Dashboard Header
   =================================== */

.dashboard-header {
  background: #d4ebe8;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}

/* ===================================
   USER WELCOME BAR
   =================================== */

.user-welcome-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}

.user-avatar-wrapper {
  flex-shrink: 0;
}

.user-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: #a8cfc7;
  font-size: 24px;
  font-weight: 700;
  color: #2d5f56;
}

.user-info {
  flex: 1;
}

.user-greeting {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 12px 0;
  line-height: 1.2;
}

.user-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.user-badge {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

.user-orders {
  font-size: 14px;
  color: #6b7280;
}

.user-progress-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.progress-percentage {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}

.progress-bar-container {
  width: 128px;
  height: 8px;
  background-color: #d1d5db;
  border-radius: 9999px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background-color: #22c55e;
  border-radius: 9999px;
  transition: width 0.3s ease;
}

.complete-profile-btn {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  text-decoration: underline;
  transition: color 0.2s;
}

.complete-profile-btn:hover {
  color: #374151;
}

/* ===================================
   INFO CARDS GRID
   =================================== */

.info-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.info-card {
  background-color: #ffffff;
  border: 0;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

.card-label {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 8px 0;
}

.card-value {
  font-size: 30px;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

/* ===================================
   COUPON BANNER
   =================================== */

.coupon-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #ffffff;
  border: 0;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

.coupon-text {
  color: #111827;
  margin: 0;
  font-size: 15px;
}

.coupon-text strong {
  font-weight: 700;
}

.coupon-btn {
  background-color: #22c55e;
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 32px;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.2s;
  display: inline-block;
}

.coupon-btn:hover {
  background-color: #16a34a;
}

/* ===================================
   RECENTLY VIEWED SECTION
   =================================== */

.recently-viewed-section {
  margin-top: 30px;
}

.recently-viewed-section .section-title {
  font-size: 18px;
  font-weight: 700;
  color: #000000;
  margin: 0 0 20px 0;
}

/* Recently viewed grid styling */
.recently-viewed-section .recently-viewed-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
}

.recently-viewed-empty {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 40px 20px;
  text-align: center;
}

.recently-viewed-empty p {
  color: #666;
  font-size: 14px;
  margin: 0;
}

/* Post Card (for non-product posts) */
.post-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s;
  height: 100%;
}

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

.post-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.post-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background-color: #f5f5f5;
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.post-card:hover .post-card-image img {
  transform: scale(1.05);
}

.post-card-content {
  padding: 15px;
}

.post-card-title {
  font-size: 14px;
  font-weight: 600;
  color: #000000;
  margin: 0 0 10px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #666;
}

.post-date {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ===================================
   TABLET RESPONSIVE
   =================================== */

@media (max-width: 1024px) {
  .user-avatar {
    width: 70px;
    height: 70px;
    font-size: 20px;
  }

  .user-greeting {
    font-size: 20px;
  }

  .card-value {
    font-size: 26px;
  }

  /* 3 columns on tablet */
  .recently-viewed-section .recently-viewed-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }
}

/* ===================================
   MOBILE RESPONSIVE
   =================================== */

@media (max-width: 768px) {
  .dashboard-header {
    padding: 20px;
  }

  .user-welcome-bar {
    gap: 16px;
    margin-bottom: 20px;
  }

  .user-avatar {
    width: 60px;
    height: 60px;
    font-size: 18px;
  }

  .user-greeting {
    font-size: 18px;
  }

  .user-meta {
    gap: 16px;
  }

  .info-cards-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 12px;
  }

  .info-card {
    padding: 20px;
  }

  .card-value {
    font-size: 26px;
  }

  .coupon-banner {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
  }

  .coupon-btn {
    width: 100%;
    text-align: center;
  }

  /* 1 column on mobile */
  .recently-viewed-section .recently-viewed-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .dashboard-header {
    padding: 16px;
  }

  .user-welcome-bar {
    gap: 12px;
  }

  .user-avatar {
    width: 50px;
    height: 50px;
    font-size: 16px;
  }

  .user-greeting {
    font-size: 16px;
  }

  .user-meta {
    gap: 12px;
    font-size: 12px;
  }

  .user-badge {
    font-size: 12px;
  }

  .user-orders {
    font-size: 12px;
  }

  .progress-percentage {
    font-size: 12px;
  }

  .progress-bar-container {
    width: 80px;
  }

  .complete-profile-btn {
    font-size: 12px;
  }

  .info-card {
    padding: 16px;
  }

  .card-label {
    font-size: 13px;
  }

  .card-value {
    font-size: 24px;
  }

  .coupon-banner {
    padding: 16px;
  }

  .coupon-text {
    font-size: 14px;
  }

  .coupon-btn {
    font-size: 13px;
    padding: 8px 24px;
  }
}
