/*
Theme Name: Kattmaten SEO Theme
Description: A lightweight, SEO-optimized WordPress theme designed for kattmaten.com focused on cat nutrition and care
Version: 1.0
Author: Your Name
Text Domain: kattmaten
*/

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

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

/* 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: linear-gradient(135deg, #fff 0%, #faf8f5 100%);
  border-bottom: 2px solid #f4a261;
  padding: 25px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 3px 8px rgba(244, 162, 97, 0.15);
}

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

.site-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #e76f51;
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.site-title:hover {
  color: #d4541e;
}

.site-description {
  font-size: 0.95rem;
  color: #8d5524;
  margin-top: 5px;
  font-style: italic;
}

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

.main-navigation a {
  text-decoration: none;
  color: #2d2d2d;
  font-weight: 500;
  padding: 12px 0;
  transition: all 0.3s ease;
  position: relative;
}

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

.main-navigation a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 8px;
  left: 0;
  background-color: #f4a261;
  transition: width 0.3s ease;
}

.main-navigation a:hover::after {
  width: 100%;
}

/* Article Styles */
.article-card {
  background: #fff;
  border: 1px solid #f0e6d2;
  border-radius: 12px;
  padding: 35px;
  margin-bottom: 35px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(244, 162, 97, 0.08);
}

.article-card:hover {
  box-shadow: 0 6px 20px rgba(244, 162, 97, 0.15);
  transform: translateY(-2px);
}

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

.article-title a {
  color: #264653;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.article-meta {
  color: #8d5524;
  font-size: 0.9rem;
  margin-bottom: 22px;
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}

.article-excerpt {
  line-height: 1.8;
  margin-bottom: 25px;
  color: #4a4a4a;
}

.read-more {
  display: inline-block;
  background: linear-gradient(135deg, #f4a261 0%, #e76f51 100%);
  color: #fff;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(244, 162, 97, 0.3);
}

.read-more:hover {
  background: linear-gradient(135deg, #e76f51 0%, #d4541e 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(244, 162, 97, 0.4);
}

/* Single Post Styles */
.single-article {
  background: #fff;
  padding: 45px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(244, 162, 97, 0.1);
  border-left: 4px solid #f4a261;
}

.single-article h1 {
  font-size: 2.6rem;
  margin-bottom: 25px;
  line-height: 1.2;
  color: #264653;
}

.single-article h2 {
  font-size: 1.9rem;
  margin: 35px 0 18px;
  color: #2a9d8f;
  border-bottom: 2px solid #f4a261;
  padding-bottom: 8px;
}

.single-article h3 {
  font-size: 1.5rem;
  margin: 28px 0 15px;
  color: #e76f51;
}

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

.single-article img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 25px 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Sidebar Styles */
.sidebar {
  background: linear-gradient(135deg, #faf8f5 0%, #f5f1eb 100%);
  padding: 35px;
  border-radius: 12px;
  height: fit-content;
  border: 1px solid #f0e6d2;
}

.widget {
  margin-bottom: 35px;
}

.widget-title {
  font-size: 1.3rem;
  margin-bottom: 18px;
  color: #264653;
  border-bottom: 3px solid #f4a261;
  padding-bottom: 10px;
  font-weight: 600;
}

.widget ul {
  list-style: none;
}

.widget li {
  padding: 10px 0;
  border-bottom: 1px solid #f0e6d2;
  transition: padding-left 0.3s ease;
}

.widget li:hover {
  padding-left: 8px;
}

.widget a {
  color: #4a4a4a;
  text-decoration: none;
  transition: color 0.3s ease;
}

.widget a:hover {
  color: #e76f51;
}

/* Footer */
.site-footer {
  background: linear-gradient(135deg, #264653 0%, #2a9d8f 100%);
  color: #f1f1f1;
  padding: 50px 0 25px;
  margin-top: 70px;
}

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

.footer-section h3 {
  margin-bottom: 18px;
  color: #f4a261;
  font-size: 1.2rem;
}

.footer-section a {
  color: #e9c46a;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 25px;
  border-top: 1px solid #2a9d8f;
  color: #b8d4d1;
}

/* SEO-focused Internal Links */
.internal-links {
  background: linear-gradient(135deg, #faf8f5 0%, #f5f1eb 100%);
  padding: 25px;
  border-radius: 10px;
  margin: 35px 0;
  border-left: 5px solid #f4a261;
  box-shadow: 0 2px 6px rgba(244, 162, 97, 0.1);
}

.internal-links h3 {
  margin-bottom: 18px;
  color: #264653;
}

.internal-links ul {
  list-style: none;
}

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

.internal-links a {
  color: #e76f51;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

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

/* Breadcrumbs */
.breadcrumbs {
  background: linear-gradient(135deg, #faf8f5 0%, #f5f1eb 100%);
  padding: 18px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid #f0e6d2;
}

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

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

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

.search-form input[type="search"] {
  flex: 1;
  padding: 14px;
  border: 2px solid #f0e6d2;
  border-radius: 6px 0 0 6px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.search-form input[type="search"]:focus {
  border-color: #f4a261;
  outline: none;
}

.search-form button {
  background: linear-gradient(135deg, #f4a261 0%, #e76f51 100%);
  color: #fff;
  border: none;
  padding: 14px 22px;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-form button:hover {
  background: linear-gradient(135deg, #e76f51 0%, #d4541e 100%);
}

/* Cat-themed accent elements */
.cat-accent {
  position: relative;
}

.cat-accent::before {
  content: "🐱";
  position: absolute;
  left: -25px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* Special cat-themed elements */
.paw-print {
  color: #f4a261;
  margin-right: 8px;
}

.featured-badge {
  background: linear-gradient(135deg, #f4a261 0%, #e76f51 100%);
  color: white;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  display: inline-block;
  margin-bottom: 10px;
}
