/**
 * Pretpot Parallax Image Widget Styles
 */

/* Main Widget Container */
.pretpot-parallax-image-widget {
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* Parallax Container */
.pretpot-parallax-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    transform: translateZ(0);
    will-change: transform;
}

/* Parallax Image */
.pretpot-parallax-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: transform;
    transform: translateY(0);
    transition: transform 0.1s linear;
}

/* Image Tag Version */
.pretpot-parallax-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Content Overlay */
.pretpot-parallax-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
}

/* Overlay Layer */
.pretpot-parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Heading Styles */
.pretpot-parallax-heading {
    margin: 0 0 15px;
    color: #ffffff;
    font-weight: 700;
    line-height: 1.2;
}

/* Subheading Styles */
.pretpot-parallax-subheading {
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    line-height: 1.5;
}

/* Button Styles */
.pretpot-parallax-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.pretpot-parallax-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Alignment Variations */
.pretpot-parallax-align-left .pretpot-parallax-content {
    align-items: flex-start;
    text-align: left;
}

.pretpot-parallax-align-right .pretpot-parallax-content {
    align-items: flex-end;
    text-align: right;
}

.pretpot-parallax-align-center .pretpot-parallax-content {
    align-items: center;
    text-align: center;
}

/* Vertical Position */
.pretpot-parallax-valign-top .pretpot-parallax-content {
    justify-content: flex-start;
}

.pretpot-parallax-valign-middle .pretpot-parallax-content {
    justify-content: center;
}

.pretpot-parallax-valign-bottom .pretpot-parallax-content {
    justify-content: flex-end;
}

/* Responsive Heights */
@media (max-width: 1024px) {
    .pretpot-parallax-image {
        height: 130%;
    }
}

@media (max-width: 768px) {
    .pretpot-parallax-image {
        height: 140%;
    }
    
    .pretpot-parallax-content {
        padding: 30px 20px;
    }
    
    .pretpot-parallax-heading {
        font-size: 28px !important;
    }
    
    .pretpot-parallax-subheading {
        font-size: 16px !important;
    }
}

@media (max-width: 480px) {
    .pretpot-parallax-image {
        height: 150%;
    }
    
    .pretpot-parallax-heading {
        font-size: 24px !important;
    }
    
    .pretpot-parallax-subheading {
        font-size: 14px !important;
    }
    
    .pretpot-parallax-button {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .pretpot-parallax-image {
        transform: none !important;
        position: relative;
        height: 100%;
    }
}

/* Loading State */
.pretpot-parallax-image.loading {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pretpot-parallax-image.loaded {
    opacity: 1;
}

/* Responsive Background Images */
.pretpot-parallax-image {
    background-image: var(--parallax-image-desktop);
}

@media (max-width: 1024px) {
    .pretpot-parallax-image {
        background-image: var(--parallax-image-tablet, var(--parallax-image-desktop));
    }
}

@media (max-width: 768px) {
    .pretpot-parallax-image {
        background-image: var(--parallax-image-mobile, var(--parallax-image-tablet, var(--parallax-image-desktop)));
    }
}