/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --font-main: 'Helvetica Neue', sans-serif;
  --color-bg: #f4f4f9;
  --color-text: #333;
  --color-primary: #1e88e5;
  --color-secondary: #1565c0;
  --max-width: 800px;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

header {
  width: 100%;
  max-width: var(--max-width);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  border-bottom: 2px solid #ddd;
  padding-bottom: 1rem;
}

header h1 a {
  color: var(--color-primary);
  text-decoration: none;
}

nav a {
  margin-left: 1rem;
  text-decoration: none;
  color: var(--color-secondary);
  font-weight: bold;
}

.hero {
  text-align: center;
  margin-bottom: 2rem;
}

.posts {
  width: 100%;
  max-width: var(--max-width);
}

article {
  background: white;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

article h3 a {
  color: var(--color-primary);
  text-decoration: none;
}

footer {
  margin-top: 4rem;
  font-size: 0.9rem;
  color: #777;
}

/* Chat Styles */
#chat-section {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 350px;
  height: 400px;
  background-color: white;
  border-top-left-radius: 8px;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#chat-box {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 10px;
}

#chat-content {
  flex: 1;
  overflow-y: auto;
  background-color: #f8f8f8;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px;
}

#chat-input {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ddd;
  width: 100%;
}

#send-btn {
  padding: 10px;
  background-color: var(--color-primary);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

#send-btn:hover {
  background-color: var(--color-secondary);
}

