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

/* Osnovni stilovi */
.entry-content {
  padding: 25px;
}
.nav-links {
  display: flex;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 1rem;
}

.nav-previous,
.nav-next {
  flex: 1 1 50%;
  background-color: var(--osnovna-boja);
  border-radius: 10px;
  padding: 1rem;
  min-width: 0;
  transition: background-color 0.3s ease;
}
.nav-previous:hover,
.nav-next:hover {
  background-color: var(--dopunska-boja);
}
.nav-previous a,
.nav-next a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.nav-previous a:hover,
.nav-next a:hover {
  background-color: var(--dopunska-boja);
}

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


.entry-title,
.shop-title,
.product_title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: -0.05em;
    text-align: center;
    text-transform: uppercase;
    background-color: var(--osnovna-boja);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0 1.5rem 0 0;
    padding: 35px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.entry-title::after,
.shop-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--osnovna-boja) 0%, var(--dopunska-boja) 100%);
    border-radius: 2px;
}

/* Naslovi */
.wp-block-heading {
    position: relative;
    text-align: center;
    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: 50%;
    transform: translateX(-50%);
    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;
}

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

h3.wp-block-heading {
    font-size: 1.4rem;
}

/* Kontakt forma */
#wpcf7-f157-p144-o1 {
    max-width: 70%;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

#wpcf7-f157-p144-o1 label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

#wpcf7-f157-p144-o1 .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-f157-p144-o1 .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-f157-p144-o1 textarea.wpcf7-textarea {
    min-height: 150px;
    resize: vertical;
}

#wpcf7-f157-p144-o1 .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-f157-p144-o1 .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-f157-p144-o1 .wpcf7-response-output {
    padding: 15px;
    margin: 1rem 0 0;
    border-radius: 4px;
    font-size: 0.9rem;
}

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

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

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

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

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

/* 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);
}

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

@media (max-width: 768px) {
    .entry-title, .shop-title {
        font-size: 1.8rem;
        letter-spacing: -0.03em;
    }
    
    .entry-title::after,
    .shop-title::after {
        width: 80px;
        height: 3px;
    }
    
    .wp-block-heading {
        font-size: 1.8rem;
        margin: 30px 0 20px;
    }
    
    h2.wp-block-heading {
        font-size: 1.5rem;
    }
    
    h3.wp-block-heading {
        font-size: 1.3rem;
    }
    
    #wpcf7-f157-p144-o1 {
        max-width: 100%;
        padding: 1.5rem;
    }
    
    #wpcf7-f157-p144-o1 .wpcf7-form-control {
        padding: 10px 12px;
    }
     .nav-links {
    flex-direction: column;
  }

  .nav-next a {
    flex-direction: row-reverse;
    justify-content: flex-start;
    text-align: left;
  }
}


@media (max-width: 480px) {
    .entry-title, .shop-title {
        font-size: 1.5rem;
        margin: 0 1rem 0 0;
        padding: 0.3rem 0;
    }
    
    .entry-title::after,
    .shop-title::after {
        width: 60px;
        height: 2px;
    }
    
    h2.wp-block-heading {
        font-size: 1.2rem;
    }
    
    h3.wp-block-heading {
        font-size: 1.1rem;
    }
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    .entry-title, .shop-title {
        color: #f7fafc;
        background: linear-gradient(90deg, #9f7aea 0%, #ed64a6 100%);
        -webkit-background-clip: text;
        background-clip: text;
    }
    
    .entry-title, .shop-title::after {
        background: linear-gradient(90deg, #9f7aea 0%, #ed64a6 100%);
    }
}