/**
 * XPEL Korea - PPF Category Page
 * Styles for Paint Protection Film category page
 */

/* ==========================================================================
   PPF Hero Section
   ========================================================================== */
.ppf-hero {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background-color: #171717;
}

@media (min-width: 992px) {
    .ppf-hero {
        min-height: 500px;
    }
}

.ppf-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.ppf-hero__bg img,
.ppf-hero__bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ppf-hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%);
    z-index: 2;
}

.ppf-hero__content {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 3rem 1.5rem;
}

@media (min-width: 992px) {
    .ppf-hero__content {
        padding: 4rem 4rem;
    }
}

.ppf-hero__breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.ppf-hero__breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.ppf-hero__breadcrumb a:hover {
    color: #FFFFFF;
}

.ppf-hero__title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    color: #FFFFFF;
    line-height: 1;
    letter-spacing: -0.02em;
}

/* ==========================================================================
   Tagline Section
   ========================================================================== */
.ppf-tagline {
    background-color: #FFFFFF;
    padding: 4rem 1.5rem;
    border-bottom: 1px solid #E5E5E5;
}

.ppf-tagline__inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 992px) {
    .ppf-tagline__inner {
        grid-template-columns: 1.2fr 1fr;
        gap: 4rem;
    }
}

.ppf-tagline__headline {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: #171717;
    line-height: 1.2;
}

.ppf-tagline__desc {
    font-size: 1rem;
    color: #525252;
    line-height: 1.8;
}

/* ==========================================================================
   Explore Products Section
   ========================================================================== */
.ppf-explore {
    background-color: #F5F5F5;
    padding: 5rem 1.5rem;
}

.ppf-explore__inner {
    max-width: 1400px;
    margin: 0 auto;
}

.ppf-explore__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: #171717;
    margin-bottom: 2rem;
}

/* Product Tabs */
.ppf-explore__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid #E5E5E5;
    padding-bottom: 1rem;
}

.ppf-explore__tab {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #737373;
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.ppf-explore__tab:hover {
    color: #171717;
    background: rgba(0, 0, 0, 0.05);
}

.ppf-explore__tab.active {
    color: #171717;
    background: #171717;
    color: #FFFFFF;
}

/* Tab Panels */
.ppf-explore__panel {
    display: none !important;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
}

.ppf-explore__panel.active {
    display: grid !important;
}

@media (min-width: 992px) {
    .ppf-explore__panel.active {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: center;
    }
}

.ppf-explore__info {
    order: 2;
}

@media (min-width: 992px) {
    .ppf-explore__info {
        order: 1;
    }
}

.ppf-explore__label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #737373;
    margin-bottom: 0.75rem;
}

.ppf-explore__name {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: #171717;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.ppf-explore__desc {
    font-size: 1rem;
    color: #525252;
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* Features List with Icons */
.ppf-explore__features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.ppf-explore__features li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-left: 0;
}

.ppf-explore__feature-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.ppf-explore__feature-icon svg {
    width: 100%;
    height: 100%;
    stroke: #FDB521;
}

.ppf-explore__feature-text {
    flex: 1;
}

.ppf-explore__feature-text strong {
    display: block;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #171717;
    margin-bottom: 0.25rem;
}

.ppf-explore__feature-text span {
    font-size: 0.875rem;
    color: #737373;
    line-height: 1.5;
}

/* International Products Grid */
.ppf-explore__products {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .ppf-explore__products {
        grid-template-columns: 1fr 1fr;
    }
}

.ppf-explore__product h4 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #171717;
    margin-bottom: 0.5rem;
}

.ppf-explore__product p {
    font-size: 0.8125rem;
    color: #737373;
    line-height: 1.5;
}

/* CTA Button */
.ppf-explore__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #171717;
    background: transparent;
    border: 2px solid #171717;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.ppf-explore__cta:hover {
    background: #171717;
    color: #FFFFFF;
}

/* Panel Image */
.ppf-explore__image {
    order: 1;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    max-height: 450px;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

@media (min-width: 992px) {
    .ppf-explore__image {
        order: 2;
        margin: 0;
        margin-left: auto;
    }
}

.ppf-explore__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ==========================================================================
   Support Section
   ========================================================================== */
.ppf-support {
    background-color: #171717;
    padding: 5rem 1.5rem;
}

.ppf-support__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
}

@media (min-width: 768px) {
    .ppf-support__inner {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

.ppf-support__item {
    max-width: 350px;
    margin: 0 auto;
}

.ppf-support__icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ppf-support__icon svg {
    width: 48px;
    height: 48px;
    stroke: #FFFFFF;
    fill: none;
    flex-shrink: 0;
}

.ppf-support__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.ppf-support__desc {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* ==========================================================================
   Videos Section
   ========================================================================== */
.ppf-videos {
    background-color: #171717;
    padding: 5rem 1.5rem;
}

.ppf-videos__inner {
    max-width: 1400px;
    margin: 0 auto;
}

.ppf-videos__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 2rem;
}

.ppf-videos__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

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

@media (min-width: 1200px) {
    .ppf-videos__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.ppf-videos__item {
    text-decoration: none;
    color: inherit;
}

.ppf-videos__thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.ppf-videos__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ppf-videos__item:hover .ppf-videos__thumb img {
    transform: scale(1.05);
}

.ppf-videos__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.ppf-videos__item:hover .ppf-videos__play {
    transform: translate(-50%, -50%) scale(1.1);
}

.ppf-videos__play svg {
    width: 24px;
    height: 24px;
    margin-left: 3px;
}

.ppf-videos__name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #FFFFFF;
    line-height: 1.4;
}

/* ==========================================================================
   Video Modal
   ========================================================================== */
.ppf-video-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.ppf-video-modal.active {
    display: flex;
}

.ppf-video-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
}

.ppf-video-modal__content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    z-index: 1;
}

.ppf-video-modal__close {
    position: absolute;
    top: -48px;
    right: 0;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.ppf-video-modal__close svg {
    width: 100%;
    height: 100%;
    stroke: #FFFFFF;
}

.ppf-video-modal__close:hover svg {
    stroke: #FDB521;
}

.ppf-video-modal video {
    width: 100%;
    border-radius: 8px;
    background: #000;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.ppf-faq {
    background-color: #FFFFFF;
    padding: 5rem 1.5rem;
}

.ppf-faq__inner {
    max-width: 900px;
    margin: 0 auto;
}

.ppf-faq__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.ppf-faq__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: #171717;
}

.ppf-faq__all {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #171717;
    text-decoration: none;
    padding: 0.625rem 1.25rem;
    border: 1px solid #E5E5E5;
    border-radius: 100px;
    transition: all 0.2s ease;
}

.ppf-faq__all:hover {
    border-color: #171717;
}

.ppf-faq__list {
    border-top: 1px solid #E5E5E5;
}

.ppf-faq__item {
    border-bottom: 1px solid #E5E5E5;
}

.ppf-faq__question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 0;
    font-size: 1rem;
    font-weight: 500;
    color: #171717;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: color 0.2s ease;
}

.ppf-faq__question:hover {
    color: #525252;
}

.ppf-faq__question svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke: #737373;
    transition: transform 0.3s ease;
}

.ppf-faq__item.active .ppf-faq__question svg {
    transform: rotate(45deg);
}

.ppf-faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.ppf-faq__item.active .ppf-faq__answer {
    max-height: 300px;
}

.ppf-faq__answer p {
    font-size: 0.9375rem;
    color: #525252;
    line-height: 1.7;
    padding-bottom: 1.25rem;
}

/* ==========================================================================
   Bottom CTA Section
   ========================================================================== */
.ppf-bottom-cta {
    background-color: #171717;
    padding: 5rem 1.5rem;
    border-top: 1px solid #333;
}

.ppf-bottom-cta__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
}

@media (min-width: 768px) {
    .ppf-bottom-cta__inner {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        text-align: left;
    }
}

.ppf-bottom-cta__item {
    max-width: 350px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .ppf-bottom-cta__item {
        margin: 0;
    }
}

.ppf-bottom-cta__icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

@media (min-width: 768px) {
    .ppf-bottom-cta__icon {
        margin: 0 0 1rem 0;
    }
}

.ppf-bottom-cta__icon svg {
    width: 40px;
    height: 40px;
    stroke: #FFFFFF;
    fill: none;
    flex-shrink: 0;
}

.ppf-bottom-cta__item h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 0.75rem;
}

.ppf-bottom-cta__item p {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.ppf-bottom-cta__link {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #FDB521;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ppf-bottom-cta__link:hover {
    color: #e5a31e;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 991px) {
    .ppf-explore__tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 1rem;
        margin-bottom: 2rem;
    }
    
    .ppf-explore__tab {
        flex-shrink: 0;
    }
}
