/* Modern Dark Theme - User Profile Page */
.user-page {
  --primary: #3cc30e;
  --primary-light: #00FF1E;
  --primary-dark: #209C29;
  --purple: #c700ff;
  --purple-light: #e040fb;
  --purple-dark: #aa00ea;
  --background: #000000;
  --surface: #0d0d0d;
  --surface-light: #161616;
  --border: #2a2a2a;
  --text: #FFFFFF;
  --text-muted: #999;
  --warning: #f59e0b;
  --success: #10b981;
  --danger: #ef4444;
  --info: #3b82f6;
  --radius: 10px;
}

/* Main Layout */
.user-main {
  background: var(--background);
  min-height: 80vh;
  padding: 0.6rem 0 1.8rem 0;
}

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

.user-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1.5rem;
  margin-top: 1.2rem;
}

/* Profile Sidebar */
.profile-sidebar {
  position: sticky;
  top: 1rem;
  align-self: start;
}

.profile-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  margin-bottom: 1.2rem;
  transition: all 0.3s ease;
}

.profile-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.profile-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 2px solid var(--border);
  transition: all 0.3s ease;
}

.profile-avatar:hover {
  border-color: var(--primary);
  transform: scale(1.05);
}

.profile-avatar.verified {
  border-color: var(--primary);
}

.verified-user {
  position: relative;
  display: inline-block;
}

.verified-user::after {
  content: '\f058';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  bottom: 1rem;
  right: 0;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  border: 3px solid var(--surface);
}

.profile-username {
  font-family: 'Chakra Petch', 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text);
}

.profile-username a {
  color: var(--text);
  text-decoration: none;
  transition: all 0.2s;
}

.profile-username a:hover {
  color: var(--primary);
  text-shadow: 0 0 10px rgba(60, 195, 14, 0.5);
}

.banned-label {
  color: var(--danger);
  font-size: 0.8rem;
  font-weight: 500;
}

.profile-rating {
  margin-bottom: 1rem;
  display: flex;
  gap: 0.2rem;
}

.star-filled {
  color: #FFD700;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

.star-empty {
  color: var(--text-muted);
}

.profile-description {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.9rem;
  margin: 0;
}

/* Content Cards */
.user-content-area .card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.user-content-area .card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.content-card {
  padding: 1.5rem;
}

.section-title {
  font-family: 'Chakra Petch', 'Inter', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title i {
  color: var(--primary);
  text-shadow: 0 0 15px rgba(60, 195, 14, 0.5);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
  margin-left: 0.5rem;
}

.badge-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(60, 195, 14, 0.3);
}

/* Stats Cards */
.stats-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
  margin-bottom: 1.8rem;
}

.stat-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.stat-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: rgba(60, 195, 14, 0.1);
  color: var(--primary);
  flex-shrink: 0;
}

.stat-icon.active-icon {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.stat-icon.inactive-icon {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.stat-content {
  flex: 1;
}

.stat-content h3 {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 0.3rem 0;
  font-weight: 500;
}

.stat-content .stat-value {
  font-family: 'Chakra Petch', 'Inter', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0;
  color: var(--text);
}

/* Filter Bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1.5rem;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1rem;
  border: 1px solid var(--border);
  gap: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.filter-group {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 180px;
}

.filter-group label {
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 0.4rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.filter-group label i {
  color: var(--primary);
}

.custom-select {
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.7rem;
  font-size: 0.85rem;
  color: var(--text);
  width: 100%;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}

.custom-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(60, 195, 14, 0.1);
}

.custom-select option {
  background: var(--surface);
  color: var(--text);
  padding: 0.5rem;
}

.filter-results {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 0.5rem 0;
}

/* Offers Section */
.offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.2rem;
  margin-bottom: 1.8rem;
}

.category-section {
  margin-bottom: 2.5rem;
}

.category-header {
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
}

.category-title {
  font-family: 'Chakra Petch', 'Inter', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.category-title::before {
  content: '';
  width: 4px;
  height: 24px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 2px;
}

.offer-count {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  margin-left: 0.5rem;
}

.subcategory-section {
  margin-left: 1.5rem;
  margin-bottom: 2rem;
}

.subcategory-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.subcategory-title::before {
  content: '';
  width: 3px;
  height: 18px;
  background: var(--purple);
  border-radius: 2px;
}

.offer-card {
  position: relative;
  background: var(--surface-light);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.offer-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.offer-content {
  padding: 1.2rem;
}

.offer-title {
  font-family: 'Chakra Petch', 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.6rem 0;
  line-height: 1.4;
}

.offer-title a {
  color: var(--text);
  text-decoration: none;
  transition: all 0.2s;
}

.offer-title a:hover {
  color: var(--primary);
  text-shadow: 0 0 10px rgba(60, 195, 14, 0.4);
}

.offer-server {
  margin-bottom: 0.6rem;
}

.offer-server span {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.offer-server i {
  color: var(--primary);
}

.offer-category {
  margin-bottom: 0.8rem;
}

.category-badge {
  display: inline-block;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.7rem;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-weight: 600;
  border: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.offer-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.detail-item {
  display: flex;
  flex-direction: column;
  padding: 0.6rem;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.detail-item:hover {
  background: var(--surface-light);
  border-color: var(--primary);
}

.detail-item i {
  font-size: 0.85rem;
  color: var(--primary);
  margin-bottom: 0.3rem;
}

.detail-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-value {
  font-weight: 700;
  color: var(--text);
  font-size: 0.95rem;
}

.offer-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  gap: 0.4rem;
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-light) 100%);
  color: white;
  box-shadow: 0 3px 10px rgba(199, 0, 255, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--purple-light) 0%, var(--purple) 100%);
  box-shadow: 0 5px 20px rgba(199, 0, 255, 0.5);
  transform: translateY(-3px);
  color: white;
}

.btn-outline {
  background: var(--surface-light);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: #1f1f1f;
  border-color: var(--primary);
  color: var(--text);
}

.btn i {
  font-size: 0.85rem;
}

.offer-status {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.65rem;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.offer-status.active {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.offer-status.inactive {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Empty States */
.empty-state {
  background: var(--surface);
  padding: 3.5rem 2rem;
  text-align: center;
  border-radius: var(--radius);
  margin-top: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.empty-icon {
  font-size: 3.5rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  opacity: 0.6;
}

.empty-icon i {
  text-shadow: none;
}

.empty-state h2 {
  font-family: 'Chakra Petch', 'Inter', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text);
}

.empty-state p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.5;
}

.no-offers {
  background: var(--surface-light);
  padding: 2.5rem;
  text-align: center;
  border-radius: var(--radius);
  margin-top: 1.5rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.no-reviews {
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
}

/* Reviews Section */
.reviews-overview {
  padding: 0.8rem 0;
}

.reviews-stats {
  display: flex;
  justify-content: center;
  margin-bottom: 1.8rem;
}

.reviews-stats .stats-card {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, var(--info) 0%, #2563eb 100%);
  border-radius: var(--radius);
  min-width: 220px;
  border: 1px solid rgba(59, 130, 246, 0.4);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.stats-value {
  font-size: 3rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.6rem;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.stats-stars {
  margin-bottom: 0.6rem;
  display: flex;
  justify-content: center;
  gap: 0.2rem;
}

.stats-label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.review-card {
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  transition: all 0.3s ease;
}

.review-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transform: translateY(-3px);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.reviewer-name {
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.reviewer-name:hover {
  color: var(--primary);
  text-shadow: 0 0 10px rgba(60, 195, 14, 0.4);
}

.review-stars {
  display: flex;
  gap: 0.2rem;
  font-size: 0.9rem;
}

.review-content p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.review-notice {
  background: var(--surface-light);
  border-left: 4px solid var(--primary);
  padding: 1.2rem;
  margin-bottom: 1.8rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.review-notice p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.review-notice i {
  color: var(--primary);
  margin-right: 0.5rem;
  text-shadow: 0 0 8px rgba(60, 195, 14, 0.4);
}

.review-notice strong {
  color: var(--text);
  font-weight: 700;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .user-layout {
    grid-template-columns: 280px 1fr;
    gap: 1.2rem;
  }

  .offers-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
}

@media (max-width: 768px) {
  .user-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .profile-sidebar {
    position: relative;
    top: 0;
  }

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-group {
    width: 100%;
  }

  .offers-grid {
    grid-template-columns: 1fr;
  }

  .offer-details {
    grid-template-columns: 1fr 1fr;
  }

  .stats-cards {
    grid-template-columns: 1fr;
  }

  .badge {
    font-size: 0.7rem;
  }

  .category-title {
    font-size: 1.2rem;
  }

  .subcategory-section {
    margin-left: 0.8rem;
  }

  .section-title {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .user-container {
    padding: 0 0.8rem;
  }

  .profile-avatar {
    width: 100px;
    height: 100px;
  }

  .profile-username {
    font-size: 1.3rem;
  }

  .offer-card {
    border-width: 1px;
  }

  .offer-actions {
    flex-direction: column;
  }

  .btn,
  .btn-sm {
    width: 100%;
    justify-content: center;
  }

  .empty-state {
    padding: 2.5rem 1.5rem;
  }

  .empty-icon {
    font-size: 2.5rem;
  }
}
