/*
Theme Name: RooCrewReviews
Theme URI: https://roocrewreviews.com
Author: Roo Crew
Description: Custom theme for RooCrewReviews with Vizsla dog branding
Version: 1.3
*/

/* --- Base --- */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background-color: #fff;
  color: #222;
}

a {
  color: #992200;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* --- Header --- */
.site-header {
  background-color: #fff;
  border-bottom: 1px solid #ccc;
}
.site-branding {
  margin-left: 0 !important;
  padding-left: 0 !important;
  display: flex;
  align-items: center;
}
.site-logo-link {
  margin-left: 0 !important;
  padding-left: 0 !important;
}
.site-logo-link img {
  max-width: 70px;
  height: auto;
  display: block;
}
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  flex-wrap: wrap;
}
.header-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0;
  padding: 0;
}
.header-logo img {
  max-width: 160px;
  height: auto;
  display: block;
  margin: 0;
}
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}
.main-nav a {
  color: #222;
  font-weight: 600;
}
.main-nav a:hover {
  color: #cc3300;
}

/* --- Dropdown Categories --- */
.main-nav .dropdown {
  position: relative;
}
.main-nav .dropdown .sub-menu {
  display: none;
  position: absolute;
  background: #fff;
  border: 1px solid #ccc;
  padding: 0.5rem 1rem;
  list-style: none;
  top: 100%;
  left: 0;
  z-index: 10;
  min-width: 200px;
}
.main-nav .dropdown:hover .sub-menu {
  display: block;
}
.main-nav .sub-menu li {
  margin: 0;
  padding: 0.25rem 0;
}
.main-nav .sub-menu a {
  color: #222;
  font-weight: normal;
}
.main-nav .sub-menu a:hover {
  color: #cc3300;
}

/* --- Social Icons --- */
.social-icons {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}
.social-icons img {
  width: 24px;
  height: 24px;
  transition: transform 0.2s ease;
}
.social-icons img:hover {
  transform: scale(1.25);
}

/* --- Welcome Section --- */
.welcome-section {
  max-width: 960px;
  margin: 1rem auto;
  padding: 0 2rem;
  text-align: center;
}
.welcome-logo-large {
  display: block;
  margin: 0 auto 0.5rem auto;
  max-width: 900px;
  width: 100%;
  height: auto;
}
.main-title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  text-align: center;
}
.welcome-description {
  font-size: 1.05rem;
  margin-bottom: 1rem;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.welcome-description p:first-child {
  margin-top: 0;
}

/* --- Post Grid --- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.post-card {
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}
.post-card:hover {
  transform: scale(1.02);
}
.post-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}
.post-title {
  font-size: 1.1rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  text-align: center;
}
.post-excerpt {
  font-size: 0.9rem;
  color: #333;
  margin-bottom: 1rem;
  text-align: center;
}
.read-more {
  display: inline-block;
  margin-top: 10px;
  font-weight: bold;
  color: #cc3300;
  align-self: center;
}
.read-more:hover {
  text-decoration: underline;
}

/* --- Pagination --- */
.pagination {
  text-align: center;
  margin: 2rem auto;
}
.pagination a,
.pagination span {
  display: inline-block;
  margin: 0 5px;
  padding: 0.4rem 0.8rem;
  background: #eee;
  color: #222;
  border-radius: 4px;
  text-decoration: none;
}
.pagination a:hover {
  background: #cc3300;
  color: #fff;
}

/* --- Post Page --- */
.single-post {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  box-sizing: border-box;
}
.single-post .post-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1rem;
}
.single-post .featured-image {
  text-align: center;
  margin-bottom: 1.5rem;
}
.single-post .post-content {
  margin-top: 2rem;
  margin-bottom: 2rem;
}
.single-post .post-content img {
  display: block;
  margin: 1rem auto;
  max-width: 100%;
  height: auto;
}
.single-post .social-icons {
  justify-content: center;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* --- Related Posts --- */
.related-posts {
  max-width: 800px;
  margin: 3rem auto;
  padding: 1rem;
  text-align: center;
}
.related-posts h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.related-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}
.related-item {
  width: 240px;
  text-align: center;
}
.related-thumb img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}
.related-title {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  color: #222;
}
.related-category {
  font-size: 0.8rem;
  color: #666;
}

/* --- Dark Mode --- */
body.dark-mode {
  background-color: #111;
  color: #eee;
}
body.dark-mode a {
  color: #f99500;
}
body.dark-mode .post-card {
  background: #1e1e1e;
  border-color: #444;
}
body.dark-mode .read-more {
  color: #f99500;
}
body.dark-mode .site-footer {
  background-color: #1a1a1a;
  border-top-color: #333;
  color: #aaa;
}
body.dark-mode .pagination a,
body.dark-mode .pagination span {
  background: #222;
  color: #ddd;
}
body.dark-mode .pagination a:hover {
  background: #f99500;
  color: #000;
}
body.dark-mode .dark-mode-toggle {
  background: #444;
  color: #fff;
}

/* --- Dark Mode Toggle Button --- */
.dark-mode-toggle {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  background: #ccc;
  color: #000;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  z-index: 1000;
}

/* --- Responsive --- */
@media screen and (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 1rem;
  }
  .post-grid {
    grid-template-columns: 1fr;
  }
  .main-nav ul {
    justify-content: center;
  }
  .social-icons {
    justify-content: center;
  }
  .post-card {
    width: 100%;
  }
  .page-title {
    font-size: 1.5rem;
  }
}