/**
 * Theme Name: Krempita za Ruđera
 * Description: Blocksy Child theme
 * Author: dnaoverride
 * Template: blocksy
 * Text Domain: blocksy
 */

/* CTA Container styling - WordPress Columns block */
.cta-container.wp-block-columns,
.wp-block-columns.cta-container {
  margin: 3rem 0;
  padding: 4rem 2.5rem;
  min-height: 250px;
  background: linear-gradient(135deg, #81d4fa 0%, #b3e5fc 50%, #81d4fa 100%);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Target inner column in the columns block */
.cta-container .wp-block-column,
.wp-block-columns.cta-container .wp-block-column {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
}

/* CTA Button centering */
.cta-container .dna-cta,
.cta-container .wp-block-button.dna-cta,
.cta-container .wp-block-button,
.cta-container .wp-block-structured {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* CTA Button styling - larger, bold, with shadow */
.cta-container .dna-cta .wp-block-button__link,
.cta-container .wp-block-button .wp-block-button__link,
.cta-container .wp-block-button__link {
  font-size: 1.35rem;
  font-weight: 700;
  padding: 1.25rem 3rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  transform: translateY(0);
}

/* Hover effect for button */
.cta-container .dna-cta .wp-block-button__link:hover,
.cta-container .wp-block-button .wp-block-button__link:hover,
.cta-container .wp-block-button__link:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25), 0 3px 6px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}





/* Header - Full width and green gradient */
[data-header*="type-1"] .ct-header,
[data-header*="type-1"] #header.ct-header {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #14a085 0%, #0d7377 50%, #14a085 100%);
  background-color: #0d7377;
  box-shadow: 0 2px 12px rgba(13, 115, 119, 0.2);
}

/* Header rows - full width and background */
[data-header*="type-1"] .ct-header [data-row*="top"],
[data-header*="type-1"] .ct-header [data-row*="middle"],
[data-header*="type-1"] .ct-header [data-row*="bottom"] {
  width: 100%;
  max-width: 100%;
  background: linear-gradient(135deg, #14a085 0%, #0d7377 50%, #14a085 100%);
  background-color: #0d7377;
}

/* Header row containers - full width and background */
[data-header*="type-1"] .ct-header [data-row*="top"] > div,
[data-header*="type-1"] .ct-header [data-row*="middle"] > div,
[data-header*="type-1"] .ct-header [data-row*="bottom"] > div {
  width: 100%;
  max-width: 100%;
  background: linear-gradient(135deg, #14a085 0%, #0d7377 50%, #14a085 100%);
  background-color: #0d7377;
}

/* Header container fluid - full width with padding */
[data-header*="type-1"] .ct-header .ct-container-fluid,
[data-header*="type-1"] .ct-header [class*="ct-container"],
[data-header*="type-1"] #header .ct-container-fluid,
[data-header*="type-1"] #header [class*="ct-container"] {
  width: 100%;
  max-width: 100%;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  box-sizing: border-box;
}

/* Menu Links - White text for contrast on green gradient */
[data-header*="type-1"] .ct-header [data-id="menu"] > ul > li > a {
  color: #ffffff;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.5rem 1rem;
  border-radius: 0;
  transition: all 0.25s ease;
  text-decoration: none;
}

/* Menu Links Hover - Light background with darker green text */
[data-header*="type-1"] .ct-header [data-id="menu"] > ul > li > a:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* Menu Links Active/Focus - Accessibility */
[data-header*="type-1"] .ct-header [data-id="menu"] > ul > li > a:focus {
  color: #ffffff;
  outline: 2px solid #ffffff;
  outline-offset: 2px;
  background-color: rgba(255, 255, 255, 0.15);
}

/* Menu Links Active State */
[data-header*="type-1"] .ct-header [data-id="menu"] > ul > li.current-menu-item > a {
  color: #ffffff;
  font-weight: 600;
}

/* Logo area - ensure good contrast */
[data-header*="type-1"] .ct-header [data-id="logo"] {
  opacity: 1;
}

/* Mobile menu button - white for contrast on green gradient */
[data-header*="type-1"] .ct-header [data-id="mobile-menu"] button,
[data-header*="type-1"] .ct-header [data-id="mobile-menu"] .ct-toggle {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  transition: all 0.25s ease;
}

[data-header*="type-1"] .ct-header [data-id="mobile-menu"] button:hover,
[data-header*="type-1"] .ct-header [data-id="mobile-menu"] .ct-toggle:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
}

/* Cart icon - white color only, no extra borders/backgrounds */
[data-header*="type-1"] .ct-header [data-id="cart"] .ct-cart-item,
[data-header*="type-1"] .ct-header [data-id="cart"] button,
[data-header*="type-1"] .ct-header [data-id="cart"] a {
  color: #ffffff;
  --theme-icon-color: #ffffff;
  background-color: transparent;
  border: none;
  padding: 0.5rem;
  transition: all 0.25s ease;
}

[data-header*="type-1"] .ct-header [data-id="cart"] .ct-cart-item:hover,
[data-header*="type-1"] .ct-header [data-id="cart"] button:hover,
[data-header*="type-1"] .ct-header [data-id="cart"] a:hover {
  color: #ffffff;
  --theme-icon-color: #ffffff;
  background-color: transparent;
  opacity: 0.9;
}

[data-header*="type-1"] .ct-header [data-id="cart"] svg,
[data-header*="type-1"] .ct-header [data-id="cart"] .ct-icon {
  fill: #ffffff;
  stroke: #ffffff;
  color: #ffffff;
  --theme-icon-color: #ffffff;
}

[data-header*="type-1"] .ct-header [data-id="cart"] .ct-cart-total {
  color: #ffffff;
}

/* Cart badge - simple white background */
[data-header*="type-1"] .ct-header [data-id="cart"] .ct-cart-badge {
  background-color: #ffffff;
  color: #0d7377;
  border: none;
}

/* Mobile Menu Offcanvas Panel - Green gradient background */
[data-header*="type-1"] .ct-panel,
[data-header*="type-1"] #offcanvas.ct-panel,
body[data-panel] .ct-panel[data-id="offcanvas"],
body[data-panel] [data-header*="type-1"] .ct-panel,
.ct-panel[data-id="offcanvas"],
[data-header*="type-1"] body[data-panel] .ct-panel {
  width: 100%;
  max-width: 100%;
  background: linear-gradient(135deg, #14a085 0%, #0d7377 50%, #14a085 100%);
  background-color: #0d7377;
  background-image: linear-gradient(135deg, #14a085 0%, #0d7377 50%, #14a085 100%);
}

/* Mobile menu panel inner - ensure full width */
[data-header*="type-1"] .ct-panel .ct-panel-inner,
[data-header*="type-1"] .ct-panel-inner,
body[data-panel] [data-header*="type-1"] .ct-panel .ct-panel-inner {
  width: 100%;
  max-width: 100%;
  background: linear-gradient(135deg, #14a085 0%, #0d7377 50%, #14a085 100%);
  background-color: #0d7377;
  --theme-panel-background: linear-gradient(135deg, #14a085 0%, #0d7377 50%, #14a085 100%);
}

/* Mobile menu panel content - ensure full width */
[data-header*="type-1"] .ct-panel .ct-panel-content,
[data-header*="type-1"] .ct-panel-content {
  width: 100%;
  max-width: 100%;
  background: transparent;
}

[data-header*="type-1"] .ct-panel .ct-panel-content-inner,
[data-header*="type-1"] .ct-panel-content-inner {
  width: 100%;
  max-width: 100%;
  background: transparent;
}

/* Mobile Menu Close Button (X) - High visibility */
[data-header*="type-1"] .ct-panel .ct-toggle-close {
  color: #ffffff;
  --theme-icon-color: #ffffff;
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  padding: 12px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

[data-header*="type-1"] .ct-panel .ct-toggle-close:hover {
  color: #ffffff;
  --theme-icon-color: #ffffff;
  background-color: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transform: scale(1.05);
}

[data-header*="type-1"] .ct-panel .ct-toggle-close svg {
  fill: #ffffff;
  stroke: #ffffff;
  width: 20px;
  height: 20px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

/* Mobile Menu Links - White color for better readability */
[data-header*="type-1"] .ct-panel [data-id="mobile-menu"] .mobile-menu a,
[data-header*="type-1"] .ct-panel [data-id="mobile-menu"] .mobile-menu .ct-menu-link,
[data-header*="type-1"] .ct-panel [data-id="mobile-menu"] .mobile-menu li a,
[data-header*="type-1"] .ct-panel .mobile-menu a,
[data-header*="type-1"] .ct-panel .mobile-menu .ct-menu-link,
[data-header*="type-1"] .ct-panel .mobile-menu li a,
body[data-panel] [data-header*="type-1"] .ct-panel .mobile-menu a,
body[data-panel] [data-header*="type-1"] .ct-panel .mobile-menu .ct-menu-link {
  color: #ffffff;
  --theme-link-initial-color: #ffffff;
  --theme-text-color: #ffffff;
  font-weight: 600;
  font-size: 18px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  padding: 0.75rem 0;
  transition: all 0.25s ease;
}

[data-header*="type-1"] .ct-panel [data-id="mobile-menu"] .mobile-menu a:hover,
[data-header*="type-1"] .ct-panel [data-id="mobile-menu"] .mobile-menu .ct-menu-link:hover,
[data-header*="type-1"] .ct-panel [data-id="mobile-menu"] .mobile-menu li a:hover,
[data-header*="type-1"] .ct-panel .mobile-menu a:hover,
[data-header*="type-1"] .ct-panel .mobile-menu .ct-menu-link:hover,
body[data-panel] [data-header*="type-1"] .ct-panel .mobile-menu a:hover {
  color: #ffffff;
  --theme-link-hover-color: #ffffff;
  opacity: 1;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
}

[data-header*="type-1"] .ct-panel [data-id="mobile-menu"] .mobile-menu li.current-menu-item > a,
[data-header*="type-1"] .ct-panel [data-id="mobile-menu"] .mobile-menu li.current-menu-item > .ct-menu-link,
[data-header*="type-1"] .ct-panel .mobile-menu li.current-menu-item > a,
body[data-panel] [data-header*="type-1"] .ct-panel .mobile-menu li.current-menu-item > a {
  color: #ffffff;
  font-weight: 700;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* Mobile menu dropdown/submenu items - white color */
[data-header*="type-1"] .ct-panel .mobile-menu .sub-menu a,
[data-header*="type-1"] .ct-panel .mobile-menu .sub-menu .ct-menu-link,
[data-header*="type-1"] .ct-panel [data-id="mobile-menu"] .mobile-menu .sub-menu a,
body[data-panel] [data-header*="type-1"] .ct-panel .mobile-menu .sub-menu a {
  color: #ffffff;
  --theme-link-initial-color: #ffffff;
  --theme-text-color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* All text in mobile menu panel - ensure white */
[data-header*="type-1"] .ct-panel [data-id="mobile-menu"],
[data-header*="type-1"] .ct-panel [data-id="mobile-menu"] *,
body[data-panel] [data-header*="type-1"] .ct-panel [data-id="mobile-menu"] * {
  color: #ffffff;
  --theme-text-color: #ffffff;
}

/* Mobile Menu Panel Actions (header with close button) */
[data-header*="type-1"] .ct-panel-actions {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 15px;
  margin-bottom: 10px;
}

[data-header*="type-1"] .ct-panel-heading {
  color: #ffffff;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Social icons in mobile menu - better visibility */
[data-header*="type-1"] .ct-panel [data-id*="social"] a {
  color: #ffffff;
  opacity: 0.9;
  transition: all 0.25s ease;
}

[data-header*="type-1"] .ct-panel [data-id*="social"] a:hover {
  color: #ffffff;
  opacity: 1;
  transform: scale(1.1);
}

/* Mobile specific improvements for offcanvas menu */
@media (max-width: 689.98px) {
  /* Ensure close button is visible on mobile */
  [data-header*="type-1"] .ct-panel .ct-toggle-close {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    padding: 14px;
    margin-top: 5px;
    margin-right: 5px;
  }
  
  [data-header*="type-1"] .ct-panel .ct-toggle-close svg {
    width: 22px;
    height: 22px;
  }
  
  /* Better font size for mobile menu links - ensure white color */
  [data-header*="type-1"] .ct-panel [data-id="mobile-menu"] .mobile-menu a,
  [data-header*="type-1"] .ct-panel [data-id="mobile-menu"] .mobile-menu .ct-menu-link,
  [data-header*="type-1"] .ct-panel [data-id="mobile-menu"] .mobile-menu li a,
  [data-header*="type-1"] .ct-panel .mobile-menu a,
  [data-header*="type-1"] .ct-panel .mobile-menu .ct-menu-link,
  body[data-panel] [data-header*="type-1"] .ct-panel .mobile-menu a {
    color: #ffffff;
    --theme-link-initial-color: #ffffff;
    --theme-text-color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.5;
    padding: 1rem 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  }
  
  /* Cart icon mobile - white only, no borders */
  [data-header*="type-1"] .ct-header [data-id="cart"] .ct-cart-item,
  [data-header*="type-1"] .ct-header [data-id="cart"] button,
  [data-header*="type-1"] .ct-header [data-id="cart"] a {
    color: #ffffff;
    --theme-icon-color: #ffffff;
    background-color: transparent;
    border: none;
  }
  
  [data-header*="type-1"] .ct-header [data-id="cart"] svg {
    fill: #ffffff;
    stroke: #ffffff;
    color: #ffffff;
  }
  
  /* Ensure panel background is solid on mobile - full width and green gradient */
  [data-header*="type-1"] .ct-panel,
  body[data-panel] .ct-panel[data-id="offcanvas"],
  body[data-panel] [data-header*="type-1"] .ct-panel,
  .ct-panel[data-id="offcanvas"],
  [data-header*="type-1"] body[data-panel] .ct-panel {
    width: 100%;
    max-width: 100%;
    background: #0d7377;
    background-color: #0d7377;
    background-image: linear-gradient(135deg, #14a085 0%, #0d7377 50%, #14a085 100%);
  }
  
}

.ct-footer [data-column] {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content:  center;
  min-width: 0;
}

.ct-footer [data-column] ul li a {
  color: #4b7878;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 0.5rem 1rem;
  border-radius: 0;
  transition: all 0.25s ease;
  text-decoration: none;
}

/* Mobile fixes for Prethodna/Sledeća buttons - prevent overflow */
@media (max-width: 768px) {
  /* Hero slider navigation buttons - keep inside viewport */
  .wp-block-dna-hero-snap .dna-hero-prev,
  .wp-block-dna-hero-snap .dna-hero-next,
  .wp-block-dna-hero-snap button.dna-hero-prev,
  .wp-block-dna-hero-snap button.dna-hero-next {
    position: absolute;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    margin: 0;
    left: 8px;
    right: auto;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  .wp-block-dna-hero-snap .dna-hero-prev,
  .wp-block-dna-hero-snap button.dna-hero-prev {
    left: 8px;
    right: auto;
  }
  
  .wp-block-dna-hero-snap .dna-hero-next,
  .wp-block-dna-hero-snap button.dna-hero-next {
    right: 8px;
    left: auto;
  }
  
  /* Hide text content, show only arrow */
  .wp-block-dna-hero-snap .dna-hero-prev,
  .wp-block-dna-hero-snap button.dna-hero-prev {
    text-indent: -9999px;
  }
  
  .wp-block-dna-hero-snap .dna-hero-prev::after,
  .wp-block-dna-hero-snap button.dna-hero-prev::after {
    content: '‹';
    text-indent: 0;
    position: absolute;
    font-size: 28px;
    line-height: 1;
    color: #ffffff;
  }
  
  .wp-block-dna-hero-snap .dna-hero-next,
  .wp-block-dna-hero-snap button.dna-hero-next {
    text-indent: -9999px;
  }
  
  .wp-block-dna-hero-snap .dna-hero-next::after,
  .wp-block-dna-hero-snap button.dna-hero-next::after {
    content: '›';
    text-indent: 0;
    position: absolute;
    font-size: 28px;
    line-height: 1;
    color: #ffffff;
  }
}

/* Gallery modal navigation buttons - Replace text with arrows, visible on all backgrounds */
.dna-gallery-prev,
.dna-gallery-next {
  /* Hide text content */
  font-size: 0;
  text-indent: -9999px;
  overflow: hidden;
  position: relative;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

/* Add arrow icons with high contrast */
.dna-gallery-prev::after,
.dna-gallery-next::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-style: solid;
}

/* Left arrow (Previous) */
.dna-gallery-prev::after {
  border-width: 12px 18px 12px 0;
  border-color: transparent #ffffff transparent transparent;
  filter: drop-shadow(-2px 0 2px rgba(0, 0, 0, 0.8)) 
          drop-shadow(2px 0 2px rgba(0, 0, 0, 0.8))
          drop-shadow(0 -2px 2px rgba(0, 0, 0, 0.8))
          drop-shadow(0 2px 2px rgba(0, 0, 0, 0.8));
  margin-left: -2px;
}

/* Right arrow (Next) */
.dna-gallery-next::after {
  border-width: 12px 0 12px 18px;
  border-color: transparent transparent transparent #ffffff;
  filter: drop-shadow(-2px 0 2px rgba(0, 0, 0, 0.8)) 
          drop-shadow(2px 0 2px rgba(0, 0, 0, 0.8))
          drop-shadow(0 -2px 2px rgba(0, 0, 0, 0.8))
          drop-shadow(0 2px 2px rgba(0, 0, 0, 0.8));
  margin-left: 2px;
}

/* Hover effect */
.dna-gallery-prev:hover,
.dna-gallery-next:hover {
  background: rgba(0, 0, 0, 0.7);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6), 
              inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Gallery modal navigation buttons - mobile fix */
@media (max-width: 768px) {
  /* Remove negative margins that push buttons off screen */
  .dna-gallery-modal-nav {
    padding: 0 1rem;
    left: 0;
    width: 100%;
    max-width: 100vw;
  }
  
  .dna-gallery-prev,
  .dna-gallery-next {
    margin-left: 0;
    margin-right: 0;
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    padding: 0;
    position: relative;
    flex-shrink: 0;
  }
  
  .dna-gallery-prev {
    margin-left: 0;
    left: 0;
  }
  
  .dna-gallery-next {
    margin-right: 0;
    right: 0;
  }
  
  /* Arrow sizes for mobile */
  .dna-gallery-prev::after {
    border-width: 10px 14px 10px 0;
  }
  
  .dna-gallery-next::after {
    border-width: 10px 0 10px 14px;
  }
  
  /* Ensure buttons are inside viewport */
  .dna-gallery-modal-nav {
    left: 0;
    right: 0;
    padding-left: 12px;
    padding-right: 12px;
    box-sizing: border-box;
  }
}

@media (max-width: 480px) {
  .dna-gallery-prev,
  .dna-gallery-next {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }
  
  /* Smaller arrows for small screens */
  .dna-gallery-prev::after {
    border-width: 8px 12px 8px 0;
  }
  
  .dna-gallery-next::after {
    border-width: 8px 0 8px 12px;
  }
  
  .dna-gallery-modal-nav {
    padding-left: 8px;
    padding-right: 8px;
  }
}

/* Footer menu mobile centering and wrapping */
@media (max-width: 768px) {
  .ct-footer [data-column] {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  
  .ct-footer [data-column] ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  
  .ct-footer [data-column] ul li {
    margin: 0;
    padding: 0;
    list-style: none;
  }
  
  .ct-footer [data-column] ul li a {
    padding: 0.5rem 0.75rem;
    font-size: 12px;
    display: inline-block;
    white-space: nowrap;
  }
  
  /* Social icons mobile centering */
  .ct-footer [data-column*="social"] {
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
}
