/* ============================================================================ */
/* PROJECTS SHOWCASE CAROUSEL COMPONENT */
/* @component-type: content */
/* @component-order: 45 */
/* ============================================================================ */

.zemex-projects-showcase {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.projects-showcase-container {
    width: 1776px;
    max-width: 100%;
    margin: 0 auto;
    padding: 24px 32px;
}

/* ============================================================================ */
/* HEADER */
/* ============================================================================ */

.projects-showcase-header {
    text-align: left;
    margin-bottom: 0;
    padding: 40px 40px 0 30px;
    background: #ffffff;
}

.projects-showcase-title {
    margin: 0;
    font-family: 'TT Wellingtons', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.1;
    color: #030813;
    letter-spacing: 0.01em;
}

/* ============================================================================ */
/* CAROUSEL CONTAINER */
/* ============================================================================ */

.projects-showcase-carousel {
    position: relative;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    min-height: 600px;
}

/* ============================================================================ */
/* STORIES PROGRESS BARS - ВНИЗУ */
/* ============================================================================ */

.projects-stories-progress {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    display: flex;
    gap: 8px;
    z-index: 20;
}

.stories-progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    cursor: pointer;
    overflow: hidden;
    transition: background 0.3s ease;
}

.stories-progress-bar:hover {
    background: rgba(0, 0, 0, 0.15);
}

.stories-progress-bar.active,
.stories-progress-bar.completed {
    background: rgba(0, 0, 0, 0.15);
}

.stories-progress-fill {
    width: 0%;
    height: 100%;
    background: #00BF3F;
    border-radius: 2px;
    transition: width linear;
}

.stories-progress-bar.completed .stories-progress-fill {
    width: 100% !important;
    transition: none !important;
}

/* ============================================================================ */
/* MAIN CONTENT LAYOUT */
/* ============================================================================ */

.projects-showcase-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
}

/* ============================================================================ */
/* LEFT CONTENT AREA */
/* ============================================================================ */

.projects-content-area {
    padding: 30px 60px 60px 90px;
    display: flex;
    align-items: center;
    background: #ffffff;
    position: relative;
}

.project-content-wrapper {
    width: 100%;
    max-width: 570px;
}

.project-title {
    margin: 0 0 16px 0;
    font-family: 'TT Wellingtons', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.2;
    color: #030813;
    letter-spacing: -0.01em;
}

/* ============================================================================ */
/* PROJECT TAGS - ПОД ЗАГОЛОВКОМ */
/* ============================================================================ */

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.project-description {
    margin: 0 0 32px 0;
    font-size: 18px;
    line-height: 1.6;
    color: #6F737A;
    font-weight: 500;
}

.project-tag {
    font-family: 'TT Wellingtons', -apple-system, BlinkMacSystemFont, sans-serif;
    padding: 8px 16px;
    background: rgba(0, 191, 63, 0.12);
    color: #45654F;
    font-size: 14px;
    font-weight: 500;
    border-radius: 20px;
    letter-spacing: 0.04em;
    line-height: 1.3;
    font-variant-numeric: lining-nums tabular-nums;
    font-feature-settings: "lnum" 1, "tnum" 1;
}

/* ============================================================================ */
/* PROJECT BUTTON */
/* ============================================================================ */

.project-action {
    margin-top: auto;
    margin-bottom: 10px;
}

.project-button {
    display: inline-flex;
    font-family: 'TT Wellingtons', -apple-system, BlinkMacSystemFont, sans-serif;
    align-items: center;
    gap: 12px;
    padding: 16px 28px;
    background: #00BF3F;
    color: #ffffff;
    text-decoration: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.4px;
    line-height: 1.4;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 191, 63, 0.3);
}

.project-button:hover {
    background: #00A436;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 191, 63, 0.4);
    color: #ffffff;
}

.project-button-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.project-button:hover .project-button-arrow {
    transform: translateX(4px);
}

/* ============================================================================ */
/* RIGHT IMAGE AREA */
/* ============================================================================ */

.projects-image-area {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-image-container {
    position: relative;
    width: 100%;
    flex: 1;
    min-height: 600px;
    padding: 44px 0 44px 44px;
    box-sizing: border-box;
}

.project-slide-bg {
    position: absolute;
    top: 0;
    left: 44px;
    bottom: 44px;
    right: 40px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.6s ease;
    border-radius: 16px;
}

.project-slide-bg.active {
    opacity: 1;
}

.project-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30%;
    pointer-events: none;
}

/* ============================================================================ */
/* TOUCH NAVIGATION AREAS */
/* ============================================================================ */

.stories-tap-prev,
.stories-tap-next {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    z-index: 15;
    cursor: pointer;
    background: transparent;
}

.stories-tap-prev {
    left: 0;
}

.stories-tap-next {
    right: 0;
}

/* ============================================================================ */
/* NAVIGATION ARROWS - ПО БОКАМ */
/* ============================================================================ */

.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 25;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Десктопное позиционирование стрелок по бокам */
@media (min-width: 769px) {
    .zemex-projects-showcase {
        position: relative;
    }
    
    .zemex-projects-showcase .nav-side-left,
    .zemex-projects-showcase .nav-side-right {
        position: absolute !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 999 !important;
        margin: 0 !important;
        width: 48px !important;
        height: 48px !important;
        backdrop-filter: blur(10px) !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
        border-radius: 50% !important;
        border: none !important;
        cursor: pointer !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .zemex-projects-showcase .nav-side-left {
        left: 20px !important; /* Позиционирование внутри контейнера слева */
    }
    
    .zemex-projects-showcase .nav-side-right {
        right: 20px !important; /* Позиционирование внутри контейнера справа */
    }
    
    .zemex-projects-showcase .nav-side-left:hover,
    .zemex-projects-showcase .nav-side-right:hover {
        background: rgba(255, 255, 255, 1) !important;
        transform: translateY(-50%) scale(1.1) !important;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2) !important;
    }
}

.nav-button:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.nav-button {
    font-size: 24px;
    font-weight: 400;
    color: #030813;
    line-height: 1;
    padding-top: 2px;
    padding-bottom: 6px;
}

/* ============================================================================ */
/* ANIMATIONS & TRANSITIONS */
/* ============================================================================ */

.project-title,
.project-description,
.project-tags,
.project-button {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Loading state for dynamic content */
.project-content-loading {
    opacity: 0.6;
    pointer-events: none;
}

.project-content-loading .project-title,
.project-content-loading .project-description,
.project-content-loading .project-tags,
.project-content-loading .project-button {
    opacity: 0.3;
    transform: translateY(10px);
}

/* ============================================================================ */
/* RESPONSIVE DESIGN */
/* ============================================================================ */

/* Large Desktop */
@media (max-width: 1440px) {
    .projects-showcase-title {
        font-size: 34px;
    }
    
    .project-title {
        font-size: 26px;
    }
}

/* Desktop */
@media (max-width: 1200px) {
    .projects-content-area {
        padding: 60px 40px;
    }
    
    .project-title {
        font-size: 28px;
    }
    
    .project-description {
        font-size: 15px;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .zemex-projects-showcase {
        padding: 60px 0;
    }
    
    .projects-showcase-container {
        padding: 0 16px;
    }
    
    .projects-showcase-header {
        margin-bottom: 48px;
    }
    
    .projects-showcase-title {
        font-size: 36px;
    }
    
    .projects-showcase-content {
        grid-template-columns: 1fr;
    }
    
    .projects-content-area {
        padding: 48px 32px;
        order: 2;
    }
    
    .projects-image-area {
        order: 1;
        min-height: 400px;
    }
    
    .project-image-container {
        min-height: 400px;
        padding: 32px 0 32px 32px;
    }
    
    .project-slide-bg {
        top: 32px;
        left: 32px;
        bottom: 32px;
        right: 48px;
        border-radius: 12px;
    }
    
    .nav-side-left {
        left: -20px;
    }
    
    .nav-side-right {
        right: -20px;
    }
    
    .nav-button {
        width: 44px;
        height: 44px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .zemex-projects-showcase {
        padding: 40px 0;
    }
    
    .projects-showcase-header {
        margin-bottom: 32px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .projects-showcase-title {
        font-size: 28px;
        margin: 0;
        flex: 1;
    }
    
    /* Стрелки рядом с заголовком в мобильной версии */
    .projects-showcase-header .nav-side-left,
    .projects-showcase-header .nav-side-right {
        position: static;
        transform: none;
        margin: 0;
        width: 40px;
        height: 40px;
        background: rgba(0, 0, 0, 0.05);
        backdrop-filter: none;
        box-shadow: none;
        top: auto;
        left: auto;
        right: auto;
    }
    
    .projects-showcase-header .nav-side-left {
        margin-right: 8px;
    }
    
    .projects-showcase-header .nav-side-right {
        margin-left: 0;
    }
    
    .projects-showcase-header .nav-side-left:hover,
    .projects-showcase-header .nav-side-right:hover {
        background: rgba(0, 0, 0, 0.1);
        transform: none;
        box-shadow: none;
    }
    
    .projects-showcase-carousel {
        border-radius: 16px;
        min-height: auto;
    }
    
    .projects-stories-progress {
        bottom: 16px;
        left: 16px;
        right: 16px;
        gap: 6px;
    }
    
    .stories-progress-bar {
        height: 3px;
    }
    
    .projects-content-area {
        padding: 32px 24px 40px;
    }
    
    .project-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .project-description {
        font-size: 14px;
        margin-bottom: 24px;
    }
    
    .project-tags {
        margin-bottom: 32px;
        gap: 8px;
    }
    
    .project-tag {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .project-button {
        padding: 14px 24px;
        font-size: 15px;
    }
    
    .projects-image-area {
        min-height: 300px;
    }
    
    .project-image-container {
        min-height: 300px;
        padding: 24px 0 24px 24px;
    }
    
    .project-slide-bg {
        top: 24px;
        left: 24px;
        bottom: 24px;
        right: 40px;
        border-radius: 12px;
    }
    
    .nav-side-left {
        left: -16px;
    }
    
    .nav-side-right {
        right: -16px;
    }
    
    .nav-button {
        width: 40px;
        height: 40px;
    }
    
    .nav-button {
        font-size: 20px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .projects-showcase-container {
        padding: 0 12px;
    }
    
    .projects-showcase-title {
        font-size: 24px;
    }
    
    .projects-showcase-carousel {
        border-radius: 12px;
    }
    
    .projects-content-area {
        padding: 24px 20px 32px;
    }
    
    .project-title {
        font-size: 20px;
        margin-bottom: 16px;
    }
    
    .project-description {
        font-size: 13px;
        margin-bottom: 20px;
    }
    
    .project-tags {
        margin-bottom: 28px;
    }
    
    .project-button {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .projects-image-area {
        min-height: 250px;
    }
    
    .project-image-container {
        min-height: 250px;
        padding: 20px 0 20px 20px;
    }
    
    .project-slide-bg {
        top: 20px;
        left: 20px;
        bottom: 20px;
        right: 32px;
        border-radius: 8px;
    }
    
    .nav-side-left {
        left: -12px;
    }
    
    .nav-side-right {
        right: -12px;
    }
}