/* Home Page Specific Styles */

/* Hero Section */
.hero {
  padding: 100px 0;
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.profile-sidebar {
  position: sticky;
  top: 40px;
  padding: 30px 20px;
  background: rgba(30, 30, 30, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  min-height: calc(100vh - 100px);
  max-height: 90vh;
  width: 100%;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

@media (max-width: 1024px) {
  .profile-sidebar {
    overflow-y: visible !important;
    max-height: none !important;
    min-height: auto !important;
    position: relative;
    top: 0;
  }
}

/* Préserver l'arrondi de la sidebar sur les très petits écrans
   (layout.css force border-radius: 0 pour <=360px) */
@media (max-width: 360px) {
  .profile-sidebar {
    border-radius: 12px !important;
  }
}

h1 {
  margin-bottom: 20px;
  font-size: 2em;
  text-align: center;
  color: #aff6ff;
  text-shadow: 0 2px 10px rgba(51, 174, 190, 0.8);
}

@keyframes glow {
  from {
    text-shadow: 
      0 0 5px #fff,
      0 0 10px #fff,
      0 0 20px var(--primary-color),
      0 0 40px var(--primary-color);
  }
  to {
    text-shadow: 
      0 0 10px #fff,
      0 0 20px #fff,
      0 0 30px var(--primary-color),
      0 0 50px var(--primary-color);
  }
}

/* Style de la barre de défilement pour Chrome/Edge/Safari */
.profile-sidebar::-webkit-scrollbar {
  width: 6px;
}

.profile-sidebar::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 3px;
}

.profile-sidebar::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.profile-sidebar::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.profile-pic {
  position: relative;
  width: 200px;
  height: 200px;
  min-width: 200px;
  min-height: 200px;
  margin: 0 auto 20px;
  border-radius: 8px;
  overflow: hidden;
  background: url("../assets/images/ins_link_DBasbMSRM3T_3-1.jpg") no-repeat center/cover;
}

/* Navigation Sidebar */
.nav-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin: 1px 0 -20px;
  padding: 10px 0;
}

.nav-sidebar a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 1.1em;
  padding: 12px 20px;
  border-radius: 10px;
  transition: all 0.3s ease;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-color-secondary);
  border: 1px solid var(--border-color);
}

.nav-sidebar a i {
  width: 20px;
  text-align: center;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.nav-sidebar a:hover i {
  transform: scale(1.2);
  color: var(--accent-color);
}

.nav-sidebar a:hover,
.nav-sidebar a:focus {
  background: var(--primary-color);
  color: white;
  transform: scale(1.03);
}

/* Main Content */
.main-content {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 10px;
  backdrop-filter: blur(10px);
  width: 100%;
  height: 90vh;
  box-sizing: border-box;
  overflow-y: auto;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent; /* Pour Firefox */
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-content {
    width: 90%;
    margin-top: -20px;
    padding: 40px;
    /* Disable internal scroll on mobile */
    height: auto;
    max-height: none;
    overflow: visible;
  }
  
  .profile-sidebar {
    height: auto;
    min-height: 50vh;
    max-height: 50vh;
    margin-bottom: 20px;
    padding: 40px;
  }
  
  /* Ajustement pour les grands écrans */
  @media (min-height: 900px) {
    .profile-sidebar {
      min-height: 40vh;
      max-height: 40vh;
    }
  }
  
  .content-wrapper {
    flex-direction: column;
    gap: 10px;
  }
  
  .main-content h2 {
    font-size: 1.6em;
    margin-bottom: 15px;
  }
  
  .main-content p {
    margin: 10px 0;
    line-height: 1.5;
  }
}

.main-content h2 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: 2em;
  position: relative;
  padding-bottom: 15px;
}

.main-content h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}

.main-content p {
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
}

/* Conteneur principal avec défilement */
/* .main-content {
  overflow-y: auto;
  padding: 20px;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
} */

/* Sections principales */
.about-section {
  background-color: rgba(30, 30, 30, 0.281);
  padding: 25px 30px;
  margin: 0;
  border-radius: 8px;
  backdrop-filter: blur(5px);
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 20px;
}

.about-section h2 {
  align-items: center;
  justify-content: center;
  margin: 0 0 20px 0;
  color: var(--primary-color);
  text-align: center;
  position: relative;
  padding: 15px 0;
}

.about-section h3 {
  color: #fff;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.about-section h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
}

.about-section p {
  color: #ddd;
  line-height: 1.8;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.interests-section {
  background-color: transparent;
  padding: 0;
  margin: 40px 0;
  min-height: auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
  position: relative;
}

.interests-section li {
  position: relative;
  padding: 15px 15px 15px 60px;
  background: rgba(30, 30, 30, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  margin: 0 0 12px 0;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  width: 100%;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  display: flex;
  flex-direction: column;
}

.interests-section li:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  border-color: var(--primary-color);
  background: rgba(40, 40, 40, 0.8);
}

.interests-section li i {
  position: absolute;
  left: 15px;
  top: 20px;
  font-size: 1.3rem;
  color: var(--primary-color);
  background: rgba(76, 201, 240, 0.15);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.interests-section li:hover i {
  transform: scale(1.1);
  color: var(--accent-color);
  background: rgba(76, 201, 240, 0.2);
}

.interests-section li span {
  display: block;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.interests-section li p {
  color: #d1d1d1;
  margin: 10px 0 0;
  font-size: 0.97rem;
  line-height: 1.6;
  font-weight: 300;
}

.interests-section h3 {
  color: #fff;
  margin-top: 0;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.interests-section h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
}

/* Centres d'intérêt */
.interests {
  margin-top: 2rem;
  padding: 2rem;
  background-color: var(--section-bg-alt);
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  flex: 1;
  overflow-y: auto;
}

.interests h3 {
  color: blue;
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  position: relative;
  display: inline-block;
}

.interests h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
}

.interests ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 100%;
  padding-right: 5px;
}

.main-content {
  padding: 0 20px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  min-height: 100%;
  box-sizing: border-box;
  position: relative;
  max-width: 100%;
  width: 100%;
  overflow-x: hidden;
}

/* Styles pour le thème clair */
[data-theme="light"] .interests-section h3,
[data-theme="light"] .interests h3 {
  color: #2c3e50;
}

[data-theme="light"] .interests-section li {
  background: rgba(240, 240, 240, 0.9);
  border: 1px solid #e0e0e0;
}

[data-theme="light"] .interests-section li span,
[data-theme="light"] .interests-section li p {
  color: #333;
}

[data-theme="light"] .interests-section li:hover {
  background: rgba(230, 230, 230, 0.95);
  border-color: #4cc9f0;
}

[data-theme="light"] .interests li {
  background-color: rgba(240, 240, 240, 0.9);
  border: 1px solid #e0e0e0;
}

[data-theme="light"] .interests li span,
[data-theme="light"] .interests li p {
  color: #333;
}

[data-theme="light"] .interests li:hover {
  background: rgba(230, 230, 230, 0.95);
  border-color: #4cc9f0;
}

/* Style de la barre de défilement pour les centres d'intérêt */
.interests::-webkit-scrollbar {
  width: 6px;
}

.interests::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 3px;
}

.interests::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.interests::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

/* Styles pour les éléments de la liste des centres d'intérêt */
.interests li {
  display: block;
  background-color: rgba(44, 44, 44, 0.452);
  border-radius: 8px;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  overflow: hidden;
}

/* Styles pour le texte dans les éléments de la liste */
.interests li span {
  display: block;
  padding: 15px 20px;
  color: #fff;
}

.interests li span p {
  margin: 5px 0 0 0;
  color: #ccc;
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
  .interests li {
    text-align: left;
    padding: 15px;
  }
  
  .interests-section li {
    padding: 15px 15px 15px 55px;
  }
  
  .interests-section li i {
    left: 10px;
    font-size: 1.5rem;
    width: 100px;
    height: 100px;
  }
  
  .interests li span {
    padding: 10px 5px;
  }
  
  .interests li span p {
    font-size: 0.85rem;
  }
}
@media (max-width: 1024px) {
  .content-wrapper {
    grid-template-columns: 300px 1fr;
    gap: 30px;
    padding: 15px 30px 30px;
  }
  
  .main-content {
    padding: 40px;
  }
}

/* Ajustements pour la version mobile */
@media (max-width: 1024px) {
  .app-container {
    padding-top: 0 !important;
  }
  
  .content-wrapper {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 5px;
    width: 100%;
  }
  
  .interests-section li i {
    top: 15px;
    left: 15px;
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
  }
  
  .main-content {
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
  }
  
  .interests-section {
    margin: 20px;
    width: 100%;
  }
  
  .interests-section li {
    padding: 15px;
    margin: 0 0 10px 0;
    width: 100%;
    box-sizing: border-box;
  }
  
  .about-section {
    padding: 15px;
    margin: 0;
    border-radius: 0;
    width: 100%;
    box-sizing: border-box;
  }
  
  .about-section h2 {
    font-size: 1.5rem;
    padding: 10px 0;
    margin-bottom: 15px;
  }
  
  .profile-sidebar {
    position: relative;
    top: 0;
    width: 100%;
    margin: 0 0 20px 0;
    min-height: auto;
    max-height: none;
    height: auto !important;
    padding: 25px 15px;
    text-align: center;
    border-radius: 12px;
    /* Conserver les bordures pour que le radius soit visible */
    overflow: visible !important;
  }
  
  .main-content {
    padding: 10px;
    min-height: auto;
  }
  
  .profile-pic {
    width: 150px;
    height: 150px;
    min-width: 150px;
    min-height: 150px;
    margin: 0 auto 15px;
  }
  
  .profile-description {
    font-size: 0.95em;
    margin: 8px 0 12px;
  }
  
  .nav-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
  }
  
  .nav-sidebar a {
    padding: 8px 12px;
    font-size: 0.9em;
    margin: 0;
    flex: 1 0 calc(50% - 10px);
    text-align: center;
    max-width: 160px;
  }
  
  .about-section,
  .interests-section {
    padding: 15px;
    margin: 0 0 20px 0;
    min-height: auto;
  }
  
  .about-section h2,
  .interests-section h3 {
    font-size: 1.4em;
    margin-bottom: 15px;
  }
  
  .about-section p {
    font-size: 0.95em;
    line-height: 1.6;
  }
  
  .interests-section img.interest-icon {
    width: 50px;
    height: 50px;
    margin: 10px auto 5px;
  }
  
  .interests li {
    flex-direction: column;
    text-align: center;
    padding: 15px 10px;
    margin: 5px 0;
  }
  
  .interests li span {
    font-size: 1.1em;
    margin: 0 0 8px 0;
    padding: 0;
  }
  
  .interests li p {
    margin: 5px 0 0 0;
    font-size: 0.85em;
    line-height: 1.5;
  }
  
  /* Ajustements pour les très petits écrans */
  @media (max-width: 480px) {
    .nav-sidebar a {
      flex: 1 0 100%;
      max-width: 100%;
      padding: 10px;
    }
    
    .profile-pic {
      width: 100px;
      height: 100px;
    }
    
    .about-section h2,
    .interests-section h3 {
      font-size: 1.3em;
    }
  }
}



