/* public/front/css/v2/v2-values.css */

/* ============================================
    AVORCMS VALUES SECTION - V2
    Enterprise-grade interactive feature + list
    ============================================ */

:root {
    --v2-values-gap: 3rem;
    --v2-values-pad-lg: 4rem;
    --v2-values-pad-md: 2rem;
    --v2-values-transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.v2-values-section {
    background: linear-gradient(180deg, var(--v2-white) 0%, var(--v2-bg) 70%, rgba(92, 27, 179, 0.02) 100%);
    padding: var(--v2-values-pad-lg) 0;
    position: relative;
    overflow: hidden;
}

/* Decorative background shapes */
.v2-values-section::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(92, 27, 179, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

/* Subtle diagonal pattern overlay */
.v2-values-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        repeating-linear-gradient(
            45deg,
            rgba(92, 27, 179, 0.01) 0,
            rgba(92, 27, 179, 0.01) 1px,
            transparent 1px,
            transparent 20px
        );
    pointer-events: none;
    z-index: 0;
}

.v2-values-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Feature panel : List panel */
    gap: var(--v2-values-gap);
    position: relative;
    z-index: 1;
}

/* ============================================
    LEFT PANEL - DYNAMIC FEATURE DISPLAY
    ============================================ */

.v2-values-feature-panel {
    position: sticky;
    top: 120px; /* account for header */
    align-self: start;
    height: fit-content;
}

.v2-values-feature-inner {
    background: linear-gradient(135deg, var(--v2-cta), var(--v2-cta-hover));
    border-radius: var(--v2-radius-lg);
    padding: var(--v2-values-pad-lg) 2.5rem;
    color: var(--v2-white);
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(98, 34, 213, 0.25);
}

/* Decorative orbit rings inside the panel */
.v2-values-feature-decoration {
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 260px;
    height: 260px;
    opacity: 0.3;
    pointer-events: none;
}

.v2-values-orbit {
    width: 100%;
    height: 100%;
    position: relative;
}

.v2-values-orbit-ring {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
}

.v2-values-orbit-ring::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    border: 1px dashed rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.v2-values-orbit-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: var(--v2-highlight);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px rgba(255, 87, 87, 0.8);
}

/* Eyebrow */
.v2-values-eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--v2-highlight);
    margin-bottom: 2rem;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid rgba(255, 87, 87, 0.4);
}

/* Feature content */
.v2-values-feature-display {
    transition: opacity 0.3s ease, transform 0.3s ease;
    min-height: 200px;
}

.v2-values-feature-display.v2-fade-out {
    opacity: 0;
    transform: translateY(-10px);
}

.v2-values-feature-heading {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    color: var(--v2-white);
}

.v2-values-feature-paragraph {
    font-size: 1.15rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
    max-width: 400px;
}

/* ============================================
    RIGHT PANEL - INTERACTIVE VALUES LIST
    ============================================ */

.v2-values-list-panel {
    padding-top: 1rem;
}

.v2-values-list-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--v2-heading-soft);
}

.v2-values-list-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--v2-heading);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.v2-values-list-subtitle {
    font-size: 0.95rem;
    color: var(--v2-subheading);
    font-weight: 400;
}

/* List container */
.v2-values-list {
    display: flex;
    flex-direction: column;
}

/* Individual value item */
.v2-values-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(92, 27, 179, 0.08);
    cursor: pointer;
    transition: background 0.3s ease, padding-left 0.3s ease;
    position: relative;
}

.v2-values-item:last-child {
    border-bottom: none;
}

.v2-values-item:hover,
.v2-values-item.v2-active {
    padding-left: 1rem;
    background: linear-gradient(90deg, rgba(92, 27, 179, 0.04) 0%, transparent 100%);
}

/* Number */
.v2-values-item-number {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--v2-cta);
    opacity: 0.6;
    margin-top: 0.2rem;
    transition: opacity 0.3s ease;
}

.v2-values-item:hover .v2-values-item-number,
.v2-values-item.v2-active .v2-values-item-number {
    opacity: 1;
}

/* Content */
.v2-values-item-content {
    flex: 1;
}

.v2-values-item-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--v2-heading);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.v2-values-item:hover .v2-values-item-heading,
.v2-values-item.v2-active .v2-values-item-heading {
    color: var(--v2-cta);
}

/* Expandable description (hidden by default, revealed on active/hover) */
.v2-values-item-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease, margin-top 0.4s ease;
    opacity: 0;
    margin-top: 0;
}

.v2-values-item.v2-active .v2-values-item-body,
.v2-values-item:hover .v2-values-item-body {
    max-height: 200px;
    opacity: 1;
    margin-top: 0.75rem;
}

.v2-values-item-body p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--v2-subheading);
    margin: 0;
    font-weight: 400;
}

/* Indicator arrow */
.v2-values-item-indicator {
    align-self: center;
    color: var(--v2-cta);
    opacity: 0.4;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.v2-values-item:hover .v2-values-item-indicator,
.v2-values-item.v2-active .v2-values-item-indicator {
    transform: translateX(5px);
    opacity: 1;
}

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

@media (max-width: 1023px) {
    .v2-values-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .v2-values-feature-panel {
        position: static;
        height: auto;
    }

    .v2-values-feature-inner {
        padding: 2.5rem 2rem;
        min-height: 200px;
    }

    .v2-values-list-panel {
        padding-top: 0;
    }

    .v2-values-list-header {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 767px) {
    .v2-values-section {
        padding: 3rem 0;
    }

    .v2-values-feature-inner {
        padding: 2rem 1.5rem;
    }

    .v2-values-feature-heading {
        font-size: 1.6rem;
    }

    .v2-values-feature-paragraph {
        font-size: 1rem;
    }

    .v2-values-item-heading {
        font-size: 1.3rem;
    }

    .v2-values-item {
        padding: 1.2rem 0;
        gap: 1rem;
    }

    .v2-values-item:hover {
        padding-left: 0.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .v2-values-section,
    .v2-values-feature-panel,
    .v2-values-feature-display,
    .v2-values-item,
    .v2-values-item-body {
        transition: none !important;
    }
}