/* Post-specific styles for HooshYar blog posts */
.post-main {
  max-width: 1100px;
  margin: 3rem auto 2rem auto;
  background: rgba(255,255,255,0.13);
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px 0 rgba(31,38,135,0.10);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border: 1.5px solid rgba(255,255,255,0.18);
  padding: 2.5rem 2rem 2rem 2rem;
  color: #fff;
  text-align: right;
}
.post-main img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 1.1rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 12px #0002;
  background: #314d6c;
}
.post-main h1 {
  font-size: 2.1rem;
  color: #b2d7ff;
  margin-bottom: 1.2rem;
  font-weight: bold;
}
.post-main p {
  color: #e0e1ee;
  font-size: 1.13rem;
  line-height: 2.1;
  margin-bottom: 1.5rem;
}
.post-back-link {
  display: inline-block;
  margin-top: 2.2rem;
  padding: 0.5em 1.5em;
  background: rgba(49,77,108,0.18);
  color: #b2d7ff;
  border-radius: 2em;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 2px 8px #0001;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.post-back-link:hover, .post-back-link:focus {
  background: #b2d7ff;
  color: #314d6c;
  box-shadow: 0 4px 16px #b2d7ff44;
}
.post-layout {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0;
}
@media (max-width: 900px) {
  .post-layout {
    flex-direction: column;
  }
}
.tag-panel {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.2rem;
  width: auto;
  margin-right: 0;
  margin-bottom: 2rem;
  background: rgba(49,77,108,0.13);
  border-radius: 1rem;
  padding: 1.2rem 1rem 1rem 1rem;
  box-shadow: 0 2px 8px #0001;
  color: #b2d7ff;
  font-size: 1rem;
}
.tag-panel h3 {
  font-size: 1.1rem;
  margin: 0 0.8rem 0 0;
  color: #b2d7ff;
  font-weight: bold;
  white-space: nowrap;
}
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  padding: 0;
  margin: 0;
  list-style: none;
  align-items: center;
}
.tag-list li {
  margin: 0;
}
.tag-link {
  display: inline-block;
  background: #314d6c;
  color: #b2d7ff;
  border-radius: 1.2em;
  padding: 0.3em 1em;
  font-size: 0.97em;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.tag-link:hover, .tag-link:focus {
  background: #b2d7ff;
  color: #314d6c;
}
@media (max-width: 700px) {
  .tag-panel {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin-right: 0;
    margin-bottom: 1.5rem;
    gap: 0.5rem;
  }
}

/* Blog index (posts.html) card styles - improved layout */
.post-summary {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: rgba(255,255,255,0.13);
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px 0 rgba(31,38,135,0.10);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border: 1.5px solid rgba(255,255,255,0.18);
  padding: 1.5rem 1.2rem 1.5rem 1.2rem;
  color: #fff;
  transition: transform 0.18s, box-shadow 0.18s;
  min-height: 220px;
  margin: 0;
}
.post-summary:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 12px 40px 0 rgba(31,38,135,0.18);
}
.post-summary-row1 {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.1rem;
}
.post-summary img {
  width: 170px;
  height: 120px;
  object-fit: cover;
  border-radius: 1.1rem;
  box-shadow: 0 2px 12px #0002;
  background: #314d6c;
  flex-shrink: 0;
}
.post-summary h2 {
  color: rgb(85, 26, 139);
  font-size: 1.18rem;
  font-weight: bold;
  margin: 0;
  line-height: 1.4;
  flex: 1 1 auto;
}
.post-summary-row2 {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 1 1 auto;
}
.post-summary p {
  color: #e0e1ee;
  font-size: 1.08rem;
  margin-bottom: 1.2rem;
  line-height: 2.1;
  text-align: justify;
}
.post-summary .post-back-link {
  display: inline-block;
  margin-top: 0.5rem;
  align-self: flex-end;
  padding: 0.5em 1.5em;
  background: rgba(49,77,108,0.18);
  color: #b2d7ff;
  border-radius: 2em;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 2px 8px #0001;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.post-summary .post-back-link:hover, .post-summary .post-back-link:focus {
  background: #b2d7ff;
  color: #314d6c;
  box-shadow: 0 4px 16px #b2d7ff44;
}
.post-summary a:visited {
  color: inherit;
}
@media (max-width: 900px) {
  .post-summary {
    min-height: 0;
    padding: 1.1rem 0.7rem 1.1rem 0.7rem;
  }
  .post-summary-row1 {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
  }
  .post-summary img {
    width: 100%;
    height: 120px;
    border-radius: 1.1rem;
  }
  .post-summary h2 {
    font-size: 1.05rem;
  }
} 

@media (max-width: 700px) {
  .post-main {
    padding: 1.1rem 0.4rem 1.1rem 0.4rem;
    border-radius: 0.7rem;
    margin: 1.2rem 0.1rem 1.2rem 0.1rem;
    font-size: 0.98rem;
  }
  .post-main h1 {
    font-size: 1.25rem;
    margin-bottom: 0.7rem;
  }
  .post-main img {
    max-height: 160px;
    border-radius: 0.7rem;
    margin-bottom: 1rem;
  }
  .ollama-table {
    font-size: 0.92em;
    border-radius: 0.5em;
    margin: 1em 0 1.2em 0;
    display: block;
    overflow-x: auto;
    box-shadow: none;
  }
  .ollama-table th, .ollama-table td {
    padding: 0.45em 0.2em;
    font-size: 0.95em;
    min-width: 90px;
  }
  .ollama-table tr {
    display: table-row;
  }
  .tag-panel {
    padding: 0.7rem 0.4rem 0.7rem 0.4rem;
    border-radius: 0.7rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 500px) {
  .post-main {
    padding: 0.5rem 0.1rem 0.5rem 0.1rem;
    border-radius: 0.4rem;
    margin: 0.5rem 0 0.5rem 0;
    font-size: 0.93rem;
  }
  .post-main h1 {
    font-size: 1.05rem;
  }
  .ollama-table th, .ollama-table td {
    font-size: 0.89em;
    min-width: 70px;
    padding: 0.3em 0.1em;
  }
}

/* Make sure .post-layout is always column on mobile */
@media (max-width: 900px) {
  .post-layout {
    flex-direction: column !important;
    gap: 0.5rem;
  }
} 

/* CTA Button Container - Eye-catching styles */
#cta-btn-container {
  background: linear-gradient(135deg, rgba(79,140,255,0.15) 0%, rgba(110,208,250,0.15) 100%);
  border: 2px solid rgba(79,140,255,0.3);
  border-radius: 1.5rem;
  padding: 2rem;
  margin: 2.5rem 0 1.5rem 0;
  text-align: center;
  box-shadow: 0 8px 32px rgba(79,140,255,0.2);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

#cta-btn-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
  animation: shimmer 3s infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

#cta-btn-container .cta-btn {
  display: inline-block;
  background: linear-gradient(90deg, #4f8cff 0%, #40bff6 100%);
  color: #fff !important;
  border: none;
  border-radius: 2.5em;
  padding: 1.2rem 3rem;
  font-size: 1.3rem;
  font-weight: bold;
  box-shadow: 0 8px 32px rgba(79,140,255,0.3);
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  outline: none;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

#cta-btn-container .cta-btn:hover, #cta-btn-container .cta-btn:focus {
  background: linear-gradient(90deg, #7ac7e9 0%, #4f8cff 100%);
  box-shadow: 0 12px 40px rgba(79,140,255,0.4);
  transform: translateY(-3px) scale(1.05);
  color: #fff !important;
}

#cta-btn-container br + * {
  color: #559be6;
  font-size: 1.1rem;
  font-weight: bold;
  margin-top: 1rem;
  display: block;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
} 

/* Fancy table styles for posts */
.ollama-table, .post-main table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 2rem 0;
  background: rgba(255,255,255,0.07);
  border-radius: 1em;
  overflow: hidden;
  box-shadow: 0 2px 12px #b2d7ff22;
}
.ollama-table th, .ollama-table td, .post-main table th, .post-main table td {
  border: 1px solid #b2d7ff44;
  padding: 1rem 0.7rem;
  text-align: right;
  font-size: 1.08rem;
  background: rgba(255,255,255,0.04);
}
.ollama-table th, .post-main table th {
  background: rgba(178,215,255,0.13);
  color: #1a3a5d;
  font-weight: bold;
}
.ollama-table tr:first-child th:first-child, .post-main table tr:first-child th:first-child {
  border-top-right-radius: 1em;
}
.ollama-table tr:first-child th:last-child, .post-main table tr:first-child th:last-child {
  border-top-left-radius: 1em;
}
.ollama-table tr:last-child td:first-child, .post-main table tr:last-child td:first-child {
  border-bottom-right-radius: 1em;
}
.ollama-table tr:last-child td:last-child, .post-main table tr:last-child td:last-child {
  border-bottom-left-radius: 1em;
}
.ollama-table tr:hover td, .post-main table tr:hover td {
  background: rgba(178,215,255,0.09);
  transition: background 0.2s;
} 