/* ===== Базовые настройки ===== */
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap");

:root {
  /* Цветовая схема */
  --accent: #0eb4eb;
  --accent-dark: #0984b3;
  --red: #ff4757;
  --yellow: #ffa502;

  /* Фон */
  --bg: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
    url("fon2.jpg") no-repeat center/cover fixed;
}

/* ===== Глобальные стили ===== */
body {
  font-family: "Roboto", Arial, sans-serif;
  background: var(--bg);
  color: white;
  min-height: 100vh;
  line-height: 1.6;
  margin: 0;
  padding: 20px;
}

a {
  color: var(--red);
  text-decoration: none;
  transition: all 0.3s;
}
a:hover {
  color: var(--yellow);
  text-decoration: underline;
}
a:visited {
  color: var(--accent-dark);
}

/* ===== Лоадер ===== */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8));
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.5s ease-out;
}

.loader-spinner {
  border: 5px solid rgba(14, 180, 235, 0.3);
  border-top-color: #0eb4eb;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===== Основная структура ===== */
.container {
  max-width: 750px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
}

/* ===== Карточки ===== */
.card {
  background: rgba(10, 25, 47, 0.7);
  backdrop-filter: blur(6px);
  border: 1px solid var(--accent);
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 5px 20px rgba(14, 180, 235, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(14, 180, 235, 0.2);
}

/* ===== Профиль ===== */
.info {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 30px;
}

.avatar {
  width: 200px;
  border-radius: 25px;
  box-shadow: 0 10px 20px rgba(14, 180, 235, 0.3);
  transition: transform 0.3s;
}

.avatar:hover {
  transform: scale(1.03);
}

.info-text h1 {
  color: var(--accent);
  margin-top: 0;
  font-size: 2.2rem;
}

/* ===== Таблицы ===== */
.table {
  width: 100%;
  border-collapse: collapse;
}

.table td {
  padding: 10px;
  border-bottom: 1px solid rgba(14, 180, 235, 0.3);
}

.table tr:last-child td {
  border-bottom: none;
}

/* ===== Формы ===== */
.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: none;
  border-bottom: 2px solid var(--accent);
  color: white;
  padding: 12px;
  margin-bottom: 15px;
  font-family: inherit;
  transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: var(--red);
  outline: none;
  background: rgba(0, 0, 0, 0.5);
}

.btn {
  background: linear-gradient(45deg, var(--red), #e84118);
  color: white;
  border: none;
  padding: 15px 30px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  width: 100%;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 71, 87, 0.4);
}

/* ===== Адаптивность ===== */
@media (max-width: 768px) {
  .info {
    flex-direction: column;
    text-align: center;
  }

  .avatar {
    width: 150px;
  }

  .card {
    padding: 15px;
  }
}
/* Стили для секции блога */
.blog-section {
  margin-top: 2rem;
}

.blog-posts {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.post {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.post:hover {
  transform: translateY(-5px);
}

.post h3 {
  color: var(--accent);
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.post-meta {
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: 1rem;
}

.post-excerpt {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.read-more {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}

.read-more:hover {
  text-decoration: underline;
}

.no-posts {
  text-align: center;
  color: #888;
  font-style: italic;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: white;
}

.text-center {
  text-align: center;
}
@media (max-width: 480px) {
  body {
    padding: 10px;
  }

  .info-text h1 {
    font-size: 1.8rem;
  }
}

/* ===== Стили для видео-аватара ===== */
video.avatar {
  width: 100%;
  height: 100%;
  max-width: 200px;
  max-height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  box-shadow: 0 10px 20px rgba(14, 180, 235, 0.3);
  transition: transform 0.3s;
  background: #000;
}

video.avatar:hover {
  transform: scale(1.03);
}

video.avatar img {
  display: none;
}

video.avatar[poster] {
  background: linear-gradient(45deg, #0a192f, #172a45);
}
