/* Blog page specific styles */

.blog-hero {
  padding-top: 6rem;
  text-align: center;
}

.blog-hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  max-width: 720px;
  margin: 0 auto;
}

.blog-hero .home__title {
  margin-bottom: 1rem;
}

.blog-hero .home__info-description {
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.6;
}

.blog__container {
  row-gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.blog__card {
  background: var(--container-color);
  border-radius: 1rem;
  padding: 1.25rem 1.25rem 1rem;
  box-shadow: 0 10px 30px hsla(207, 24%, 24%, .08);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  border: 1px solid hsla(207, 24%, 24%, .08);
}

.blog__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px hsla(207, 24%, 24%, .12);
}

.blog__meta {
  font-size: var(--smaller-font-size);
  color: var(--text-color-light);
  margin-bottom: .35rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.blog__title {
  font-size: var(--h3-font-size);
  margin-bottom: .4rem;
}

.blog__desc {
  font-size: var(--small-font-size);
  color: var(--text-color);
  margin-bottom: .75rem;
  line-height: 1.6;
}

.blog__links {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}

.blog__link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .45rem .75rem;
  border-radius: 999px;
  border: 1px solid var(--text-color-light);
  color: var(--title-color);
  font-size: var(--smaller-font-size);
  transition: border-color .2s ease, transform .2s ease;
}

.blog__link::after {
  content: '\2197';
  font-size: .8rem;
}

.blog__link:hover {
  border-color: var(--title-color);
  transform: translateY(-2px);
}

@media screen and (min-width: 768px) {
  .blog-hero {
    padding-top: 7rem;
  }
}

@media screen and (min-width: 1200px) {
  .blog__container {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
  }
}

/*=============== AI TOOLS COMPARISON ===============*/
.ai-category {
  margin-bottom: 3rem;
}

.ai-category__title {
  font-size: var(--h2-font-size);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--title-color);
}

.ai-category__title i {
  font-size: 1.5rem;
  color: var(--first-color);
}

.ai-table__wrapper {
  overflow-x: auto;
  border-radius: 0.75rem;
  box-shadow: 0 10px 30px hsla(207, 24%, 24%, .08);
  border: 1px solid hsla(207, 24%, 24%, .08);
}

.ai-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--container-color);
}

.ai-table thead {
  background: hsla(207, 65%, 65%, .1);
  border-bottom: 2px solid var(--text-color-light);
}

.ai-table thead th {
  padding: 1rem;
  text-align: left;
  font-weight: var(--font-semi-bold);
  font-size: var(--small-font-size);
  color: var(--title-color);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ai-table tbody tr {
  border-bottom: 1px solid hsla(207, 24%, 24%, .08);
  transition: background .2s ease;
}

.ai-table tbody tr:hover {
  background: hsla(207, 65%, 65%, .05);
}

.ai-table tbody td {
  padding: 0.875rem 1rem;
  font-size: var(--small-font-size);
  color: var(--text-color);
}

.ai-table tbody td strong {
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
}

.ai-table tbody tr:last-child {
  border-bottom: none;
}

@media screen and (max-width: 640px) {
  .ai-table {
    font-size: 0.875rem;
  }

  .ai-table thead th {
    padding: 0.75rem 0.5rem;
  }

  .ai-table tbody td {
    padding: 0.75rem 0.5rem;
  }
}

/*=============== YOUTUBE CHANNELS ===============*/
.youtube-category {
  margin-bottom: 3rem;
}

.youtube-category__title {
  font-size: var(--h2-font-size);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--title-color);
}

.youtube-category__title i {
  font-size: 1.5rem;
  color: var(--first-color);
}

.youtube__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.youtube__card {
  background: var(--container-color);
  border-radius: 0.75rem;
  padding: 1.25rem;
  box-shadow: 0 10px 30px hsla(207, 24%, 24%, .08);
  border: 1px solid hsla(207, 24%, 24%, .08);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.youtube__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px hsla(207, 24%, 24%, .12);
}

.youtube__name {
  font-size: var(--h3-font-size);
  color: var(--title-color);
  margin: 0;
  font-weight: var(--font-semi-bold);
}

.youtube__desc {
  font-size: var(--small-font-size);
  color: var(--text-color);
  margin: 0;
  line-height: 1.6;
  flex-grow: 1;
}

.youtube__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: hsla(207, 65%, 65%, .1);
  border-radius: 999px;
  color: var(--title-color);
  font-size: var(--small-font-size);
  font-weight: var(--font-semi-bold);
  transition: background .2s ease, transform .2s ease;
  width: fit-content;
}

.youtube__link i {
  font-size: 1rem;
}

.youtube__link:hover {
  background: hsla(207, 65%, 65%, .2);
  transform: translateY(-2px);
}

@media screen and (min-width: 768px) {
  .youtube__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (min-width: 1200px) {
  .youtube__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}