/* Blog Page Styles */
.blog-main {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.page-title {
    text-align: center;
    font-weight: 200;
    letter-spacing: 3px;
    margin-bottom: 40px;
    font-size: 32px;
    text-transform: uppercase;
}

.blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
}

.blog-post {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.post-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-post:hover .post-image img {
    transform: scale(1.05);
}

.post-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #e9d8b4;
    color: #333;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 300;
    border-radius: 3px;
    letter-spacing: 1px;
}

.post-content {
    padding: 25px;
}

.post-title {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 300;
    line-height: 1.4;
    letter-spacing: 0.5px;
}

.post-date {
    color: #777;
    font-size: 14px;
    margin-bottom: 15px;
}

.post-excerpt {
    color: #555;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 20px;
    letter-spacing: 0.3px;
}

.read-more {
    display: inline-block;
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 1px;
    color: #333;
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
}

.read-more::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #333;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.read-more:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Interview article styles */
.article-header {
    position: relative;
    height: 50vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-header.higher-image {
    height: 60vh; /* Povećana visina za bolji prikaz slike */
}

.article-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.article-header.higher-image img {
    object-position: center 30%; /* Pomiče fokus slike više prema gore */
}

.article-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 5px;
    max-width: 80%;
}

.article-tag {
    display: inline-block;
    background-color: #e9d8b4;
    color: #333;
    padding: 5px 15px;
    font-size: 14px;
    font-weight: 300;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.collection-link {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.collection-link:hover {
    color: #111;
    text-decoration: underline;
}

.article-content {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    line-height: 1.8;
}

.article-content h1 {
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: 200;
    letter-spacing: 2px;
}

.article-content h2 {
    font-size: 24px;
    margin: 30px 0 15px;
    font-weight: 300;
    color: #5a5a5a;
    letter-spacing: 1.5px;
}

.article-content p {
    margin-bottom: 20px;
    font-size: 16px;
    color: #333;
    font-weight: 300;
    line-height: 1.8;
    letter-spacing: 0.5px;
}

.article-content p.intro-text {
    font-size: 18px;
    font-weight: 200;
    letter-spacing: 0.8px;
    line-height: 1.9;
    color: #444;
    margin-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 20px;
}

.article-meta {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    font-size: 14px;
    color: #888;
}

.article-date {
    margin-right: 15px;
}

.article-author {
    font-weight: 300;
}

/* Newsletter Section Styles */
.newsletter-section {
    background-color: #f9f9f9;
    padding: 60px 0;
    margin-top: 50px;
}

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

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-icon {
    font-size: 32px;
    color: #e9d8b4;
    margin-bottom: 20px;
}

.newsletter-content h2 {
    font-size: 28px;
    font-weight: 200;
    letter-spacing: 3px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.newsletter-content p {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.newsletter-form {
    display: flex;
    justify-content: center;
}

.form-wrapper {
    display: flex;
    width: 100%;
    max-width: 500px;
    position: relative;
}

#newsletterEmail {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
    outline: none;
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
}

.newsletter-btn {
    padding: 0 20px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
    font-weight: 300;
}

.newsletter-btn:hover {
    background-color: #555;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
}

.close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 22px;
    cursor: pointer;
    color: #555;
}

.discount-code {
    background-color: #f3f3f3;
    padding: 15px;
    margin: 15px 0;
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 2px;
    border: 1px dashed #ddd;
}

.modal-info {
    font-size: 14px;
    color: #666;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* Dodatni stilovi za blog s više članaka */
.blog-navigation {
    margin: 20px auto 40px;
    padding: 15px 20px;
    background-color: #f8f8f8;
    border-radius: 5px;
    max-width: 800px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.blog-navigation ul {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
}

.blog-navigation a {
    color: #333;
    text-decoration: none;
    font-weight: 300;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    letter-spacing: 1px;
}

.blog-navigation a:hover {
    background-color: #e9d8b4;
    border-color: #d9c8a4;
}

.blog-separator {
    margin: 60px auto;
    height: 1px;
    background: linear-gradient(to right, transparent, #ddd, transparent);
    max-width: 600px;
}

/* Stilovi za proizvode */
.product-feature {
    display: flex;
    align-items: center;
    margin: 30px 0;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.product-image {
    flex: 0 0 40%;
    margin-right: 30px;
}

.product-image img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.product-description {
    flex: 1;
}

.product-description h3 {
    margin-top: 0;
    font-size: 22px;
    font-weight: 300;
    color: #333;
    margin-bottom: 15px;
    letter-spacing: 1.5px;
}

.product-description p {
    margin-bottom: 15px;
    line-height: 1.8;
    letter-spacing: 0.5px;
}

.product-link {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 20px;
    background-color: #e9d8b4;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 300;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.product-link:hover {
    background-color: #d9c8a4;
    transform: translateY(-2px);
}

.note {
    padding: 15px;
    background-color: #f3f3f3;
    border-left: 4px solid #e9d8b4;
    margin: 20px 0;
    font-size: 14px;
    color: #555;
    font-weight: 300;
    letter-spacing: 0.5px;
    line-height: 1.6;
}

.product-list {
    list-style-type: none;
    padding-left: 5px;
    margin: 20px 0;
}

.product-list li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 25px;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.product-list li:before {
    content: '•';
    color: #e9d8b4;
    font-size: 22px;
    position: absolute;
    left: 0;
    top: -4px;
}

.product-list li strong {
    font-weight: 400;
}

/* Responzivnost za product-feature na mobilnim uređajima */
@media (max-width: 768px) {
    .product-feature {
        flex-direction: column;
        padding: 15px;
    }
    
    .product-image {
        flex: 0 0 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .blog-navigation ul {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
    
    .article-header-content {
        max-width: 95%;
        padding: 15px;
    }
    
    .article-header {
        height: 40vh; /* Manja visina na mobilnim uređajima */
    }
    
    .article-header.higher-image {
        height: 45vh;
    }
    
    .page-title {
        font-size: 26px;
        margin-bottom: 25px;
    }
    
    .article-content h1 {
        font-size: 24px;
        letter-spacing: 1.5px;
    }
    
    .article-content h2 {
        font-size: 20px;
        letter-spacing: 1.2px;
    }
    
    .article-content p {
        font-size: 15px;
    }
    
    .article-content p.intro-text {
        font-size: 16px;
        letter-spacing: 0.5px;
    }
    
    .product-description h3 {
        font-size: 18px;
    }
    
    .newsletter-content h2 {
        font-size: 22px;
    }
    
    .discount-code {
        font-size: 16px;
        padding: 12px;
    }
    
    .form-wrapper {
        flex-direction: column;
    }
    
    #newsletterEmail {
        border-radius: 4px;
        margin-bottom: 10px;
    }
    
    .newsletter-btn {
        width: 100%;
        border-radius: 4px;
        padding: 12px 15px;
    }
    
    .product-feature.simple {
        padding: 15px;
    }
}

/* Dodatna optimizacija za manje mobilne uređaje */
@media (max-width: 480px) {
    .article-header {
        height: 35vh;
    }
    
    .article-header.higher-image {
        height: 40vh;
    }
    
    .article-tag {
        font-size: 12px;
        padding: 4px 10px;
    }
    
    .article-content {
        padding: 0 15px;
    }
    
    .page-title {
        font-size: 22px;
    }
    
    .article-content h1 {
        font-size: 20px;
    }
    
    .article-content h2 {
        font-size: 18px;
    }
    
    .product-feature, .product-feature.simple {
        margin: 20px 0;
        padding: 12px;
    }
    
    .blog-navigation {
        padding: 10px;
        margin: 15px auto 30px;
    }
    
    .blog-navigation a {
        padding: 6px 10px;
        font-size: 14px;
    }
    
    .product-link {
        width: 100%;
        text-align: center;
    }
    
    .section-container {
        padding: 0 15px;
    }
    
    .newsletter-section {
        padding: 40px 0;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-section {
        margin-bottom: 25px;
    }
}

/* Stilovi za verziju product-feature bez slika */
.product-feature.simple {
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    padding: 25px;
    margin: 30px 0;
    border-left: 4px solid #e9d8b4;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-feature.simple:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.product-feature.simple .product-description {
    width: 100%;
}

.product-feature.simple .product-description h3 {
    font-size: 22px;
    font-weight: 300;
    color: #333;
    margin-bottom: 15px;
    letter-spacing: 1.5px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* Poboljšani stilovi za gumb */
.product-link {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 22px;
    background-color: #e9d8b4;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 300;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    outline: none;
    cursor: pointer;
}

.product-link:hover {
    background-color: #d9c8a4;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Osigurajmo da svaki članak ima dovoljno prostora */
.article-content {
    margin-bottom: 60px;
    scroll-margin-top: 100px; /* Ovo pomaže da kad skočite na članak putem linka, imate dovoljno prostora iznad */
}

/* Blog header font za tanje slova */
.blog-header h1 {
    font-weight: 200;
    letter-spacing: 3px;
}

/* Touch optimizacije za mobilne uređaje */
@media (max-width: 768px) {
    /* Povećanje touch targeta za bolju pristupačnost */
    .blog-navigation a,
    .product-link,
    .newsletter-btn,
    .collection-link {
        min-height: 44px; /* Minimum preporučen od Apple-a */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Povećanje razmaka između redova za lakše čitanje */
    .article-content p,
    .product-description p {
        line-height: 1.7;
    }
    
    /* Poboljšan kontrast za bolju čitljivost */
    .article-content p {
        color: #222;
    }
    
    /* Uvećani font za mobilne uređaje */
    html {
        font-size: 16px; /* Bazni font */
    }
    
    /* Poboljšano međuredovno razmakivanje za bolju čitljivost */
    body {
        line-height: 1.6;
    }
}

/* Poboljšanje perfomansi na mobilnim uređajima */
@media (max-width: 768px) {
    /* Optimizacija animacija za mobilne uređaje */
    .product-feature:hover,
    .product-feature.simple:hover,
    .product-link:hover {
        transform: none; /* Uklanjanje hover animacija na mobilnim uređajima */
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    }
    
    /* Dodavanje aktivnog stanja umjesto hover na mobilnim uređajima */
    .product-link:active {
        background-color: #d9c8a4;
    }
}

/* Fix za iOS Safari specifične probleme */
@supports (-webkit-overflow-scrolling: touch) {
    /* Fix za iOS input polja */
    input[type="text"],
    input[type="email"],
    input[type="search"],
    input[type="submit"],
    textarea {
        -webkit-appearance: none;
        border-radius: 4px;
    }
    
    /* Fix za 100vh problem na iOS-u */
    .article-header,
    .article-header.higher-image {
        height: 50vh; /* Prilagodba za iOS */
    }
}
