/* style.css — общие стили для всего сайта Raiden */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', 'Arial', sans-serif;
  background-color: #f5f5f5;
  color: #1a1a1a;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Шапка */
header {
  background: #0a0a0a;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  padding: 0.9rem 2rem;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid #333;
}

/* Контейнер навигации */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Логотип */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #ccc;
}

.logo-img::before {
  content: "⚡";
  font-size: 28px;
  display: block;
}

.logo-img[src]:not([src=""])::before {
  display: none;
}

.logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: #fff;
  text-transform: uppercase;
  transition: opacity 0.2s;
}

.logo:hover .logo-text {
  opacity: 0.8;
}

/* Навигационное меню */
nav {
  display: flex;
  justify-content: flex-end;
}

.nav-menu {
  display: flex;
  gap: 3rem;
  list-style: none;
  flex-wrap: wrap;
  justify-content: flex-end;
  padding: 0;
  margin: 0;
}

.nav-button {
  background: transparent;
  border: none;
  color: #ccc;
  font-size: 1.2rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.5rem 1rem;
  border-radius: 40px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  font-family: inherit;
  border-bottom: 2px solid transparent;
}

.nav-button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-bottom: 2px solid #aaa;
  transform: translateY(-1px);
}

.nav-button.active {
  color: #fff;
  border-bottom: 2px solid #aaa;
  background: rgba(255, 255, 255, 0.03);
}

/* Основной контент */
main {
  flex: 1;
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 2rem;
  width: 100%;
}

.content-card {
  background: #fff;
  border-radius: 28px;
  padding: 2.8rem 3rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  border: 1px solid #e0e0e0;
}

h2 {
  font-size: 2.2rem;
  font-weight: 300;
  color: #111;
  margin-bottom: 1.8rem;
  border-left: 6px solid #333;
  padding-left: 1.4rem;
}

/* Текст главной (динамический) */
.home-text {
  font-size: 1.2rem;
  color: #2a2a2a;
  white-space: pre-wrap;
  line-height: 1.7;
}

/* Подвал */
footer {
  background: #0a0a0a;
  color: #aaa;
  padding: 1.8rem 2rem;
  font-size: 1rem;
  border-top: 1px solid #333;
  margin-top: 1rem;
  /* убраны display:flex, position:relative и т.п. */
}

/* Контейнер динамического содержимого футера */
#footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

#footer-content p {
  margin: 0;
  white-space: nowrap;
}

/* Социальные иконки */
.footer-social {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.social-icon img {
  width: 48px;
  height: 48px;
  filter: grayscale(100%) brightness(0.8);
  transition: filter 0.2s, transform 0.2s;
}

.social-icon img:hover {
  filter: grayscale(0%) brightness(1);
  transform: scale(1.1);
}

/* Стили для страницы гайдов (лента) */
.guides-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.guide-row {
  display: flex;
  align-items: flex-start;
  background: #fff;
  border-radius: 20px;
  padding: 1.8rem 2rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.03);
  border: 1px solid #eaeaea;
  transition: box-shadow 0.15s;
}

.guide-row:hover {
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}

.guide-icon {
  flex-shrink: 0;
  font-size: 4rem;
  margin-right: 2rem;
  width: 80px;
  text-align: center;
}

.guide-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.guide-title {
  font-size: 1.7rem;
  font-weight: 600;
  color: #111;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.guide-description {
  color: #333;
  margin-bottom: 0.8rem;
  line-height: 1.5;
}

.guide-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.guide-size {
  background: #f0f0f0;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
}

.guide-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Кнопки */
.btn {
  display: inline-block;
  background: #1a1a1a;
  color: white;
  padding: 0.9rem 2rem;
  border-radius: 60px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

.btn:hover {
  background: #333;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: #1a1a1a;
  box-shadow: 0 0 0 2px #1a1a1a;
}

.btn-outline:hover {
  background: #1a1a1a;
  color: white;
}

.btn-small {
  padding: 0.5rem 1.2rem !important;
  font-size: 0.95rem !important;
}

.btn-load {
  background: transparent;
  color: #1a1a1a;
  box-shadow: 0 0 0 2px #1a1a1a;
  padding: 0.9rem 2.5rem;
}

.btn-load:hover {
  background: #1a1a1a;
  color: white;
}

.load-more-container {
  text-align: center;
  margin-top: 2.5rem;
}

.no-guides {
  text-align: center;
  color: #777;
  padding: 3rem;
}

.loading, .error {
  text-align: center;
  padding: 2rem;
}

.note {
  margin-top: 2rem;
  padding: 1rem 1.5rem;
  background: #f0f0f0;
  border-radius: 18px;
  color: #333;
  font-size: 0.95rem;
  border-left: 4px solid #555;
}

/* Адаптивность */
@media (max-width: 700px) {
  header {
    padding: 0.7rem 1rem;
  }

  .navbar {
    flex-direction: column;
    gap: 1rem;
  }

  nav {
    justify-content: center;
  }

  .nav-menu {
    justify-content: center;
    gap: 0.8rem;
  }

  .nav-button {
    font-size: 1rem;
    padding: 0.4rem 0.8rem;
  }

  .logo-text {
    font-size: 1.5rem;
  }

  .logo-img {
    width: 40px;
    height: 40px;
  }

  main {
    padding: 0 1rem;
    margin: 2rem auto;
  }

  .content-card {
    padding: 1.8rem 1.5rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .guide-row {
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
  }

  .guide-icon {
    margin-right: 0;
    margin-bottom: 1rem;
    width: auto;
  }

  .guide-meta {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

    /* Языковой переключатель в навигации */
  .lang-selector {
    margin-left: 2rem; /* отступ от пунктов меню */
  }
  
  .lang-selector select {
    background: transparent;
    color: #ccc; /* как у кнопок навигации */
    border: 1px solid #555;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.2s;
    /* убираем стандартную стрелку (опционально) */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
  }
  
  .lang-selector select:hover {
    border-color: #aaa;
  }
  
  .lang-selector select:focus {
    outline: none;
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
  }
  
  /* Стили для выпадающих опций (в некоторых браузерах работает) */
  .lang-selector select option {
    background: #1a1a1a;
    color: #ccc;
  }
}
