/* Custom styles for CapsicoHealth's "ALL CAPS" Blog */


.md-grid {
  margin-left: auto;
  margin-right: auto;
  max-width: 85vw;
}

.md-typeset .grid {
    grid-gap: .4rem;
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(min(100%,14rem),1fr));
    margin: 1em 0;
}

/* ===== Card Enhancements ===== */
.grid.cards > ul > li {
  border-radius: 12px !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(248,250,252,1) 100%) !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
  transition: all 0.3s ease !important;
}

.grid.cards > ul > li:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
  border-color: var(--md-primary-fg-color) !important;
}

/* Card icons - larger and colored */
.grid.cards > ul > li .twemoji,
.grid.cards > ul > li .md-icon {
  font-size: 1rem !important;
  color: var(--md-primary-fg-color) !important;
  margin-bottom: 0.5rem !important;
}

/* Dark mode card adjustments */
[data-md-color-scheme="slate"] .grid.cards > ul > li {
  background: linear-gradient(135deg, rgba(45,55,72,0.9) 0%, rgba(30,41,59,1) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

[data-md-color-scheme="slate"] .grid.cards > ul > li:hover {
  border-color: var(--md-primary-fg-color) !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2) !important;
}

/* ===== Hero Section for Homepage ===== */
.md-content h1:first-of-type {
  font-size: 2.5rem !important;
  font-weight: 700 !important;
  background: linear-gradient(135deg, var(--md-primary-fg-color) 0%, #667eea 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem !important;
}

/* ===== Button Enhancements ===== */
.md-button {
  border-radius: 8px !important;
  padding: 0.6rem 1.2rem !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
}

.md-button--primary {
  background: linear-gradient(135deg, var(--md-primary-fg-color) 0%, #667eea 100%) !important;
  border: none !important;
}

.md-button--primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4) !important;
}

/* ===== Admonition Enhancements ===== */
.md-typeset .admonition,
.md-typeset details {
  border-radius: 8px !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}

/* ===== Blog Post Cards ===== */
.md-typeset .md-post {
  border-radius: 12px !important;
  overflow: hidden;
  transition: all 0.3s ease !important;
}

.md-typeset .md-post:hover {
  transform: translateY(-2px) !important;
}

/* ===== Tag Pills ===== */
.md-typeset .md-tag {
  border-radius: 20px !important;
  padding: 0.2rem 0.8rem !important;
  font-weight: 500 !important;
  transition: all 0.2s ease !important;
}

.md-typeset .md-tag:hover {
  transform: scale(1.05) !important;
}

/* ===== Table Enhancements ===== */
.md-typeset table:not([class]) {
  border-radius: 8px !important;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.md-typeset table:not([class]) th {
  background: linear-gradient(135deg, var(--md-primary-fg-color) 0%, #667eea 100%) !important;
  color: white !important;
  font-weight: 600 !important;
}

/* ===== Code Block Enhancements ===== */
.md-typeset pre {
  border-radius: 8px !important;
}

/* ===== Smooth Scrolling ===== */
html {
  scroll-behavior: smooth;
}

/* ===== Author Cards ===== */
.md-typeset .md-author {
  transition: all 0.2s ease !important;
}

.md-typeset .md-author:hover {
  transform: scale(1.1) !important;
}

/* Custom Author Grid for Authors Page */
.author-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.author-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(248,250,252,1) 100%);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.author-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.15);
  border-color: var(--md-primary-fg-color);
}

.author-card img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.author-card .author-info p {
  margin: 0;
}

/* Dark mode author cards */
[data-md-color-scheme="slate"] .author-card {
  background: linear-gradient(135deg, rgba(45,55,72,0.9) 0%, rgba(30,41,59,1) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-md-color-scheme="slate"] .author-card:hover {
  border-color: var(--md-primary-fg-color);
}

/* ===== Footer Enhancement ===== */
.md-footer {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
}

/* ===== Navigation Tab Hover ===== */
.md-tabs__link {
  transition: all 0.2s ease !important;
}

.md-tabs__link:hover {
  opacity: 1 !important;
  transform: translateY(-1px) !important;
}
