/* --- Interactive Core Values Chart --- */
.values-interactive-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .values-interactive-container {
        grid-template-columns: 1fr 1fr;
        gap: 5rem;
    }
}

/* Chart Wrapper */
.values-chart-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    aspect-ratio: 1 / 1;
}

.values-chart-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    /* Start from top */
    overflow: visible;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Elastic-like transition */

    /* Mobile stability fixes */
    -webkit-transform: rotate(-90deg);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform;
    touch-action: manipulation;
    /* Prevent zoom/pan gestures that cause viewport changes */
}

.value-segment {
    fill: none;
    stroke-width: 30;
    /* Thickness */
    cursor: pointer;
    transition: all 0.3s ease;
    transform-origin: center;
    stroke-linecap: round;
    /* Smoother ends */
}

.value-segment:hover {
    stroke-width: 38;
    opacity: 1;
    filter: drop-shadow(0 0 8px rgba(255, 165, 0, 0.4));
    /* Orange glow */
}

.value-segment.active {
    stroke-width: 42;
    filter: drop-shadow(0 0 15px rgba(255, 165, 0, 0.6));
    z-index: 10;
}

/* Center Content */
.chart-center-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: none;
    padding: 2rem;
}

.center-icon {
    width: 3rem;
    height: 3rem;
    color: hsl(var(--primary));
    margin-bottom: 0.5rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.center-label {
    font-size: 1.5rem;
    font-family: 'Georgia', serif;
    font-weight: bold;
    color: hsl(var(--foreground));
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease 0.1s;
}

/* Specific Segment Colors - Using unified chart palette */
.segment-0 {
    stroke: hsl(var(--chart-color-1));
}

.segment-1 {
    stroke: hsl(var(--chart-color-2));
}

.segment-2 {
    stroke: hsl(var(--chart-color-3));
}

.segment-3 {
    stroke: hsl(var(--chart-color-4));
}

/* Values List */
.values-text-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.value-list-item {
    padding: 1.5rem;
    border-radius: var(--radius);
    background: hsl(var(--background));
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    opacity: 0.7;
    /* Dim slightly when inactive */
    transform-origin: left center;
}

.value-list-item:hover {
    opacity: 1;
    background: hsl(var(--card));
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
}

.value-list-item.active {
    opacity: 1;
    background: hsl(var(--card));
    /* border-color: hsl(var(--primary) / 0.3); Removed generic border */
    box-shadow: var(--shadow-md);
    transform: scale(1.02) translateX(8px);
    /* Pop out more */
    border-left: 4px solid transparent;
    /* Prepare for colored border */
}

/* Color-coded Active States for List Items */
.value-list-item[data-index="0"].active {
    border-left-color: hsl(var(--chart-color-1));
}

.value-list-item[data-index="0"].active .value-list-icon {
    background: hsl(var(--chart-color-1));
    color: white;
}

.value-list-item[data-index="1"].active {
    border-left-color: hsl(var(--chart-color-2));
}

.value-list-item[data-index="1"].active .value-list-icon {
    background: hsl(var(--chart-color-2));
    color: white;
}

.value-list-item[data-index="2"].active {
    border-left-color: hsl(var(--chart-color-3));
}

.value-list-item[data-index="2"].active .value-list-icon {
    background: hsl(var(--chart-color-3));
    color: white;
}

.value-list-item[data-index="3"].active {
    border-left-color: hsl(var(--chart-color-4));
}

.value-list-item[data-index="3"].active .value-list-icon {
    background: hsl(var(--chart-color-4));
    color: white;
}

/* Icon base style */
.value-list-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    background: hsl(var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--primary));
    transition: all 0.3s ease;
}

.value-content h3 {
    font-size: 1.25rem;
    font-weight: bold;
    font-family: 'Georgia', serif;
    margin-bottom: 0.5rem;
    color: hsl(var(--foreground));
}

.value-content p {
    font-size: 0.95rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
}

/* Animation classes for center content */
.chart-center-content.show .center-icon,
.chart-center-content.show .center-label {
    opacity: 1;
    transform: translateY(0);
}