/* ===== INSTRUCTIONS STYLES ===== */
/* Стили для инструкций в том же стиле что и новости */

/* Instructions Block (аналогично news-block) */
.news-instructions-block {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0;
  margin-top: 40px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.news-instructions-block .news-block-header {
  background: rgba(255, 255, 255, 0.05);
  padding: 24px 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.news-instructions-block .news-block-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.news-instructions-block .news-block-title h2 {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0;
}

.news-instructions-block .news-header-accent-line {
  height: 2px;
  background: linear-gradient(90deg, #FFD700 0%, transparent 100%);
  border-radius: 1px;
}

.news-instructions-block .news-block-content {
  padding: 24px 32px 32px;
}

/* Compact Action Button */
.news-compact-action-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #C8FE00 0%, #BFFF00 50%, #A8E600 100%);
  color: #000000;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(200, 254, 0, 0.3), 0 0 0 1px rgba(200, 254, 0, 0.2);
  border: none;
  cursor: pointer;
  user-select: none;
  z-index: 2;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.news-compact-action-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.news-compact-action-button:hover {
  box-shadow: 0 6px 25px rgba(200, 254, 0, 0.4), 0 0 0 1px rgba(200, 254, 0, 0.3);
}

.news-compact-action-button:hover::before {
  left: 100%;
}

.news-compact-action-button:active {
  /* Убрана анимация перемещения */
}

.news-compact-action-button .news-button-icon {
  font-size: 16px;
  transition: transform 0.3s ease;
}

.news-compact-action-button .news-button-text {
  font-weight: 700;
  font-size: 14px;
}

/* Instructions Navigation */
.news-instructions-navigation {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.news-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.news-nav-title {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0;
}

.news-nav-stats {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.news-stats-text {
  background: rgba(255, 215, 0, 0.1);
  color: #FFD700;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 215, 0, 0.2);
  font-weight: 500;
}

.news-nav-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.news-nav-category-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.news-nav-category-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.news-nav-category-btn:hover::before {
  left: 100%;
}

.news-nav-category-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 215, 0, 0.3);
  /* Убрана анимация перемещения */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.news-nav-category-btn.active {
  background: rgba(255, 215, 0, 0.15);
  border-color: rgba(255, 215, 0, 0.4);
  color: #FFD700;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.1);
}

.news-category-icon {
  font-size: 1rem;
}

.news-category-text {
  font-weight: 500;
}

.news-category-count {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}

.news-nav-category-btn.active .news-category-count {
  background: rgba(255, 215, 0, 0.2);
  color: #FFD700;
}

/* Instructions Grid */
.news-instructions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

/* Instruction Cards */
.news-instruction-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news-instruction-card:hover {
  border-color: rgba(255, 215, 0, 0.3);
  box-shadow: 0 8px 32px rgba(255, 215, 0, 0.1);
  /* Убрана анимация перемещения */
}

/* Instruction Image */
.news-instruction-image {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 62.5%; /* 8:5 aspect ratio */
  overflow: hidden;
}

.news-instruction-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-instruction-image-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 165, 0, 0.05));
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-weight: 500;
  gap: 8px;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.news-instruction-image-placeholder svg {
  opacity: 0.8;
  color: rgba(255, 215, 0, 0.6);
}

.news-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
  pointer-events: none;
}

/* Instruction Content */
.news-instruction-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Instruction Meta */
.news-instruction-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.news-instruction-category {
  color: rgba(255, 215, 0, 0.8);
  font-size: 0.9rem;
  font-weight: 500;
  background: rgba(255, 215, 0, 0.1);
  padding: 4px 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.news-instruction-date {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Instruction Title */
.news-instruction-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 12px 0;
  color: #fff;
  line-height: 1.4;
  flex-grow: 1;
}

/* Instruction Description */
.news-instruction-description {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0 0 20px 0;
  flex-grow: 1;
}

/* Instruction Actions */
.news-instruction-actions {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: block;
}

.news-instruction-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  width: 100%;
  justify-content: center;
}

.news-instruction-read-more::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.news-instruction-read-more:hover::before {
  left: 100%;
}

.news-instruction-read-more:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 215, 0, 0.3);
  /* Убрана анимация перемещения */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.news-link-icon {
  transition: transform 0.3s ease;
  font-size: 0.8rem;
}

.news-instruction-read-more:hover .news-link-icon {
  transform: translateX(2px);
}

/* No Instructions State */
.news-no-instructions {
  text-align: center;
  padding: 60px 20px;
  color: rgba(255, 255, 255, 0.6);
}

.news-no-instructions-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

.news-no-instructions-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 12px 0;
  color: rgba(255, 255, 255, 0.8);
}

.news-no-instructions-text {
  font-size: 1rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
}

/* Instructions Development Notice */
.news-instructions-development-notice {
  text-align: center;
  padding: 60px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.news-development-icon {
  margin-bottom: 24px;
  color: rgba(255, 215, 0, 0.8);
}

.news-development-title {
  font-size: 2rem;
  font-weight: 600;
  margin: 0 0 16px 0;
  color: #fff;
}

.news-development-description {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 32px 0;
  line-height: 1.6;
}

.news-development-features {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.news-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.news-feature-icon {
  font-size: 1.2rem;
}

.news-feature-text {
  font-size: 0.9rem;
}

/* Animations */
@keyframes news-fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Styles */
@media (max-width: 768px) {
  .news-instructions-navigation {
    padding: 20px;
  }
  
  .news-nav-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .news-nav-categories {
    gap: 8px;
  }
  
  .news-nav-category-btn {
    padding: 10px 14px;
    font-size: 0.85rem;
  }
  
  .news-instructions-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .news-instruction-content {
    padding: 16px;
  }
  
  .news-instruction-title {
    font-size: 1.1rem;
  }
  
  .news-development-features {
    flex-direction: column;
    gap: 16px;
  }
  
  .news-feature-item {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .news-nav-categories {
    flex-direction: column;
  }
  
  .news-nav-category-btn {
    width: 100%;
    justify-content: space-between;
  }
}
