:root {
  --background-primary: #121212;
  --background-secondary: #1E1E1E;
  --background-tertiary: #2a2a2a;
  --text-primary: #EAEAEA;
  --text-secondary: #A0A0A0;
  --accent-primary: #0078D4; /* A professional blue for key actions */
  --accent-secondary: #3DD56D; /* A vibrant color for stats or highlights */
  --border-color: #333333;
  --font-family: 'Inter', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background-color: var(--background-primary);
  color: var(--text-primary);
  /* Add padding to the bottom to prevent footer from overlapping content */
  padding-bottom: 80px; 
}

/* Profile Hub Layout */
.profile-hub {
  max-width: 900px;
  margin: 0 auto;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  min-height: 100vh;
}

/* --- ALL HEADER, TABS, AND CONTENT STYLES FROM PREVIOUS STEP --- */
/* (These styles remain the same) */
.profile-header {
  background-color: var(--background-secondary);
}
.banner img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.header-content {
  display: flex;
  align-items: flex-end;
  padding: 0 24px;
  margin-top: -60px;
  position: relative;
  flex-wrap: wrap;
}
.avatar-container {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid var(--background-primary);
  overflow: hidden;
  background-color: var(--background-primary);
  flex-shrink: 0;
}
.avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.user-info {
  margin-left: 20px;
  margin-bottom: 10px;
}
.user-info h1 {
  font-size: 1.8rem;
  font-weight: 700;
}
.user-info .handle {
  color: var(--text-secondary);
  font-size: 1rem;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.tags span {
  background: var(--background-tertiary);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.actions {
  margin-left: auto;
  margin-bottom: 10px;
  display: flex;
  gap: 10px;
}
.btn-primary, .btn-secondary {
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  white-space: nowrap;
}
.btn-primary {
  background-color: var(--accent-primary);
  color: white;
}
.btn-primary:hover {
  background-color: #005a9e;
}
.btn-secondary {
  background-color: var(--background-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}
.btn-secondary:hover {
  background-color: #3a3a3a;
}
.stats {
  display: flex;
  gap: 2rem;
  padding: 24px;
  margin-top: -10px;
}
.stats div {
  font-size: 1rem;
}
.stats strong {
  color: var(--text-primary);
}
.stats span {
  color: var(--text-secondary);
  margin-left: 6px;
}
.profile-nav {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--background-secondary);
  position: sticky;
  top: 0;
  z-index: 10;
}
.tab-link {
  flex: 1;
  padding: 1rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
  min-width: 100px;
}
.tab-link:hover {
  background-color: var(--background-tertiary);
  color: var(--text-primary);
}
.tab-link.active {
  color: var(--accent-primary);
  border-bottom-color: var(--accent-primary);
}
.tab-content {
  display: none;
  padding: 16px;
}
.tab-content.active {
  display: block;
}
.grid-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}
.grid-gallery .card {
  background: var(--background-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  min-height: 150px;
}
.grid-gallery .card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* --- BOTTOM NAVIGATION FOOTER --- */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: var(--background-secondary);
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
}

.bottom-nav .nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.bottom-nav .nav-icon {
  width: 26px;
  height: 26px;
  /* This filter magically re-colors your SVG icons to match the theme! */
  filter: invert(66%) sepia(9%) saturate(163%) hue-rotate(170deg) brightness(94%) contrast(87%);
  transition: filter 0.2s ease;
}

.bottom-nav .nav-link:hover .nav-icon {
  /* This filter re-colors the icons to the primary accent color on hover */
  filter: invert(36%) sepia(80%) saturate(2250%) hue-rotate(185deg) brightness(97%) contrast(101%);
}

.bottom-nav .profile-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.bottom-nav .profile-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bottom-nav .nav-link:hover .profile-circle {
  border-color: var(--accent-primary);
}


/* --- RESPONSIVE ADJUSTMENTS --- */
@media (min-width: 1200px) {
  .profile-hub {
    max-width: 1100px;
  }
}
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    align-items: flex-start;
    margin-top: -70px;
    padding: 0 16px;
  }
  .user-info {
    margin-left: 0;
    margin-top: 60px;
    width: 100%;
  }
  .avatar-container {
    position: absolute;
    top: 0;
    left: 16px;
  }
  .actions {
    margin-left: 0;
    margin-top: 16px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .stats {
    padding: 16px;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
  }
  .tab-link { 
    font-size: 0.9rem;
    padding: 0.8rem 0.5rem;
    min-width: unset;
  }
}
@media (max-width: 480px) {
  .banner img {
    height: 150px;
  }
  .avatar-container {
    width: 90px;
    height: 90px;
  }
  .header-content {
    margin-top: -55px;
  }
  .user-info {
    margin-top: 40px;
  }
  .user-info h1 {
    font-size: 1.5rem;
  }
  .btn-primary, .btn-secondary {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
  .profile-nav {
    overflow-x: auto;
    justify-content: flex-start;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .profile-nav::-webkit-scrollbar {
    display: none;
  }
  .tab-link {
    flex: 0 0 auto;
    padding: 0.8rem 1rem;
  }
  .grid-gallery {
    grid-template-columns: 1fr;
  }
}
