/* ============================================
   APKLand Author Box
   - Horizontal wide layout
   - Uses CSS variables for theming
   - SEO-structured with Schema.org
   - All 5 styles adapt automatically
   ============================================ */

.apkland-author-box {
  --author-accent: var(--primary, #e87c23);
  --author-bg: var(--surface, rgba(255,255,255,0.06));

  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 28px 32px;
  background: var(--author-bg);
  border-left: 4px solid var(--author-accent);
  border-radius: 12px;
  width: 100%;
  box-sizing: border-box;
  margin: 32px 0;
  position: relative;
  overflow: hidden;
}

/* Subtle top-left glow accent */
.apkland-author-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 120px; height: 120px;
  background: radial-gradient(circle, var(--author-accent) 0%, transparent 70%);
  opacity: 0.08;
  pointer-events: none;
}

/* ── Avatar ── */
.apkland-author-avatar {
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--author-accent);
  box-shadow: 0 0 0 4px rgba(0,0,0,0.1);
}
.apkland-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.apkland-author-avatar--initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--author-accent);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 1px;
}

/* ── Info column ── */
.apkland-author-info {
  flex: 1;
  min-width: 0;
}

/* ── Header row (name + socials) ── */
.apkland-author-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

/* ── Label ── */
.apkland-author-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--author-accent);
  margin: 0 0 3px;
  font-weight: 600;
}

/* ── Name ── */
.apkland-author-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 3px;
  padding: 0;
  color: var(--text, inherit);
  line-height: 1.3;
}

/* ── Role ── */
.apkland-author-role {
  font-size: 0.82rem;
  color: var(--author-accent);
  margin: 0;
  font-style: italic;
}

/* ── Bio ── */
.apkland-author-bio {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text-muted, rgba(128,128,128,0.9));
  margin: 0;
}

/* ── Social buttons ── */
.apkland-author-socials {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.apkland-author-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--author-accent);
  color: var(--author-accent);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  transition: background 200ms, color 200ms;
  line-height: 1;
}
.apkland-author-social-btn:hover {
  background: var(--author-accent);
  color: #fff;
}

/* ── Classic style ── */
.style-classic .apkland-author-box {
  background: #fafafa;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}
.style-classic .apkland-author-name { color: #1a1a1a; }
.style-classic .apkland-author-bio  { color: #555; }

/* ── Dark styles (Modern, Glass, Liquid Glass, Neu) ── */
.style-modern .apkland-author-box,
.style-glass .apkland-author-box,
.style-glass-pure .apkland-author-box {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.style-modern .apkland-author-name,
.style-glass .apkland-author-name,
.style-glass-pure .apkland-author-name { color: #fff; }
.style-modern .apkland-author-bio,
.style-glass .apkland-author-bio,
.style-glass-pure .apkland-author-bio  { color: rgba(255,255,255,0.65); }

.style-neu .apkland-author-box {
  background: #1e2235;
  box-shadow:
    6px 6px 14px rgba(0,0,0,0.35),
    -4px -4px 10px rgba(255,255,255,0.04);
  border-left-color: var(--author-accent);
}
.style-neu .apkland-author-name { color: #fff; }
.style-neu .apkland-author-bio  { color: rgba(255,255,255,0.55); }

/* ── Responsive ── */
@media (max-width: 600px) {
  .apkland-author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 20px;
    gap: 16px;
  }
  .apkland-author-header {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .apkland-author-socials {
    justify-content: center;
  }
  .apkland-author-bio {
    text-align: left;
  }
}
