/**
 * Dojon Profile Page Styles
 * Modern glassmorphism design
 */

/* Glassmorphism Design System */
.glass-card {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.glass-card-elevated {
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 0 8px 16px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.gradient-text {
  background: linear-gradient(135deg, #ff7a57 0%, #ff9a7a 50%, #ffb89a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Animations */
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(40, 167, 69, 0); }
}

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

@keyframes countUp {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes shimmer {
  100% { left: 100%; }
}

/* Profile Page Background */
.profile-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
  position: relative;
  overflow-x: hidden;
  padding-bottom: 60px;
}

.profile-page::before {
  content: '';
  position: fixed;
  top: -50%;
  right: -30%;
  width: 80%;
  height: 100%;
  background: radial-gradient(ellipse, rgba(255, 122, 87, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.profile-page::after {
  content: '';
  position: fixed;
  bottom: -30%;
  left: -20%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Hero Section */
.profile-hero {
  position: relative;
  padding: 100px 0 100px;
  text-align: center;
  z-index: 1;
}

.profile-hero .hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 475px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #ff7a57 100%);
  clip-path: ellipse(120% 100% at 50% 0%);
  z-index: -1;
}

/* Profile Avatar */
.profile-avatar {
  position: relative;
  display: inline-block;
  margin-bottom: 24px;
}

.profile-avatar .avatar-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 5px solid white;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2), 0 0 0 8px rgba(255, 255, 255, 0.3);
  object-fit: cover;
  transition: transform 0.3s ease;
  background: linear-gradient(135deg, #ff7a57, #ff9a7a);
}

.profile-avatar .avatar-image:hover {
  transform: scale(1.05);
}

.profile-avatar .avatar-placeholder {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 5px solid white;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2), 0 0 0 8px rgba(255, 255, 255, 0.3);
  background: linear-gradient(135deg, #ff7a57, #ff9a7a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: white;
  font-weight: 700;
  text-transform: uppercase;
}

.profile-avatar .online-indicator {
  position: absolute;
  top: 10px;
  right: 15px;
  width: 20px;
  height: 20px;
  background: #28a745;
  border-radius: 50%;
  border: 3px solid white;
  animation: pulse 2s infinite;
}

/* Profile Info */
.profile-info {
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.profile-info .display-name {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.profile-info .username {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 16px;
}

.profile-info .bio {
  max-width: 500px;
  margin: 0 auto 24px;
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.95;
}

.profile-info .profile-views {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 8px;
}

.profile-info .profile-views i {
  margin-right: 6px;
}

/* Social Links */
.social-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.social-links a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
  font-size: 18px;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  text-decoration: none;
}

.social-links a img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.social-links a:hover {
  background: white;
  color: #ff7a57;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.social-links a:hover img {
  filter: none;
}

/* Stats Preview (in hero) */
.stats-preview {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 32px;
}

.stats-preview .stat-item {
  text-align: center;
  color: white;
}

.stats-preview .stat-item .stat-value {
  font-size: 2rem;
  font-weight: 700;
  display: block;
}

.stats-preview .stat-item .stat-label {
  font-size: 0.85rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Share Button */
.share-button-container {
  position: absolute;
  top: 100px;
  right: 20px;
  z-index: 10;
}

.share-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.share-button i {
  font-size: 16px;
}

.share-button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Share Dropdown */
.share-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  padding: 8px;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

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

.share-dropdown .share-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease;
  color: #212529;
  text-decoration: none;
}

.share-dropdown .share-option:hover {
  background: rgba(255, 122, 87, 0.1);
}

.share-dropdown .share-option i {
  width: 24px;
  font-size: 18px;
}

.share-dropdown .share-option span {
  font-weight: 500;
}

.share-dropdown .share-option.twitter i { color: #1DA1F2; }
.share-dropdown .share-option.linkedin i { color: #0A66C2; }
.share-dropdown .share-option.facebook i { color: #1877F2; }
.share-dropdown .share-option.copy-link i { color: #6c757d; }

/* Profile Content Container */
.profile-content {
  position: relative;
  z-index: 1;
  padding: 0 20px;
  max-width: 1000px;
  margin: -40px auto 0;
}

/* Stat Cards Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.stat-card .stat-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.stat-card .stat-icon.time { background: linear-gradient(135deg, #e3f2fd, #bbdefb); color: #1976d2; }
.stat-card .stat-icon.sessions { background: linear-gradient(135deg, #fff3e0, #ffe0b2); color: #f57c00; }
.stat-card .stat-icon.streak { background: linear-gradient(135deg, #fce4ec, #f8bbd0); color: #c2185b; }
.stat-card .stat-icon.achievements { background: linear-gradient(135deg, #e8f5e9, #c8e6c9); color: #388e3c; }
.stat-card .stat-icon.countries { background: linear-gradient(135deg, #e8eaf6, #c5cae9); color: #3949ab; }

.stat-card .stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: #212529;
  margin-bottom: 4px;
  line-height: 1.2;
}

.stat-card .stat-value.counting {
  animation: countUp 0.5s ease-out;
}

.stat-card .stat-label {
  font-size: 0.8rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

/* Section Card */
.section-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 24px;
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.section-card .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.section-card .section-header h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #212529;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}

.section-card .section-header h3 i {
  color: #ff7a57;
  font-size: 1.1rem;
}

.section-card .section-header .view-all {
  color: #ff7a57;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
}

.section-card .section-header .view-all:hover {
  text-decoration: underline;
}

.section-card .section-header .badge-count {
  background: rgba(255, 122, 87, 0.15);
  color: #ff7a57;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Achievements Grid */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 20px;
}

.achievement-item {
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.achievement-item:hover {
  transform: scale(1.1);
}

.achievement-item:hover .achievement-badge {
  box-shadow: 0 10px 30px rgba(255, 122, 87, 0.3);
}

.achievement-item .achievement-badge {
  width: 64px;
  height: 64px;
  min-width: 64px;
  min-height: 64px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff, #f8f9fa);
  border: 3px solid #ff7a57;
  padding: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.achievement-item .achievement-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.achievement-item .achievement-title {
  font-size: 0.7rem;
  color: #495057;
  font-weight: 500;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.achievement-item.locked {
  opacity: 0.5;
  filter: grayscale(1);
}

.achievement-item.locked .achievement-badge {
  border-color: #dee2e6;
}

/* Info Grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.info-item:hover {
  background: rgba(255, 255, 255, 0.8);
}

.info-item .info-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 122, 87, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff7a57;
  font-size: 18px;
  flex-shrink: 0;
}

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

.info-item .info-content .info-label {
  font-size: 0.75rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.info-item .info-content .info-value {
  font-size: 1rem;
  color: #212529;
  font-weight: 500;
  word-wrap: break-word;
}

/* World Map Section */
.map-container {
  background: #f8f9fa;
  border-radius: 16px;
  padding: 20px;
  overflow: hidden;
}

.map-container svg {
  width: 100%;
  height: auto;
}

.map-container svg path {
  fill: #e9ecef;
  stroke: #dee2e6;
  stroke-width: 0.5;
  transition: all 0.3s ease;
}

.map-container svg path.visited {
  fill: #ff7a57;
}

.map-container svg path.visited:hover {
  fill: #e65a3a;
  cursor: pointer;
}

/* Countries List */
.countries-list {
  margin-top: 24px;
}

.continent-group {
  margin-bottom: 20px;
}

.continent-group:last-child {
  margin-bottom: 0;
}

.continent-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.continent-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #495057;
}

.continent-count {
  background: rgba(255, 122, 87, 0.12);
  color: #ff7a57;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
}

.countries-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.country-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.03);
  padding: 6px 12px;
  border-radius: 20px;
  transition: all 0.2s ease;
}

.country-item:hover {
  background: rgba(255, 122, 87, 0.1);
}

.country-item .country-flag {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.country-item .country-name {
  font-size: 0.85rem;
  color: #212529;
  font-weight: 500;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, rgba(255, 122, 87, 0.1), rgba(102, 126, 234, 0.1));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 24px;
  padding: 48px;
  text-align: center;
  margin-bottom: 32px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.cta-section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #212529;
  margin-bottom: 12px;
}

.cta-section p {
  font-size: 1.05rem;
  color: #6c757d;
  max-width: 500px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.cta-section .cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: linear-gradient(135deg, #ff7a57 0%, #ff9a7a 100%);
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(255, 122, 87, 0.4);
  text-decoration: none;
}

.cta-section .cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(255, 122, 87, 0.5);
  color: white;
}

.cta-section .social-proof {
  margin-top: 24px;
  font-size: 0.9rem;
  color: #6c757d;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.cta-section .social-proof .user-avatars {
  display: flex;
}

.cta-section .social-proof .user-avatars img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid white;
  margin-left: -10px;
  object-fit: cover;
}

.cta-section .social-proof .user-avatars img:first-child {
  margin-left: 0;
}

/* Profile Completion */
.profile-completion {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.profile-completion .completion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.profile-completion .completion-header h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #212529;
  margin: 0;
}

.profile-completion .completion-header .completion-percent {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ff7a57;
}

.profile-completion .completion-bar {
  height: 8px;
  background: #e9ecef;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
}

.profile-completion .completion-bar .completion-fill {
  height: 100%;
  background: linear-gradient(135deg, #ff7a57 0%, #ff9a7a 100%);
  border-radius: 10px;
  transition: width 0.5s ease;
}

.profile-completion .completion-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-completion .completion-items .completion-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  font-size: 0.8rem;
}

.profile-completion .completion-items .completion-item.complete {
  color: #28a745;
}

.profile-completion .completion-items .completion-item.complete i {
  color: #28a745;
}

.profile-completion .completion-items .completion-item.incomplete {
  color: #6c757d;
}

.profile-completion .completion-items .completion-item.incomplete i {
  color: #dee2e6;
}

/* Share Toast */
.share-toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #212529;
  color: white;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 14px;
  z-index: 9999;
  animation: slideUp 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Private Profile */
.private-profile {
  text-align: center;
  padding: 80px 20px;
}

.private-profile i {
  font-size: 64px;
  color: #dee2e6;
  margin-bottom: 24px;
}

.private-profile h2 {
  font-size: 1.5rem;
  color: #495057;
  margin-bottom: 12px;
}

.private-profile p {
  color: #6c757d;
}

/* Productivity Types Section */
.productivity-types-section {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.6));
}

.productivity-types-section .section-header {
  margin-bottom: 28px;
}

.productivity-types-section .section-header h3 {
  font-size: 1.4rem;
}

.productivity-types-section .section-header h3 i {
  background: linear-gradient(135deg, #ff7a57, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.compatibility-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.compatibility-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.productivity-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.productivity-type-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.productivity-type-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff7a57, #764ba2);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.productivity-type-card:hover::before {
  opacity: 1;
}

.type-icon-large {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, #f8f9fa, #fff);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.type-emoji {
  font-size: 32px;
  line-height: 1;
}

.mbti-badge {
  font-size: 18px;
  font-weight: 800;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
}

.type-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.type-label {
  font-size: 0.7rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.type-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #212529;
}

.type-desc {
  font-size: 0.8rem;
  color: #6c757d;
  line-height: 1.3;
}

/* Card type variations */
.mbti-card .type-icon-large {
  background: linear-gradient(135deg, #e8eaf6, #c5cae9);
}

.animal-card .type-icon-large {
  background: linear-gradient(135deg, #fff3e0, #ffe0b2);
}

.element-card .type-icon-large {
  background: linear-gradient(135deg, rgba(var(--element-color), 0.1), rgba(var(--element-color), 0.2));
}

.rhythm-card .type-icon-large {
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
}

/* Complete profile prompt */
.complete-profile-prompt {
  margin-top: 24px;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(255, 122, 87, 0.1));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.complete-profile-prompt p {
  margin: 0;
  font-size: 0.9rem;
  color: #495057;
}

.complete-profile-prompt i {
  color: #ff7a57;
}

.complete-btn {
  padding: 8px 16px;
  background: linear-gradient(135deg, #ff7a57, #ff9a7a);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.complete-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 122, 87, 0.3);
  color: white;
}

/* Dark Mode Styles */
body.dark-mode .profile-page {
  background: linear-gradient(135deg, #121212 0%, #1e1e1e 100%);
}

body.dark-mode .profile-page::before {
  background: radial-gradient(ellipse, rgba(255, 122, 87, 0.08) 0%, transparent 70%);
}

body.dark-mode .profile-page::after {
  background: radial-gradient(ellipse, rgba(102, 126, 234, 0.05) 0%, transparent 70%);
}

body.dark-mode .stat-card,
body.dark-mode .section-card,
body.dark-mode .cta-section,
body.dark-mode .profile-completion {
  background: rgba(30, 30, 30, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .stat-card .stat-value,
body.dark-mode .section-header h3,
body.dark-mode .info-item .info-value,
body.dark-mode .cta-section h2,
body.dark-mode .profile-completion h4 {
  color: rgba(255, 255, 255, 0.95);
}

body.dark-mode .stat-card .stat-label,
body.dark-mode .info-item .info-label,
body.dark-mode .cta-section p,
body.dark-mode .achievement-item .achievement-title {
  color: rgba(255, 255, 255, 0.6);
}

body.dark-mode .map-container {
  background: #2d2d2d;
}

body.dark-mode .map-container svg path {
  fill: #3d3d3d;
  stroke: #4d4d4d;
}

body.dark-mode .map-container svg path.visited {
  fill: #ff7a57;
}

body.dark-mode .continent-header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .continent-name {
  color: rgba(255, 255, 255, 0.8);
}

body.dark-mode .country-item {
  background: rgba(255, 255, 255, 0.05);
}

body.dark-mode .country-item:hover {
  background: rgba(255, 122, 87, 0.15);
}

body.dark-mode .country-item .country-name {
  color: rgba(255, 255, 255, 0.9);
}

body.dark-mode .info-item {
  background: rgba(255, 255, 255, 0.05);
}

body.dark-mode .info-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

body.dark-mode .share-dropdown {
  background: rgba(30, 30, 30, 0.95);
}

body.dark-mode .share-dropdown .share-option {
  color: rgba(255, 255, 255, 0.9);
}

body.dark-mode .share-dropdown .share-option:hover {
  background: rgba(255, 122, 87, 0.2);
}

body.dark-mode .productivity-types-section {
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.9), rgba(30, 30, 30, 0.7));
}

body.dark-mode .productivity-type-card {
  background: rgba(40, 40, 40, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .type-name {
  color: rgba(255, 255, 255, 0.95);
}

body.dark-mode .type-label,
body.dark-mode .type-desc {
  color: rgba(255, 255, 255, 0.6);
}

body.dark-mode .type-icon-large {
  background: linear-gradient(135deg, rgba(60, 60, 60, 1), rgba(50, 50, 50, 1));
}

body.dark-mode .complete-profile-prompt {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(255, 122, 87, 0.15));
}

body.dark-mode .complete-profile-prompt p {
  color: rgba(255, 255, 255, 0.8);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .profile-hero {
    padding: 80px 20px 80px;
  }

  .profile-hero .hero-background {
    height: 430px;
  }

  .profile-info .display-name {
    font-size: 1.8rem;
  }

  .stats-preview {
    gap: 24px;
    flex-wrap: wrap;
  }

  .stats-preview .stat-item .stat-value {
    font-size: 1.5rem;
  }

  .stats-preview .stat-item .stat-label {
    font-size: 0.75rem;
  }

  .share-button-container {
    position: fixed;
    top: auto;
    bottom: 20px;
    right: 20px;
  }

  .profile-content {
    margin-top: -20px;
  }

  .achievements-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
}

@media (max-width: 576px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .stat-card {
    padding: 16px;
  }

  .stat-card .stat-icon {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  .stat-card .stat-value {
    font-size: 1.5rem;
  }

  .section-card {
    padding: 20px;
    border-radius: 20px;
  }

  .achievement-item .achievement-badge {
    width: 50px;
    height: 50px;
    padding: 8px;
  }

  .cta-section {
    padding: 32px 20px;
  }

  .cta-section h2 {
    font-size: 1.4rem;
  }

  .productivity-types-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .productivity-type-card {
    padding: 16px;
  }

  .type-icon-large {
    width: 52px;
    height: 52px;
  }

  .type-emoji {
    font-size: 26px;
  }

  .type-name {
    font-size: 1rem;
  }

  .compatibility-btn {
    padding: 8px 14px;
    font-size: 0.8rem;
  }

  .complete-profile-prompt {
    flex-direction: column;
    text-align: center;
  }

  .cta-section p {
    font-size: 0.95rem;
  }
}

/* Animation classes for intersection observer */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Anonymous Message Section */
.anon-message-section {
  margin-top: 20px;
}

.anon-message-intro {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 16px;
  text-align: center;
}

.anon-message-form textarea {
  width: 100%;
  padding: 16px;
  border: 2px solid rgba(255, 122, 87, 0.2);
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
  min-height: 100px;
  background: rgba(255, 255, 255, 0.5);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.anon-message-form textarea:focus {
  outline: none;
  border-color: #ff7a57;
  box-shadow: 0 0 0 4px rgba(255, 122, 87, 0.1);
}

.anon-message-form textarea::placeholder {
  color: #999;
}

.anon-form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}

.char-counter {
  font-size: 0.85rem;
  color: #999;
}

.anon-send-btn {
  background: linear-gradient(135deg, #ff7a57 0%, #ff9a7a 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.anon-send-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 122, 87, 0.3);
}

.anon-send-btn:active {
  transform: translateY(0);
}

.anon-success-message {
  text-align: center;
  padding: 30px 20px;
}

.anon-success-message i {
  font-size: 3rem;
  color: #28a745;
  margin-bottom: 16px;
  display: block;
}

.anon-success-message p {
  font-size: 1.1rem;
  color: #333;
  margin: 0;
}


/* Dark mode support - class-based for app theme override */
body.dark-mode .anon-message-form textarea {
  background: rgba(30, 30, 30, 0.5);
  border-color: rgba(255, 122, 87, 0.3);
  color: #e0e0e0;
}

body.dark-mode .anon-message-intro {
  color: #aaa;
}

body.dark-mode .anon-success-message p {
  color: #e0e0e0;
}

/* Mobile responsive */
@media (max-width: 480px) {
  .anon-form-footer {
    flex-direction: column;
    gap: 12px;
  }

  .anon-send-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Connection Request Button */
.connection-action {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.connection-form {
  display: inline-block;
}

.connection-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 17px;
  border-radius: 25px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
}

.connection-btn.send-request {
  background: linear-gradient(135deg, #ff7a57 0%, #ff9a7a 100%);
  color: white;
}

.connection-btn.send-request:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 122, 87, 0.3);
}

.connection-btn.pending {
  background: rgba(150, 150, 150, 0.2);
  color: #888;
  cursor: not-allowed;
}

.connection-btn.accept-request {
  background: linear-gradient(135deg, #28a745 0%, #5cb85c 100%);
  color: white;
}

.connection-btn.accept-request:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(40, 167, 69, 0.3);
}

.connection-btn.connected {
  background: rgba(40, 167, 69, 0.15);
  color: #28a745;
  cursor: default;
}

.connection-btn.message-btn {
  background: rgba(255, 122, 87, 0.12);
  color: #ff7a57;
}

.connection-btn.message-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 122, 87, 0.2);
  background: rgba(255, 122, 87, 0.2);
}

/* Dark mode support for connection button */
@media (prefers-color-scheme: dark) {
  .connection-btn.pending {
    background: rgba(100, 100, 100, 0.3);
    color: #aaa;
  }

  .connection-btn.connected {
    background: rgba(40, 167, 69, 0.25);
  }

  .connection-btn.message-btn {
    background: rgba(255, 122, 87, 0.18);
  }
}
