/**
 * Nett Comparisons Section v2 — Styles
 * Supports: Main card with resizable images, side list with product images
 */

/* ======================================================================
   ANIMATION
   ====================================================================== */
@keyframes ncFadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.nc-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.nc-reveal.nc-active {
    opacity: 1;
    transform: translateY(0);
}

/* ======================================================================
   SECTION
   ====================================================================== */
.nc-section {
    --nc-green: #00AA66;
    --nc-green-dark: #059669;
    --nc-dark: #111111;
    --nc-dark-card: #1a1a1a;
    --nc-white: #ffffff;
    --nc-gray: #9CA3AF;
    --nc-gray-dark: #4B5563;

    position: relative;
    overflow: hidden;
    background-color: var(--nc-dark);
    color: var(--nc-white);
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.nc-section.nc-clip-slant {
    clip-path: polygon(0 5%, 100% 0, 100% 100%, 0 100%);
}

@media (min-width: 768px) {
    .nc-section.nc-clip-slant {
        clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 100%);
    }
}

/* ======================================================================
   CONTAINER
   ====================================================================== */
.nc-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    margin-top: 3rem;
}

/* ======================================================================
   HEADER
   ====================================================================== */
.nc-header {
    text-align: center;
    margin-bottom: 4rem;
}

.nc-title {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 900;
    margin: 0 0 1rem 0;
    line-height: 1.15;
}

.text-stripeGreen {
    color: var(--nc-green);
}

.nc-desc {
    color: var(--nc-gray);
    max-width: 36rem;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.7;
}

/* ======================================================================
   GRID LAYOUT
   ====================================================================== */
.nc-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .nc-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ======================================================================
   MAIN COMPARISON CARD (LEFT)
   ====================================================================== */
.nc-main-card {
    background-color: var(--nc-dark-card);
    border-radius: 1.5rem;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s ease,
                box-shadow 0.3s ease;
}

.nc-main-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.nc-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.nc-cat-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--nc-gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.nc-date-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--nc-white);
}

/* ======================================================================
   VS ROW (PRODUCT 1 — VS — PRODUCT 2)
   ====================================================================== */
.nc-vs-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

.nc-prod-col {
    text-align: center;
    flex: 1;
    min-width: 0;
}

.nc-prod-img-box {
    background-color: #ffffff;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.nc-prod-img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nc-prod-img:hover {
    transform: scale(1.05);
}

.nc-prod-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #ccc;
    font-size: 32px;
}

.nc-prod-name {
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.2;
    margin: 0 0 0.25rem 0;
    color: var(--nc-white);
}

.nc-prod-score {
    font-weight: 700;
    margin-top: 0.25rem;
    font-size: 0.95rem;
}

.score-green { color: var(--nc-green); }
.score-gray  { color: var(--nc-gray); }

.nc-vs-text {
    font-weight: 900;
    font-size: 1.5rem;
    font-style: italic;
    color: var(--nc-gray-dark);
    flex-shrink: 0;
}

/* ======================================================================
   CRITERIA LIST
   ====================================================================== */
.nc-criteria-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.nc-criteria-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.nc-crit-name { color: var(--nc-gray); }
.nc-crit-res  { font-weight: 700; }
.res-green    { color: var(--nc-green); }
.res-white    { color: var(--nc-white); }

/* ======================================================================
   BUTTON
   ====================================================================== */
.nc-btn {
    width: 100%;
    padding: 14px 24px;
    background-color: var(--nc-green);
    color: var(--nc-white);
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
    display: block;
    text-decoration: none;
    margin-top: 0.5rem;
}

.nc-btn:hover {
    background-color: var(--nc-green-dark);
    transform: translateY(-1px);
}

/* ======================================================================
   SIDE LIST (RIGHT)
   ====================================================================== */
.nc-list-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nc-list-item {
    display: block;
    background-color: var(--nc-dark-card);
    padding: 1.25rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-decoration: none;
    color: var(--nc-white);
    transition: border-color 0.3s ease,
                box-shadow 0.3s ease,
                transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.nc-list-item:hover {
    border-color: var(--nc-green);
    box-shadow: 0 4px 20px rgba(0, 170, 102, 0.1);
}

/* ======================================================================
   SIDE LIST — ITEM ROW (Image Left + Content + Image Right)
   ====================================================================== */
.nc-item-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nc-side-prod {
    flex-shrink: 0;
}

.nc-side-prod-img {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    display: block;
    background-color: #ffffff;
    padding: 4px;
    transition: transform 0.3s ease;
}

.nc-list-item:hover .nc-side-prod-img {
    transform: scale(1.08);
}

.nc-side-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
    color: #1a1a1a;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    border: none;
    padding: 0;
}

.nc-side-placeholder span {
    line-height: 1;
}

/* Center content */
.nc-item-content {
    flex: 1;
    min-width: 0;
}

.nc-item-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0 0 0.35rem 0;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.nc-list-item:hover .nc-item-title {
    color: var(--nc-green);
}

.nc-item-desc {
    font-size: 0.8rem;
    color: var(--nc-gray);
    margin: 0 0 0.5rem 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Product names row */
.nc-item-names {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    margin-top: 4px;
}

.nc-side-name {
    color: var(--nc-gray);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
}

.nc-side-vs {
    color: var(--nc-gray-dark);
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    font-size: 0.65rem;
}

/* ======================================================================
   RESPONSIVE
   ====================================================================== */
@media screen and (max-width: 1024px) {
    .nc-main-card {
        padding: 1.5rem;
    }
}

@media screen and (max-width: 768px) {
    .nc-vs-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .nc-prod-col {
        width: 100%;
    }

    .nc-prod-img-box {
        height: auto;
        padding: 1rem;
    }

    .nc-vs-text {
        font-size: 1.2rem;
    }

    .nc-item-row {
        gap: 10px;
    }

    .nc-side-prod-img {
        width: 36px;
        height: 36px;
    }

    .nc-item-title {
        font-size: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .nc-main-card {
        padding: 1rem;
    }

    .nc-prod-name {
        font-size: 0.95rem;
    }

    .nc-item-names {
        display: none;
    }

    .nc-header {
        margin-bottom: 2.5rem;
    }

    .nc-container {
        margin-top: 2rem;
    }
}
