/* Profile Page Styles for TrendMaster */

/* Profile Grid Layout */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

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

/* Profile Avatar Section */
.profile-avatar-section {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: white;
  position: relative;
  overflow: hidden;
}

.profile-avatar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3) 0%, transparent 50%);
}

.profile-basic-info h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--light-color);
  margin-bottom: 0.5rem;
}

.profile-basic-info p {
  color: var(--gray-300);
  margin-bottom: 1rem;
}

.profile-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.profile-badge {
  background: rgba(99, 102, 241, 0.2);
  color: var(--primary-light);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.profile-badge-secondary {
  background: rgba(16, 185, 129, 0.2);
  color: var(--secondary-color);
  border-color: rgba(16, 185, 129, 0.3);
}

/* Profile Statistics */
.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.profile-stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(31, 41, 55, 0.5);
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

.profile-stat-item:hover {
  background: rgba(31, 41, 55, 0.7);
  transform: translateY(-2px);
}

.profile-stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  font-size: 1.25rem;
}

.profile-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--light-color);
  margin-bottom: 0.25rem;
}

.profile-stat-label {
  font-size: 0.875rem;
  color: var(--gray-300);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Subscription Status */
.subscription-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.subscription-plan h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--light-color);
  margin-bottom: 0.5rem;
}

.subscription-plan p {
  color: var(--gray-300);
}

@media (max-width: 768px) {
  .subscription-status {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Favorite Niches Grid */
.favorite-niches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.favorite-niche-card {
  background: rgba(31, 41, 55, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 1rem;
  transition: all 0.3s ease;
}

.favorite-niche-card:hover {
  background: rgba(31, 41, 55, 0.7);
  transform: translateY(-2px);
}

.favorite-niche-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--light-color);
  margin-bottom: 0.5rem;
}

.favorite-niche-category {
  font-size: 0.75rem;
  color: var(--primary-light);
  background: rgba(99, 102, 241, 0.2);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.favorite-niche-score {
  font-size: 0.875rem;
  color: var(--gray-300);
}

/* Settings List */
.settings-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: rgba(31, 41, 55, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.setting-item:hover {
  background: rgba(31, 41, 55, 0.5);
}

.setting-item-danger {
  border-color: rgba(239, 68, 68, 0.3);
}

.setting-item-danger:hover {
  background: rgba(239, 68, 68, 0.1);
}

.setting-info h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--light-color);
  margin-bottom: 0.25rem;
}

.setting-info p {
  font-size: 0.875rem;
  color: var(--gray-300);
  margin: 0;
}

/* Activity List */
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: rgba(31, 41, 55, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
}

.activity-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  font-size: 0.875rem;
}

.activity-content {
  flex: 1;
}

.activity-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--light-color);
  margin-bottom: 0.25rem;
}

.activity-time {
  font-size: 0.75rem;
  color: var(--gray-400);
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem;
  border-bottom: 1px solid var(--glass-border);
}

.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--light-color);
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  color: var(--gray-400);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.modal-close:hover {
  color: var(--light-color);
  background: rgba(255, 255, 255, 0.1);
}

.modal-body {
  padding: 1.25rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-300);
  margin-bottom: 0.5rem;
}

.futuristic-input {
  width: 100%;
  padding: 0.75rem;
  background: rgba(31, 41, 55, 0.7);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  color: var(--light-color);
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.futuristic-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.futuristic-input:readonly {
  background: rgba(31, 41, 55, 0.3);
  color: var(--gray-400);
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
}

/* Danger Button */
.futuristic-btn-danger {
  background: linear-gradient(135deg, var(--danger-color), #dc2626);
  color: white;
}

.futuristic-btn-danger:hover {
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
}

/* Loading Spinner */
.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.loading-spinner i {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .profile-avatar-section {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

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

  .setting-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

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