/* ==========================================================================
   Links Page - Mobile-first Design
   Inspired by Winyard AI links page, adapted for TWE black/gold aesthetic
   ========================================================================== */

/* Hide navigation and footer on links page */
.site-header,
.mobile-sticky-nav,
.site-footer,
.skip-link {
  display: none !important;
}

/* Page Container */
.links-page {
  min-height: 100vh;
  padding: 3rem 1rem;
  background: linear-gradient(180deg, var(--bg-primary) 0%, #111 100%);
}

.links-container {
  max-width: 28rem; /* ~448px - matches Winyard AI */
  margin: 0 auto;
}

/* ==========================================================================
   Profile Section
   ========================================================================== */
.profile-section {
  text-align: center;
  margin-bottom: 2.5rem;
}

.profile-image-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 1.25rem;
}

.profile-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--gold-brand);
  opacity: 0.25;
  filter: blur(16px);
  transform: scale(1.15);
}

.profile-image {
  position: relative;
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-brand);
  box-shadow: 0 0 0 4px var(--bg-primary);
}

.profile-name {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-on-dark);
  margin: 0 0 0.25rem 0;
}

.profile-tagline {
  color: var(--text-on-dark-muted);
  font-size: 1rem;
  margin: 0;
}

/* ==========================================================================
   Section Labels
   ========================================================================== */
.section-label {
  font-family: var(--font-accent);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-on-dark-muted);
  margin: 0 0 1rem 0;
}

/* ==========================================================================
   Links Section
   ========================================================================== */
.links-section {
  margin-bottom: 2rem;
}

/* ==========================================================================
   Link Cards
   ========================================================================== */
.link-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-on-dark);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text-on-dark);
  transition: all 0.2s ease;
}

.link-card:hover {
  border-color: rgba(246, 255, 0, 0.4);
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.link-card:focus {
  outline: 2px solid var(--gold-brand);
  outline-offset: 2px;
}

/* Primary Link Card (Gold) */
.link-card.primary {
  background: var(--gold-brand);
  border-color: var(--gold-brand);
  color: #000000;
}

.link-card.primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  box-shadow: var(--shadow-gold-md);
}

.link-card.primary .link-icon {
  color: #000000;
}

.link-card.primary .link-description {
  color: rgba(10, 10, 10, 0.7);
}

.link-card.primary .link-chevron {
  color: rgba(10, 10, 10, 0.5);
}

/* Link Card Elements */
.link-icon {
  width: 24px;
  height: 24px;
  color: var(--gold-brand);
  flex-shrink: 0;
}

.link-icon svg {
  width: 24px;
  height: 24px;
}

.link-content {
  flex: 1;
  min-width: 0;
}

.link-title {
  display: block;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.3;
}

.link-description {
  display: block;
  font-size: 0.875rem;
  color: var(--text-on-dark-muted);
  margin-top: 0.125rem;
}

.link-chevron {
  color: var(--text-on-dark-subtle);
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.link-chevron svg {
  width: 20px;
  height: 20px;
}

.link-card:hover .link-chevron {
  opacity: 1;
  transform: translateX(2px);
}

/* ==========================================================================
   Blog Post Cards
   ========================================================================== */
.blog-link-card {
  display: flex;
  gap: 0.875rem;
  padding: 0.875rem;
  margin-bottom: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-on-dark);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all 0.2s ease;
}

.blog-link-card:hover {
  border-color: rgba(246, 255, 0, 0.4);
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.07);
}

.blog-link-card:focus {
  outline: 2px solid var(--gold-brand);
  outline-offset: 2px;
}

.blog-thumbnail {
  width: 4rem;
  height: 4rem;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-secondary);
}

.blog-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-on-dark);
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   CTA Buttons
   ========================================================================== */
.links-cta-button {
  display: block;
  width: 100%;
  padding: 1rem 1.5rem;
  margin-bottom: 0.75rem;
  text-align: center;
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all 0.2s ease;
}

.links-cta-button:focus {
  outline: 2px solid var(--gold-brand);
  outline-offset: 2px;
}

.links-cta-button.primary {
  background: var(--gold-brand);
  color: #000000;
  border: none;
}

.links-cta-button.primary:hover {
  background: var(--gold-light);
  box-shadow: var(--shadow-gold-md);
}

.links-cta-button.secondary {
  background: transparent;
  border: 1px solid var(--border-on-dark);
  color: var(--text-on-dark);
}

.links-cta-button.secondary:hover {
  border-color: var(--gold-brand);
  color: var(--gold-brand);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.links-footer {
  text-align: center;
  margin-top: 2.5rem;
  font-size: 0.8rem;
}

.links-footer a {
  color: var(--text-on-dark-subtle);
  text-decoration: none;
  transition: color 0.2s ease;
}

.links-footer a:hover {
  color: var(--gold-brand);
}

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

.links-animate {
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
}

/* Staggered Animation Delays */
.stagger-1 { animation-delay: 0s; }
.stagger-2 { animation-delay: 0.1s; }
.stagger-3 { animation-delay: 0.2s; }
.stagger-4 { animation-delay: 0.3s; }
.stagger-5 { animation-delay: 0.4s; }
.stagger-6 { animation-delay: 0.5s; }

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 480px) {
  .links-page {
    padding: 2rem 1rem;
  }

  .profile-image {
    width: 6rem;
    height: 6rem;
  }

  .profile-name {
    font-size: 1.5rem;
  }

  .link-card {
    padding: 0.875rem 1rem;
  }

  .blog-thumbnail {
    width: 3.5rem;
    height: 3.5rem;
  }
}
