/* components.css — tables, buttons, kundali, article bar, misc */

/* Tables */
table {
  width: 100%; border-collapse: collapse; margin-top: 1rem;
  background: var(--color-bg);
  font-family: var(--font-serif);
}
th, td { border: 1px solid var(--border); padding: 0.6rem; }
th { background: var(--color-highlight); color: var(--color-primary); }

/* Buttons */
.buttons { display: flex; flex-wrap: wrap; justify-content: center; padding: 10px; }
.buttons a {
  background: linear-gradient(45deg, var(--color-secondary), var(--color-accent));
  color: #fff;
  padding: 10px 20px;
  margin: 5px;
  border-radius: var(--radius);
  font-weight: bold;
  text-align: center;
  flex: 1 1 150px;
}
.buttons a:hover { background: linear-gradient(45deg, #ffb027, var(--color-accent)); }

/* Article Sticky Bar */
.sticky-bar {
  position: sticky; top: 0; z-index: 50;
  background: #fff; border-bottom: 1px solid #ddd;
  padding: 8px 10px; display: flex; justify-content: space-between;
}
.bar-link { color: #1a0dab; font-size: 14px; }
.bar-share { display: flex; gap: 10px; }
.bar-icon {
  background: #f3f3f3; padding: 4px 10px; border-radius: 4px;
  border: 1px solid #ddd; cursor: pointer; color: #333;
}

/* Typography Components */
.shloka {
  font-family: var(--font-sanskrit);
  background: #9b7807; color: #fff;
  padding: 0.8rem; border-left: 4px solid #d4af37;
  margin: 1rem 0;
}
.translation { font-style: italic; color: #333; margin-left: 2rem; }

/* Author Images */
.author-photo { width: 113px; height: 113px; border-radius: 999px; object-fit: cover; margin: auto; }
.author-photo-small { width: 64px; height: 64px; border-radius: 999px; object-fit: cover; }
