/*
Theme Name: Pethachi
Theme URI: https://pethachi.com
Author: Pethachi Team
Author URI: https://pethachi.com
Description: A custom WordPress theme for Pethachi - Premium Custom Plush Toys Manufacturer. Features modern design, responsive layout, and WooCommerce compatibility.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pethachi
Domain Path: /languages
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, e-commerce, responsive-layout

This theme is built for Pethachi - Professional plush toy manufacturer.
*/

/* ========================================
   PETHACHI WORDPRESS THEME
   Custom Plush Toys Manufacturer
   ======================================== */

/* CSS Variables */
:root {
  --color-primary: #F97316;
  --color-primary-dark: #EA580C;
  --color-primary-light: #FDBA74;
  --color-secondary: #1F2937;
  --color-text: #374151;
  --color-text-light: #6B7280;
  --color-bg: #FFFFFF;
  --color-bg-gray: #F9FAFB;
  --color-border: #E5E7EB;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: all 0.3s ease;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --radius: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition);
}

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

/* WordPress Required Classes */
.alignleft {
  float: left;
  margin-right: 1.5rem;
}

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

.aligncenter {
  clear: both;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

.wp-caption img[class*="wp-image-"] {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption-text {
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-top: 0.5rem;
}

.gallery-caption {
  font-size: 0.875rem;
  color: var(--color-text-light);
}

.bypostauthor {
  font-weight: 600;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: var(--color-bg);
  clip: auto !important;
  clip-path: none;
  color: var(--color-text);
  display: block;
  font-size: 1rem;
  height: auto;
  left: 5px;
  padding: 15px 23px 14px;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* Sticky Post */
.sticky {
  display: block;
}

/* Post Navigation */
.post-navigation {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.nav-links {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.nav-previous,
.nav-next {
  flex: 1;
}

.nav-next {
  text-align: right;
}

/* Comments */
.comments-area {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

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

.comment {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--color-bg-gray);
  border-radius: var(--radius-lg);
}

.comment-meta {
  margin-bottom: 1rem;
}

.comment-author {
  font-weight: 600;
}

.comment-metadata {
  font-size: 0.875rem;
  color: var(--color-text-light);
}

.comment-content {
  margin-bottom: 1rem;
}

.comment-reply-link {
  font-size: 0.875rem;
  font-weight: 500;
}

/* Widgets */
.widget {
  margin-bottom: 2rem;
}

.widget-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-primary);
}

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

.widget li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

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

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 1rem;
  border-radius: var(--radius);
  font-weight: 500;
  transition: var(--transition);
}

.pagination a {
  background: var(--color-bg-gray);
  color: var(--color-text);
}

.pagination a:hover {
  background: var(--color-primary);
  color: white;
}

.pagination .current {
  background: var(--color-primary);
  color: white;
}

/* Block Editor Styles */
.wp-block-button__link {
  background-color: var(--color-primary);
  border-radius: var(--radius);
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  transition: var(--transition);
}

.wp-block-button__link:hover {
  background-color: var(--color-primary-dark);
  color: white;
}

.wp-block-quote {
  border-left: 4px solid var(--color-primary);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
}

.wp-block-pullquote {
  border-top: 4px solid var(--color-primary);
  border-bottom: 4px solid var(--color-primary);
  padding: 2rem;
  text-align: center;
}

/* WooCommerce Compatibility */
.woocommerce .content-area {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}

.woocommerce-message {
  background: #D1FAE5;
  border: 1px solid #10B981;
  color: #065F46;
}

.woocommerce-info {
  background: #DBEAFE;
  border: 1px solid #3B82F6;
  color: #1E40AF;
}

.woocommerce-error {
  background: #FEE2E2;
  border: 1px solid #EF4444;
  color: #991B1B;
}

/* Custom Utilities */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Print Styles */
@media print {
  .site-header,
  .site-footer,
  .scroll-to-top,
  .no-print {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
  }
  
  a {
    text-decoration: underline;
  }
  
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 90%;
    opacity: 0.8;
  }
}
