/* Custom styles for kreisler-online */

/* Category page styling */
.category-posts {
  margin-top: 2rem;
}

.post-preview {
  border-bottom: 1px solid #e8e8e8;
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.post-preview:last-child {
  border-bottom: none;
}

.post-preview h3 {
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
}

.post-preview h3 a {
  color: #2a7ae4;
  text-decoration: none;
}

.post-preview h3 a:hover {
  text-decoration: underline;
}

.post-meta {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
  font-style: italic;
}

.post-preview p {
  color: #333;
  line-height: 1.6;
}

/* Category page headers */
.page-content h1 {
  color: #2a7ae4;
  border-bottom: 2px solid #2a7ae4;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

/* Navigation improvements */
.site-nav .page-link {
  margin-left: 1rem;
}

/* Responsive improvements */
@media screen and (max-width: 600px) {
  .post-preview h3 {
    font-size: 1.2rem;
  }
  
  .site-nav .page-link {
    margin-left: 0.5rem;
    font-size: 0.9rem;
  }
}

/* Home page improvements */
.home .post-list-heading {
  color: #2a7ae4;
  border-bottom: 2px solid #2a7ae4;
  padding-bottom: 0.5rem;
}

/* Author styling */
.post-meta .author {
  font-weight: bold;
  color: #2a7ae4;
}

/* Malerei-Post specific styling */
.malerei-image {
  text-align: center;
  margin: 2rem 0;
  background: #f8f8f8;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.malerei-image img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Universal hobby-post image styling */
.hobby-image {
  text-align: center;
  margin: 2rem 0;
  background: #f8f8f8;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.hobby-image img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.image-caption {
  font-style: italic;
  color: #666;
  font-size: 0.9rem;
  margin-top: 0.8rem;
  margin-bottom: 0;
}

/* Subcategory styling */
.post-subcategory {
  background: #2a7ae4;
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: bold;
}

/* Malerei category page improvements */
.malerei-posts .post-preview {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.malerei-posts .post-preview .post-thumbnail {
  flex-shrink: 0;
  width: 150px;
}

.malerei-posts .post-preview .post-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.malerei-posts .post-preview .post-content {
  flex: 1;
}

/* Filter buttons styling */
.filter-container {
  margin: 2rem 0;
  text-align: center;
}

.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.filter-btn {
  background: #f8f8f8;
  border: 2px solid #e0e0e0;
  color: #666;
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.filter-btn:hover {
  background: #e8e8e8;
  border-color: #2a7ae4;
  color: #2a7ae4;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(42, 122, 228, 0.2);
}

.filter-btn.active {
  background: #2a7ae4;
  border-color: #2a7ae4;
  color: white;
  box-shadow: 0 4px 12px rgba(42, 122, 228, 0.3);
}

.post-count {
  color: #666;
  font-style: italic;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* Animation for filtered posts */
.post-preview {
  transition: all 0.3s ease;
}

.post-preview.fade-in {
  animation: fadeIn 0.5s ease-in;
}

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

/* Responsive adjustments for malerei posts */
@media screen and (max-width: 600px) {
  .malerei-posts .post-preview {
    flex-direction: column;
    gap: 1rem;
  }
  
  .malerei-posts .post-preview .post-thumbnail {
    width: 100%;
  }
  
  .malerei-image {
    margin: 1rem 0;
    padding: 0.5rem;
  }
  
  .filter-buttons {
    gap: 0.3rem;
  }
  
  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
}

/* Footer links styling */
.footer-links {
  margin-top: 0;
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links li {
  margin: 0;
}

.footer-links a {
  color: #666;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #2a7ae4;
  text-decoration: underline;
}

@media screen and (max-width: 600px) {
  .footer-links ul {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Dark Mode Styles */
.dark-mode-toggle {
  background: none;
  border: 2px solid #2a7ae4;
  color: #2a7ae4;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  margin-left: 1rem;
}

.dark-mode-toggle:hover {
  background: #2a7ae4;
  color: white;
}

/* Dark mode color scheme */
.dark-mode {
  background-color: #1a1a1a;
  color: #e0e0e0;
}

.dark-mode .site-header {
  background-color: #2d2d2d;
  border-bottom: 1px solid #404040;
}

.dark-mode .site-title,
.dark-mode .site-nav .page-link {
  color: #e0e0e0 !important;
}

.dark-mode .site-nav .page-link:hover {
  color: #4a9eff !important;
}

.dark-mode .page-content {
  background-color: #1a1a1a;
}

.dark-mode .post-preview {
  border-bottom: 1px solid #404040;
}

.dark-mode .post-preview h3 a {
  color: #4a9eff;
}

.dark-mode .post-meta {
  color: #b0b0b0;
}

.dark-mode .post-preview p {
  color: #d0d0d0;
}

.dark-mode .page-content h1 {
  color: #4a9eff;
  border-bottom: 2px solid #4a9eff;
}

.dark-mode .malerei-image,
.dark-mode .hobby-image {
  background: #2d2d2d;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.dark-mode .filter-btn {
  background: #2d2d2d;
  border-color: #404040;
  color: #e0e0e0;
}

.dark-mode .filter-btn:hover {
  background: #404040;
  border-color: #4a9eff;
  color: #4a9eff;
}

.dark-mode .filter-btn.active {
  background: #4a9eff;
  border-color: #4a9eff;
  color: #1a1a1a;
}

.dark-mode .site-footer {
  background-color: #2d2d2d;
  border-top: 1px solid #404040;
}

.dark-mode .footer-links a {
  color: #b0b0b0;
}

.dark-mode .footer-links a:hover {
  color: #4a9eff;
}

.dark-mode .post-subcategory {
  background: #4a9eff;
  color: #1a1a1a;
}

/* Dark mode toggle positioning */
.site-nav {
  display: flex;
  align-items: center;
}

@media screen and (max-width: 600px) {
  .dark-mode-toggle {
    margin-left: 0.5rem;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
}