/* theme.css */
@import "tailwindcss";

@source "./*.php";
@source "./template-parts/**/*.php";

@theme {
  --font-body:
    "Source Sans 3", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --font-heading:
    "Playfair Display", ui-serif, Georgia, Cambria, "Times New Roman", Times,
    serif;
}

/* Custom body classes */
.bg-body {
  background-color: #fafaf9;
}

.text-body {
  color: #27272a;
}

.font-body {
  font-family: var(--font-body);
}

.font-heading {
  font-family: var(--font-heading);
}

/* WordPress Core Styles */
.alignnone {
  margin: 1rem 0;
}

.aligncenter {
  display: block;
  margin: 1rem auto;
}

.alignleft {
  float: left;
  margin: 0.5rem 1.5rem 1rem 0;
}

.alignright {
  float: right;
  margin: 0.5rem 0 1rem 1.5rem;
}

.alignwide {
  max-width: 100%;
}

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

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

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

.wp-block-image.alignfull img {
  width: 100%;
}

.entry-content > *:not(.alignwide):not(.alignfull) {
  max-width: 100%;
}

.has-text-align-center {
  text-align: center;
}

.has-text-align-left {
  text-align: left;
}

.has-text-align-right {
  text-align: right;
}

/* Screen reader text */
.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 !important;
  width: 1px;
  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;
  clip-path: none;
  color: #21759b;
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* Custom logo styles */
.custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.custom-logo {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}

/* Navigation highlight for current page */
.current-menu-item > a,
.current_page_item > a {
  color: #ef4444;
}

/* Form focus states */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px #dc2626;
}

/* Button states */
.wp-block-button__link,
button[type="submit"],
input[type="submit"] {
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.wp-block-button__link:hover {
  opacity: 0.9;
}

/* Gallery support */
.wp-block-gallery {
  margin-bottom: 1.5rem;
}

.wp-block-gallery .wp-block-image {
  margin-bottom: 0;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.gallery-item {
  display: inline-block;
  text-align: center;
  width: 100%;
}

.gallery-columns-2 .gallery-item {
  width: calc(50% - 0.25rem);
}
.gallery-columns-3 .gallery-item {
  width: calc(33.333% - 0.333rem);
}
.gallery-columns-4 .gallery-item {
  width: calc(25% - 0.375rem);
}

.gallery-item img {
  width: 100%;
  height: auto;
}

/* Pagination */
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.nav-links .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #3f3f46;
  background-color: #fff;
  border: 1px solid #e7e5e4;
  transition: all 0.2s ease;
}

.nav-links .page-numbers:hover {
  background-color: #0089d0 !important;
  color: #fff;
  border-color: #0089d0 !important;
}

.nav-links .page-numbers.current {
  background-color: #0089d0 !important;
  color: #fff;
  border-color: #0089d0 !important;
}

.nav-links .page-numbers.dots {
  background: transparent;
  border: none;
}

/* Post navigation */
.post-navigation .nav-links {
  justify-content: space-between;
}

/* Captions */
.wp-caption {
  max-width: 100%;
  margin-bottom: 1rem;
}

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

.wp-caption-text,
figcaption {
  font-size: 0.8125rem;
  color: #78716c;
  padding-top: 0.5rem;
  text-align: center;
}

/* Sticky post indicator */
.sticky .featured-article,
.sticky article {
  border-left: 4px solid #dc2626;
}

/* Password protected posts */
.post-password-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #27272a;
}

.post-password-form input[type="password"] {
  width: 100%;
  background-color: #f5f5f4;
  border: 0;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.post-password-form input[type="submit"] {
  background-color: #dc2626;
  color: #fff;
  padding: 0.75rem 2rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 0;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.post-password-form input[type="submit"]:hover {
  background-color: #b91c1c;
}

/* Marquee animation */
.marquee-container {
  overflow: hidden;
}

.marquee-container p {
  animation: marquee 30s linear infinite;
}

@keyframes marquee {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

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

/* end of theme.css */
