/* Modern TFA Family Page Styles */
:root {
  --primary-color: #2E86C1;
  --secondary-color: #3498DB;
  --success-color: #27AE60;
  --warning-color: #F39C12;
  --danger-color: #E74C3C;
  --light-color: #ECF0F1;
  --dark-color: #2C3E50;
  --text-color: #34495E;
  --border-color: #BDC3C7;
  --shadow: 0 2px 10px rgba(0,0,0,0.1);
  --shadow-hover: 0 4px 20px rgba(0,0,0,0.15);
  --border-radius: 12px;
  --transition: all 0.3s ease;
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}

/* Modern Container */
.modern-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Header Improvements */
.navbar {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  border: none !important;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.navbar-brand {
  font-weight: 700;
  color: var(--primary-color) !important;
}

.nav-link {
  color: var(--text-color) !important;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover {
  color: var(--primary-color) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

/* Modern Card Design */
.modern-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 30px;
  margin: 20px 0;
  transition: var(--transition);
  border: none;
  backdrop-filter: blur(10px);
}

.modern-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

/* Profile Section */
.profile-header {
  text-align: center;
  margin-bottom: 30px;
}

.profile-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary-color);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.profile-name {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark-color);
  margin: 20px 0 10px;
}

.profile-title {
  font-size: 1.2rem;
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 20px;
}

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

.stat-item {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 20px;
  border-radius: var(--border-radius);
  text-align: center;
  transition: var(--transition);
}

.stat-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Rating System */
.rating-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
}

.star-rating {
  display: inline-flex;
  font-size: 1.5rem;
  color: #FFD700;
}

.star-rating .filled {
  color: #FFD700;
}

.star-rating .empty {
  color: #E0E0E0;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin: 30px 0;
  flex-wrap: wrap;
}

.btn-modern {
  padding: 12px 30px;
  border-radius: 25px;
  border: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary-modern {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
}

.btn-success-modern {
  background: linear-gradient(135deg, var(--success-color), #2ECC71);
  color: white;
}

.btn-modern:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

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

/* Social Icons */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 30px 0;
}

.social-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: var(--transition);
  font-size: 1.2rem;
}

.social-icon.facebook { background: #3b5998; }
.social-icon.twitter { background: #1da1f2; }
.social-icon.linkedin { background: #0077b5; }
.social-icon.google { background: #db4437; }

.social-icon:hover {
  transform: scale(1.1);
  color: white;
  text-decoration: none;
}

/* Reviews Section */
.reviews-section {
  margin: 40px 0;
}

.review-item {
  background: white;
  border-radius: var(--border-radius);
  padding: 20px;
  margin: 15px 0;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.review-item:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-hover);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.reviewer-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.reviewer-name {
  font-weight: 600;
  color: var(--dark-color);
}

.review-date {
  color: #7F8C8D;
  font-size: 0.9rem;
}

.review-content {
  color: var(--text-color);
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
  .modern-container {
    padding: 10px;
  }
  
  .profile-name {
    font-size: 2rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .action-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-modern {
    width: 100%;
    max-width: 300px;
  }
  
  .social-icons {
    gap: 15px;
  }
  
  .social-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .profile-image {
    width: 120px;
    height: 120px;
  }
  
  .profile-name {
    font-size: 1.8rem;
  }
  
  .modern-card {
    padding: 20px;
  }
}

/* Loading States */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px 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 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus States */
.btn-modern:focus,
.nav-link:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

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

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Review Stats */
.review-stat {
  text-align: center;
  padding: 15px;
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.review-stat:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.review-stat i {
  font-size: 2rem;
  margin-bottom: 10px;
  display: block;
}

.review-stat .stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  display: block;
  color: var(--dark-color);
}

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

/* Profile Details */
.profile-details {
  margin-top: 20px;
}

.detail-row {
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-row strong {
  color: var(--dark-color);
  min-width: 120px;
  display: inline-block;
}

/* Rating Text */
.rating-text {
  margin-left: 10px;
  font-weight: 500;
  color: var(--text-color);
}

/* Feedback Buttons */
.feedback-buttons {
  margin: 20px 0;
}

.feedback-buttons .btn {
  margin: 0 10px;
  border-radius: 25px;
  padding: 8px 20px;
  font-weight: 500;
}

/* Profile Section */
.profile-section {
  text-align: center;
  padding: 20px 0;
}

.profile-section h3 {
  margin-bottom: 10px;
  color: var(--dark-color);
}

.profile-section p {
  margin-bottom: 5px;
}

/* Print Styles */
@media print {
  .navbar,
  .action-buttons,
  .social-icons {
    display: none;
  }
  
  .modern-card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
} 