/* Blog Styles - в стиле основного сайта */

/* Ensure body and main have correct styles */
body {
  background-color: #060c1a;
}

main {
  background-color: #060c1a;
}

/* Blog Hero Section */
.blog-hero {
  padding: 120px 0 60px;
  background-color: #060c1a;
  text-align: center;
}

.blog-hero__title {
  font-size: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
  font-family: var(--font-family-accent, "Gilroy", sans-serif);
  font-weight: 600;
  background: linear-gradient(90deg, #82A7DA 0%, #7EE2E2 50%, #FFFFFF 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
  line-height: 1.2;
}

.blog-hero__description {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Blog Content */
.blog-content {
  padding: 60px 0;
  min-height: 600px;
  background-color: #060c1a;
}

/* Blog Filters */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 50px;
}

.blog-filter {
  padding: 10px 24px;
  border: 2px solid rgba(20, 97, 204, 0.3);
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 500;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-family-base, "Manrope", sans-serif);
}

.blog-filter:hover {
  border-color: rgba(20, 97, 204, 0.6);
  background: rgba(20, 97, 204, 0.1);
  transform: translateY(-2px);
}

.blog-filter--active {
  border-color: #1461cc;
  background: linear-gradient(90deg, #1461cc 0%, #04dbd6 100%);
  color: #060c1a;
}

/* Blog Posts Grid */
.blog-posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.blog-post-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.blog-post-card:hover {
  transform: translateY(-8px);
  border-color: rgba(20, 97, 204, 0.5);
  box-shadow: 0 20px 40px rgba(20, 97, 204, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.blog-post-card__image-container {
  position: relative;
  width: 100%;
  padding-top: 60%;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(130, 167, 218, 0.1) 0%, rgba(126, 226, 226, 0.1) 100%);
}

.blog-post-card__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-post-card:hover .blog-post-card__image {
  transform: scale(1.05);
}

.blog-post-card__content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-post-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.blog-post-card__category {
  padding: 4px 12px;
  background: rgba(20, 97, 204, 0.2);
  color: #04dbd6;
  font-size: 12px;
  font-weight: 600;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-post-card__date,
.blog-post-card__read-time {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.blog-post-card__title {
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-post-card__excerpt {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.blog-post-card__keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.blog-post-card__keyword {
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Blog Loader */
.blog-loader {
  display: none;
  justify-content: center;
  align-items: center;
  padding: 40px 0;
}

.blog-loader--visible {
  display: flex;
}

.blog-loader__spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(20, 97, 204, 0.2);
  border-top-color: #1461cc;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Blog Preview Section (for Homepage) */
.blog-preview {
  padding: 80px 0;
  background-color: #060c1a;
  margin: 80px 0;
}

.blog-preview__header {
  text-align: center;
  margin-bottom: 50px;
}

.blog-preview__title {
  font-size: clamp(1.875rem, 1.5rem + 1.875vw, 3rem);
  font-family: var(--font-family-accent, "Gilroy", sans-serif);
  font-weight: 600;
  background: linear-gradient(90deg, #82A7DA 0%, #7EE2E2 50%, #FFFFFF 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
  line-height: 1.2;
}

.blog-preview__description {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto;
}

.blog-preview__posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 380px));
  gap: 30px;
  margin-bottom: 40px;
  justify-content: center;
}

.blog-preview__footer {
  text-align: center;
  margin-top: 40px;
}

.blog-preview__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.625rem 1.625rem;
  font-size: 15px;
  font-weight: 500;
  color: #060c1a;
  background: linear-gradient(90deg, #1461cc 0%, #04dbd6 100%);
  border-radius: 1.875rem;
  border: none;
  text-decoration: none;
  transition: all 0.3s ease;
}

.blog-preview__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(20, 97, 204, 0.3);
}

/* Blog Article Page */
.breadcrumbs {
  padding: 30px 0 20px;
  margin-left: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid rgba(20, 97, 204, 0.4);
  padding-left: 20px;
  border-radius: 8px;
  padding-top: 12px;
  padding-bottom: 12px;
  max-width: fit-content;
}

.breadcrumbs__link {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: all 0.2s ease;
  font-weight: 500;
}

.breadcrumbs__link:hover {
  color: #04dbd6;
  text-decoration: none;
}

.breadcrumbs__separator {
  color: rgba(255, 255, 255, 0.3);
  font-weight: 300;
}

.breadcrumbs__current {
  color: #ffffff;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 400px;
}

.blog-article {
  padding: 40px 0 60px;
  max-width: 900px;
  margin: 0 auto;
  background-color: #060c1a;
}

.blog-article__header {
  margin-bottom: 40px;
}

.blog-article__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.blog-article__category {
  padding: 6px 16px;
  background: rgba(20, 97, 204, 0.2);
  color: #04dbd6;
  font-size: 13px;
  font-weight: 600;
  border-radius: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-article__date,
.blog-article__read-time {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

.blog-article__title {
  font-size: clamp(1.75rem, 1.5rem + 1.25vw, 2.75rem);
  font-family: var(--font-family-accent, "Gilroy", sans-serif);
  font-weight: 600;
  background: linear-gradient(90deg, #82A7DA 0%, #7EE2E2 50%, #FFFFFF 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.3;
  margin-bottom: 20px;
}

.blog-article__excerpt {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  font-weight: 300;
}

.blog-article__image-container {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  border-radius: 16px;
  margin-bottom: 40px;
  background: linear-gradient(135deg, rgba(130, 167, 218, 0.1) 0%, rgba(126, 226, 226, 0.1) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.blog-article__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-article__content {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
}

.blog-article__content p {
  margin-bottom: 20px;
}

.blog-article__content h2 {
  font-size: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
  font-family: var(--font-family-accent, "Gilroy", sans-serif);
  font-weight: 600;
  background: linear-gradient(90deg, #82A7DA 0%, #7EE2E2 50%, #FFFFFF 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 40px;
  margin-bottom: 20px;
  line-height: 1.3;
}

.blog-article__content h3 {
  font-size: clamp(1.25rem, 1rem + 1.25vw, 1.5rem);
  font-weight: 600;
  color: #ffffff;
  margin-top: 30px;
  margin-bottom: 16px;
  line-height: 1.3;
}

.blog-article__content ul,
.blog-article__content ol {
  margin-bottom: 20px;
  padding-left: 30px;
}

.blog-article__content li {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.85);
}

.blog-article__content a {
  color: #04dbd6;
  text-decoration: none;
  border-bottom: 1px solid rgba(4, 219, 214, 0.3);
  transition: all 0.2s;
}

.blog-article__content a:hover {
  border-bottom-color: #04dbd6;
}

.blog-article__keywords {
  margin: 40px 0;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-article__keyword {
  display: inline-block;
  padding: 6px 14px;
  margin: 6px 6px 6px 0;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-article__footer {
  margin-top: 40px;
}

.blog-article__back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(20, 97, 204, 0.1);
  color: #04dbd6;
  text-decoration: none;
  border-radius: 25px;
  border: 2px solid rgba(20, 97, 204, 0.3);
  font-weight: 500;
  transition: all 0.3s ease;
}

.blog-article__back-link:hover {
  background: rgba(20, 97, 204, 0.2);
  border-color: #1461cc;
  transform: translateX(-4px);
}

/* Related Posts */
.blog-related {
  padding: 60px 0;
  max-width: 1200px;
  margin: 0 auto;
  background-color: #060c1a;
}

.blog-related__title {
  font-size: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
  font-family: var(--font-family-accent, "Gilroy", sans-serif);
  font-weight: 600;
  background: linear-gradient(90deg, #82A7DA 0%, #7EE2E2 50%, #FFFFFF 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 30px;
  text-align: center;
}

.blog-related__posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* Responsive */
@media (max-width: 768px) {
  .blog-hero {
    padding: 80px 0 40px;
  }

  .blog-posts {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .blog-preview__posts {
    grid-template-columns: 1fr;
  }

  .blog-article__content {
    font-size: 16px;
  }

  .blog-filters {
    gap: 8px;
  }

  .blog-filter {
    font-size: 13px;
    padding: 8px 18px;
  }

  .blog-preview {
    padding: 60px 0;
    margin: 60px 0;
  }

  .breadcrumbs {
    margin-left: 20px;
    padding-left: 15px;
    font-size: 13px;
  }

  .breadcrumbs__current {
    max-width: 200px;
  }
}

@media (max-width: 480px) {
  .blog-post-card__title {
    font-size: 18px;
  }

  .breadcrumbs {
    margin-left: 10px;
    padding-left: 12px;
    font-size: 12px;
    gap: 6px;
  }

  .breadcrumbs__current {
    max-width: 150px;
  }
}
