/* ============================================================
   BITCOINJACKPOT.ONLINE — Author Page Styles
   ============================================================ */

@import 'variables.css';

/* ── Author Hero ──────────────────────────────────────────── */
.author-hero {
  position: relative;
  background: var(--color-bg-dark);
  padding: var(--space-16) 0 var(--space-12);
  overflow: hidden;
}

.author-hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('/assets/images/btcslots-hero.webp');
  background-size: cover;
  background-position: center 30%;
  opacity: 0.08;
}

.author-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, var(--color-bg-dark) 100%);
}

.author-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.author-hero__avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.author-hero__avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--color-gold);
  box-shadow: var(--shadow-gold-lg);
  background: var(--color-bg-dark-alt);
}

.author-hero__flag {
  position: absolute;
  bottom: 4px;
  right: 4px;
  font-size: 1.4rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

.author-hero__label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--letter-wider);
  color: var(--color-gold);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-2);
}

.author-hero__name {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: var(--font-extrabold);
  color: var(--color-text-inverse);
  margin-bottom: var(--space-2);
  letter-spacing: var(--letter-tight);
}

.author-hero__title {
  font-size: var(--text-lg);
  color: rgba(245,240,232,0.6);
  margin-bottom: var(--space-4);
}

.author-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* ── Stats Row ────────────────────────────────────────────── */
.author-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}

.author-stat {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-align: center;
}

.author-stat__number {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--font-extrabold);
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.author-stat__label {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--line-snug);
}

/* ── Author Layout ────────────────────────────────────────── */
.author-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-10);
  align-items: start;
}

/* ── Articles Grid ────────────────────────────────────────── */
.author-articles {
  margin-top: var(--space-10);
}

.author-articles h2 {
  margin-bottom: var(--space-6);
  font-size: var(--text-2xl);
}

.author-articles__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.author-article-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-5);
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-base), transform var(--transition-base);
}

.author-article-card:hover {
  border-color: var(--color-gold-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.author-article-card__label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--letter-wide);
  color: var(--color-gold);
  font-weight: var(--font-semibold);
}

.author-article-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--color-text);
  margin: 0;
  line-height: var(--line-snug);
}

.author-article-card:hover .author-article-card__title {
  color: var(--color-gold-dark);
}

.author-article-card__meta {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: auto;
}

/* ── Sidebar ──────────────────────────────────────────────── */
.author-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  position: sticky;
  top: calc(var(--header-height) + var(--space-6));
}

.author-sidebar__card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-5) var(--space-6);
}

.author-sidebar__title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--font-bold);
  color: var(--color-text);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}

.author-sidebar__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.author-sidebar__list li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: var(--text-sm);
  margin: 0;
}

.author-sidebar__key {
  color: var(--color-text-muted);
}

.author-sidebar__val {
  color: var(--color-text);
  font-weight: var(--font-medium);
  text-align: right;
}

.author-sidebar__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--line-relaxed);
  margin: 0;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .author-layout {
    grid-template-columns: 1fr;
  }

  .author-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .author-hero__inner {
    flex-direction: column;
    text-align: center;
  }

  .author-hero__name { font-size: var(--text-3xl); }

  .author-hero__tags {
    justify-content: center;
  }

  .author-stats-row {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .author-articles__grid {
    grid-template-columns: 1fr;
  }
}
