/*
 * Product Details Section Styling
 *
 * Matches V3.12 SAMURAI hero section design language:
 * - Exo font family
 * - CSS color variables (--neo-cyan, --neo-yellow, --neo-red)
 * - 1400px max-width (consistent with hero)
 * - White fill sweep hover effects
 * - Glitch animations
 * - Chamfered clip-path corners
 * - Cubic-bezier easing
 */

/* ============================================
   GLOBAL STYLES & CONTAINER
   ============================================ */

.product-details-section {
    background: var(--neo-bg-dark, #0a0a0a);
    padding: 60px 80px;
    position: relative;
    font-family: var(--neo-font, 'Exo', sans-serif);
}

.details-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* ============================================
   SECTION TITLES (Universal Style)
   ============================================ */

.section-title {
    color: var(--neo-cyan, #00f0ff);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: var(--neo-font, 'Exo', sans-serif);
    margin-bottom: 20px;
}

/* ============================================
   TOP SECTION - Key Features + Parameters
   ============================================ */

.details-top {
    display: grid;
    grid-template-columns: 1fr 550px;
    gap: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--neo-border, rgba(255, 255, 255, 0.15));
}

/* KEY FEATURES (Top Left) */

.key-features-bullets {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 60px;
}

.feature-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(252, 238, 10, 0.05);
    border: 1px solid rgba(252, 238, 10, 0.12);
    clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    cursor: pointer;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: #ffffff;
    transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -1;
}

.feature-item:hover {
    border-color: #ffffff;
    background: transparent;
    animation: neoCplGlitch 0.25s linear;
}

.feature-item:hover::before {
    width: 100%;
}

.feature-item:hover .feature-icon,
.feature-item:hover .feature-text {
    color: var(--neo-bg-dark, #0a0a0a) !important;
}

.feature-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    color: var(--neo-cyan, #00f0ff);
    transition: color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.feature-text {
    color: #fff;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
    font-family: var(--neo-font, 'Exo', sans-serif);
    transition: color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* PARAMETERS PANEL (Top Right) */

.parameters-panel {
    position: relative;
    padding: 40px 30px;
    background: var(--neo-bg-surface, rgba(20, 20, 20, 0.6));
    border: 1px solid var(--neo-border, #2a2a2a);
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.parameters-panel .section-title {
    margin-left: 0;
}

.param-rows {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.param-row {
    position: relative;
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background: rgba(252, 238, 10, 0.03);
    border-bottom: 1px solid rgba(252, 238, 10, 0.08);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    cursor: pointer;
}

.param-row::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: #ffffff;
    transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -1;
}

.param-row:nth-child(odd) {
    background: rgba(255, 255, 255, 0.05);
}

.param-row:hover {
    border-color: #ffffff;
    background: transparent;
    animation: neoCplGlitch 0.25s linear;
}

.param-row:hover::before {
    width: 100%;
}

.param-row:hover .param-label,
.param-row:hover .param-value {
    color: var(--neo-bg-dark, #0a0a0a) !important;
}

.param-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    font-family: var(--neo-font, 'Exo', sans-serif);
    min-width: 120px;
    transition: color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.param-value {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--neo-font, 'Exo', sans-serif);
    margin-left: auto;
    transition: color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ============================================
   MIDDLE SECTION - Description + Languages + Mature
   ============================================ */

.details-middle {
    display: grid;
    grid-template-columns: 1fr 550px;
    gap: 60px;
    padding: 40px 0;
    border-bottom: 1px solid var(--neo-border, rgba(255, 255, 255, 0.15));
}

.key-features-description {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.key-features-description .section-title {
    color: #fff;
    margin-bottom: 20px;
}

.key-features-description p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
    font-family: var(--neo-font, 'Exo', sans-serif);
    max-width: 100%;
    text-align: justify;
}

.key-features-description h2,
.key-features-description h3,
.key-features-description h4 {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    font-family: var(--neo-font, 'Exo', sans-serif);
    margin-top: 30px;
    margin-bottom: 15px;
}

/* RIGHT SIDE - Languages + Mature */

.details-middle-right {
    display: flex;
    flex-direction: column; /* Stack vertically instead of side-by-side */
    gap: 30px;             /* Space between language and maturity sections */
    flex-shrink: 0;
}

/* ============================================
   BOTTOM SECTION - System Requirements
   ============================================ */

.requirements-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 60px;
    max-width: 100%;
}

.requirements-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 0;
}

.requirement-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 14px;
    background: rgba(252, 238, 10, 0.05);
    border: 1px solid rgba(252, 238, 10, 0.12);
    clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    cursor: pointer;
}

.requirement-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: #ffffff;
    transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -1;
}

.requirement-item:hover {
    border-color: #ffffff;
    background: transparent;
    animation: neoCplGlitch 0.25s linear;
}

.requirement-item:hover::before {
    width: 100%;
}

.requirement-item:hover .requirement-icon,
.requirement-item:hover .requirement-text {
    color: var(--neo-bg-dark, #0a0a0a) !important;
}

.requirement-icon {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    color: var(--neo-cyan, #00f0ff);
    transition: color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.requirement-text {
    color: #fff;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
    font-family: var(--neo-font, 'Exo', sans-serif);
    transition: color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* LANGUAGE SECTION (Bottom Right) */

.language-list-section {
    width: 100%;           /* Full width of right column */
    padding: 50px 40px;
    position: relative;
    background: var(--neo-bg-surface, rgba(20, 20, 20, 0.6));
    border: 1px solid var(--neo-border, #2a2a2a);
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.language-list-section .section-title {
    margin-bottom: 25px;
}

.language-list,
.languages-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
}

.language-item,
.languages-list li {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px 10px;
    border-bottom: 1px solid rgba(252, 238, 10, 0.08);
    background: rgba(252, 238, 10, 0.03);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    cursor: pointer;
}

.language-item::before,
.languages-list li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: #ffffff;
    transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -1;
}

.language-item:hover,
.languages-list li:hover {
    border-color: #ffffff;
    background: transparent;
    animation: neoCplGlitch 0.25s linear;
}

.language-item:hover::before,
.languages-list li:hover::before {
    width: 100%;
}

.language-item:hover .language-name,
.languages-list li:hover .language-name,
.languages-list li:hover {
    color: var(--neo-bg-dark, #0a0a0a) !important;
}

.language-item:last-child,
.languages-list li:last-child {
    border-bottom: none;
}

.language-flag,
.flag-icon {
    width: 28px;
    height: auto;
    flex-shrink: 0;
}

.language-name {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--neo-font, 'Exo', sans-serif);
    transition: color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* MATURE RATING SECTION (Bottom Right, Overlaps Languages) */

.mature-section {
    width: 100%;           /* Full width of right column */
    padding: 50px 40px;
    position: relative;
    background: #2D388A;
    border: 1px solid rgba(255, 255, 255, 0.3);
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    margin-left: 0;        /* Remove overlap effect */
    box-shadow: 0 0 20px rgba(45, 56, 138, 0.3);
}

.mature-section .section-title {
    margin-bottom: 20px;
}

/* IARC Rating Container - 2-Column Grid Layout */
.mature-section .iarc-rating {
    display: grid;
    grid-template-columns: auto 1fr;  /* Small image column, wide text column */
    gap: 25px;                        /* Space between columns */
    align-items: start;               /* Align items to top */
}

/* Badge Image - Small Left Column */
.mature-section .iarc-rating__image {
    flex-shrink: 0;
}

.mature-section .iarc-rating__image img {
    width: 75px;
    height: auto;
}

/* Text Content - Wide Right Column */
.mature-section .iarc-rating__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;  /* Left-align text */
    width: 100%;             /* Use full column width */
}

/* Rating Label - Left-aligned */
.mature-section .iarc-rating__label {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    font-family: var(--neo-font, 'Exo', sans-serif);
    margin: 0 0 8px 0;
}

/* Description - Left-aligned, Full Column Width */
.mature-section .iarc-rating__description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    font-family: var(--neo-font, 'Exo', sans-serif);
    margin: 0;
    width: 100%;             /* Use full column width */
}

.mature-section .no-rating {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-style: italic;
}

/* ============================================
   GLITCH ANIMATION (Universal)
   ============================================ */

@keyframes neoCplGlitch {
    0%, 33.9% {
        text-shadow: 3px 0 0 var(--neo-yellow, #FCEE0A), -3px 0 0 var(--neo-red, #ff003c);
        transform: translateX(4px) skewX(-2deg);
    }
    34%, 66.9% {
        text-shadow: -3px 0 0 var(--neo-red, #ff003c), 2px 0 0 var(--neo-yellow, #FCEE0A);
        transform: translateX(-4px) skewX(2deg);
    }
    67%, 99.9% {
        text-shadow: 2px 0 0 var(--neo-yellow, #FCEE0A), -2px 0 0 var(--neo-red, #ff003c);
        transform: translateX(3px) skewX(-1deg);
    }
    100% {
        text-shadow: none;
        transform: none;
    }
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

@media (max-width: 1400px) {
    .details-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .parameters-panel {
        max-width: 100%;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .details-middle {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .requirements-section {
        max-width: 100%;
    }

    .details-middle-right {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
        width: 100%;
    }

    .language-list-section,
    .mature-section {
        width: auto;
        min-width: 280px;
        max-width: 48%;
        flex: 1;
        margin-left: 0;
    }
}

@media (max-width: 1024px) {
    .product-details-section {
        padding: 50px 40px;
    }

    .section-title {
        font-size: 20px;
    }

    .feature-text,
    .requirement-text {
        font-size: 14px;
    }

    .feature-icon,
    .requirement-icon {
        width: 24px;
        height: 24px;
    }

    .key-features-description p {
        font-size: 14px;
    }

    .param-label {
        font-size: 11px;
    }

    .param-value {
        font-size: 13px;
    }

    .language-name {
        font-size: 13px;
    }

    .mature-section .iarc-rating__label {
        font-size: 20px;
    }

    .mature-section .iarc-rating__description {
        font-size: 13px;
    }

    .mature-section .iarc-rating__image img {
        width: 65px;
    }
}

@media (max-width: 768px) {
    .product-details-section {
        padding: 40px 20px;
    }

    .details-middle-right {
        flex-direction: column;
    }

    .language-list-section,
    .mature-section {
        width: 100%;
        max-width: 100%;
        min-height: auto;
        clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
        padding: 30px;
    }

    .parameters-panel {
        clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
    }

    .section-title {
        font-size: 18px;
    }

    .key-features-description p {
        font-size: 13px;
        line-height: 1.6;
    }

    .key-features-description h2,
    .key-features-description h3,
    .key-features-description h4 {
        font-size: 18px;
    }

    .param-label,
    .param-value {
        font-size: 12px;
    }

    .param-row {
        padding: 10px 15px;
    }

    .language-name {
        font-size: 12px;
    }

    .mature-section .iarc-rating__label {
        font-size: 18px;
    }

    .mature-section .iarc-rating__description {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .product-details-section {
        padding: 30px 15px;
    }

    .details-top,
    .details-middle {
        gap: 30px;
    }

    .section-title {
        font-size: 16px;
    }

    .key-features-description p {
        font-size: 12px;
    }

    .key-features-description h2,
    .key-features-description h3,
    .key-features-description h4 {
        font-size: 16px;
    }

    .param-label,
    .param-value {
        font-size: 11px;
    }

    .param-row {
        padding: 8px 12px;
    }

    .language-list-section,
    .mature-section {
        padding: 25px 20px;
    }

    .language-flag,
    .flag-icon {
        width: 24px;
    }

    .language-name {
        font-size: 11px;
    }

    .mature-section .iarc-rating__image img {
        width: 55px;
    }

    .mature-section .iarc-rating__label {
        font-size: 16px;
    }

    .mature-section .iarc-rating__description {
        font-size: 11px;
    }
}


/* ============================================
   GAMERS ALSO VIEWED - Button Fixes Only
   ============================================ */

/* Fix Buy Now button padding */
.neeo-related-content .product-card .price-info a,
.neeo-related-content .brown .price-info a {
    padding: 10px 20px !important;
    min-height: 45px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Fix Load More button - padding and text color */
.neeo-related-content .product-cards-loadmore,
.products-load-wrapper .product-cards-loadmore {
    padding: 14px 50px !important;
    color: #000000 !important;
}

.neeo-related-content .product-cards-loadmore .ghostkit-button-text,
.products-load-wrapper .product-cards-loadmore .ghostkit-button-text {
    color: #000000 !important;
}

/* ============================================
   FIX: Replace broken cpl-glitch-button with simple neoCplGlitch animation
   ============================================ */

/* Hide the broken glitch wrapper duplicate text layers */
.neeo-related-content .product-cards-loadmore .cpl-glitch-wrapper,
.products-load-wrapper .product-cards-loadmore .cpl-glitch-wrapper,
.neeo-related-content .product-card .price-info a .cpl-glitch-wrapper,
.neeo-related-content .brown .price-info a .cpl-glitch-wrapper,
.neeo-related-content ul.products li.product .button .cpl-glitch-wrapper {
    display: none !important;
    visibility: hidden !important;
}

/* Hide broken glitch background and zone-hover elements */
.neeo-related-content .product-cards-loadmore .cpl-glitch-background,
.products-load-wrapper .product-cards-loadmore .cpl-glitch-background,
.neeo-related-content .product-cards-loadmore .cpl-glitch-zone-hover,
.products-load-wrapper .product-cards-loadmore .cpl-glitch-zone-hover,
.neeo-related-content .product-card .price-info a .cpl-glitch-background,
.neeo-related-content .brown .price-info a .cpl-glitch-background,
.neeo-related-content .product-card .price-info a .cpl-glitch-zone-hover,
.neeo-related-content .brown .price-info a .cpl-glitch-zone-hover,
.neeo-related-content ul.products li.product .button .cpl-glitch-background,
.neeo-related-content ul.products li.product .button .cpl-glitch-zone-hover {
    display: none !important;
    visibility: hidden !important;
}

/* Disable the broken cpl-glitch animations */
.neeo-related-content .cpl-glitch-wrapper > span,
.products-load-wrapper .cpl-glitch-wrapper > span {
    animation: none !important;
    -webkit-animation: none !important;
}

/* ENABLE the simple neoCplGlitch animation (like normal product cards) */
.neeo-related-content .product-card .price-info a:hover,
.neeo-related-content .product-card .price-info a:focus,
.neeo-related-content .brown .price-info a:hover,
.neeo-related-content .brown .price-info a:focus,
.neeo-related-content ul.products li.product .button:hover,
.neeo-related-content ul.products li.product .button:focus,
.neeo-related-content .product-cards-loadmore:hover,
.neeo-related-content .product-cards-loadmore:focus,
.products-load-wrapper .product-cards-loadmore:hover,
.products-load-wrapper .product-cards-loadmore:focus {
    -webkit-animation: neoCplGlitch 0.25s linear !important;
    animation: neoCplGlitch 0.25s linear !important;
    border-color: #ffffff !important;
    background: transparent !important;
}

/* Keep the white fill sweep and other hover effects intact */
.neeo-related-content .product-card .price-info a:hover::before,
.neeo-related-content .brown .price-info a:hover::before,
.neeo-related-content ul.products li.product .button:hover::before {
    width: 100% !important;
}

/* Ensure smooth transition without broken glitch transforms */
.neeo-related-content .product-card .price-info a,
.neeo-related-content .brown .price-info a,
.neeo-related-content ul.products li.product .button,
.neeo-related-content .product-cards-loadmore,
.products-load-wrapper .product-cards-loadmore {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}


