/* Interactive Sections - Frontend Styles */

.interactive-sections-wrapper {
    width: 100%;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.interactive-sections-container {
    position: relative;
    width: 100%;
    min-height: 600px;
}

.sections-header {
    padding: 40px 20px 30px;
    position: relative;
    z-index: 10;
}

.sections-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    text-align: left;
    padding-left: 40px;
}

.sections-content {
    position: relative;
    display: flex;
    height: 850px;
    background: #ffffff;
    border-radius: 32px;
    overflow: hidden;
    padding: 32px;
}

.sections-list {
    position: relative;
    z-index: 10;
    width: 45%;
    max-width: 500px;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Spacer elements for padding effect */
.sections-list::before,
.sections-list::after {
    content: '';
    display: block;
    flex-shrink: 0;
    width: 100%;
    height: 101px;
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Zmniejsz padding gdy sekcja jest aktywna */
.sections-list:has(.section-item.active)::before,
.sections-list:has(.section-item.active)::after {
    height: 10px;
}

/* Custom scrollbar */
.sections-list::-webkit-scrollbar {
    width: 0;
    display: none;
}

.sections-list {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.section-item {
    background: rgba(37, 37, 37, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 26px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid transparent;
    flex-shrink: 0;
}

.section-item:hover {
    background: rgba(37, 37, 37, 0.95);
}

.section-item.active {
    background: rgba(37, 37, 37, 0.9);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    position: relative;
}

.section-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #8e95a3;
    border-radius: 24px;
    transition: background 0.3s ease;
}

.section-item.active .section-icon {
    background: #0077da;
}

.section-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.section-icon-fontawesome {
    font-size: 14px;
    color: #ffffff;
}

.section-icon-fontawesome i {
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-icon-placeholder {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #8e95a3;
    border-radius: 24px;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    transition: background 0.3s ease;
}

.section-item.active .section-icon-placeholder {
    background: #0077da;
    color: #ffffff;
}

.section-title {
    flex: 1;
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    color: #ffffff;
    transition: color 0.3s ease;
}

.section-item.active .section-title {
    color: #ffffff;
}

.section-toggle {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.section-item.active .section-toggle {
    color: #64748b;
}

.section-toggle:hover {
    transform: scale(1.1);
}

.section-toggle .arrow-up {
    display: none;
}

.section-toggle .arrow-down {
    display: block;
}

.section-item.active .section-toggle .arrow-up {
    display: block;
}

.section-item.active .section-toggle .arrow-down {
    display: none;
}

.section-description {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-item.active .section-description {
    max-height: 800px;
    overflow: visible;
}

.section-description-content {
    padding: 8px 12px 12px 12px;
    color: #dde0e9;
    font-size: 16px;
    line-height: 1.5;
    max-width: 400px;
}

.section-description-content p {
    margin: 0 0 10px 0;
}

.section-description-content p:last-child {
    margin-bottom: 0;
}

.sections-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.background-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.background-image.current {
    opacity: 1;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.6) 40%,
        rgba(0, 0, 0, 0.3) 70%,
        rgba(0, 0, 0, 0.2) 100%
    );
    pointer-events: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .sections-title {
        font-size: 2rem;
        padding-left: 20px;
    }
    
    .sections-list {
        width: 50%;
        padding: 0 20px;
    }
    
    .sections-list::before,
    .sections-list::after {
        height: 80px;
    }
    
    .sections-list:has(.section-item.active)::before,
    .sections-list:has(.section-item.active)::after {
        height: 15px;
    }
    
    .sections-content {
        height: 650px;
    }
}

/* Mobile navigation - hidden on desktop */
.mobile-navigation {
    display: none;
}

@media (max-width: 768px) {
    .interactive-sections-wrapper {
        position: relative;
    }
    
    .interactive-sections-container {
        min-height: 500px;
    }
    
    .sections-header {
        display: none;
    }
    
    .sections-title {
        display: none;
    }
    
    .sections-content {
        flex-direction: column;
        height: 500px;
        min-height: 500px;
        padding: 0;
        border-radius: 0;
        background: transparent;
        position: relative;
    }
    
    .sections-background {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
        border-radius: 0;
    }
    
    .background-overlay {
        display: block;
        background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.7) 0%,
            rgba(0, 0, 0, 0.5) 50%,
            rgba(0, 0, 0, 0.8) 100%
        );
    }
    
    .sections-list {
        position: relative;
        z-index: 10;
        width: 100%;
        max-width: none;
        padding: 0;
        margin-top: auto;
        margin-bottom: 80px;
        overflow: visible;
        display: block;
    }
    
    .sections-list::before,
    .sections-list::after {
        display: none;
    }
    
    .section-item {
        display: none;
        background: rgba(37, 37, 37, 0.95);
        backdrop-filter: blur(20px);
        margin: 0 20px;
        padding: 24px;
        border-radius: 16px;
    }
    
    .section-item.active {
        display: block;
    }
    
    .section-header {
        display: flex;
        align-items: flex-start;
        gap: 16px;
        padding: 0;
        margin-bottom: 16px;
    }
    
    .section-icon,
    .section-icon-placeholder {
        width: 28px;
        height: 28px;
        flex-shrink: 0;
        font-size: 12px;
    }
    
    .section-icon img {
        width: 100%;
        height: 100%;
    }
    
    .section-icon-fontawesome {
        font-size: 14px;
    }
    
    .section-title {
        color: #ffffff;
        font-size: 24px;
        font-weight: 700;
        line-height: 1.3;
        flex: 1;
    }
    
    .section-toggle {
        display: none;
    }
    
    .section-description {
        max-height: none;
        overflow: visible;
    }
    
    .section-description-content {
        padding: 0;
        color: #dde0e9;
        font-size: 16px;
        line-height: 1.6;
    }
    
    /* Navigation arrows */
    .mobile-navigation {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 15;
        display: flex;
        gap: 16px;
        justify-content: center;
        align-items: center;
    }
    
    .mobile-nav-button {
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.3);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        padding: 0;
        flex-shrink: 0;
    }
    
    .mobile-nav-button:hover {
        background: rgba(255, 255, 255, 0.3);
    }
    
    .mobile-nav-button svg {
        width: 20px;
        height: 20px;
        stroke: #ffffff;
        stroke-width: 2.5;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .sections-header {
        padding: 30px 15px 20px;
    }
    
    .sections-title {
        font-size: 1.5rem;
        padding-left: 0;
    }
    
    .section-header {
        padding: 12px;
    }
    
    .section-icon,
    .section-icon-placeholder {
        width: 28px;
        height: 28px;
    }
    
    .section-icon img {
        width: 100%;
        height: 100%;
    }
    
    .section-title {
        font-size: 16px;
    }
}

