/**
 * Pretpot Diagonal Carousel Cards Widget Styles
 * 
 * @package Pretpot_Massive_Addons_Kit_For_Elementor_PRO
 */

/* Main Container */
.pretpot-diagonal-carousel-wrapper {
    position: relative;
    width: 100%;
}

.pretpot-diagonal-carousel-container {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    box-sizing: border-box;
}

/* Inner wrapper - contains cards + content side by side */
.pretpot-diagonal-carousel-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

/* Cards Container - Fixed size, centered */
.pretpot-diagonal-cards-container {
    position: relative;
    width: 300px;
    height: 400px;
    flex-shrink: 0;
    perspective: 1500px;
}

.pretpot-diagonal-cards-track {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

/* Individual Card - Absolutely positioned within container */
.pretpot-diagonal-card {
    position: absolute;
    width: 300px;
    height: 400px;
    left: 50%;
    top: 50%;
    margin-left: -150px;
    margin-top: -200px;
    transform-style: preserve-3d;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    will-change: transform, opacity;
}

.pretpot-diagonal-card-number {
    position: absolute;
    top: -30px;
    left: 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
    letter-spacing: 2px;
    z-index: 10;
}

.pretpot-diagonal-card-media {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    background: #1a1a1a;
}

.pretpot-diagonal-card-media img,
.pretpot-diagonal-card-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pretpot-diagonal-card-media video {
    pointer-events: none;
}

/* Active Card State */
.pretpot-diagonal-card.active {
    z-index: 100;
}

/* Content Area - To the right of cards */
.pretpot-diagonal-content-area {
    position: relative;
    width: 350px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Process Line - Horizontal line from card to content */
.pretpot-diagonal-process-line-container {
    position: absolute;
    left: -60px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 2px;
    overflow: hidden;
}

.pretpot-diagonal-process-line {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0.3));
    position: relative;
}

.pretpot-diagonal-process-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: pretpot-diagonal-shimmer 1.5s infinite;
}

@keyframes pretpot-diagonal-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Content Wrapper */
.pretpot-diagonal-content-wrapper {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pretpot-diagonal-content-wrapper.active {
    opacity: 1;
}

.pretpot-diagonal-content-wrapper.active .pretpot-diagonal-process-line {
    animation: pretpot-diagonal-draw-line 0.8s ease forwards;
}

.pretpot-diagonal-content-wrapper.active .pretpot-diagonal-title {
    animation: pretpot-diagonal-fade-in-up 0.6s ease 0.8s forwards;
}

.pretpot-diagonal-content-wrapper.active .pretpot-diagonal-button {
    animation: pretpot-diagonal-fade-in-up 0.6s ease 1.8s forwards;
}

@keyframes pretpot-diagonal-draw-line {
    to { width: 100%; }
}

@keyframes pretpot-diagonal-fade-in-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Title */
.pretpot-diagonal-title {
    font-size: 36px;
    font-weight: 300;
    letter-spacing: -1px;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    line-height: 1.2;
    color: #fff;
}

/* Description */
.pretpot-diagonal-description {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 28px;
}

.pretpot-diagonal-description .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(10px);
    margin-right: 0.3em;
}

.pretpot-diagonal-content-wrapper.active .pretpot-diagonal-description .word {
    animation: pretpot-diagonal-word-fade-in 0.4s ease forwards;
}

@keyframes pretpot-diagonal-word-fade-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button */
.pretpot-diagonal-button {
    display: inline-block;
    padding: 14px 36px;
    background: #fff;
    color: #000;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-weight: 500;
    text-align: center;
    width: fit-content;
}

.pretpot-diagonal-button:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

/* Exit Animation */
.pretpot-diagonal-card.exiting {
    opacity: 0;
    transform: scale(0.9) !important;
    transition: all 0.6s ease;
}

/* Navigation Dots */
.pretpot-diagonal-nav-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 1000;
}

.pretpot-diagonal-nav-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pretpot-diagonal-nav-dot.active {
    background: #fff;
    transform: scale(1.3);
}

/* Progress Bar */
.pretpot-diagonal-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: #fff;
    width: 0%;
    transition: width 0.1s linear;
    z-index: 1000;
}

/* Video Play Button Overlay */
.pretpot-diagonal-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pretpot-diagonal-card:hover .pretpot-diagonal-video-overlay {
    opacity: 1;
}

.pretpot-diagonal-video-play {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.pretpot-diagonal-video-play::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 18px solid #000;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 4px;
}

/* Responsive - Stack on smaller screens */
@media (max-width: 1024px) {
    .pretpot-diagonal-carousel-inner {
        flex-direction: column;
        gap: 40px;
    }
    
    .pretpot-diagonal-content-area {
        width: 100%;
        max-width: 500px;
        text-align: center;
        align-items: center;
    }
    
    .pretpot-diagonal-process-line-container {
        display: none;
    }
    
    .pretpot-diagonal-title {
        font-size: 32px;
    }
    
    .pretpot-diagonal-description {
        font-size: 16px;
    }
    
    .pretpot-diagonal-button {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .pretpot-diagonal-carousel-container {
        padding: 60px 15px;
        min-height: auto;
    }
    
    .pretpot-diagonal-cards-container {
        width: 260px;
        height: 340px;
    }
    
    .pretpot-diagonal-card {
        width: 260px;
        height: 340px;
        margin-left: -130px;
        margin-top: -170px;
    }
    
    .pretpot-diagonal-title {
        font-size: 28px;
    }
    
    .pretpot-diagonal-description {
        font-size: 15px;
    }
    
    .pretpot-diagonal-button {
        padding: 12px 28px;
        font-size: 12px;
    }
}

/* Elementor Container Compatibility */
.elementor-widget-pretpot-diagonal-carousel-cards .e-con-inner,
.elementor-widget-pretpot-diagonal-carousel-cards .elementor-container {
    width: 100%;
}