/* Common styles - Used across all pages */

/* ============================================
   BASE STYLES - Variables, HTML/Body, Typography
   ============================================ */

html {
  min-height: 100%;
  height: auto;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

:root {
  --blue: #007bff;
  --blue-sharp: #0066cc;
  --blue-soft: #0066ccee;
  --blue-dark: #2c3e50;
  --purple-sharp: #6600ccee;
  --grey-soft: #f5f5f5;
  --grey-softer: #e0e0e0;
  --black: #333;
  --grey-darkest: #444;
  --grey-darker: #444;
  --grey: #666;
  --grey-light: #777;
  --grey-lightest: #ccc;
  --grey-slate: #ffee0009;
  --silver-light: hsl(200, 20%, 80%);
  --silver-dark: hsl(200, 20%, 95%);
}

body {
  line-height: 1.6;
  color: var(--black);
  max-width: 600px;
  margin: 0 auto;
  padding: 0;
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "slnt" 0;
  background: url("https://newsletter.bharatk.in/uploads/Vector-1.svg");
  background-repeat: no-repeat;
  background-position: 100% 100%;
}

h1,
h2,
h3 {
  color: var(--blue-sharp);
}

a {
  color: var(--blue);
}

a:visited {
  color: var(--purple-sharp);
}

ul {
  padding-left: 20px;
}

/* ============================================
   LAYOUT COMPONENTS - Logo, Header, Main Content
   ============================================ */

#sticky-header {
  max-width: 100vw;
  overflow-x: hidden;
  position: absolute;
  margin: 0;
  padding: 0;
  line-height: 7rem;
  top: -5%;
  left: -1%;
  font-size: 6.5rem;
  font-weight: 900;
  opacity: 0.05;
  pointer-events: none;
}

#logo {
  display: block;
  margin: 7.5% auto;
  width: 120px;
  height: 50px;
}

#app-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#main-content {
  width: 95%;
  margin: 5% auto 5% auto;
}

.highlight {
  background-color: var(--grey-slate);
  padding: 10px;
  border-left: 4px solid var(--blue-sharp);
  margin-bottom: 20px;
}

.footer {
  margin-top: 20px;
  border-top: 1px solid var(--grey-lightest);
  padding-top: 10px;
}

/* ============================================
   NAVIGATION STYLES
   ============================================ */

#main-nav ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

#main-nav li {
  margin: 0 1rem;
}

#main-nav a {
  text-decoration: none;
  color: #333;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 1rem;
  transition: color 0.3s ease;
}

#main-nav a:hover {
  color: #007bff;
}

#main-nav a.active {
  border-bottom: 2px solid var(--blue-sharp);
}

@media (max-width: 600px) {
  #main-nav li {
    margin: 0.25rem 0.5rem;
  }

  #main-nav a {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  #main-nav li {
    margin: 0 0.5rem;
  }
}

/* ============================================
   SHARED COMPONENTS - Skeleton, Filters, Anchors
   ============================================ */

/* Skeleton loading styles */
.skeleton {
  animation: skeleton-loading 1s linear infinite alternate;
}

@keyframes skeleton-loading {
  0% {
    background-color: var(--silver-light);
  }
  100% {
    background-color: var(--silver-dark);
  }
}

.skeleton-text {
  width: 100%;
  height: 0.7rem;
  margin-bottom: 0.5rem;
  border-radius: 0.25rem;
}

.skeleton-text:last-child {
  width: 80%;
}

.skeleton-name {
  width: 200px;
  height: 1.5rem;
  margin-bottom: 1rem;
  border-radius: 0.25rem;
}

/* Filter styles */
select {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  color: var(--grey-darker);
  padding: 0.25rem;
  border: 1px solid var(--grey-lightest);
  border-radius: 0.25rem;
  box-shadow: 1px 1px 5px -2px var(--blue-sharp);
  text-align: center;
}

#filter-stats {
  text-align: center;
}

/* Shared anchor link styles */
.anchor-link {
  text-decoration: none;
  color: inherit;
}

.anchor-icon {
  display: none;
  margin-left: 5px;
}

.anchor-link:hover .anchor-icon {
  display: inline-block;
}

.anchor-icon svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

/* Shared name styles */
.name {
  font-weight: bold;
  color: var(--blue-sharp);
}

/* Shared meta styles */
.meta {
  font-size: 0.9em;
  color: var(--grey-darker);
  margin-top: 0;
  margin-bottom: 10px;
}

.divider {
  color: var(--grey-light);
}

/* ============================================
   INTRODUCTION PAGE STYLES
   ============================================ */

.introduction {
  margin-bottom: 30px;
  border-bottom: 1px solid var(--grey-lightest);
  padding-bottom: 20px;
}

.introduction:last-child {
  border-bottom: none;
}

.avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  float: left;
  margin-right: 15px;
}

.year {
  font-size: 0.9em;
  color: var(--grey);
  margin-top: 0;
  margin-bottom: 10px;
}

.country {
  font-size: 0.8em;
  color: var(--grey-darker);
  margin-top: 0;
  margin-bottom: 10px;
}

.message {
  margin-top: 10px;
}

/* ============================================
   JOB POSTING / HIRING PAGE STYLES
   ============================================ */

#jobs {
  margin-top: 2rem;
}

.job-posting {
  border-bottom: 1px solid var(--grey-lightest);
  margin-bottom: 2rem;
  padding-bottom: 2rem;
}

.job-posting:last-child {
  border-bottom: none;
}

.job-posting .name {
  font-size: 1.2rem;
}

.job-message {
  font-style: italic;
  border-left: 4px solid var(--grey-lightest);
  padding-left: 10px;
  margin-top: 10px;
  margin-bottom: 10px;
  color: #444;
  font-size: 0.95em;
}
