/* WordPress Theme CSS for Highlories */

/* Apple Color Emoji Font - ВСЕГДА ПОКАЗЫВАЕТ APPLE ЭМОДЗИ */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Color Emoji', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
}

/* Принудительно применяем Apple Color Emoji ко всем эмодзи */
.emoji,
span.emoji {
    font-family: 'Noto Color Emoji', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol' !important;
    font-style: normal !important;
    font-weight: normal !important;
}

/* Reset some WordPress defaults */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Custom animations for Logo */
@keyframes bounce-slow {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes flicker {
  0%, 100% {
    opacity: 1;
    filter: brightness(1);
  }
  25% {
    opacity: 0.9;
    filter: brightness(1.2);
  }
  50% {
    opacity: 1;
    filter: brightness(0.95);
  }
  75% {
    opacity: 0.95;
    filter: brightness(1.1);
  }
}

.animate-bounce-slow {
  animation: bounce-slow 2s ease-in-out infinite;
}

.animate-flicker {
  animation: flicker 1.5s ease-in-out infinite;
}

/* Remove default link underlines */
a {
  text-decoration: none;
}

/* Utility classes that might not work with CDN */
.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.from-emerald-500 {
    --tw-gradient-from: #10b981;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(16, 185, 129, 0));
}

.to-emerald-700 {
    --tw-gradient-to: #047857;
}

.from-emerald-400 {
    --tw-gradient-from: #34d399;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(52, 211, 153, 0));
}

.to-emerald-600 {
    --tw-gradient-to: #059669;
}

.bg-emerald-100 {
    background-color: #d1fae5;
}

.bg-emerald-600 {
    background-color: #059669;
}

.bg-emerald-700 {
    background-color: #047857;
}

.text-emerald-600 {
    color: #059669;
}

.text-emerald-700 {
    color: #047857;
}

.hover\:bg-emerald-50:hover {
    background-color: #ecfdf5;
}

.hover\:bg-emerald-700:hover {
    background-color: #047857;
}

.hover\:text-emerald-600:hover {
    color: #059669;
}

.hover\:text-emerald-700:hover {
    color: #047857;
}

/* WordPress specific styles */
.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;
}

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

/* WordPress blocks */
.wp-block-image img {
  height: auto;
  max-width: 100%;
}

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

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  color: #374151;
  font-weight: 500;
  transition: all 0.2s;
}

.pagination .page-numbers:hover {
  background-color: #f3f4f6;
  border-color: #d1d5db;
}

.pagination .page-numbers.current {
  background-color: #10b981;
  color: white;
  border-color: #10b981;
}

/* Mobile menu toggle */
@media (max-width: 768px) {
  #mobile-menu.hidden {
    display: none;
  }
  
  #mobile-menu.block {
    display: block;
  }
}

/* Prose styles for content */
.prose {
  color: #374151;
  max-width: 65ch;
}

.prose p {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
}

.prose h2 {
  font-weight: 700;
  font-size: 1.5em;
  margin-top: 2em;
  margin-bottom: 1em;
  line-height: 1.33;
}

.prose h3 {
  font-weight: 600;
  font-size: 1.25em;
  margin-top: 1.6em;
  margin-bottom: 0.6em;
  line-height: 1.6;
}

.prose-lg {
  font-size: 1.125rem;
  line-height: 1.778;
}

.max-w-none {
  max-width: none;
}