/* User Page Specific Styles */
.user-page {
  min-height: 100vh;
  background-color: #ffffff;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.profile-card {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  max-width: 480px;
  margin: 0 auto;
}

.profile-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid #007bff;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

.profile-image-small {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid #007bff;
  object-fit: cover;
  flex-shrink: 0;
}

.profile-header {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(10px);
}

.profile-image-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid #007bff;
  background-color: #f8f9fa;
  color: #6c757d;
}

.profile-name {
  color: #007bff;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-align: center;
}

.profile-bio {
  color: #6c757d;
  opacity: 0.8;
  margin-bottom: 2rem;
  text-align: center;
  line-height: 1.6;
}

.links-container {
  margin-bottom: 2rem;
}

.link-button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  display: block;
  margin-bottom: 1rem;
  text-align: center;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.link-button:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  color: white;
  text-decoration: none;
}

.link-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.link-button:hover::before {
  left: 100%;
}

.link-icon {
  font-size: 1.2rem;
  margin-right: 0.5rem;
}

.link-title {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.link-description {
  font-size: 0.9rem;
  opacity: 0.9;
  font-weight: 400;
}

.profile-footer {
  text-align: center;
  border-top: 1px solid rgba(108, 117, 125, 0.2);
  padding-top: 1rem;
  margin-top: 2rem;
}

.profile-footer a {
  color: #007bff;
  font-weight: 500;
}

.profile-footer a:hover {
  text-decoration: underline;
}

/* Theme Variables (will be overridden by dynamic CSS) */
:root {
  --primary-color: #007bff;
  --secondary-color: #0056b3;
  --background-color: #ffffff;
  --text-color: #212529;
  --card-background: rgba(255, 255, 255, 0.95);
}

/* Responsive Design */
@media (max-width: 768px) {
  .profile-card {
    padding: 1.5rem;
    margin: 1rem;
    border-radius: 15px;
  }
  
  .profile-image,
  .profile-image-placeholder {
    width: 100px;
    height: 100px;
  }
  
  .profile-image-small {
    width: 50px;
    height: 50px;
  }
  
  .profile-header {
    padding: 0.75rem;
  }
  
  .profile-name {
    font-size: 1.75rem;
  }
  
  .link-button {
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
  }
  
  .link-title {
    font-size: 1rem;
  }
  
  .link-description {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .profile-card {
    padding: 1rem;
    margin: 0.5rem;
  }
  
  .profile-name {
    font-size: 1.5rem;
  }
  
  .link-button {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
  .user-page {
    background-color: #121212;
    color: #ffffff;
  }
  
  .profile-card {
    background-color: rgba(33, 37, 41, 0.95);
    color: #ffffff;
  }
  
  .profile-bio {
    color: #adb5bd;
  }
  
  .profile-footer {
    border-top-color: rgba(255, 255, 255, 0.2);
  }
}

/* Print styles */
@media print {
  .user-page {
    background: white !important;
    color: black !important;
  }
  
  .profile-card {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
    border: 1px solid #ccc;
  }
  
  .link-button {
    background: white !important;
    color: black !important;
    border: 1px solid #ccc !important;
    page-break-inside: avoid;
  }
}

/* Loading states */
.link-button.loading {
  pointer-events: none;
  opacity: 0.7;
}

.link-button.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255,255,255,.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Accessibility improvements */
.link-button:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .link-button,
  .link-button::before {
    transition: none;
  }
  
  .link-button.loading::after {
    animation: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .profile-card {
    border: 2px solid;
  }
  
  .link-button {
    border: 2px solid;
  }
}