﻿/* src/styles/sections.css */
/* Общие стили для страниц разделов (installation, update, bsod, drivers и т.д.) */

/* ===== ОСНОВНЫЕ КОНТЕЙНЕРЫ ===== */
.category-container {
  max-width: 1000px;
  margin: 40px auto;
  padding: 40px;
  background: white;
  border-radius: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ===== ХЛЕБНЫЕ КРОШКИ ===== */
.breadcrumbs {
  margin-bottom: 30px;
  font-size: 0.95rem;
  color: #666;
  padding: 12px 20px;
  background: #f8f9fa;
  border-radius: 50px;
  display: inline-block;
}

.breadcrumbs a {
  color: #0078d4;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumbs a:hover {
  text-decoration: underline;
  color: #005a9e;
}

/* ===== ЗАГОЛОВОК РАЗДЕЛА ===== */
h1 {
  font-size: 2.5rem;
  color: #0078d4;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.category-icon {
  font-size: 3rem;
  background: #f0f7ff;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 5px 15px rgba(0, 120, 212, 0.2);
}

.category-description {
  font-size: 1.2rem;
  color: #444;
  margin-bottom: 40px;
  line-height: 1.7;
  padding-left: 95px;
}

/* ===== СЕТКА СТАТЕЙ ===== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  margin: 40px 0;
}

.article-card {
  display: flex;
  flex-direction: column;
  background: white;
  padding: 25px;
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  color: inherit;
  border: 1px solid #eaeef2;
  transition: all 0.3s ease;
  height: 100%;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 120, 212, 0.1);
  border-color: #0078d4;
}

.article-card h2 {
  color: #0078d4;
  margin-bottom: 10px;
  font-size: 1.3rem;
  font-weight: 600;
}

.article-description {
  color: #666;
  margin-bottom: 15px;
  line-height: 1.5;
  font-size: 0.95rem;
  flex: 1;
}

.article-date {
  display: inline-block;
  margin-bottom: 15px;
  font-size: 0.85rem;
  color: #999;
}

.read-more {
  color: #0078d4;
  font-weight: 500;
  margin-top: auto;
}

/* ===== ЗАГЛУШКА ===== */
.coming-soon {
  text-align: center;
  padding: 60px 40px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 30px;
  margin: 40px 0;
  border: 1px solid rgba(0, 120, 212, 0.1);
}

.coming-soon-icon {
  font-size: 5rem;
  margin-bottom: 20px;
  animation: bounce 2s infinite ease-in-out;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.coming-soon h2 {
  font-size: 2rem;
  color: #0078d4;
  margin-bottom: 20px;
  border: none;
  padding: 0;
}

.coming-soon p {
  font-size: 1.2rem;
  color: #495057;
  margin-bottom: 15px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.coming-soon .small {
  font-size: 1rem;
  color: #868e96;
}

/* ===== КНОПКИ ===== */
.action-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
}

.action-button {
  display: inline-block;
  padding: 15px 35px;
  background: white;
  color: #0078d4;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid #0078d4;
  font-size: 1rem;
}

.action-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 120, 212, 0.2);
  background: #f0f7ff;
}

.action-button.primary {
  background: #0078d4;
  color: white;
}

.action-button.primary:hover {
  background: #005a9e;
  border-color: #005a9e;
  color: white;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1024px) {
  .category-container {
    max-width: 90%;
    margin: 30px auto;
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .category-container {
    max-width: 92%;
    margin: 20px auto;
    padding: 25px;
  }

  h1 {
    font-size: 2rem;
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .category-icon {
    width: 70px;
    height: 70px;
    font-size: 2.5rem;
  }

  .category-description {
    padding-left: 0;
    text-align: center;
    font-size: 1.1rem;
  }

  .articles-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .action-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .action-button {
    width: 100%;
    text-align: center;
    padding: 12px 25px;
  }

  .breadcrumbs {
    display: block;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 480px) {
  .category-container {
    max-width: 94%;
    padding: 20px;
  }

  h1 {
    font-size: 1.8rem;
  }

  .category-icon {
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }

  .coming-soon {
    padding: 40px 20px;
  }

  .coming-soon h2 {
    font-size: 1.5rem;
  }

  .coming-soon p {
    font-size: 1rem;
  }
}

@media (max-width: 360px) {
  .category-container {
    max-width: 96%;
    padding: 15px;
  }

  h1 {
    font-size: 1.5rem;
  }

  .breadcrumbs {
    font-size: 0.8rem;
    padding: 10px;
  }
}

/* ===== СТИЛИ ДЛЯ ГЛАВНОЙ СТРАНИЦЫ ДОКУМЕНТАЦИИ (/docs) ===== */
.docs-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
}

/* Сетка разделов */
.sections-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: center;
  margin-bottom: 60px;
}

.section-card {
  flex: 0 1 calc(33.333% - 25px);
  min-width: 280px;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  background: white;
  padding: 30px 25px;
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  border: 1px solid #eaeef2;
}

.section-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 120, 212, 0.1);
  border-color: #0078d4;
}

.section-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.section-card h2 {
  color: #0078d4;
  margin-bottom: 0.5em;
  font-size: 1.3rem;
  font-weight: 600;
}

.section-card p {
  color: #666;
  margin-bottom: 1em;
  line-height: 1.6;
  flex: 1;
  font-size: 1rem;
}

.section-link {
  color: #0078d4;
  font-weight: 500;
  display: inline-block;
  transition: transform 0.2s ease;
  margin-top: auto;
}

.section-card:hover .section-link {
  transform: translateX(5px);
}

/* Статистика */
.stats-section {
  display: flex;
  justify-content: space-around;
  padding: 40px;
  background: white;
  border-radius: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  margin-top: 40px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #0078d4;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 1rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Планшеты */
@media (max-width: 992px) {
  .section-card {
    flex: 0 1 calc(50% - 25px);
  }
}

/* Мобильные */
@media (max-width: 768px) {
  .stats-section {
    flex-direction: column;
    gap: 30px;
    padding: 30px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  .subtitle {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.8rem;
  }
}