/**
 * Dante Robere Animation Widgets - Complete Styles
 */

/* Heading Animation Styles */
.dante-heading {
    display: block;
    overflow: visible;
}

.dante-heading.dante-heading-vintage-fade .word {
    display: inline-block;
    white-space: nowrap;
}

.dante-heading.dante-heading-vintage-fade .word:first-child {
    margin-left: 0 !important;
}

.dante-heading.dante-heading-split-fade {
    display: block;
}

/* Styled Words in Headings */
.dante-heading .word.styled-word {
    /* Color and typography will be set via inline styles from widget */
    display: inline-block;
}

.dante-heading .styled-word {
    /* For non-word-wrapped elements */
    display: inline-block;
}

/* Textarea Animation Styles */
.dante-textarea {
    display: block;
    overflow: visible;
}

.dante-textarea .line {
    display: block;
    overflow: visible;
}

/* Image Animation Styles */
.dante-image-wrapper {
    display: block;
    overflow: visible;
}

.dante-image {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.dante-image img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Curtain Reveal Specific */
.dante-image.dante-image-curtain-reveal {
    position: relative;
}

.dante-image .curtain-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1a0e0e;
    z-index: 2;
    pointer-events: none;
}

/* Caption Styles */
.dante-image-caption {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    font-style: italic;
}

/* YouTube Video Animation Styles */
.dante-youtube-wrapper {
    display: block;
    overflow: visible;
}

.dante-youtube {
    position: relative;
    display: inline-block;
    width: 100%;
    overflow: hidden;
}

.dante-youtube .elementor-video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.dante-youtube .elementor-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Aspect Ratio Classes */
.elementor-aspect-ratio-169 .dante-youtube .elementor-video-container {
    padding-bottom: 56.25%; /* 16:9 */
}

.elementor-aspect-ratio-219 .dante-youtube .elementor-video-container {
    padding-bottom: 42.857%; /* 21:9 */
}

.elementor-aspect-ratio-43 .dante-youtube .elementor-video-container {
    padding-bottom: 75%; /* 4:3 */
}

.elementor-aspect-ratio-32 .dante-youtube .elementor-video-container {
    padding-bottom: 66.667%; /* 3:2 */
}

.elementor-aspect-ratio-11 .dante-youtube .elementor-video-container {
    padding-bottom: 100%; /* 1:1 */
}

.elementor-aspect-ratio-916 .dante-youtube .elementor-video-container {
    padding-bottom: 177.778%; /* 9:16 */
}

/* Curtain Reveal for YouTube */
.dante-youtube.dante-youtube-curtain-reveal .curtain-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1a0e0e;
    z-index: 2;
    pointer-events: none;
}

/* YouTube Error Message */
.dante-youtube-error {
    padding: 20px;
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #ff6b6b;
    border-radius: 5px;
    text-align: center;
    font-family: Arial, sans-serif;
}

/* Prevent layout shift during animation */
.dante-heading,
.dante-textarea,
.dante-image-wrapper,
.dante-youtube-wrapper {
    min-height: 1em;
}

/* Elementor Editor Styles */
.elementor-editor-active .dante-heading,
.elementor-editor-active .dante-textarea,
.elementor-editor-active .dante-image img,
.elementor-editor-active .dante-youtube .elementor-video-container {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
}

.elementor-editor-active .dante-heading .word,
.elementor-editor-active .dante-textarea .line {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
}

.elementor-editor-active .dante-image .curtain-overlay,
.elementor-editor-active .dante-youtube .curtain-overlay {
    display: none !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .dante-heading {
        overflow-wrap: break-word;
    }

    .dante-textarea .line {
        overflow-wrap: break-word;
    }

    .dante-image img {
        width: 100%;
    }

    .dante-youtube {
        width: 100% !important;
    }
}

/* ============================================
   ADD THIS TO style.css AT THE END
   ============================================ */
/* Slideshow Animation Styles */
.dante-slideshow {
    position: relative;
    width: 100%;
    height: 60vh;
    overflow: hidden;
    background: #000;
}

.dante-slideshow-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.dante-slideshow-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
}

.dante-slideshow-slide.active {
    opacity: 1;
    z-index: 2;
}

.dante-slideshow-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 1;
}

/* Curtain Overlay - positioned ABOVE the image */
.dante-slideshow-slide .curtain-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    z-index: 2;
    pointer-events: none;
}

/* Navigation Buttons */
.dante-slideshow-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
}

.dante-slideshow:hover .dante-slideshow-nav {
    opacity: 1;
}

.dante-slideshow-nav:hover {
    background-color: rgba(212, 175, 55, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.dante-slideshow-prev {
    left: 20px;
}

.dante-slideshow-next {
    right: 20px;
}

/* Pagination Dots */
.dante-slideshow-pagination {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 100;
}

.dante-slideshow-pagination .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dante-slideshow-pagination .dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.dante-slideshow-pagination .dot.active {
    background-color: #d4af37;
    transform: scale(1.3);
}

/* Placeholder Message */
.dante-slideshow-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    background: rgba(212, 175, 55, 0.1);
    border: 2px dashed rgba(212, 175, 55, 0.3);
    border-radius: 10px;
    color: #d4af37;
    font-size: 16px;
    font-family: Arial, sans-serif;
}

/* Elementor Editor */
.elementor-editor-active .dante-slideshow-nav {
    opacity: 1;
}

.elementor-editor-active .dante-slideshow-slide {
    opacity: 0 !important;
}

.elementor-editor-active .dante-slideshow-slide.active {
    opacity: 1 !important;
}

.elementor-editor-active .dante-slideshow-slide img {
    transform: none !important;
}

.elementor-editor-active .dante-slideshow-slide .curtain-overlay {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .dante-slideshow {
        height: 40vh;
    }
    
    .dante-slideshow-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
        opacity: 1;
    }
    
    .dante-slideshow-prev {
        left: 10px;
    }
    
    .dante-slideshow-next {
        right: 10px;
    }
    
    .dante-slideshow-pagination {
        bottom: 10px;
    }
    
    .dante-slideshow-pagination .dot {
        width: 8px;
        height: 8px;
    }
}


/* ============================================
   ADD THIS TO style.css AT THE END
   Pullquote Animation Widget Styles
   ============================================ */

/* Pullquote Container */
.dante-pullquote {
    position: relative;
    display: block;
    overflow: visible;
}

/* Quote Text */
.dante-pullquote-text {
    position: relative;
    z-index: 1;
    margin: 0;
}

/* Quote Icon */
.dante-pullquote-icon {
    position: absolute;
    line-height: 1;
    font-family: 'Cormorant Garamond', serif;
    pointer-events: none;
    user-select: none;
}

.dante-pullquote-icon.icon-top-left {
    top: -20px;
    left: 30px;
}

.dante-pullquote-icon.icon-top-center {
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
}

.dante-pullquote-icon.icon-top-right {
    top: -20px;
    right: 30px;
}

/* Author/Citation */
.dante-pullquote-author {
    display: block;
    font-style: normal;
}

/* Prevent layout shift during animation */
.dante-pullquote {
    min-height: 50px;
}

/* Elementor Editor Styles */
.elementor-editor-active .dante-pullquote {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .dante-pullquote {
        padding: 30px 20px !important;
    }
    
    .dante-pullquote-icon {
        font-size: 80px !important;
    }
    
    .dante-pullquote-text {
        font-size: 20px !important;
    }
}

@media (max-width: 480px) {
    .dante-pullquote {
        padding: 20px 15px !important;
    }
    
    .dante-pullquote-icon {
        font-size: 60px !important;
        top: -10px !important;
        left: 15px !important;
    }
    
    .dante-pullquote-icon.icon-top-right {
        right: 15px !important;
        left: auto !important;
    }
    
    .dante-pullquote-text {
        font-size: 18px !important;
        line-height: 1.6 !important;
    }
    
    .dante-pullquote-author {
        font-size: 14px !important;
        margin-top: 15px !important;
    }
}