/* Base Styles */
:root {
  --primary: #1e3a5f;
  --secondary: #3498db;
  --accent: #f39c12;
  --gold: #d4af37;
  --gold-light: #f4e4bc;
  --light: #f8f9fa;
  --dark: #2c3e50;
  --text: #333;
  --text-light: #666;
  --white: #fff;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
  --radius: 12px;
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text);
  background: var(--light);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  color: var(--primary);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.navbar {
  background: var(--primary);
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.nav-brand {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ship-icon {
  font-size: 2rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 20px;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--secondary);
}

/* Pages */
.page {
  display: none;
  min-height: calc(100vh - 70px);
  padding: 40px 0;
}

.page.active {
  display: block;
}

/* Birthday Hero Section */
.birthday-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #2c5f8f 50%, var(--primary) 100%);
  color: var(--white);
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: -40px -20px 0 -20px;
}

.birthday-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.birthday-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.birthday-badge {
  display: inline-block;
  font-size: 5rem;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  color: var(--gold); /* Fallback for browsers that don't support background-clip */
  background: linear-gradient(135deg, var(--gold) 0%, #f4e4bc 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  margin-bottom: 20px;
  animation: glow 2s ease-in-out infinite alternate;
}

/* Fallback for Firefox and other browsers without webkit support */
@supports not (-webkit-background-clip: text) {
  .birthday-badge {
    background: none;
    color: var(--gold);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
  }
}

@keyframes glow {
  from {
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
  }
  to {
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.6));
  }
}

.birthday-title {
  color: var(--white);
  font-size: 3.5rem;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.birthday-subtitle {
  font-size: 1.3rem;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto;
}

/* Stats Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
  padding: 60px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="white" stroke-opacity="0.1" stroke-width="0.5"/></svg>');
  background-size: 100px;
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1, .hero h2 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  color: var(--gold);
}

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

/* Sections */
.section {
  margin-bottom: 60px;
  padding-top: 40px;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 25px;
  position: relative;
  display: inline-block;
}

.section h2::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
}

/* Founder Section */
.founder-section {
  margin-top: 20px;
}

.founder-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--gold-light);
  position: relative;
  overflow: hidden;
}

.founder-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}

.founder-header {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-bottom: 30px;
}

.founder-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--gold);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.founder-info h3 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 5px;
}

.founder-title {
  color: var(--gold);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.founder-stats {
  display: flex;
  gap: 20px;
  color: var(--text-light);
}

.founder-stats strong {
  color: var(--primary);
}

.founder-first-post {
  background: var(--light);
  border-radius: var(--radius);
  padding: 25px;
  border-left: 4px solid var(--gold);
}

.first-post-label {
  font-size: 0.9rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.founder-first-post blockquote {
  font-style: italic;
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1.8;
  margin: 0;
}

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

.personal-message {
  background: linear-gradient(135deg, var(--gold-light) 0%, #fff9e6 100%);
  border-radius: var(--radius);
  padding: 50px;
  box-shadow: var(--shadow);
  border: 2px solid var(--gold);
  position: relative;
}

.personal-message::before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 30px;
  font-size: 6rem;
  font-family: Georgia, serif;
  color: var(--gold);
  opacity: 0.3;
  line-height: 1;
}

.personal-message p {
  font-size: 1.15rem;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.personal-message p:first-child {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary);
}

.personal-message em {
  color: var(--primary);
  font-style: italic;
}

.personal-message strong {
  color: var(--primary);
}

.message-signature {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem !important;
  color: var(--primary);
  margin-top: 30px;
  text-align: right;
}

/* Story Card */
.story-card {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 1.1rem;
}

.story-card p {
  margin-bottom: 15px;
}

.story-card p:last-child {
  margin-bottom: 0;
}

/* Top Users */
.top-users {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.user-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 25px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
}

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

.user-card.featured {
  border: 3px solid var(--gold);
  background: linear-gradient(135deg, var(--white) 0%, var(--gold-light) 100%);
}

.user-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 3px solid var(--secondary);
}

.user-card.featured .user-avatar {
  border-color: var(--gold);
}

.user-avatar-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  color: var(--white);
  font-size: 2rem;
  font-weight: 700;
}

.user-name {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 5px;
}

.user-posts {
  color: var(--text-light);
  font-size: 0.9rem;
}

.user-rank {
  background: var(--accent);
  color: var(--white);
  padding: 3px 10px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
  margin-top: 10px;
}

.user-card.featured .user-rank {
  background: var(--gold);
}

/* Friends Page */
.page-subtitle {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.search-bar {
  margin-bottom: 30px;
}

.search-bar input {
  width: 100%;
  max-width: 400px;
  padding: 15px 20px;
  border: 2px solid #ddd;
  border-radius: 30px;
  font-size: 1rem;
  transition: var(--transition);
}

.search-bar input:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.friends-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.friend-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 25px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 20px;
  transition: var(--transition);
}

.friend-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.friend-card .user-avatar,
.friend-card .user-avatar-placeholder {
  width: 60px;
  height: 60px;
  margin: 0;
  flex-shrink: 0;
}

.friend-info {
  flex: 1;
}

.friend-info h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.friend-stats {
  color: var(--text-light);
  font-size: 0.85rem;
}

/* Timeline */
.timeline-chart {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  margin-bottom: 40px;
  box-shadow: var(--shadow);
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 200px;
  padding-top: 20px;
}

.chart-bar {
  flex: 1;
  background: linear-gradient(to top, var(--primary), var(--secondary));
  border-radius: 4px 4px 0 0;
  min-width: 8px;
  transition: var(--transition);
  position: relative;
}

.chart-bar:hover {
  opacity: 0.8;
}

.chart-bar-label {
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  color: var(--text-light);
  white-space: nowrap;
}

.timeline-events {
  display: grid;
  gap: 20px;
}

.timeline-event {
  background: var(--white);
  border-radius: var(--radius);
  padding: 25px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--gold);
}

.timeline-event h3 {
  margin-bottom: 10px;
}

.timeline-event .date {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.tab {
  padding: 12px 25px;
  border: none;
  background: var(--white);
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.tab:hover {
  background: var(--secondary);
  color: var(--white);
}

.tab.active {
  background: var(--primary);
  color: var(--white);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

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

.photo-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.photo-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.photo-card-info {
  padding: 15px;
}

.photo-card-info .author {
  font-weight: 600;
  color: var(--primary);
}

.photo-card-info .date {
  color: var(--text-light);
  font-size: 0.85rem;
}

/* Stories */
.stories-list {
  display: grid;
  gap: 20px;
}

.story-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 25px;
  box-shadow: var(--shadow);
}

.story-item .author {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
}

.story-item .content {
  color: var(--text);
  line-height: 1.8;
}

.story-item .meta {
  margin-top: 15px;
  color: var(--text-light);
  font-size: 0.85rem;
}

/* Memory Wall */
.memory-wall {
  columns: 3;
  column-gap: 20px;
}

@media (max-width: 900px) {
  .memory-wall {
    columns: 2;
  }
}

@media (max-width: 600px) {
  .memory-wall {
    columns: 1;
  }
}

.memory-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  break-inside: avoid;
}

.memory-card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 15px;
}

.memory-card .quote {
  font-style: italic;
  color: var(--text);
  margin-bottom: 10px;
}

.memory-card .attribution {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Footer */
footer {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 40px 20px;
  margin-top: 60px;
}

footer p {
  margin-bottom: 5px;
}

.footer-note {
  opacity: 0.7;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .birthday-title {
    font-size: 2.5rem;
  }

  .birthday-badge {
    font-size: 4rem;
  }

  .hero h1, .hero h2 {
    font-size: 1.8rem;
  }

  .hero-stats {
    gap: 25px;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .founder-header {
    flex-direction: column;
    text-align: center;
  }

  .founder-stats {
    justify-content: center;
    flex-wrap: wrap;
  }

  .personal-message {
    padding: 30px;
  }

  .personal-message::before {
    font-size: 4rem;
    top: 10px;
    left: 15px;
  }
}

/* Loading state */
.loading {
  text-align: center;
  padding: 40px;
  color: var(--text-light);
}

.loading::after {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--secondary);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 10px;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Milestones */
.milestones-list {
  display: grid;
  gap: 20px;
}

.milestone-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 25px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 20px;
}

.milestone-number {
  font-size: 2rem;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  min-width: 100px;
  text-align: center;
}

.milestone-info h4 {
  color: var(--primary);
  margin-bottom: 5px;
}

.milestone-info .date {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Search Page */
.search-container {
  margin-bottom: 30px;
}

.search-box {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.search-box input {
  flex: 1;
  padding: 15px 20px;
  border: 2px solid #ddd;
  border-radius: 30px;
  font-size: 1rem;
  transition: var(--transition);
}

.search-box input:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.search-button {
  padding: 15px 30px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.search-button:hover {
  background: var(--secondary);
}

.search-options {
  padding-left: 20px;
}

.search-option {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-light);
  font-size: 0.9rem;
  cursor: pointer;
}

.search-option input {
  cursor: pointer;
}

.search-status {
  padding: 10px 20px;
  margin-bottom: 20px;
  border-radius: var(--radius);
  display: none;
}

.search-status.loading {
  display: block;
  background: var(--gold-light);
  color: var(--dark);
}

.search-status.error {
  display: block;
  background: #fee;
  color: #c00;
}

.search-results {
  min-height: 200px;
}

.search-placeholder {
  text-align: center;
  color: var(--text-light);
  padding: 60px 20px;
  font-size: 1.1rem;
}

.search-result-count {
  margin-bottom: 20px;
  color: var(--text-light);
  font-size: 0.95rem;
}

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

.search-result-item:hover {
  box-shadow: var(--shadow-lg);
}

.search-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.search-result-author {
  font-weight: 600;
  color: var(--primary);
}

.search-result-date {
  color: var(--text-light);
  font-size: 0.85rem;
}

.search-result-content {
  color: var(--text);
  line-height: 1.7;
}

.search-result-content mark {
  background: var(--gold-light);
  color: var(--dark);
  padding: 0 2px;
  border-radius: 2px;
}

.search-result-meta {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--text-light);
}

.search-result-likes {
  color: var(--gold);
}

.search-result-page {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 500;
}

.search-result-page:hover {
  text-decoration: underline;
  color: var(--primary);
}

.load-more-btn {
  display: block;
  margin: 30px auto;
  padding: 12px 40px;
  background: var(--white);
  border: 2px solid var(--primary);
  border-radius: 30px;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.load-more-btn:hover {
  background: var(--primary);
  color: var(--white);
}

/* ========================================
   Profile Modal
   ======================================== */

.friend-card.has-profile {
  cursor: pointer;
  position: relative;
}

.friend-card.has-profile::after {
  content: '';
  position: absolute;
  top: 10px;
  right: 10px;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
}

.profile-badge {
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--secondary);
  font-weight: 600;
}

.profile-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.profile-modal-content {
  background: var(--white);
  border-radius: 16px;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
  animation: slideUp 0.3s ease;
}

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

.profile-close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
}

.profile-close-btn:hover {
  color: var(--text);
}

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

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--gold);
  flex-shrink: 0;
}

.profile-avatar-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
  flex-shrink: 0;
}

.profile-header-info h2 {
  font-size: 1.8rem;
  margin-bottom: 5px;
  color: var(--primary);
}

.profile-rank {
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 8px;
}

.profile-stats-line {
  color: var(--text-light);
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.profile-stats-line span {
  display: inline-flex;
  align-items: center;
}

.profile-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.trait-badge {
  display: inline-block;
  background: var(--gold-light);
  color: var(--dark);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.profile-short-bio {
  font-size: 1.1rem;
  color: var(--primary);
  font-style: italic;
  margin-bottom: 20px;
  line-height: 1.6;
}

.profile-narrative {
  margin-bottom: 25px;
}

.profile-narrative p {
  margin-bottom: 15px;
  line-height: 1.8;
  color: var(--text);
}

.profile-narrative p:last-child {
  margin-bottom: 0;
}

.profile-quote {
  font-style: italic;
  border-left: 4px solid var(--gold);
  padding: 15px 20px;
  margin: 25px 0;
  background: var(--light);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.7;
}

.profile-themes {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.profile-themes h4 {
  color: var(--primary);
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.theme-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.theme-badge {
  display: inline-block;
  background: var(--white);
  border: 1px solid var(--secondary);
  color: var(--secondary);
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
}

.profile-links {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  text-align: center;
}

.profile-link {
  display: inline-block;
  color: var(--secondary);
  text-decoration: none;
  font-weight: 600;
  padding: 10px 25px;
  border: 2px solid var(--secondary);
  border-radius: 25px;
  transition: var(--transition);
}

.profile-link:hover {
  background: var(--secondary);
  color: var(--white);
}

/* Profile Modal Responsive */
@media (max-width: 600px) {
  .profile-modal-content {
    padding: 25px;
    margin: 10px;
  }

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

  .profile-avatar,
  .profile-avatar-placeholder {
    width: 80px;
    height: 80px;
    font-size: 2rem;
  }

  .profile-header-info h2 {
    font-size: 1.5rem;
  }

  .profile-stats-line {
    justify-content: center;
  }

  .profile-traits {
    justify-content: center;
  }

  .profile-close-btn {
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
  }
}

/* ========================================
   Deep Dive Profiles - Scrollytelling
   The Ringer Style
   ======================================== */

.profiles-hero {
  background: #fafafa;
  padding: 60px 0 40px;
  text-align: center;
  border-bottom: 1px solid #e5e5e5;
}

.profiles-hero h1 {
  color: #1a1a1a;
  font-size: 2.5rem;
  margin-bottom: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.profiles-subtitle {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 8px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.profiles-instruction {
  font-size: 0.9rem;
  color: #999;
  margin-top: 15px;
}

.profiles-instruction::after {
  content: ' ↓';
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(5px); }
  60% { transform: translateY(3px); }
}

.profiles-deep-dive {
  background: #f5f5f5;
}

/* Each profile section */
.profile-section {
  display: flex;
  min-height: 100vh;
  position: relative;
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
}

/* Sticky sidebar with avatar/card */
.profile-sticky {
  position: sticky;
  top: 70px;
  height: calc(100vh - 70px);
  width: 380px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 30px;
  background: #fafafa;
  border-right: 1px solid #e5e5e5;
}

.profile-sticky-card {
  text-align: center;
  width: 100%;
}

.profile-sticky-rank {
  font-size: 6rem;
  font-weight: 300;
  font-family: 'Open Sans', sans-serif;
  color: #ddd;
  line-height: 1;
  margin-bottom: 25px;
}

/* Profile card with colored border/glow */
.profile-sticky-card-frame {
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  box-shadow:
    0 4px 20px rgba(0,0,0,0.08),
    0 0 0 3px rgba(52, 211, 153, 0.3);
  position: relative;
  overflow: hidden;
}

.profile-sticky-card-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #34d399, #10b981, #34d399);
}

.profile-sticky-avatar {
  width: 200px;
  height: 200px;
  border-radius: 12px;
  object-fit: cover;
  margin: 0 auto 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.profile-sticky-avatar-placeholder {
  width: 200px;
  height: 200px;
  border-radius: 12px;
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  font-weight: 700;
  margin: 0 auto 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.profile-sticky-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-sticky-tagline {
  font-size: 0.75rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.profile-sticky-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding-top: 15px;
  border-top: 1px solid #eee;
  margin-top: 15px;
}

.profile-sticky-stats span {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.7rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-sticky-stats strong {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a1a1a;
  display: block;
  margin-bottom: 2px;
}

/* Scrollable content area */
.profile-content {
  flex: 1;
  padding: 60px 80px 80px;
  background: #fff;
  min-height: 100vh;
}

.profile-content-inner {
  max-width: 680px;
}

.profile-content-name {
  font-size: 4.5rem;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 30px;
  line-height: 1;
  font-family: 'Open Sans', sans-serif;
  text-transform: uppercase;
  letter-spacing: -1px;
}

/* Stats grid like The Ringer */
.profile-content-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid #e5e5e5;
}

.profile-content-stat {
  text-align: left;
  padding: 0 20px 0 0;
}

.profile-content-stat:not(:last-child) {
  border-right: 1px solid #e5e5e5;
  margin-right: 20px;
}

.profile-content-stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #999;
  margin-bottom: 4px;
}

.profile-content-stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1a1a1a;
}

.profile-content-stat-value small {
  font-size: 0.9rem;
  font-weight: 400;
  color: #666;
}

/* Comparison tagline "SHADES OF..." style */
.profile-content-tagline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
  padding: 12px 0;
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
}

.profile-content-tagline-icon {
  width: 24px;
  height: 24px;
  background: #1a1a1a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: #fff;
}

.profile-content-tagline-text {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #1a1a1a;
  font-weight: 600;
}

.profile-content-bio {
  font-size: 1.25rem;
  color: #1a1a1a;
  line-height: 1.6;
  margin-bottom: 30px;
}

.profile-content-bio strong {
  font-weight: 700;
}

/* Colorful skill/trait tags */
.profile-content-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.profile-content-trait {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Different colors for traits */
.profile-content-trait:nth-child(5n+1) {
  background: #fef3c7;
  color: #92400e;
}
.profile-content-trait:nth-child(5n+2) {
  background: #d1fae5;
  color: #065f46;
}
.profile-content-trait:nth-child(5n+3) {
  background: #dbeafe;
  color: #1e40af;
}
.profile-content-trait:nth-child(5n+4) {
  background: #fce7f3;
  color: #9d174d;
}
.profile-content-trait:nth-child(5n+5) {
  background: #e0e7ff;
  color: #3730a3;
}

.profile-content-section {
  margin-bottom: 40px;
}

.profile-content-section h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #999;
  margin-bottom: 20px;
  font-weight: 600;
}

.profile-content-narrative {
  font-size: 1.1rem;
  line-height: 1.9;
  color: #333;
}

.profile-content-narrative p {
  margin-bottom: 20px;
}

.profile-content-narrative p:first-child::first-letter {
  font-size: 3.5rem;
  font-weight: 700;
  float: left;
  line-height: 1;
  margin-right: 10px;
  margin-top: 5px;
  color: #1a1a1a;
}

/* Quote block */
.profile-content-quote {
  background: #f8f8f8;
  border-left: 4px solid #34d399;
  padding: 30px 35px;
  margin: 40px 0;
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.8;
  color: #333;
  position: relative;
}

.profile-content-quote::before {
  content: '"';
  font-size: 4rem;
  position: absolute;
  top: 10px;
  left: 15px;
  color: #34d399;
  opacity: 0.3;
  font-family: Georgia, serif;
  line-height: 1;
}

/* Topics/themes section */
.profile-content-themes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.profile-content-theme {
  background: #fff;
  border: 1px solid #ddd;
  color: #666;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.profile-content-theme:hover {
  border-color: #34d399;
  color: #059669;
}

.profile-content-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  color: #666;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.profile-content-link:hover {
  color: #1a1a1a;
  border-bottom-color: #1a1a1a;
}

/* Divider between profiles */
.profile-divider {
  height: 80px;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-divider-line {
  width: 60px;
  height: 2px;
  background: #ddd;
  border-radius: 1px;
}

/* Responsive Deep Dive */
@media (max-width: 1024px) {
  .profile-sticky {
    width: 320px;
    padding: 30px 20px;
  }

  .profile-sticky-rank {
    font-size: 4.5rem;
  }

  .profile-sticky-avatar,
  .profile-sticky-avatar-placeholder {
    width: 160px;
    height: 160px;
    font-size: 4rem;
  }

  .profile-content {
    padding: 50px 50px 60px;
  }

  .profile-content-name {
    font-size: 3rem;
  }

  .profile-content-stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .profile-content-stat-value {
    font-size: 1.4rem;
  }
}

@media (max-width: 768px) {
  .profile-section {
    flex-direction: column;
  }

  .profile-sticky {
    position: relative;
    top: 0;
    width: 100%;
    height: auto;
    padding: 40px 20px;
    border-right: none;
    border-bottom: 1px solid #e5e5e5;
  }

  .profile-sticky-rank {
    font-size: 3.5rem;
    margin-bottom: 15px;
  }

  .profile-sticky-avatar,
  .profile-sticky-avatar-placeholder {
    width: 140px;
    height: 140px;
    font-size: 3.5rem;
  }

  .profile-content {
    padding: 30px 20px 50px;
  }

  .profile-content-name {
    font-size: 2.2rem;
    letter-spacing: 0;
  }

  .profile-content-stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
  }

  .profile-content-stat {
    padding-right: 10px;
  }

  .profile-content-stat-value {
    font-size: 1.2rem;
  }

  .profile-content-stat-label {
    font-size: 0.6rem;
  }

  .profile-content-bio {
    font-size: 1.1rem;
  }

  .profile-content-quote {
    padding: 20px 25px;
    font-size: 1rem;
  }

  .profile-content-narrative p:first-child::first-letter {
    font-size: 2.5rem;
  }

  .profiles-hero h1 {
    font-size: 1.8rem;
  }
}

/* ========================================
   Hamburger Menu
   ======================================== */

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(10.5px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-10.5px) rotate(-45deg);
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
    order: 3; /* Push hamburger to the right */
  }

  .nav-brand {
    order: 1;
    flex: 1;
  }

  .nav-links {
    order: 2;
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--primary);
    flex-direction: column;
    justify-content: flex-start;
    padding: 80px 30px 30px;
    gap: 10px;
    transition: right 0.3s ease;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
    z-index: 100;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    display: block;
    padding: 12px 16px;
    font-size: 1.1rem;
  }

  .navbar {
    position: relative;
  }
}

/* Mobile nav overlay */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99;
}

.nav-overlay.active {
  display: block;
}

/* ========================================
   Photo Lightbox
   ======================================== */

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  animation: fadeIn 0.2s ease;
  padding: 20px;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  position: relative;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-info {
  text-align: center;
  margin-top: 15px;
  color: white;
}

.lightbox-info .author {
  font-weight: 600;
  font-size: 1.1rem;
}

.lightbox-info .date {
  opacity: 0.7;
  font-size: 0.9rem;
}

.photo-card {
  cursor: pointer;
}

.photo-card:hover img {
  transform: scale(1.02);
  transition: transform 0.3s ease;
}

/* Featured memory card (Dani's first post) */
.memory-card.featured {
  border: 2px solid var(--gold);
  background: linear-gradient(135deg, var(--white) 0%, var(--gold-light) 100%);
}

.memory-card.featured .quote {
  font-size: 1.1rem;
  font-weight: 500;
}
