:root {
  --primary-color: #1a1a1a;
  --secondary-color: #f5f5f5;
  --accent-color: #0066cc;
  --text-color: #333;
  --light-text: #666;
  --border-color: #e0e0e0;
  --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  --header-height: 70px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.6;


  color: var(--text-color);
  background-color: var(--secondary-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.header-content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

h1 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  padding: 1em;
}

.search-container {
  width: 300px;
}

#search-input {
  width: 100%;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

#search-input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.1);
}

.container {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;

  padding: 1.5rem 1rem;
  flex: 1;
}

.sidebar {
  width: 250px;

  padding-right: 1.5rem;
  position: sticky;

  top: calc(var(--header-height) + 20px);
  align-self: flex-start;
  height: calc(100vh - var(--header-height) - 40px);
  overflow-y: auto;
}

.sidebar h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.content {
  flex: 1;
}

#philosophers-list {
  list-style: none;
}

#philosophers-list li {
  margin-bottom: 0.5rem;
}

#philosophers-list a {

  color: var(--text-color);
  text-decoration: none;
  display: block;
  /* padding: 0.5rem; */
  border-radius: 4px;
  transition: all 0.2s ease;
}

#philosophers-list a:hover {

  background-color: rgba(0, 0, 0, 0.05);
  color: var(--accent-color);
}

/* Add styles for philosopher logos */
.philosopher-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  padding: 0.25rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.philosopher-item:hover {
  background-color: rgba(0, 0, 0, 0.03);
}

.philosopher-logo-container {
  width: 32px;
  height: 32px;
  margin-right: 8px;
  border-radius: 50%;
  overflow: hidden;
  background-color: #8B4513;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.philosopher-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: #8B4513;
}

.philosopher-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  justify-content: center;
  align-items: flex-start;
}

.philosopher-name {
  font-weight: 500;
  color: var(--text-color);
  font-size: 0.875rem;
  margin: 0;
  padding: 0;
  line-height: 1.2;
}

.philosopher-publication {
  font-size: 0.8rem;
  color: #666;
  text-decoration: none;
  transition: all 0.2s ease;
  line-height: 1.2;
  word-wrap: break-word;
  hyphens: auto;
  margin: 0;
  padding: 0;
  margin-top: 1px;
  display: block;
}

.philosopher-publication:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

.post-card {
  display: flex;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  padding: 1rem;
  margin-bottom: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.post-image-container {
  flex: 0 0 140px;
  margin-right: 1rem;
  margin-top: -1rem;
  margin-bottom: -1rem;
  margin-left: -1rem;
}

.post-image-container a {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.post-image-container a:hover {
  opacity: 0.9;
}

.post-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 120px;
}

.post-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.post-title {
  font-size: 1.1rem;
  /* margin-bottom: 0.5rem; */
  line-height: 1.3;
  font-weight: 600;
}

.post-title a {
  color: var(--primary-color);
  text-decoration: none;
}

.post-title a:hover {
  color: var(--accent-color);
}

.post-subtitle {
  color: var(--light-text);
  margin-bottom: 1rem;
  font-size: 0.9rem;
  line-height: 1.4;
  flex-grow: 1;
}

.post-meta {
  font-size: 0.8rem;
  color: var(--light-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.loading {
  text-align: center;
  padding: 1rem;

  color: var(--light-text);
  display: none;
}

.no-results {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  padding: 2rem;
  text-align: center;
  color: var(--light-text);
}

footer {
  background-color: #fff;
  padding: 1rem;
  text-align: center;
  color: var(--light-text);
  font-size: 0.875rem;
  border-top: 1px solid var(--border-color);
}

/* Responsive styles */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    padding-right: 0;
    margin-bottom: 1.5rem;
    position: static;
    height: auto;
  }
  
  .header-content {
    flex-direction: column;
    padding: 0.75rem 1rem;
  }
  
  h1 {
    margin-bottom: 0.75rem;
  }
  
  .search-container {
    width: 100%;
  }
  
  header {
    height: auto;
  }
}

.publication-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.publication-link:hover {
  color: var(--accent-color, #0066cc);
  text-decoration: underline;
}

.author-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.author-link:hover {
  color: var(--accent-color, #0066cc);
  text-decoration: underline;
}

/* Add this to your styles.css file */

.new-content-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 15px;
  z-index: 1000;
  max-width: 300px;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateY(100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.notification-content h3 {
  margin: 0 0 10px 0;
  font-size: 16px;
}

.notification-content p {
  margin: 0 0 15px 0;
  font-size: 14px;
}

.refresh-button, .dismiss-button {
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  margin-right: 8px;
}

.refresh-button {
  background-color: var(--accent-color, #0066cc);
  color: white;
}

.dismiss-button {
  background-color: #f0f0f0;
  color: #333;
}

.refresh-button:hover {
  background-color: #0055aa;
}

.dismiss-button:hover {
  background-color: #e0e0e0;
}