/*
Theme Name: Hundmaten SEO Theme
Description: A lightweight, SEO-optimized WordPress theme designed for hundmaten.com to boost pippifoder.se rankings
Version: 1.0
Author: Your Name
Text Domain: hundmaten
*/

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: black;
  background-color: #f8f9fa;
  font-size: 16px;
}

ul {
  margin-left: 35px;
  margin-bottom: 20px;
}

/* Container and Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.main-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin: 40px 0;
}

/* Header Styles */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e1e1e1;
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  font-size: 2rem;
  font-weight: 700;
  color: #2c3e50;
  text-decoration: none;
}

.site-title:hover {
  color: #3498db;
}

.site-description {
  font-size: 0.9rem;
  color: #666;
  margin-top: 5px;
}

/* Navigation */
.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

.main-navigation a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 10px 0;
  transition: color 0.3s ease;
}

.main-navigation a:hover {
  color: #3498db;
}

/* Article Styles */
.article-card {
  background: #fff;
  border: 1px solid #e1e1e1;
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 30px;
  transition: box-shadow 0.3s ease;
}

.article-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.article-title {
  font-size: 1.8rem;
  margin-bottom: 15px;
  line-height: 1.3;
}

.article-title a {
  color: #2c3e50;
  text-decoration: none;
}

.article-title a:hover {
  color: #3498db;
}

.article-meta {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 20px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.article-excerpt {
  line-height: 1.7;
  margin-bottom: 20px;
  color: #555;
}

.read-more {
  display: inline-block;
  background: #3498db;
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: background 0.3s ease;
}

.read-more:hover {
  background: #2980b9;
}

/* Single Post Styles */
.single-article {
  background: #fff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.single-article h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #2c3e50;
}

.single-article h2 {
  font-size: 1.8rem;
  margin: 30px 0 15px;
  color: #34495e;
}

.single-article h3 {
  font-size: 1.4rem;
  margin: 25px 0 12px;
  color: #34495e;
}

.single-article p {
  margin-bottom: 20px;
  line-height: 1.8;
}

.single-article img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 20px 0;
}

/* Sidebar Styles */
.sidebar {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  height: fit-content;
}

.widget {
  margin-bottom: 30px;
}

.widget-title {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #2c3e50;
  border-bottom: 2px solid #3498db;
  padding-bottom: 8px;
}

.widget ul {
  list-style: none;
}

.widget li {
  padding: 8px 0;
  border-bottom: 1px solid #e1e1e1;
}

.widget a {
  color: #555;
  text-decoration: none;
}

.widget a:hover {
  color: #3498db;
}

/* Footer */
.site-footer {
  background: #2c3e50;
  color: #ecf0f1;
  padding: 40px 0 20px;
  margin-top: 60px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-section h3 {
  margin-bottom: 15px;
  color: #3498db;
}

.footer-section a {
  color: #bdc3c7;
  text-decoration: none;
}

.footer-section a:hover {
  color: #3498db;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #34495e;
  color: #95a5a6;
}

/* SEO-focused Internal Links */
.internal-links {
  background: #eef6ff;
  padding: 20px;
  border-radius: 8px;
  margin: 30px 0;
  border-left: 4px solid #3498db;
}

.internal-links h3 {
  margin: 0;
  color: #2c3e50;
}

.internal-links ul {
  /*list-style: none;*/
  
  margin-bottom: 0;
}

.internal-links li {
  margin-bottom: 8px;
}

.internal-links a {
  color: #3498db;
  text-decoration: none;
  font-weight: 500;
}

.internal-links a:hover {
  text-decoration: underline;
}

/* Breadcrumbs */
.breadcrumbs {
  background: #f8f9fa;
  padding: 15px 0;
  font-size: 0.9rem;
}

.breadcrumbs a {
  color: #3498db;
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

/* Search Form */
.search-form {
  display: flex;
  margin-bottom: 20px;
}

.search-form input[type="search"] {
  flex: 1;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px 0 0 4px;
  font-size: 16px;
}

.search-form button {
  background: #3498db;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}

.search-form button:hover {
  background: #2980b9;
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .header-content {
    flex-direction: column;
    gap: 20px;
  }

  .main-navigation ul {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .article-card,
  .single-article {
    padding: 20px;
  }

  .single-article h1 {
    font-size: 2rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .site-title {
    font-size: 1.5rem;
  }

  .article-title {
    font-size: 1.4rem;
  }

  .single-article h1 {
    font-size: 1.8rem;
  }
}

/* Performance Optimizations */
img {
  max-width: 100%;
  height: auto;
  loading: lazy;
}

/* Focus States for Accessibility */
a:focus,
button:focus,
input:focus {
  outline: 2px solid #3498db;
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .site-header,
  .sidebar,
  .site-footer {
    display: none;
  }

  .main-content {
    grid-template-columns: 1fr;
  }
}
