/* ==========================================
   CINEMATIC IMAGE FRAMES & TRANSITIONS
   Epische Bildrahmen mit Kupfer-Ornamenten
   ========================================== */

/* ===== CELTIC ORNAMENT FRAME ===== */
.image-placeholder {
    position: relative;
    overflow: visible !important;
    border-radius: 0;
    padding: 30px;
    background: 
        linear-gradient(135deg, rgba(26, 20, 16, 0.9), rgba(10, 10, 10, 0.95)),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(184, 115, 51, 0.1) 2px,
            rgba(184, 115, 51, 0.1) 4px
        );
    box-shadow: 
        0 0 0 2px var(--color-copper),
        0 0 0 6px var(--color-dark),
        0 0 0 8px var(--color-bronze),
        inset 0 0 60px rgba(184, 115, 51, 0.2),
        0 20px 80px rgba(0, 0, 0, 0.8);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Corner Ornaments */
.image-placeholder::before,
.image-placeholder::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    border: 3px solid var(--color-copper);
    z-index: 10;
    transition: all 0.6s ease;
}

.image-placeholder::before {
    top: -3px;
    left: -3px;
    border-right: none;
    border-bottom: none;
    background: 
        linear-gradient(to right, var(--color-gold), transparent),
        linear-gradient(to bottom, var(--color-gold), transparent);
    background-size: 100% 3px, 3px 100%;
    background-repeat: no-repeat;
    background-position: top left;
}

.image-placeholder::after {
    bottom: -3px;
    right: -3px;
    border-left: none;
    border-top: none;
    background: 
        linear-gradient(to left, var(--color-gold), transparent),
        linear-gradient(to top, var(--color-gold), transparent);
    background-size: 100% 3px, 3px 100%;
    background-repeat: no-repeat;
    background-position: bottom right;
}

/* Opposite Corners */
.image-placeholder .corner-tl,
.image-placeholder .corner-br {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 3px solid var(--color-bronze);
    z-index: 10;
    transition: all 0.6s ease;
}

.image-placeholder .corner-tl {
    top: -3px;
    right: -3px;
    border-left: none;
    border-bottom: none;
}

.image-placeholder .corner-br {
    bottom: -3px;
    left: -3px;
    border-right: none;
    border-top: none;
}

/* Celtic Knot Decorations */
.image-placeholder .celtic-knot {
    position: absolute;
    font-size: 2rem;
    color: var(--color-gold);
    text-shadow: 
        0 0 20px var(--color-gold),
        0 0 40px rgba(212, 175, 55, 0.5);
    z-index: 11;
    animation: rotateKnot 20s linear infinite;
    opacity: 0.8;
}

.celtic-knot.top-left { top: -15px; left: -15px; }
.celtic-knot.top-right { top: -15px; right: -15px; animation-direction: reverse; }
.celtic-knot.bottom-left { bottom: -15px; left: -15px; animation-delay: 5s; }
.celtic-knot.bottom-right { bottom: -15px; right: -15px; animation-direction: reverse; animation-delay: 5s; }

@keyframes rotateKnot {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== HOVER EFFECTS ===== */
.image-placeholder:hover {
    transform: scale(1.02) translateZ(30px);
    box-shadow: 
        0 0 0 2px var(--color-gold),
        0 0 0 6px var(--color-dark),
        0 0 0 8px var(--color-gold),
        inset 0 0 80px rgba(212, 175, 55, 0.3),
        0 30px 120px rgba(212, 175, 55, 0.6);
}

.image-placeholder:hover::before,
.image-placeholder:hover::after {
    width: 80px;
    height: 80px;
    border-color: var(--color-gold);
}

.image-placeholder:hover .corner-tl,
.image-placeholder:hover .corner-br {
    width: 80px;
    height: 80px;
    border-color: var(--color-gold);
}

.image-placeholder:hover .celtic-knot {
    animation: rotateKnot 5s linear infinite;
    font-size: 2.5rem;
}

/* ===== IMAGE REVEAL ANIMATIONS ===== */
/* Universal Mystical Filter für ALLE Bilder */
.story-img,
.product-img,
.sunset-img,
.landscape-img {
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    animation: imageReveal 1.5s cubic-bezier(0.4, 0, 0.2, 1) both;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    /* Universeller mystischer Filter */
    filter: 
        brightness(0.85) 
        contrast(1.15) 
        saturate(0.9)
        sepia(15%)
        hue-rotate(-5deg);
}

/* Vignette für ALLE Bilder */
.image-placeholder::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 100px 50px rgba(0, 0, 0, 0.6);
    pointer-events: none;
    z-index: 5;
    transition: all 0.6s ease;
}

.image-placeholder:hover::after {
    box-shadow: inset 0 0 80px 40px rgba(0, 0, 0, 0.4);
}

@keyframes imageReveal {
    from {
        clip-path: polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%);
        opacity: 0;
        filter: blur(20px) grayscale(100%) brightness(0.5);
    }
    to {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        opacity: 1;
        filter: 
            brightness(0.85) 
            contrast(1.15) 
            saturate(0.9)
            sepia(15%)
            hue-rotate(-5deg);
    }
}

/* Hover Zoom mit Parallax - UNIVERSAL für ALLE Bilder */
.image-placeholder:hover .story-img,
.image-placeholder:hover .product-img,
.image-placeholder:hover .sunset-img,
.image-placeholder:hover .landscape-img {
    transform: scale(1.08);
    filter: 
        brightness(0.95) 
        contrast(1.2) 
        saturate(1.0)
        sepia(10%)
        hue-rotate(-3deg);
}

/* ===== IMAGE CAPTION ENHANCEMENT ===== */
.image-caption {
    background: linear-gradient(
        to top,
        rgba(10, 10, 10, 0.95) 0%,
        rgba(26, 20, 16, 0.9) 50%,
        transparent 100%
    );
    padding: 2rem 1rem 1rem;
    border-top: 2px solid var(--color-copper);
    backdrop-filter: blur(10px);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    position: relative;
    overflow: hidden;
    z-index: 6;
}

.image-caption::before {
    content: '◆';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    color: var(--color-gold);
    text-shadow: 0 0 20px var(--color-gold);
    animation: pulse 3s ease-in-out infinite;
}

.image-caption::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(
        to right,
        transparent,
        var(--color-gold),
        transparent
    );
    animation: scanline 3s linear infinite;
}

@keyframes scanline {
    from { transform: translateX(-100%); }
    to { transform: translateX(100%); }
}

/* ===== PARALLAX IMAGE LAYERS ===== */
.parallax-image {
    position: relative;
    transform-style: preserve-3d;
}

.parallax-image::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: radial-gradient(
        ellipse at center,
        transparent 30%,
        rgba(184, 115, 51, 0.1) 70%,
        rgba(212, 175, 55, 0.2) 100%
    );
    z-index: 2;
    pointer-events: none;
    animation: pulseLayer 5s ease-in-out infinite;
}

@keyframes pulseLayer {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.05); }
}

/* ===== PRODUCT SHOWCASE SPECIAL FRAME ===== */
.image-placeholder.product {
    padding: 40px;
    background: 
        radial-gradient(ellipse at center, rgba(212, 175, 55, 0.1), transparent 70%),
        linear-gradient(135deg, rgba(26, 20, 16, 0.95), rgba(10, 10, 10, 0.98));
    box-shadow: 
        0 0 0 3px var(--color-gold),
        0 0 0 7px var(--color-dark),
        0 0 0 10px var(--color-copper),
        0 0 0 14px var(--color-dark),
        0 0 0 16px var(--color-bronze),
        inset 0 0 100px rgba(212, 175, 55, 0.3),
        0 30px 100px rgba(212, 175, 55, 0.4);
    position: relative;
    overflow: visible;
}

/* Rotating Glow Ring */
.image-placeholder.product::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    transform: translate(-50%, -50%);
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        var(--color-gold) 90deg,
        transparent 180deg,
        var(--color-copper) 270deg,
        transparent 360deg
    );
    opacity: 0.2;
    animation: rotateGlow 10s linear infinite;
    z-index: 1;
    filter: blur(20px);
}

@keyframes rotateGlow {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ===== SUNSET IMAGE SPECIAL TREATMENT ===== */
.transfer-image {
    position: relative;
    margin-bottom: var(--spacing-md);
    perspective: 1000px;
}

.transfer-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(212, 175, 55, 0.3) 0%,
        transparent 50%,
        rgba(184, 115, 51, 0.3) 100%
    );
    z-index: 3;
    pointer-events: none;
    mix-blend-mode: overlay;
    animation: sunsetGlow 8s ease-in-out infinite;
}

@keyframes sunsetGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

/* ===== ORNAMENTAL DIVIDERS ===== */
.ornamental-divider {
    position: relative;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: var(--spacing-lg) 0;
    overflow: visible;
}

.ornamental-divider::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(
        to right,
        transparent,
        var(--color-copper) 20%,
        var(--color-gold) 50%,
        var(--color-copper) 80%,
        transparent
    );
    animation: shimmerLine 3s linear infinite;
}

.ornamental-divider .divider-symbol {
    position: relative;
    z-index: 2;
    font-size: 3rem;
    color: var(--color-gold);
    background: var(--color-dark);
    padding: 0 2rem;
    text-shadow: 
        0 0 30px var(--color-gold),
        0 0 60px rgba(212, 175, 55, 0.5);
    animation: rotateSymbol 15s linear infinite;
}

@keyframes shimmerLine {
    from { background-position: -200% center; }
    to { background-position: 200% center; }
}

@keyframes rotateSymbol {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== CLIP-PATH REVEAL VARIATIONS ===== */
.reveal-diagonal .story-img {
    animation: revealDiagonal 1.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes revealDiagonal {
    from {
        clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
    }
    to {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
}

.reveal-center .story-img {
    animation: revealCenter 1.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes revealCenter {
    from {
        clip-path: circle(0% at 50% 50%);
    }
    to {
        clip-path: circle(100% at 50% 50%);
    }
}

.reveal-hexagon .story-img {
    animation: revealHexagon 1.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes revealHexagon {
    from {
        clip-path: polygon(50% 0%, 50% 0%, 100% 50%, 50% 100%, 50% 100%, 0% 50%);
    }
    to {
        clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    }
}

/* ===== IMAGE GLOW PARTICLES ===== */
.image-placeholder .glow-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

/* Image Vignette Overlay */
.image-placeholder::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        ellipse at center,
        transparent 30%,
        rgba(10, 10, 10, 0.3) 70%,
        rgba(10, 10, 10, 0.5) 100%
    );
    pointer-events: none;
    z-index: 4;
    transition: opacity 0.6s ease;
}

.image-placeholder:hover::after {
    opacity: 0.5;
}

.glow-particles .particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--color-gold);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-gold);
    animation: floatParticle 5s infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 30%; animation-delay: 1s; }
.particle:nth-child(3) { left: 50%; animation-delay: 2s; }
.particle:nth-child(4) { left: 70%; animation-delay: 3s; }
.particle:nth-child(5) { left: 90%; animation-delay: 4s; }

@keyframes floatParticle {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100%);
        opacity: 0;
    }
}

/* ===== RESPONSIVE IMAGE FRAMES ===== */
@media (max-width: 768px) {
    .image-placeholder {
        padding: 20px;
    }
    
    .image-placeholder::before,
    .image-placeholder::after,
    .corner-tl,
    .corner-br {
        width: 40px;
        height: 40px;
    }
    
    .celtic-knot {
        font-size: 1.5rem;
    }
    
    .image-placeholder.product {
        padding: 30px;
    }
}

/* ===== LIGHTBOX PREPARATION ===== */
.image-placeholder.clickable {
    cursor: zoom-in;
}

.image-placeholder.clickable:hover {
    cursor: zoom-in;
}

.image-placeholder.clickable:active {
    transform: scale(0.98);
}

/* ===== MASK OVERLAY EFFECTS ===== */
.image-mask-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(212, 175, 55, 0.1) 2px,
            rgba(212, 175, 55, 0.1) 4px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(184, 115, 51, 0.1) 2px,
            rgba(184, 115, 51, 0.1) 4px
        );
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    z-index: 4;
}

.image-placeholder:hover .image-mask-overlay {
    opacity: 1;
}
