/* Author Profile Page Stylesheet — Rabiyuk Editorial */

.auth-page {
  background-color: #fbf9f6;
  min-height: 100vh;
  padding-bottom: 6rem;
  font-family: var(--font-sans, system-ui, sans-serif);
}

.auth-container {
  max-width: 76rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 0;
}

@media (min-width: 640px) {
  .auth-container {
    padding: 3rem 2rem 0;
  }
}

.auth-header {
  margin-bottom: 3.5rem;
}

.auth-cover {
  position: relative;
  border-radius: 1.75rem;
  overflow: hidden;
  aspect-ratio: 21 / 7;
  width: 100%;
  background-color: #f4f1ea;
}

.auth-cover__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.auth-cover__ph {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(92, 61, 46, 0.08) 0%, rgba(212, 175, 55, 0.15) 100%);
}

.auth-cover__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #fbf9f6 0%, transparent 60%, rgba(0, 0, 0, 0.05) 100%);
}

.auth-profile-bar {
  position: relative;
  margin-top: -3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 0 1rem;
  z-index: 10;
}

@media (min-width: 768px) {
  .auth-profile-bar {
    margin-top: -5rem;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0 2.5rem;
  }
}

.auth-avatar-wrap {
  width: 7rem;
  height: 7rem;
  border-radius: 9999px;
  overflow: hidden;
  border: 4px solid #fbf9f6;
  box-shadow: 0 12px 24px -6px rgba(92, 61, 46, 0.15);
  background-color: #ffffff;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .auth-avatar-wrap {
    width: 9rem;
    height: 9rem;
  }
}

.auth-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.auth-avatar-ph {
  width: 100%;
  height: 100%;
  background-color: rgba(92, 61, 46, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(92, 61, 46, 0.3);
}

.auth-info {
  text-align: center;
  flex-grow: 1;
}

@media (min-width: 768px) {
  .auth-info {
    text-align: left;
  }
}

.auth-subtitle {
  font-size: 0.75rem;
  font-weight: 700;
  color: #8c6246;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
}

.auth-title {
  font-family: var(--font-serif, Georgia, serif);
  font-size: 2rem;
  font-weight: 600;
  color: #5c3d2e;
  margin: 0.25rem 0 0;
  line-height: 1.2;
}

@media (min-width: 640px) {
  .auth-title {
    font-size: 2.75rem;
  }
}

.auth-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.5rem 0;
}

.auth-stat-item {
  text-align: center;
}

@media (min-width: 768px) {
  .auth-stat-item {
    text-align: right;
  }
}

.auth-stat-label {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #8c6246;
  display: block;
}

.auth-stat-value {
  font-family: var(--font-serif, Georgia, serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: #5c3d2e;
  margin-top: 0.15rem;
  display: block;
}

.auth-divider {
  width: 1px;
  height: 2rem;
  background-color: rgba(92, 61, 46, 0.15);
}

.auth-bio-box {
  margin-top: 2rem;
  border-top: 1px solid rgba(92, 61, 46, 0.12);
  padding-top: 1.75rem;
  max-width: 48rem;
}

.auth-bio-text {
  font-size: 0.95rem;
  color: #57534e;
  line-height: 1.7;
  font-style: italic;
  margin: 0;
}

/* Articles Section */
.auth-section-title {
  font-family: var(--font-serif, Georgia, serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: #1c1917;
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(92, 61, 46, 0.12);
}

.auth-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 640px) {
  .auth-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .auth-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.auth-card {
  display: flex;
  flex-direction: column;
  border-radius: 1.25rem;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e7e5e4;
  box-shadow: 0 4px 20px -6px rgba(92, 61, 46, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
}

.auth-card[data-post-hidden="true"] {
  display: none !important;
}

.auth-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px -8px rgba(92, 61, 46, 0.12);
}

.auth-card__media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #f5f5f4;
  overflow: hidden;
  position: relative;
  text-decoration: none;
}

.auth-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.auth-card:hover .auth-card__img {
  transform: scale(1.04);
}

.auth-card__ph {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f5f5f4, #e7e5e4);
}

.auth-card__body {
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.auth-card__meta {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8c6246;
  margin-bottom: 0.5rem;
}

.auth-card__title-link {
  text-decoration: none;
  color: #1c1917;
}

.auth-card__title {
  font-family: var(--font-serif, Georgia, serif);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.35;
  color: #1c1917;
  margin: 0 0 0.6rem;
  transition: color 0.2s ease;
}

.auth-card:hover .auth-card__title {
  color: #92400e;
}

.auth-card__excerpt {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.55;
  margin: 0 0 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.auth-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f3f4f6;
  padding-top: 0.85rem;
  margin-top: auto;
  font-size: 0.75rem;
  font-weight: 700;
  color: #9ca3af;
}

.auth-card__read {
  color: #5c3d2e;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.2s ease;
}

.auth-card__read:hover {
  color: #92400e;
}

.auth-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 1.5rem;
  background: #ffffff;
  border-radius: 1.5rem;
  border: 1px dashed rgba(92, 61, 46, 0.15);
  color: #78716c;
}

/* Load More Button */
.auth-loadmore-wrap {
  display: flex;
  justify-content: center;
  margin-top: 3.5rem;
}

.auth-loadmore-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2.25rem;
  border-radius: 9999px;
  background-color: #5c3d2e;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(92, 61, 46, 0.2);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-loadmore-btn:hover {
  background-color: #472f23;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(92, 61, 46, 0.3);
}
