:root {
  --primary: #D32F2F;
  --primary-dark: #B71C1C;
  --secondary: #FFB300;
  --background: #0A0A0A;
  --surface: #1E1E1E;
  --surface-light: #2A2A2A;
  --text: #FFFFFF;
  --text-secondary: #B0B0B0;
  --border: #333333;
  --success: #4CAF50;
  --error: #F44336;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  background: var(--surface);
  border-bottom: 2px solid var(--primary);
  padding: 40px 0;
  margin-bottom: 40px;
}

header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

#loading {
  text-align: center;
  padding: 60px 20px;
  font-size: 1.2rem;
  color: var(--text-secondary);
}

.error {
  background: var(--error);
  color: white;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.hidden {
  display: none !important;
}

.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(211, 47, 47, 0.2);
}

.post-header {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.social-icon {
  width: 32px;
  height: 32px;
  margin-right: 12px;
  border-radius: 6px;
}

.source-name {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--secondary);
}

.post-content {
  margin-bottom: 20px;
}

.post-content p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 16px;
  white-space: pre-wrap;
}

.post-image {
  width: 100%;
  border-radius: 8px;
  margin-top: 16px;
}

.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.post-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.post-footer a:hover {
  color: var(--secondary);
}

.timestamp {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

footer {
  text-align: center;
  padding: 40px 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

footer p {
  margin-bottom: 8px;
}

#last-updated {
  color: var(--secondary);
  font-weight: 600;
}

@media (max-width: 600px) {
  header h1 {
    font-size: 2rem;
  }

  .post-card {
    padding: 16px;
  }

  .post-footer {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}
