/* Štýly pre archívnu stránku portfólia */

/* ------ Archívna stránka portfólia ------ */

.portfolio-archive-content {
    padding: 60px 0 80px;
    background-color: #fff;
}

.portfolio-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Kategórie portfólia */
.portfolio-categories-section {
    margin-bottom: 60px;
}

.section-title {
    font-size: 32px;
    font-weight: 600;
    margin: 0 0 30px;
    position: relative;
    color: #333;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #7C877F;
}

/* Filter */
.portfolio-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
    position: relative;
    padding-bottom: 10px;
}

.portfolio-filter:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 1px;
    background-color: rgba(124, 135, 127, 0.2);
}

.filter-btn {
    padding: 8px 20px;
    border: none;
    background: transparent;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s ease;
    position: relative;
}

.filter-btn:hover {
    color: #7C877F;
}

.filter-btn.active {
    color: #7C877F;
    font-weight: 600;
}

.filter-btn.active:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background-color: #7C877F;
}

/* Projekty Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 50px 0 40px;
    min-height: 400px; /* Minimálna výška pre zabránenie skokom pri filtrovaní */
    position: relative;
}

.project-item {
    position: relative;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: opacity 0.5s ease, transform 0.5s ease;
    opacity: 1;
    transform: scale(1);
}

.project-item.hidden {
    display: none;
    opacity: 0;
    transform: scale(0.8);
}

.project-item.visible {
    display: block;
    animation: fadeInScale 0.5s forwards;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.project-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.project-image {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-item:hover .project-image img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.7));
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.project-item .arrow-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: rgba(124, 135, 127, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: transform 0.3s ease;
}

.project-item:hover .arrow-icon {
    transform: rotate(90deg);
}

.project-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    z-index: 2;
    color: #fff;
}

.project-title {
    font-size: 22px;
    font-weight: 600;
    margin: 10px 0;
    color: #fff;
}

.project-category {
    display: inline-block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-excerpt {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 10px;
    line-height: 1.6;
    max-width: 90%;
}

.no-projects {
    text-align: center;
    font-size: 18px;
    color: #666;
    grid-column: 1 / -1;
    padding: 40px 0;
}

/* Animácia načítavania */
.loading-spinner {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(124, 135, 127, 0.3);
    border-radius: 50%;
    border-top-color: #7C877F;
    animation: spin 1s ease-in-out infinite;
    z-index: 3;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.projects-grid.loading .loading-spinner {
    display: block;
}

.projects-grid.loading .project-item {
    opacity: 0.5;
}

/* Stránkovanie */
.navigation.pagination {
    margin-top: 40px;
    text-align: center;
}

.nav-links {
    display: inline-flex;
    gap: 10px;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    background: #f5f5f5;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-numbers.current {
    background: #7C877F;
    color: #fff;
}

.page-numbers:hover:not(.current) {
    background: #e0e0e0;
}

/* Responzívny dizajn */
@media screen and (max-width: 991px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-image {
        height: 300px;
    }

    .no-projects {
        grid-column: span 2;
    }
}

@media screen and (max-width: 767px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-filter {
        flex-direction: row;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 15px;
    }

    .filter-btn {
        white-space: nowrap;
        padding: 8px 15px;
        font-size: 14px;
    }

    .no-projects {
        grid-column: span 1;
    }
}

/* Page Hero Štýly */
.page-hero {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    overflow: hidden;
    margin-bottom: 0;
}

.page-hero__background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #1C2023;
    background-image: url('/wp-content/uploads/2025/01/titulka-nabytok.webp');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    z-index: 1;
}

.page-hero__background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(28, 32, 35, 0.7), rgba(28, 32, 35, 0.85));
}

.page-hero__container {
    position: relative;
    width: 100%;
    z-index: 2;
}

.page-hero__content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
}

.page-hero__title {
    font-size: 50px;
    font-weight: 600;
    margin: 0 0 20px;
    line-height: 1.1;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-hero__breadcrumbs {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
}

.page-hero__breadcrumbs a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-hero__breadcrumbs a:hover {
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb-separator {
    margin: 0 10px;
}

.project-categories {
    margin-top: 5px;
    margin-bottom: 10px;
}

.project-categories a.project-category {
    display: inline-block;
    background-color: rgba(124, 135, 127, 0.8);
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
    margin-right: 5px;
    margin-bottom: 5px;
}

.project-categories a.project-category:hover {
    background-color: #7C877F;
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}
.megamenu-container .megamenu-single-item {
    width: calc(16% - 0px) !important;
    margin: 10px;
    padding: 15px;
    border: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-align: left;
    display: inline-block;
    vertical-align: top;
    position: relative;
    overflow: hidden;
    background-color: transparent;
    cursor: pointer;
}