/*
Theme Name: Struktura
Theme URI: https://zicoding.com
Author: ZiCoding
Description: Super brza, SEO optimizovana tema.
Version: 1.0
*/

/* Osnovni stilovi */
.entry-content {
  padding: 80px 20px;
  margin: 0 auto;
  background-color: #fff; 
  border-radius: 15px; 
}
.post-navigation {
    margin: 3rem 0;
    text-align: center;
}

.nav-links {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    padding: 0.5rem;
    border-radius: 50px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    max-width: 100%;
    overflow: hidden;
}

.nav-previous,
.nav-next {
    padding: 0.75rem 1.5rem;
    color: #666;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    min-width: 120px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-subtitle {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.nav-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-previous:focus,
.nav-next:focus {
    outline: 2px solid var(--osnovna-boja);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        padding: 1rem;
        border-radius: 12px;
        gap: 1rem;
    }
    
    .nav-previous,
    .nav-next {
        width: 100%;
        min-width: auto;
        padding: 1rem;
        border-radius: 8px;
    }
    
    .nav-title {
        max-width: 100%;
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .nav-title {
        font-size: 0.9rem;
    }
    
    .nav-subtitle {
        font-size: 0.75rem;
    }
}
.nav-subtitle {
  font-size: 0.85rem;
  opacity: 0.9;
}

.nav-title {
  font-size: 1rem;
  font-weight: bold;
  line-height: 1.4;
  word-break: break-word;
  overflow-wrap: break-word;
}
h1.entry-title, 
h1.shop-title,
h1.page-title,
h1.product_title{
  text-shadow: 0 8px 20px rgb(0, 0, 0), 0 12px 30px rgb(0, 0, 0);
}
.entry-title,
.shop-title,
.page-title,
.product_title {
  font-size: 3rem;
  font-weight: 700;
  text-align: center;
  color: #fff;
background: linear-gradient(135deg, rgba(255, 0, 0, 0.7) 0%, rgba(255, 0, 0, 0.8) 100%),
              url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="construction-sub" x="0" y="0" width="100" height="100" patternUnits="userSpaceOnUse"><rect fill="%23f8f9fa" width="100" height="100"/><path d="M10 10h80v80h-80z" fill="none" stroke="%23dee2e6" stroke-width="2"/></pattern></defs><rect width="1000" height="1000" fill="url(%23construction-sub)"/></svg>') center/cover;
 
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 40px 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 0 0 15px 15px;
  margin: auto; 
  margin-bottom: 20px;
}
/* Naslovi */
.wp-block-heading {
    position: relative;
    font-weight: 700;
    color: #2d2d2d;
    margin: 40px 0 30px;
    padding-bottom: 15px;
    letter-spacing: 0.5px;
}
/*
.wp-block-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    transform: none;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--osnovna-boja), var(--dopunska-boja));
    border-radius: 3px;
}*/

.wp-block-heading::after {
    width: 120px;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

h2.wp-block-heading {
    font-size: 1.6rem;
}

h3.wp-block-heading {
    font-size: 1.4rem;
}
/* Kontakt forme - globalno */
.wpcf7 {
    max-width: 55%;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
body.home .wpcf7 {
    max-width: 75%;
}
.wpcf7 label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.wpcf7 .wpcf7-form-control {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 1.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.wpcf7 .wpcf7-form-control:focus {
    border-color: var(--osnovna-boja);
    box-shadow: 0 0 0 2px rgba(74, 108, 247, 0.2);
    outline: none;
    background-color: #fff;
}

.wpcf7 textarea.wpcf7-textarea {
    min-height: 150px;
    resize: vertical;
}

.wpcf7 .wpcf7-submit {
    background-color: var(--boja-gumb);
    color: #fff;
    border: none;
    padding: 12px 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto;
}

.wpcf7 .wpcf7-submit:hover {
    background-color: var(--boja-gumb-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(74, 108, 247, 0.3);
}

.wpcf7 .wpcf7-response-output {
    padding: 15px;
    margin: 1rem 0 0;
    border-radius: 4px;
    font-size: 0.9rem;
}

.wpcf7 .wpcf7-not-valid-tip {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: -1rem;
    margin-bottom: 1rem;
}

.wpcf7 .wpcf7-spinner {
    border-color: var(--osnovna-boja);
    border-right-color: transparent;
}

/* reCAPTCHA */
.wpcf7-recaptcha {
  display: block;
  max-width: 100%;
  width: 304px;
  margin: 0 auto;
  box-sizing: border-box;
}

.wpcf7-recaptcha > div:first-child {
  width: 100% !important;
  height: auto !important;
  min-height: 78px;
  box-sizing: border-box;
}

.wpcf7-recaptcha iframe {
  max-width: 100% !important;
  width: 100% !important;
  height: 78px !important;
  box-sizing: border-box;
}

@media (max-width: 400px) {
  .wpcf7-form,
  .wpcf7-recaptcha {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden;
  }
  
  #rc-anchor-container,
  .rc-anchor-normal {
    transform: scale(0.7);
    transform-origin: 0 0;
  }
  .wpcf7 {
    max-width: 100%;
    margin: auto;
    padding: 5px;
}
}


/* Dugmad */
.wp-element-button,
.wp-block-button__link {
  background-color: var(--boja-gumb);
  color: #fff;
  text-decoration: none;
  border: 1px solid var(--osnovna-boja);
  border-radius: 2px;
  margin-top: 10px;
}

.wp-element-button,
.wp-block-button__link:hover {
  background-color: var(--boja-gumb-hover);
}
/* content plugin*/
.tpg-post-link img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.tpg-post-link:hover img,
.tpg-post-link:focus img {
  transform: scale(1.1);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}
/*categorije file*/
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;   
  margin: 0 auto;
  padding: 80px 20px;
  box-sizing: border-box;
  background-color: #fff;
  border-radius: 15px;
}

.news-grid .grid-item {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.news-grid .grid-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.news-grid .grid-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
  transition: transform 0.3s ease;
}

.news-grid .grid-item:hover img {
  transform: scale(1.05); 
}

.news-grid .grid-item h2 {
  font-size: 20px;
  line-height: 1.4;
  margin: 18px 18px 10px;
  font-weight: 600;
}

.news-grid .grid-item h2 a {
  text-decoration: none;
  color: #222;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.news-grid .grid-item h2 a:hover {
  color: var(--osnovna-boja);
  text-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.news-grid .grid-item p {
  font-size: 15px;
  color: #555;
  margin: 0 18px 18px;
  flex-grow: 1;
  line-height: 1.6;
}

/* responsive adjustments */
@media (max-width: 768px) {
   .news-grid {
    grid-template-columns: 1fr;
    padding: 40px 15px;
    gap: 20px;
  }

  .news-grid .grid-item img {
    height: 180px;
  }

  .news-grid .grid-item h2 {
    font-size: 18px;
  }
}
@media (max-width: 480px) {
   .news-grid {
    grid-template-columns: 1fr;
    padding: 30px 10px;
    gap: 15px;
  }

  .news-grid .grid-item img {
    height: 140px;
  }

  .news-grid .grid-item h2 {
    font-size: 16px;
  }
}
/* ===========================
   Pagination Styling
   =========================== */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.pagination a.page-numbers {
  display: inline-block;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 500;
  color: #333;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.pagination a.page-numbers:hover {
  background: var(--osnovna-boja);
  color: #fff;
border-color: var(--osnovna-boja);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,115,230,0.3);
}

/* aktivna stranica */
.pagination .page-numbers.current {
  background: var(--osnovna-boja);
  color: #fff;
  border-color: var(--osnovna-boja);
  font-weight: 600;
  cursor: default;
  box-shadow: 0 4px 12px rgba(0,115,230,0.3);
  padding: 10px 16px;
}

/* prev/next specijalni stil */
.pagination .prev,
.pagination .next {
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* mobile optimizacija */
@media (max-width: 600px) {
  .pagination a.page-numbers {
    padding: 8px 12px;
    font-size: 14px;
  }
}

/* Glavni kontejner */
.lwptoc_i {
    background-color: #f5faff;
    border: 1px solid #d0e6f7;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Naslov sekcije */
.lwptoc_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.lwptoc_title {
    font-size: 20px;
    font-weight: 600;
    color: var(--osnovna-boja);
}

/* Prikrij/Prikaži link */
.lwptoc_toggle a {
    font-size: 14px;
    color: var(--osnovna-boja);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.lwptoc_toggle a:hover {
    color: var(--dopunska-boja);
}

/* Stavke liste */
.lwptoc_items {
    padding-left: 0;
}

.lwptoc_itemWrap {
    padding-left: 15px;
}

.lwptoc_item {
    margin-bottom: 10px;
}

.lwptoc_item a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--osnovna-boja);
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    padding-left: 8px;
}

.lwptoc_item a:hover {
    color: var(--osnovna-boja);
    border-left: 3px solid #0073aa;
    background-color: #eef7fc;
    border-radius: 4px;
}

/* Brojevi */
.lwptoc_item_number {
    font-weight: 600;
    color: var(--osnovna-boja);
    min-width: 30px;
}


/* Responsivnost */
@media (max-width: 1024px) {
    .entry-title, .page-title, .shop-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .entry-title,
  .shop-title,
  .page-title,
  .product_title {
    font-size: 2.2rem; 
    padding: 30px 15px; 
    letter-spacing: 1.5px;
  }
    
    .wp-block-heading {
        font-size: 1.8rem;
        margin: 30px 0 20px;
    }
    
    h2.wp-block-heading {
        font-size: 1.6rem;
    }
    
    h3.wp-block-heading {
        font-size: 1.3rem;
    }
    
    #wpcf7-f191-o1 {
        max-width: 100%;
        padding: 1.5rem;
    }
    
    #wpcf7-f191-o1 .wpcf7-form-control {
        padding: 10px 12px;
    }
   .nav-links {
    flex-direction: column;
    align-items: stretch; 
    gap: 1rem; 
  }

  .nav-previous,
  .nav-next {
    width: 100%; 
  }

  .nav-previous a,
  .nav-next a {
    width: 100%;
    white-space: normal; 
    text-align: left; 
    justify-content: flex-start;
  }

  .nav-next a {
    flex-direction: row-reverse;
  }
}


@media (max-width: 480px) {
     .entry-title,
  .shop-title,
  .page-title,
  .product_title {
    font-size: 1.6rem; 
    padding: 20px 10px;
    letter-spacing: 1px;
  }
    
    h2.wp-block-heading {
        font-size: 1.4rem;
    }
    
    h3.wp-block-heading {
        font-size: 1.1rem;
    }
}


/* Globalni stil za WP slike */
.wp-block-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;         /* moderni zaobljeni rubovi */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08); /* mekana sjena */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 15px auto 15px auto;
}

/* Hover efekat za bolji dojam */
.wp-block-image img:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

/* Centrirane figure */
.wp-block-image figure.aligncenter {
  text-align: center;
  margin: 30px auto;
  max-width: 1000px;
}

/* Slike lijevo i desno */
.wp-block-image figure.alignleft,
.wp-block-image figure.alignright {
  max-width: 50%;
}

.wp-block-image figure.alignleft {
  float: left;
  margin: 0 20px 20px 0;
}

.wp-block-image figure.alignright {
  float: right;
  margin: 0 0 20px 20px;
}

/* Caption ispod slike */
.wp-block-image figcaption {
  font-size: 14px;
  color: #666;
  margin-top: 10px;
  text-align: center;
  font-style: italic;
}

/* Responzivnost */
@media (max-width: 768px) {
  .wp-block-image figure.alignleft,
  .wp-block-image figure.alignright {
    float: none;
    max-width: 100%;
    margin: 20px auto;
    text-align: center;
  }
  .wp-block-image figure.aligncenter {
  margin: 0 auto;
}
}
