/* ==========================================================================
   Root Variables & Base Setup
   ========================================================================== */
:root {
  --rs-primary: #2563eb;
  --rs-primary-hover: #1d4ed8;
  --rs-dark: #0f172a;
  --rs-surface: #f8fafc;
  --rs-border: #e2e8f0;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #334155;
  background-color: var(--rs-surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.font-mono {
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

/* ==========================================================================
   Hero Banner Area
   ========================================================================== */
.author-hero {
  background: 
    linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 41, 59, 0.85) 100%),
    url('https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
  position: relative;
  min-height: 260px;
  overflow: hidden;
}

/* Ambient glow orb behind banner content */
.hero-glow-orb {
  position: absolute;
  top: -50%;
  right: 10%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.35) 0%, rgba(0, 0, 0, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(40px);
}

/* Subtle grid overlay for tech/design aesthetic */
.hero-grid-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

/* ==========================================================================
   Author Avatar & Profile Elements
   ========================================================================== */
.author-avatar-wrapper {
  position: relative;
  width: 140px;
  height: 140px;
  margin-top: -70px;
  display: inline-block;
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  border-radius: 50%;
  padding: 4px;
}

.author-avatar-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 4px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.25);
}

.verified-badge {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: var(--rs-primary);
  color: #ffffff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  font-size: 0.85rem;
}

/* ==========================================================================
   Stats & Dashboard Cards
   ========================================================================== */
.stat-card {
  background: #ffffff;
  border: 1px solid var(--rs-border);
  border-radius: 0.875rem;
  padding: 1.25rem;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.stat-card:hover {
  border-color: var(--rs-primary);
  transform: translateY(-3px);
}

/* ==========================================================================
   Resource & Post Cards
   ========================================================================== */
.resource-item {
  perspective: 1000px;
}

.resource-card,
.author-post-card {
  background: #ffffff;
  border: 1px solid var(--rs-border);
  border-radius: 0.875rem;
  overflow: hidden;
  transition: transform 0.25s ease-in-out, box-shadow 0.25s ease-in-out, border-color 0.25s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.resource-card:hover,
.author-post-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-4px);
  box-shadow: 0 20px 30px -10px rgba(15, 23, 42, 0.12) !important;
}

.card-img-wrapper {
  position: relative;
  height: 190px;
  overflow: hidden;
  background-color: #f1f5f9;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.resource-card:hover .card-img-wrapper img {
  transform: scale(1.04);
}

/* ==========================================================================
   Navigation Tabs
   ========================================================================== */
.author-tabs .nav-link {
  color: #64748b;
  font-weight: 500;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.75rem 1.25rem;
  border-radius: 0;
  transition: all 0.2s ease;
}

.author-tabs .nav-link.active {
  color: var(--rs-primary);
  border-bottom-color: var(--rs-primary);
  background: transparent;
  font-weight: 600;
}

/* ==========================================================================
   Timeline Styling
   ========================================================================== */
.author-timeline {
  position: relative;
  padding-left: 1.5rem;
}

.author-timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 5px;
  bottom: 5px;
  width: 2px;
  background: var(--rs-border);
}

.timeline-node {
  position: relative;
  padding-bottom: 1.5rem;
}

.timeline-node::before {
  content: '';
  position: absolute;
  left: -1.5rem;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--rs-primary);
}

/* ==========================================================================
   Pagination Styling
   ========================================================================== */
.pagination-wrapper .nav-links {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.pagination-wrapper .page-numbers {
  padding: 0.5rem 0.85rem;
  border-radius: 0.5rem;
  border: 1px solid var(--rs-border);
  color: #334155;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.pagination-wrapper .page-numbers.current,
.pagination-wrapper .page-numbers:hover {
  background-color: var(--rs-primary);
  color: #ffffff;
  border-color: var(--rs-primary);
}