/* css/author.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

body {
  background: #0f172a;
  color: #cbd5e1;
  font-family: 'Inter', sans-serif;
}

/* --- PROFILE CARD (Glass) --- */
.profile-card {
  background: rgba(30, 41, 59, 0.5); /* Slate 800/50 */
  backdrop-filter: blur(12px);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 20px 40px -5px rgba(0, 0, 0, 0.2);
}

/* --- NEW AVATAR FRAME --- */
.portrait-container {
  position: relative;
  width: 100%;
  max-width: 250px; /* Limit size */
  aspect-ratio: 1;  /* Force perfect circle */
  margin: 0 auto;
  
  /* This creates the "Border" */
  padding: 6px; 
  border-radius: 50%;
  
  /* The 50% Transparent Gradient */
  background: linear-gradient(135deg, rgba(165, 180, 252, 0.5), rgba(232, 121, 249, 0.5));
  
  /* Default Shadow */
  box-shadow: 0 10px 40px -10px rgba(0,0,0,0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover Spice: Glow & Lift */
.portrait-container:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 50px -10px rgba(99, 102, 241, 0.4); /* Indigo Glow */
}

.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  /* Inner dark rim to separate image from the gradient border */
  border: 4px solid #0f172a; 
  background-color: #1e293b;
  cursor: zoom-in; /* Tells user they can click */
}

/* --- SOCIAL & STATS --- */
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: #94a3b8;
  transition: all 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.social-link:hover {
  background: #6366f1;
  color: white;
  transform: translateY(-3px);
  border-color: #6366f1;
}

/* --- ARTICLE GRID --- */
.article-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}
.article-card:hover {
  transform: translateY(-5px);
  border-color: #6366f1;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.article-thumb {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

.article-content {
  padding: 1.5rem;
}

.article-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.article-excerpt {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Safari/Chrome */
  line-clamp: 3;         /* Standard property (Fixes the warning) */
  -webkit-box-orient: vertical;
  overflow: hidden;
}