/*
Theme Name: Virgil's Enhanced Quirky Theme
Description: A handmade-looking WordPress theme with maximum customization control
Version: 2.0
*/

/* ==== ROOT VARIABLES ==== */
:root {
  --handmade-rotation: 1.5deg;
  --quirky-skew: 0.5deg;
  --amateur-offset: 3px;
  --rustic-border-width: 3px;
  --handwritten-letter-spacing: 0.02em;
  --wonky-border-radius: 8px 15px 12px 6px;
  --amateur-shadow: 4px 6px 8px rgba(0,0,0,0.15);
}

/* ==== GLOBAL HANDMADE STYLES ==== */
body {
  font-family: Georgia, serif;
  line-height: 1.7;
  letter-spacing: var(--handwritten-letter-spacing);
  background: linear-gradient(45deg, #f9f9f9 25%, transparent 25%, transparent 75%, #f9f9f9 75%, #f9f9f9),
              linear-gradient(45deg, #f9f9f9 25%, transparent 25%, transparent 75%, #f9f9f9 75%, #f9f9f9);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
  background-color: #fefefe;
}

/* Add slight randomness to overall layout */
.wp-site-blocks {
  transform: rotate(0.1deg);
  margin: 10px;
}

/* ==== QUIRKY BLOCK VARIATIONS ==== */

/* Handmade Button Styles */
.wp-block-button.is-style-handmade .wp-block-button__link {
  transform: rotate(-1deg);
  border: 3px solid #8B4513;
  border-radius: 12px 15px 11px 14px;
  background: linear-gradient(135deg, #98FB98, #87CEEB);
  color: #2F4F4F;
  font-family: 'Comic Sans MS', cursive;
  padding: 12px 18px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
  box-shadow: var(--amateur-shadow);
  font-weight: bold;
  position: relative;
}

.wp-block-button.is-style-handmade .wp-block-button__link:hover {
  transform: rotate(1deg) scale(1.05);
  box-shadow: 5px 7px 12px rgba(0,0,0,0.3);
  background: linear-gradient(135deg, #87CEEB, #98FB98);
}

.wp-block-button.is-style-wonky .wp-block-button__link {
  transform: rotate(2deg) skew(-1deg);
  border: 2px dashed #DC143C;
  border-radius: 20px 5px 15px 8px;
  background: #FFD700;
  color: #8B4513;
  font-family: 'Papyrus', fantasy;
  padding: 10px 16px;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.wp-block-button.is-style-amateur .wp-block-button__link {
  border: 4px solid #000;
  border-radius: 0;
  background: #FFFFFF;
  color: #000000;
  font-family: 'Courier New', monospace;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  padding: 12px 20px;
  font-weight: bold;
}

.wp-block-button.is-style-amateur .wp-block-button__link:before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: #FF6347;
  z-index: -1;
  transform: rotate(1deg);
}

.wp-block-button.is-style-scribbled .wp-block-button__link {
  border: 3px solid #8B4513;
  border-radius: var(--wonky-border-radius);
  background: #F5F5DC;
  color: #2F4F4F;
  font-family: 'Comic Sans MS', cursive;
  position: relative;
  transform: rotate(-0.5deg);
  padding: 14px 22px;
}

.wp-block-button.is-style-scribbled .wp-block-button__link:after {
  content: '✏️';
  position: absolute;
  top: -8px;
  right: -8px;
  font-size: 16px;
}

/* Horizontal Button Groups Fix */
.wp-block-buttons.is-layout-flex {
  flex-direction: row !important;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
}

.wp-block-buttons.is-style-horizontal {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 0.5rem;
}

.wp-block-buttons.is-style-scattered {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  align-items: flex-start;
}

.wp-block-buttons.is-style-scattered .wp-block-button:nth-child(2n) {
  transform: translateY(8px) rotate(-1deg);
}

.wp-block-buttons.is-style-scattered .wp-block-button:nth-child(3n) {
  transform: translateY(-5px) rotate(1.5deg);
}

/* ==== HANDMADE HEADING STYLES ==== */
.wp-block-heading.is-style-wonky {
  transform: rotate(-1deg);
  font-family: 'Comic Sans MS', cursive;
  color: #8B4513;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
  margin-left: var(--amateur-offset);
}

.wp-block-heading.is-style-handwritten {
  font-family: 'Brush Script MT', cursive;
  font-style: italic;
  color: #2E8B57;
  transform: rotate(0.5deg);
  text-decoration: underline;
  text-decoration-color: #FFD700;
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
}

.wp-block-heading.is-style-amateur {
  font-family: 'Courier New', monospace;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #000;
  border: 3px solid #000;
  padding: 10px 15px;
  background: #FFFF00;
  display: inline-block;
  transform: rotate(-1deg);
  box-shadow: var(--amateur-shadow);
}

.wp-block-heading.is-style-scribbled {
  color: #8B4513;
  font-family: 'Comic Sans MS', cursive;
  position: relative;
  display: inline-block;
}

.wp-block-heading.is-style-scribbled:before {
  content: '';
  position: absolute;
  top: 50%;
  left: -10px;
  right: -10px;
  height: 3px;
  background: repeating-linear-gradient(
    to right,
    #DC143C 0px,
    #DC143C 10px,
    transparent 10px,
    transparent 15px
  );
  transform: translateY(-50%) rotate(-1deg);
  z-index: -1;
}

/* ==== PARAGRAPH STYLES ==== */
.wp-block-paragraph.is-style-handwritten {
  font-family: 'Comic Sans MS', cursive;
  line-height: 1.8;
  color: #2F4F4F;
  transform: rotate(0.2deg);
  margin-left: 5px;
}

.wp-block-paragraph.is-style-typewriter {
  font-family: 'Courier New', monospace;
  background: #FFFACD;
  padding: 15px;
  border: 1px solid #8B4513;
  border-radius: 0;
  position: relative;
  margin: 20px 0;
}

.wp-block-paragraph.is-style-typewriter:before {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 1px dashed #8B4513;
  pointer-events: none;
}

.wp-block-paragraph.is-style-note {
  background: #FFFF99;
  padding: 12px 16px;
  border-left: 4px solid #FF6347;
  font-family: 'Comic Sans MS', cursive;
  transform: rotate(-0.5deg);
  margin: 15px 5px;
  position: relative;
}

.wp-block-paragraph.is-style-note:after {
  content: '📌';
  position: absolute;
  top: -5px;
  right: 10px;
  font-size: 18px;
  transform: rotate(15deg);
}

/* ==== GROUP/CONTAINER STYLES ==== */
.wp-block-group.is-style-rustic-box {
  border: var(--rustic-border-width) solid #8B4513;
  border-radius: var(--wonky-border-radius);
  background: linear-gradient(135deg, #F5F5DC, #FFFACD);
  padding: 20px;
  transform: rotate(-0.3deg);
  box-shadow: var(--amateur-shadow);
  position: relative;
}

.wp-block-group.is-style-rustic-box:before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: #8B4513;
  border-radius: var(--wonky-border-radius);
  z-index: -1;
  transform: rotate(1deg);
}

.wp-block-group.is-style-notice-board {
  background: #8FBC8F;
  border: 4px solid #2F4F4F;
  padding: 25px;
  position: relative;
  transform: rotate(0.5deg);
  margin: 25px 0;
}

.wp-block-group.is-style-notice-board:before {
  content: '📋';
  position: absolute;
  top: -15px;
  left: 20px;
  font-size: 24px;
  background: #8FBC8F;
  padding: 0 10px;
}

.wp-block-group.is-style-scrapbook {
  background: #FFFACD;
  border: none;
  padding: 20px;
  position: relative;
  margin: 20px 0;
  transform: rotate(-0.8deg);
}

.wp-block-group.is-style-scrapbook:before {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 2px dashed #8B4513;
  border-radius: 15px 5px 20px 8px;
}

.wp-block-group.is-style-scrapbook:after {
  content: '📎';
  position: absolute;
  top: 5px;
  right: 15px;
  font-size: 20px;
  transform: rotate(-25deg);
}

/* ==== IMAGE STYLES ==== */
.wp-block-image.is-style-polaroid {
  background: white;
  padding: 15px 15px 40px 15px;
  border: 1px solid #ccc;
  transform: rotate(var(--handmade-rotation));
  box-shadow: var(--amateur-shadow);
  display: inline-block;
  margin: 15px;
}

.wp-block-image.is-style-polaroid img {
  width: 100%;
  height: auto;
}

.wp-block-image.is-style-taped {
  position: relative;
  transform: rotate(-2deg);
}

.wp-block-image.is-style-taped:before,
.wp-block-image.is-style-taped:after {
  content: '';
  position: absolute;
  width: 60px;
  height: 20px;
  background: rgba(255, 255, 0, 0.7);
  transform: rotate(45deg);
  z-index: 10;
}

.wp-block-image.is-style-taped:before {
  top: -10px;
  left: 20px;
}

.wp-block-image.is-style-taped:after {
  bottom: -10px;
  right: 20px;
  transform: rotate(-45deg);
}

/* ==== LIST STYLES ==== */
.wp-block-list.is-style-handwritten {
  font-family: 'Comic Sans MS', cursive;
  color: #2F4F4F;
}

.wp-block-list.is-style-handwritten li {
  margin-bottom: 8px;
  transform: rotate(0.3deg);
  margin-left: 10px;
}

.wp-block-list.is-style-handwritten li:nth-child(even) {
  transform: rotate(-0.2deg);
  margin-left: 15px;
}

.wp-block-list.is-style-checklist li:before {
  content: '☐ ';
  color: #8B4513;
  font-weight: bold;
  margin-right: 8px;
}

.wp-block-list.is-style-doodled {
  list-style: none;
  font-family: 'Comic Sans MS', cursive;
}

.wp-block-list.is-style-doodled li:before {
  content: '★';
  color: #FFD700;
  margin-right: 10px;
  transform: rotate(15deg);
  display: inline-block;
}

.wp-block-list.is-style-doodled li:nth-child(2n):before {
  content: '♦';
  color: #FF6347;
}

.wp-block-list.is-style-doodled li:nth-child(3n):before {
  content: '♣';
  color: #2E8B57;
}

/* ==== NAVIGATION STYLES ==== */
.wp-block-navigation.is-style-handmade {
  font-family: 'Comic Sans MS', cursive;
  font-weight: bold;
}

.wp-block-navigation.is-style-handmade .wp-block-navigation-item {
  margin: 0 5px;
  transform: rotate(0.5deg);
}

.wp-block-navigation.is-style-handmade .wp-block-navigation-item:nth-child(even) {
  transform: rotate(-0.8deg);
}

.wp-block-navigation.is-style-handmade .wp-block-navigation-item a {
  color: #8B4513;
  text-decoration: none;
  padding: 8px 12px;
  background: #F5F5DC;
  border: 2px solid #8B4513;
  border-radius: 8px 12px 6px 15px;
  transition: all 0.2s ease;
}

.wp-block-navigation.is-style-handmade .wp-block-navigation-item a:hover {
  background: #98FB98;
  transform: scale(1.05) rotate(-1deg);
}

/* ==== PAGINATION FIXES ==== */
.wp-block-query-pagination {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 30px 0;
}

.wp-block-query-pagination-numbers {
  display: flex !important;
  flex-direction: row !important;
  gap: 8px;
}

.wp-block-query-pagination-numbers .page-numbers {
  display: inline-block;
  padding: 8px 12px;
  background: #F5F5DC;
  border: 2px solid #8B4513;
  border-radius: 6px;
  color: #8B4513;
  text-decoration: none;
  font-family: 'Comic Sans MS', cursive;
  font-weight: bold;
  transform: rotate(0.5deg);
  transition: all 0.2s ease;
}

.wp-block-query-pagination-numbers .page-numbers:nth-child(even) {
  transform: rotate(-0.5deg);
}

.wp-block-query-pagination-numbers .page-numbers:hover,
.wp-block-query-pagination-numbers .page-numbers.current {
  background: #98FB98;
  transform: scale(1.1) rotate(0deg);
}

/* ==== SOCIAL LINKS STYLES ==== */
.wp-block-social-links.is-style-handmade {
  gap: 15px !important;
}

.wp-block-social-links.is-style-handmade .wp-social-link {
  transform: rotate(var(--handmade-rotation));
  border: 2px solid #8B4513;
  border-radius: var(--wonky-border-radius);
  background: #F5F5DC;
  transition: all 0.2s ease;
}

.wp-block-social-links.is-style-handmade .wp-social-link:nth-child(even) {
  transform: rotate(-1.5deg);
}

.wp-block-social-links.is-style-handmade .wp-social-link:hover {
  transform: rotate(0deg) scale(1.1);
  background: #98FB98;
}

/* Force horizontal layout for social links */
.wp-block-social-links {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
}

/* ==== TABLE STYLES ==== */
.wp-block-table.is-style-handmade {
  font-family: 'Comic Sans MS', cursive;
  transform: rotate(-0.3deg);
}

.wp-block-table.is-style-handmade table {
  border-collapse: separate;
  border-spacing: 3px;
}

.wp-block-table.is-style-handmade th,
.wp-block-table.is-style-handmade td {
  border: 2px solid #8B4513;
  padding: 10px;
  background: #FFFACD;
  transform: rotate(0.2deg);
}

.wp-block-table.is-style-handmade th:nth-child(even),
.wp-block-table.is-style-handmade td:nth-child(even) {
  transform: rotate(-0.2deg);
  background: #F5F5DC;
}

.wp-block-table.is-style-handmade th {
  background: #98FB98;
  font-weight: bold;
  color: #2F4F4F;
}

/* ==== QUOTE STYLES ==== */
.wp-block-quote.is-style-handwritten {
  border-left: 5px solid #FFD700;
  background: #FFFACD;
  padding: 20px;
  font-family: 'Comic Sans MS', cursive;
  font-style: italic;
  color: #2F4F4F;
  transform: rotate(-0.5deg);
  margin: 20px 0;
  position: relative;
}

.wp-block-quote.is-style-handwritten:before {
  content: '"';
  font-size: 60px;
  color: #FFD700;
  position: absolute;
  top: -10px;
  left: 10px;
  font-family: Georgia, serif;
}

.wp-block-quote.is-style-handwritten cite {
  color: #8B4513;
  font-weight: bold;
  display: block;
  text-align: right;
  margin-top: 10px;
}

/* ==== MEDIA QUERIES FOR RESPONSIVENESS ==== */
@media (max-width: 768px) {
  .wp-block-buttons.is-layout-flex,
  .wp-block-buttons.is-style-horizontal {
    flex-direction: column !important;
    align-items: stretch;
  }
  
  .wp-block-query-pagination {
    flex-wrap: wrap;
  }
  
  .wp-block-social-links {
    justify-content: center;
  }
  
  .wp-site-blocks {
    margin: 5px;
  }
}

/* ==== UTILITY CLASSES ==== */
.handmade-rotate-left {
  transform: rotate(-1deg) !important;
}

.handmade-rotate-right {
  transform: rotate(1deg) !important;
}

.amateur-offset {
  margin-left: var(--amateur-offset) !important;
}

.wonky-border {
  border-radius: var(--wonky-border-radius) !important;
}

.rustic-shadow {
  box-shadow: var(--amateur-shadow) !important;
}

/* ==== ACCESSIBILITY IMPROVEMENTS ==== */
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .wp-site-blocks,
  .wp-block-heading.is-style-wonky,
  .wp-block-button.is-style-handmade .wp-block-button__link {
    transform: none !important;
  }
}

/* Focus states for keyboard navigation */
.wp-block-button .wp-block-button__link:focus,
.wp-block-navigation-item a:focus,
.page-numbers:focus {
  outline: 3px solid #FF6347;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .wp-block-button.is-style-handmade .wp-block-button__link {
    border-width: 4px;
  }
  
  .wp-block-heading.is-style-amateur {
    border-width: 4px;
  }
}
/* Hide hamburger by default on large screens */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
    margin: 10px;
}

/* Responsive menu styles */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        background-color: #333;
        width: 100%;
    }

    .nav-menu.show {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
    }

    .nav-menu li a {
        padding: 10px;
        border-top: 1px solid #444;
    }
}
/* --- Base styles from before remain unchanged --- */

/* Responsive adjustments */
@media (max-width: 1024px) {
    .homepage-columns {
        flex-direction: column;
    }

    .left-column,
    .right-column,
    .middle-column {
        min-width: 100%;
    }

    .post-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .homepage-navigation .nav-menu {
        flex-direction: column;
        align-items: center;
    }

    .homepage-navigation .nav-menu li a {
        padding: 10px;
    }

    .post-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .homepage-header-image img {
        height: auto;
    }

    .ticker-tape {
        font-size: 14px;
    }

    .homepage-footer {
        font-size: 14px;
    }
}
/* Site-wide wood panel background */
body {
  background: url('https://talesfromtheshed.life/wp-content/uploads/2025/07/background-1.png') no-repeat center center fixed;
  background-size: cover;
}
