/*
Theme Name: dayu
Author: LittleMountain
Version: 1.0
*/

/* ==========================================
   CSS Reset - Modern approach
   Source: https://piccalil.li/blog/a-modern-css-reset/
   ========================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, 
picture, 
video, 
canvas, 
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input, 
button, 
textarea, 
select {
  font: inherit;
}

p, 
h1, 
h2, 
h3, 
h4, 
h5, 
h6 {
  overflow-wrap: break-word;
}

/* ==========================================
   Base Typography
   ========================================== */

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 16px;
  color: #333;
  background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
}

a {
  color: #0066cc;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #004499;
  text-decoration: underline;
}

/* ==========================================
   Layout
   ========================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

#page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main {
  flex: 1;
}

/* ==========================================
   Footer Styles
   ========================================== */

.site-footer {
  background-color: #f8f9fa;
  margin-top: auto;
}

.footer-widgets {
  padding: 60px 0 40px;
  border-bottom: 1px solid #e0e0e0;
}

.footer-widget-area {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.footer-widget {
  font-size: 0.9rem;
}

.footer-widget .widget-title {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #222;
}

.site-info {
  padding: 30px 0;
}

.site-info-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-navigation {
  margin-bottom: 15px;
}

.footer-nav-menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.footer-nav-menu li {
  display: inline;
}

.footer-nav-menu a {
  color: #666;
  font-size: 0.9rem;
}

.footer-nav-menu a:hover {
  color: #333;
}

.copyright {
  color: #666;
  font-size: 0.85rem;
}

.copyright p {
  margin: 0;
}

/* ==========================================
   Sidebar Styles
   ========================================== */

.widget {
  margin-bottom: 40px;
}

.widget-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e0e0e0;
}

.widget ul {
  list-style: none;
}

.widget ul li {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

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

/* ==========================================
   Posts/Content
   ========================================== */

.post {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #e0e0e0;
}

.post:last-child {
  border-bottom: none;
}

.entry-header {
  margin-bottom: 20px;
}

.entry-title {
  margin-bottom: 10px;
}

.entry-title a {
  color: #222;
}

.entry-title a:hover {
  color: #0066cc;
  text-decoration: none;
}

.entry-meta {
  font-size: 0.9rem;
  color: #666;
}

.entry-content {
  line-height: 1.8;
}

.entry-footer {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
  font-size: 0.9rem;
  color: #666;
}

/* ==========================================
   Button Style: Outline → Diagonal Fill
   ========================================== */

.wp-block-button.is-style-outline-diagonal-swipe .wp-block-button__link {
  position: relative;
  overflow: hidden;
  transition: color 0.4s ease;
  cursor: pointer;
  z-index: 1;
  background-color: transparent !important;
  border: 2px solid currentColor;
  color: #E96B3F;
}

.wp-block-button.is-style-outline-diagonal-swipe .wp-block-button__link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -160%;
  width: 150%;
  height: 100%;
  background-color: #E96B3F;
  transition: left 0.4s ease;
  z-index: -1;
  transform: skewX(20deg);
  transform-origin: top left;
}

.wp-block-button.is-style-outline-diagonal-swipe .wp-block-button__link:hover::before {
  left: -25%;
}

.wp-block-button.is-style-outline-diagonal-swipe .wp-block-button__link:hover {
  color: #ffffff !important;
  text-decoration: none !important; /* Removes underline on hover */
  border-color: #E96B3F !important;
}

/* ==========================================
   Button Style: Solid → Diagonal Fill
   ========================================== */

.wp-block-button.is-style-fill-diagonal-swipe .wp-block-button__link {
  position: relative;
  overflow: hidden;
  transition: color 0.4s ease;
  cursor: pointer;
  z-index: 1;
  /* Keeps whatever background color user chose */
}

.wp-block-button.is-style-fill-diagonal-swipe .wp-block-button__link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -160%;
  width: 150%;
  height: 100%;
  background-color: #E96B3F;
  transition: left 0.4s ease;
  z-index: -1;
  transform: skewX(20deg);
  transform-origin: top left;
}

.wp-block-button.is-style-fill-diagonal-swipe .wp-block-button__link:hover::before {
  left: -25%;
}

.wp-block-button.is-style-fill-diagonal-swipe .wp-block-button__link:hover {
  color: #ffffff !important;
  text-decoration: none !important; /* Removes underline on hover */
}

/* Focus states */
.wp-block-button.is-style-outline-diagonal-swipe .wp-block-button__link:focus,
.wp-block-button.is-style-fill-diagonal-swipe .wp-block-button__link:focus {
  outline: 2px solid #E96B3F;
  outline-offset: 3px;
}


/* ==========================================
   Pagination
   ========================================== */

.pagination {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.nav-links {
  display: flex;
  gap: 5px;
  align-items: center;
}

.page-numbers {
  padding: 8px 12px;
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  color: #333;
  transition: all 0.3s ease;
}

.page-numbers:hover,
.page-numbers.current {
  background-color: #0066cc;
  color: #fff;
  border-color: #0066cc;
  text-decoration: none;
}

/* ==========================================
   Responsive Design
   ========================================== */

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  
  .container {
    padding: 0 15px;
  }
  
  /* .site-main { */
    /* padding: 30px 0; */
  /* } */
  
  .footer-widget-area {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-widgets {
    padding: 40px 0 30px;
  }
  
  .footer-nav-menu {
    flex-direction: column;
    gap: 10px;
  }
}

/* ==========================================
   Utility Classes
   ========================================== */

.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;
}

.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;
}

/* ==========================================
   Mobile Menu Body Class
   ========================================== */

body.menu-open {
  overflow: hidden;
}