/* Blog CSS */

/* Blog Hero sekcija */
.blog-hero {
    background-color: var(--dark-gray);
    padding: 150px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(to left, var(--red) 30%, transparent);
    filter: blur(2000px);
    opacity: 0.9;
    z-index: 1;
}

.blog-hero-title {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.blog-hero-subtitle {
    font-size: 1.2rem;
    color: var(--off-white);
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Blog kategorije */
.blog-categories {
    background-color: var(--white);
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 80px;
    z-index: 100;
}

.categories-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.category-item {
    padding: 8px 20px;
    border-radius: 30px;
    color: var(--dark-gray);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    background-color: #f5f5f5;
}

.category-item:hover {
    background-color: #e9e9e9;
}

.category-item.active {
    background-color: var(--red);
    color: var(--white);
}

/* Blog vsebina */
.blog-content {
    background-color: var(--white);
    padding: 30px;
}

.blog-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

/* Blog glavni del */
.blog-main {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Blog iskanje */
.blog-search {
    margin-bottom: 20px;
}

.search-form {
    display: flex;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.search-form input {
    flex: 1;
    padding: 15px;
    border: none;
    font-size: 1rem;
}

.search-form input:focus {
    outline: none;
}

.search-form button {
    background-color: var(--red);
    color: var(--white);
    border: none;
    padding: 0 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-form button:hover {
    background-color: var(--red-hover);
}

.search-form button [data-lucide] {
    width: 20px;
    height: 20px;
}

/* Blog mreža */
.blog-content .blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

/* Blog kartica - dodatni stili za blog podstran */
.blog-content .blog-card {
    margin-bottom: 0;
}

.blog-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: var(--medium-gray);
}

.blog-date, .blog-category {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-date [data-lucide], .blog-category [data-lucide] {
    width: 14px;
    height: 14px;
}

/* Blog paginacija */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.page-number, .page-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f5f5f5;
    color: var(--dark-gray);
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-number:hover, .page-nav:hover {
    background-color: #e9e9e9;
}

.page-number.active {
    background-color: var(--red);
    color: var(--white);
    cursor: default;
}

.page-nav.prev, .page-nav.next {
    font-weight: bold;
}

.page-nav [data-lucide] {
    width: 18px;
    height: 18px;
}

/* Blog stranska vrstica */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.sidebar-widget {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.widget-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--dark-gray);
    position: relative;
    padding-bottom: 10px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--red);
}

/* O avtorju widget */
.author-info {
    text-align: center;
}

.author-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 15px;
    border: 3px solid var(--red);
    object-fit: cover;
}

.author-info h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--dark-gray);
}

.author-info p {
    color: var(--medium-gray);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.btn-sm {
    padding: 8px 15px;
    font-size: 0.9rem;
}

/* Priljubljeni članki widget */
.popular-post-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.popular-post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.popular-post-item img {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
}

.popular-post-content h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.popular-post-content h4 a {
    color: var(--dark-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.popular-post-content h4 a:hover {
    color: var(--red);
}

.post-date {
    font-size: 0.8rem;
    color: var(--medium-gray);
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-date [data-lucide] {
    width: 12px;
    height: 12px;
}

/* Kategorije widget */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.category-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    color: var(--dark-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-list a:hover {
    color: var(--red);
}

.category-list a.active {
    color: var(--red);
    font-weight: 600;
}

.category-list a.active span {
    background-color: var(--red);
    color: var(--white);
}

.category-list span {
    color: var(--medium-gray);
    font-size: 0.9rem;
}

/* Oznake widget */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-item {
    padding: 5px 12px;
    background-color: #f0f0f0;
    border-radius: 20px;
    color: var(--medium-gray);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.tag-item:hover {
    background-color: var(--red);
    color: var(--white);
}

/* CTA sekcija */
.blog-cta {
    background-color: var(--red);
    padding: 80px 0;
    text-align: center;
    color: var(--white);
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

.cta-content .btn-primary {
    background-color: var(--white);
    color: var(--red);
}

.cta-content .btn-primary:hover {
    background-color: var(--off-white);
}

/* Responsive */
@media screen and (max-width: 992px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }
    
    .blog-hero-title {
        font-size: 2.5rem;
    }
    
    .blog-content .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .blog-hero {
        padding: 120px 0 60px;
    }
    
    .blog-hero-title {
        font-size: 2rem;
    }
    
    .blog-hero-subtitle {
        font-size: 1rem;
    }
    
    .blog-content .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-wrapper {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 10px;
    }
    
    .category-item {
        white-space: nowrap;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
}

@media screen and (max-width: 576px) {
    .blog-hero-title {
        font-size: 1.8rem;
    }
    
    .blog-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .pagination-item, .pagination-next {
        width: 35px;
        height: 35px;
    }
}

/* Oznake */
.blog-tags .tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.blog-tags .tag-item {
    display: inline-block;
    padding: 5px 12px;
    color: var(--dark-gray);
    font-size: 0.85rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.blog-tags .tag-item:hover {
    background-color: var(--red);
    color: var(--white);
}

.blog-tags .tag-item.active {
    background-color: var(--red);
    color: var(--white);
}

/* Sporočilo, ko ni rezultatov */
.no-results-message {
    text-align: center;
    padding: 30px;
    background-color: var(--light-gray);
    border-radius: 8px;
    margin: 20px 0;
    color: var(--dark-gray);
    font-size: 1.1rem;
}

/* Animacija za filtriranje */
.blog-card {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.blog-card.filtered-out {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
}

/* Oznake v člankih */
.article-tags .tag-item {
    cursor: pointer;
    transition: all 0.3s ease;
}

.article-tags .tag-item:hover {
    background-color: var(--red);
    color: var(--white);
}

/* Gumb za ponastavitev filtra */
.reset-filter {
    margin-top: 15px;
    text-align: left;
}

.reset-link {
    display: inline-flex;
    align-items: center;
    color: var(--dark-gray);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.reset-link:hover {
    color: var(--red);
}

.reset-link i {
    margin-left: 5px;
    width: 16px;
    height: 16px;
} 