/* Profile Page Styles - Modern Dark Theme */

/* Login Page */
.login-section {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  padding: 3rem 0;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

.login-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.login-card {
  background: var(--color-bg-tertiary);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border);
}

.login-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--color-text-primary);
}

.login-header p {
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  color: var(--color-text-primary);
  font-size: 0.9rem;
}

.form-group input {
  padding: 0.875rem 1rem;
  border: 2px solid var(--color-border);
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: var(--color-bg-elevated);
  color: var(--color-text-primary);
}

.form-group input::placeholder {
  color: var(--color-text-muted);
}

.form-group input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: var(--shadow-glow);
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: -0.5rem;
  color: var(--color-text-secondary);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.forgot-password {
  color: var(--color-accent);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.forgot-password:hover {
  text-decoration: underline;
  color: var(--color-accent-hover);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

.login-divider {
  position: relative;
  text-align: center;
  margin: 2rem 0;
}

.login-divider::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  background: var(--color-border);
}

.login-divider span {
  position: relative;
  background: var(--color-bg-tertiary);
  padding: 0 1rem;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

.social-login {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.875rem 1.5rem;
  border: 2px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-bg-elevated);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--color-text-primary);
}

.btn-social:hover {
  background: var(--color-bg-hover);
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.login-footer {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-secondary);
}

.register-link {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
}

.register-link:hover {
  text-decoration: underline;
  color: var(--color-accent-hover);
}

.login-benefits {
  background: rgba(0, 217, 192, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 3rem;
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
}

.login-benefits h2 {
  font-size: 1.75rem;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-hover));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.benefit-item {
  display: flex;
  gap: 1.5rem;
}

.benefit-icon {
  width: 48px;
  height: 48px;
  background: rgba(0, 217, 192, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--color-border);
}

.benefit-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--color-accent);
}

.benefit-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--color-text-primary);
}

.benefit-content p {
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* Profile Page */
.profile-section {
  padding: 2rem 0 4rem;
  min-height: calc(100vh - 80px);
  background: var(--color-background);
}

.profile-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
}

/* Sidebar */
.profile-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.profile-card {
  background: var(--color-bg-tertiary);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.profile-avatar-large {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem;
}

.profile-avatar-large img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--color-accent);
  box-shadow: var(--shadow-glow);
}

.avatar-edit {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 36px;
  height: 36px;
  background: var(--color-accent);
  border: 3px solid var(--color-bg-tertiary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-glow);
}

.avatar-edit:hover {
  background: var(--color-accent-hover);
  transform: scale(1.1);
}

.avatar-edit svg {
  width: 16px;
  height: 16px;
  fill: var(--color-primary);
}

.profile-name {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
  color: var(--color-text-primary);
}

.profile-email {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

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

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

.stat-label {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
}

/* Profile Navigation */
.profile-nav {
  background: var(--color-bg-tertiary);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.profile-nav-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1rem;
  border-radius: 12px;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.profile-nav-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: currentColor;
}

.profile-nav-item:hover {
  background: var(--color-bg-elevated);
  color: var(--color-text-primary);
}

.profile-nav-item.active {
  background: rgba(0, 217, 192, 0.1);
  color: var(--color-accent);
  font-weight: 600;
  box-shadow: var(--shadow-glow);
}

.nav-badge {
  margin-left: auto;
  background: var(--color-danger);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Main Content */
.profile-main {
  background: var(--color-bg-tertiary);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  min-height: 600px;
}

.profile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--color-border);
}

.profile-header h1 {
  font-size: 1.75rem;
  color: var(--color-text-primary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: var(--color-bg-elevated);
  border: 2px solid var(--color-border);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  gap: 1.5rem;
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon svg {
  width: 28px;
  height: 28px;
  fill: white;
}

.stat-content {
  flex: 1;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 0.25rem;
}

.stat-title {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.stat-change {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.stat-change.positive {
  color: var(--color-success);
  font-weight: 600;
}

/* Activity Section */
.activity-section h2 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--color-text-primary);
}

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

.activity-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  transition: all 0.3s ease;
  background: var(--color-bg-elevated);
}

.activity-item:hover {
  background: var(--color-bg-hover);
  border-color: var(--color-accent);
}

.activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.activity-icon svg {
  width: 20px;
  height: 20px;
  fill: white;
}

.activity-content {
  flex: 1;
}

.activity-title {
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 0.25rem;
}

.activity-description {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

.activity-time {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  white-space: nowrap;
}

/* Notifications Panel */
.notifications-panel {
  position: fixed;
  top: 80px;
  right: -400px;
  width: 400px;
  height: calc(100vh - 80px);
  background: var(--color-bg-tertiary);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.8);
  transition: right 0.3s ease;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--color-border);
}

.notifications-panel.active {
  right: 0;
}

.notifications-header {
  padding: 1.5rem;
  border-bottom: 2px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notifications-header h3 {
  font-size: 1.25rem;
  color: var(--color-text-primary);
}

.mark-all-read {
  background: none;
  border: none;
  color: var(--color-accent);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.5rem;
}

.mark-all-read:hover {
  text-decoration: underline;
  color: var(--color-accent-hover);
}

.notifications-list {
  flex: 1;
  overflow-y: auto;
}

.notification-item {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
  transition: background 0.2s ease;
}

.notification-item:hover {
  background: var(--color-bg-elevated);
}

.notification-item.unread {
  background: rgba(0, 217, 192, 0.05);
  border-left: 3px solid var(--color-accent);
}

.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 0.5rem;
}

.notification-title {
  font-weight: 600;
  color: var(--color-text-primary);
  font-size: 0.95rem;
}

.notification-time {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  white-space: nowrap;
}

.notification-message {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* User Dropdown */
.user-menu {
  position: relative;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--color-accent);
  cursor: pointer;
  background: none;
  padding: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-glow);
}

.user-avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 217, 192, 0.5);
}

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

.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 280px;
  background: var(--color-bg-tertiary);
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1001;
  border: 1px solid var(--color-border);
}

.user-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-header {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.dropdown-header img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dropdown-name {
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 0.25rem;
}

.dropdown-email {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.5rem;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background: var(--color-bg-elevated);
  color: var(--color-text-primary);
}

.dropdown-item.active {
  color: var(--color-accent);
  background: rgba(0, 217, 192, 0.05);
}

.dropdown-item svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.dropdown-divider {
  height: 1px;
  background: var(--color-border);
  margin: 0.5rem 0;
}

/* Messages */
.messages-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.message-item {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  border: 2px solid var(--color-border);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--color-bg-elevated);
}

.message-item:hover {
  border-color: var(--color-accent);
  background: var(--color-bg-hover);
}

.message-item.unread {
  background: rgba(0, 217, 192, 0.05);
  border-color: var(--color-accent);
}

.message-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  flex-shrink: 0;
}

.message-content {
  flex: 1;
  min-width: 0;
}

.message-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 0.5rem;
}

.message-sender {
  font-weight: 600;
  color: var(--color-text-primary);
}

.message-time {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  white-space: nowrap;
}

.message-preview {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Settings */
.settings-section {
  margin-bottom: 2rem;
}

.settings-section h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--color-text-primary);
}

.settings-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-bg-elevated);
}

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

.setting-info p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  width: 52px;
  height: 28px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-border);
  transition: 0.3s;
  border-radius: 28px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: var(--color-accent);
}

input:checked + .toggle-slider:before {
  transform: translateX(24px);
}

/* Responsive */
@media (max-width: 1024px) {
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .profile-sidebar {
    order: 2;
  }

  .profile-main {
    order: 1;
  }

  .login-container {
    grid-template-columns: 1fr;
  }

  .login-benefits {
    display: none;
  }
}

@media (max-width: 768px) {
  .notifications-panel {
    width: 100%;
    right: -100%;
  }

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