/*
Theme Name: EaseMart Blog
Theme URI: https://easemart.ng
Author: EaseMart Team
Author URI: https://easemart.ng
Description: Modern, clean blog theme for EaseMart marketplace platform. Features responsive design, category filtering, and optimized for Nigerian e-commerce content. Built with TailwindCSS for rapid customization.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: easemart-blog
Tags: blog, e-commerce, marketplace, responsive, modern, clean, two-columns, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready
*/

/*
 * TailwindCSS is loaded via CDN in header.php
 * This file contains only custom styles and WordPress-specific overrides
 */

/* ============================================
   CUSTOM UTILITY CLASSES
   ============================================ */

/* Hide scrollbar but keep functionality */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Text truncation utilities */
.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Gradient text effect */
.gradient-text {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hover lift effect */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ============================================
   WORDPRESS CORE OVERRIDES
   ============================================ */

/* Alignment classes */
.alignleft {
  float: left;
  margin-right: 1.5rem;
  margin-bottom: 1rem;
}

.alignright {
  float: right;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem;
}

.alignwide {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.alignfull {
  max-width: 100%;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* WordPress caption styling */
.wp-caption {
  max-width: 100%;
  margin-bottom: 1.5rem;
}

.wp-caption img {
  display: block;
  margin: 0;
}

.wp-caption-text {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.5rem;
  text-align: center;
  font-style: italic;
}

/* WordPress gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.gallery-item {
  position: relative;
}

.gallery-icon img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

/* Sticky posts */
.sticky {
  border-left: 4px solid #059669;
  padding-left: 1rem;
}

/* Post navigation */
.post-navigation,
.posts-navigation {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

/* Comments */
.comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.comment {
  padding: 1.5rem;
  background: #f9fafb;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
}

.comment-author {
  font-weight: 700;
  color: #111827;
}

.comment-meta {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.comment-content p {
  margin-bottom: 0.5rem;
  color: #4b5563;
}

.reply {
  margin-top: 0.5rem;
}

.reply a {
  font-size: 0.875rem;
  color: #059669;
  font-weight: 600;
  text-decoration: none;
}

.reply a:hover {
  color: #047857;
  text-decoration: underline;
}

/* Children comments */
.children {
  list-style: none;
  padding-left: 2rem;
  margin-top: 1rem;
}

/* Comment form */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: #059669;
}

.comment-form textarea {
  min-height: 150px;
}

.comment-form .form-submit input[type="submit"] {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: white;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.comment-form .form-submit input[type="submit"]:hover {
  box-shadow: 0 10px 15px -3px rgba(5, 150, 105, 0.3);
  transform: translateY(-2px);
}

/* ============================================
   PROSE STYLES (For Post Content)
   ============================================ */

.prose {
  max-width: 65ch;
  color: #4b5563;
  font-size: 1.125rem;
  line-height: 1.75;
}

.prose h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #111827;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.prose h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.prose h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.prose p {
  color: #4b5563;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.prose strong {
  color: #111827;
  font-weight: 700;
}

.prose em {
  font-style: italic;
}

.prose a {
  color: #059669;
  text-decoration: underline;
  font-weight: 600;
}

.prose a:hover {
  color: #047857;
}

.prose ul,
.prose ol {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
  padding-left: 0.5rem;
}

.prose ul {
  list-style-type: disc;
}

.prose ol {
  list-style-type: decimal;
}

.prose li {
  margin-bottom: 0.5rem;
  color: #4b5563;
  line-height: 1.75;
}

.prose blockquote {
  border-left: 4px solid #059669;
  padding-left: 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  font-style: italic;
  color: #6b7280;
  margin: 2rem 0;
  background: #f9fafb;
  border-radius: 0 0.5rem 0.5rem 0;
}

.prose img {
  border-radius: 1rem;
  margin: 2rem 0;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  height: auto;
}

.prose figure {
  margin: 2rem 0;
}

.prose figcaption {
  font-size: 0.875rem;
  color: #6b7280;
  text-align: center;
  margin-top: 0.75rem;
  font-style: italic;
}

.prose code {
  background: #f3f4f6;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  color: #059669;
  font-family: 'Courier New', Courier, monospace;
}

.prose pre {
  background: #1f2937;
  padding: 1.5rem;
  border-radius: 0.75rem;
  overflow-x: auto;
  margin: 2rem 0;
}

.prose pre code {
  background: transparent;
  color: #d1d5db;
  padding: 0;
  font-size: 0.875rem;
}

.prose table {
  width: 100%;
  margin: 2rem 0;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.prose thead {
  border-bottom: 2px solid #e5e7eb;
}

.prose th {
  background: #059669;
  color: white;
  padding: 0.75rem;
  text-align: left;
  font-weight: 700;
  font-size: 0.875rem;
}

.prose td {
  padding: 0.75rem;
  border-bottom: 1px solid #e5e7eb;
}

.prose tbody tr:hover {
  background: #f9fafb;
}

.prose hr {
  border: none;
  border-top: 2px solid #e5e7eb;
  margin: 3rem 0;
}

/* ============================================
   WIDGETS
   ============================================ */

.widget {
  margin-bottom: 2rem;
}

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

.widget li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.widget li:last-child {
  border-bottom: none;
}

.widget a {
  color: #4b5563;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
}

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

/* ============================================
   RESPONSIVE TWEAKS
   ============================================ */

@media (max-width: 768px) {
  .prose {
    font-size: 1rem;
  }

  .prose h2 {
    font-size: 1.5rem;
  }

  .prose h3 {
    font-size: 1.25rem;
  }

  .alignleft,
  .alignright {
    float: none;
    margin: 0 0 1rem 0;
  }

  .children {
    padding-left: 1rem;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

/* Skip to content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #059669;
  color: white;
  padding: 0.5rem 1rem;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* Focus styles */
a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 2px solid #059669;
  outline-offset: 2px;
}

/* Screen reader text */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  color: #059669;
  display: block;
  font-size: 14px;
  font-weight: bold;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  .no-print,
  header,
  footer,
  .sidebar,
  .comment-form {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
  }

  a {
    text-decoration: underline;
  }

  a[href]:after {
    content: " (" attr(href) ")";
  }
}