/*
Theme Name: MindMingles Blog
Theme URI: https://www.mindmingles.com/blog
Author: Antigravity
Author URI: https://www.mindmingles.com/
Description: Custom WordPress theme for MindMingles Blog, optimized for performance and SEO.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.1
Text Domain: mindmingles-blog
*/

/* 
 * Core Variables based on MindMingles brand colors:
 * Primary: #043038
 * Secondary (Accent): #eb5d07
 */
:root {
  --mm-primary: #043038;
  --mm-accent: #eb5d07;
  --mm-text: #333333;
  --mm-bg: #ffffff;
  --mm-light-bg: #f8f9fa;
  --mm-border: #e9ecef;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--mm-primary);
  background-color: var(--mm-bg);
}

a {
  color: var(--mm-accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--mm-primary);
}

.bg-mm-primary {
  background-color: var(--mm-primary) !important;
  color: white;
}

.bg-mm-accent {
  background-color: var(--mm-accent) !important;
  color: white;
}

.text-mm-primary {
  color: var(--mm-primary) !important;
}

.text-mm-accent {
  color: var(--mm-accent) !important;
}

.hero-section {
  background-color: var(--mm-primary);
  color: white;
  padding: 4rem 0;
}

.article-card {
    border: 1px solid rgba(235, 93, 7, 0.3);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: rgb(235 93 7 / 7%);
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.article-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.article-card-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.article-meta {
  font-size: 0.85rem;
  color: #6c757d;
  margin-bottom: 0.5rem;
}

.article-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.article-title a {
  color: var(--mm-primary);
}

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

.read-more {
  margin-top: auto;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.single-post-hero {
  background-color: var(--mm-light-bg);
  padding: 4rem 0 2rem;
  border-bottom: 1px solid var(--mm-border);
}

.single-post-content {
  font-size: 1.1rem;
  line-height: 1.8;
}

.single-post-content h2,
.single-post-content h3 {
  color: var(--mm-primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.sticky-sidebar {
  position: sticky;
  top: 100px;
}

.widget {
  border: 1px solid rgba(235, 93, 7, 0.3);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 2rem;
}

.wp-block-heading {
  color: #eb5d07;
}

.widget-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--mm-primary);
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--mm-accent);
  padding-bottom: 0.5rem;
  display: inline-block;
}

.widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget ul li {
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed rgba(235, 93, 7, 0.3);
}

:where(.wp-block-search__input) {
  border: 1px solid rgba(235, 93, 7, 0.3);
  border-radius: 5px;
}

.wp-block-search__label {
  display: none;
}

.widget ul li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.widget ul li a {
  color: var(--mm-primary);
}

.widget ul li a:hover {
  color: var(--mm-accent);
}

.pagination {
  margin-top: 3rem;
  justify-content: center;
}

.page-numbers {
  padding: 0.5rem 1rem;
  border: 1px solid var(--mm-border);
  margin: 0 0.2rem;
  border-radius: 4px;
  color: var(--mm-primary);
}

.page-numbers.current {
  background-color: var(--mm-primary);
  color: white;
  border-color: var(--mm-primary);
}

.page-numbers:hover:not(.current) {
  background-color: var(--mm-light-bg);
}

.tm-nav-menu .nav-item {
  margin-left: 1rem;
}

.tm-nav-menu .nav-link {
  color: #333 !important;
  font-weight: 500;
  font-size: 15px;
  padding: 0.5rem 0 !important;
  position: relative;
  transition: color 0.3s ease;
}

.tm-nav-menu .nav-link:hover,
.tm-nav-menu .current-menu-item>.nav-link {
  color: var(--mm-primary) !important;
}

.tm-nav-menu .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--mm-primary);
  transition: width 0.3s ease;
}

.tm-nav-menu .nav-link:hover::after,
.tm-nav-menu .current-menu-item>.nav-link::after {
  width: 100%;
}

.entry-content {
  border: 1px solid rgba(235, 93, 7, 0.3);
  padding: 25px;
  border-radius: 10px;
}

.entry-content table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100% !important;
  max-width: 100% !important;
  table-layout: auto;
}

.entry-content table th {
  background-color: #043038;
  color: #eb5d07;
  font-weight: 600;
  padding: 1rem 1.25rem;
  text-align: center;
}

.entry-content table td {
  padding: 10px;
  color: #043038;
  border: 1px solid #04303845;
}

.entry-content table tbody tr:nth-of-type(even) td {
  background-color: #f8f9fa;
}

.entry-content table tbody tr:hover td {
  background-color: #e9ecef;
  transition: background-color 0.2s ease-in-out;
}

@media screen and (max-width: 768px) {
  .entry-content table {
    display: block;
    width: 100% !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }

  .entry-content table th,
  .entry-content table td {
    min-width: 120px;
    padding: 10px 15px !important;
  }
}

.wp-block-categories select {
  word-wrap: normal;
  width: 100%;
  height: 50px;
  padding: 6px;
  border: 1px solid rgba(235, 93, 7, 0.3);
  border-radius: 5px;
}

.article-card p {
  color: #043038;
}

.border-light-subtle {
  border-color: rgba(235, 93, 7, 0.3) !important;
}