/* ========================================
   RETRO PHOTO FILTERS
   ======================================== */

/* Base photo styling */
.photo-image img {
    transition: all 0.3s ease;
    border-radius: 8px;
}

/* ========================================
   RETRO FILTER STYLES
   ======================================== */

/* Vintage Film Look */
.retro-vintage img {
    filter: 
        sepia(0.5)
        contrast(1.2)
        brightness(0.9)
        saturate(1.4)
        hue-rotate(-5deg);
    box-shadow: 
        inset 0 0 50px rgba(139, 69, 19, 0.1),
        0 0 20px rgba(0, 0, 0, 0.3);
}

/* 70s Warm Tone */
.retro-70s img {
    filter: 
        sepia(0.3)
        contrast(1.1)
        brightness(1.1)
        saturate(1.3)
        hue-rotate(15deg);
    box-shadow: 
        inset 0 0 40px rgba(255, 165, 0, 0.15),
        0 0 15px rgba(255, 140, 0, 0.2);
}

/* 80s Neon Vibe */
.retro-80s img {
    filter: 
        contrast(1.3)
        brightness(1.05)
        saturate(1.5)
        hue-rotate(-10deg);
    box-shadow: 
        inset 0 0 30px rgba(255, 0, 255, 0.1),
        0 0 20px rgba(0, 255, 255, 0.15);
}

/* 90s Polaroid */
.retro-polaroid img {
    filter: 
        sepia(0.2)
        contrast(1.15)
        brightness(1.05)
        saturate(1.2);
    border: 8px solid #f8f8f8;
    border-bottom: 40px solid #f8f8f8;
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
}

.retro-polaroid::after {
    content: '';
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 25px;
    background: linear-gradient(to right, transparent, rgba(0,0,0,0.1), transparent);
}

/* Film Grain Effect */
.retro-grain img {
    filter: 
        sepia(0.4)
        contrast(1.2)
        brightness(0.95)
        saturate(1.1);
    position: relative;
}

.retro-grain::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 1px 1px, rgba(255,255,255,0.15) 1px, transparent 0),
        radial-gradient(circle at 2px 2px, rgba(0,0,0,0.1) 1px, transparent 0);
    background-size: 4px 4px, 6px 6px;
    pointer-events: none;
    border-radius: 8px;
    opacity: 0.3;
}

/* Black & White Classic */
.retro-bw img {
    filter: 
        grayscale(1)
        contrast(1.3)
        brightness(1.1);
    box-shadow: 
        inset 0 0 50px rgba(0, 0, 0, 0.2),
        0 0 15px rgba(0, 0, 0, 0.4);
}

/* Cross Processing */
.retro-cross img {
    filter: 
        sepia(0.6)
        contrast(1.4)
        brightness(0.9)
        saturate(2)
        hue-rotate(30deg);
    box-shadow: 
        inset 0 0 60px rgba(255, 255, 0, 0.1),
        0 0 20px rgba(255, 0, 100, 0.15);
}

/* ========================================
   SPECIAL EFFECTS
   ======================================== */

/* Light Leak Effect */
.retro-light-leak::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(255, 255, 0, 0.3), transparent 70%);
    pointer-events: none;
}

/* Faded Edges */
.retro-faded img {
    filter: 
        sepia(0.3)
        contrast(1.1)
        brightness(1.05)
        saturate(1.2);
    box-shadow: 
        inset 0 0 100px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(0, 0, 0, 0.2);
}

/* ========================================
   RETRO FILTER INDICATORS
   ======================================== */

/* Add subtle indicator for filter type */
.retro-vintage::after {
    content: 'Vintage';
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(139, 69, 19, 0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.retro-70s::after {
    content: '70s';
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(255, 165, 0, 0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.retro-80s::after {
    content: '80s';
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(255, 0, 255, 0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-image:hover::after {
    opacity: 1;
}

/* ========================================
   MOBILE OPTIMIZATIONS
   ======================================== */

@media (max-width: 768px) {
    .retro-polaroid img {
        border: 4px solid #f8f8f8;
        border-bottom: 20px solid #f8f8f8;
    }
    
    .retro-polaroid::after {
        bottom: -18px;
        height: 12px;
    }
}

/* ========================================
   HOVER EFFECTS
   ======================================== */

.photo-image:hover img {
    transform: scale(1.02);
    filter: brightness(1.1) !important;
}

.retro-polaroid:hover {
    transform: rotate(-1deg) scale(1.02);
}