/* ============================================================
   ÑÒÈËÈ ÄËß ÔÎÐÓÌÀ «ÐÎÄÈÍÛ ÐÏ»
   Ñòðóêòóðà:
   1. Ñáðîñ ñòèëåé è áàçîâûå íàñòðîéêè
   2. Øàïêà ñàéòà
   3. Íàâèãàöèÿ
   4. Îñíîâíîé êîíòåíò
   5. Ñïèñîê òåì/ñîîáùåíèé
   6. Êàðòî÷êà ïîëüçîâàòåëÿ
   7. Ôóòåð
   8. Àäàïòèâíîñòü
============================================================ */

/* 1. ÑÁÐÎÑ ÑÒÈËÅÉ È ÁÀÇÎÂÛÅ ÍÀÑÒÐÎÉÊÈ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

/* 2. ØÀÏÊÀ ÑÀÉÒÀ */
header {
  background: linear-gradient(to right, #1a3a8f, #2c5aa0);
  color: white;
  padding: 1rem 0;
  text-align: center;
  border-bottom: 3px solid #ff6b35;
}

.logo {
  font-size: 2rem;
  font-weight: bold;
  letter-spacing: 1px;
}

/* 3. ÍÀÂÈÃÀÖÈß */
nav {
  background-color: #2c3e50;
  padding: 0.5rem 0;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

nav a {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background-color 0.3s;
}

nav a:hover {
  background-color: #34495e;
}

/* 4. ÎÑÍÎÂÍÎÉ ÊÎÍÒÅÍÒ */
.container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

h1, h2, h3 {
  margin-bottom: 1rem;
  color: #1a3a8f;
}

/* 5. ÑÏÈÑÎÊ ÒÅÌ/ÑÎÎÁÙÅÍÈÉ */
.topic-list {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.topic-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #eee;
}

.topic-item:last-child {
  border-bottom: none;
}

.topic-title {
  flex: 1;
  font-weight: 600;
}

.topic-author {
  color: #7f8c8d;
  margin-right: 1rem;
}

.topic-replies {
  background: #3498db;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.9rem;
}

/* 6. ÊÀÐÒÎ×ÊÀ ÏÎËÜÇÎÂÀÒÅËß */
.user-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #ecf0f1;
  border-radius: 8px;
}

.avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.user-info h3 {
  margin-bottom: 0.25rem;
  color: #2c3e50;
}

.user-rank {
  color: #e74c3c;
  font-weight: bold;
}

/* 7. ÔÓÒÅÐ */
footer {
  background-color: #2c3e50;
  color: white;
  text-align: center;
  padding: 1.5rem 0;
  margin-top: 3rem;
}

footer p {
  margin: 0;
}

/* 8. ÀÄÀÏÒÈÂÍÎÑÒÜ */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  .topic-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .user-card {
    flex-direction: column;
    text-align: center;
  }
}
