/* ============================
   La Floria — Hatıra Fotoğrafı Popup
   ============================ */

.photo-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 10, 5, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.photo-popup-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.photo-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -45%) scale(0.92);
    width: calc(100% - 32px);
    max-width: 380px;
    max-height: 92vh;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.55s cubic-bezier(0.34, 1.4, 0.64, 1), opacity 0.4s ease;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.photo-popup.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: all;
}

/* Kapat Butonu */
.photo-popup-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    color: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: transform 0.2s ease, background 0.2s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.photo-popup-close:hover {
    background: #fff;
    transform: scale(1.08) rotate(90deg);
}

.photo-popup-close:active {
    transform: scale(0.92);
}

/* Görsel Alanı */
.photo-popup-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #1a1a1a;
}

.photo-popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    animation: photoZoomIn 8s ease-in-out infinite alternate;
}

@keyframes photoZoomIn {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.08);
    }
}

.photo-popup-image-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.15) 0%, transparent 30%, transparent 70%, rgba(0, 0, 0, 0.5) 100%);
    pointer-events: none;
}

/* Polaroid kamera ikonu — sol üstte yarı saydam */
.photo-popup-camera-icon {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    animation: cameraFloat 3s ease-in-out infinite;
}

@keyframes cameraFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

/* İçerik Alanı */
.photo-popup-content {
    padding: 24px 24px 28px;
    text-align: center;
    background: #fff;
    position: relative;
}

.photo-popup-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: #8B7500;
    text-transform: uppercase;
    background: #FFF8DC;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 14px;
    animation: contentFadeIn 0.6s 0.3s ease backwards;
}

.photo-popup-title {
    font-family: 'Playfair Display', 'Poppins', serif;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.05;
    color: #1F1F1F;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
    animation: contentFadeIn 0.6s 0.4s ease backwards;
}

.photo-popup-title .accent {
    background: linear-gradient(135deg, #FFE600 0%, #8B7500 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-style: italic;
    filter: drop-shadow(0 2px 4px rgba(255, 230, 0, 0.25));
}

.photo-popup-subtitle {
    font-size: 0.92rem;
    color: #666;
    line-height: 1.55;
    margin-bottom: 16px;
    animation: contentFadeIn 0.6s 0.5s ease backwards;
}

/* Etiketler */
.photo-popup-tags {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 22px;
    animation: contentFadeIn 0.6s 0.6s ease backwards;
}

.photo-tag {
    font-size: 0.72rem;
    font-weight: 600;
    color: #8B7500;
    background: #FFFAE5;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid #F4DC8E;
    letter-spacing: 0.3px;
}

/* Aksiyon Butonları */
.photo-popup-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
    animation: contentFadeIn 0.6s 0.7s ease backwards;
}

.photo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    border: none;
    border-radius: 14px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.photo-btn-primary {
    background: linear-gradient(135deg, #FFE600, #E5C800);
    color: #1F1F1F;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 22px rgba(255, 230, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.18);
}

.photo-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(255, 230, 0, 0.6), 0 4px 10px rgba(0, 0, 0, 0.2);
}

.photo-btn-primary:active {
    transform: scale(0.98);
}

.photo-btn-ghost {
    background: transparent;
    color: #888;
    font-weight: 600;
    padding: 10px;
    font-size: 0.82rem;
}

.photo-btn-ghost:hover {
    color: #444;
}

.photo-popup-hint {
    font-size: 0.75rem;
    color: #999;
    line-height: 1.5;
    animation: contentFadeIn 0.6s 0.8s ease backwards;
}

@keyframes contentFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Body kilidi */
body.photo-popup-open {
    overflow: hidden;
}

/* Mobil Optimizasyon */
@media (max-width: 380px) {
    .photo-popup-image {
        height: 240px;
    }

    .photo-popup-content {
        padding: 20px 18px 24px;
    }

    .photo-popup-title {
        font-size: 1.7rem;
    }

    .photo-popup-subtitle {
        font-size: 0.85rem;
    }
}

@media (max-height: 700px) {
    .photo-popup-image {
        height: 200px;
    }

    .photo-popup-title {
        font-size: 1.7rem;
        margin-bottom: 10px;
    }

    .photo-popup-content {
        padding: 18px 22px 22px;
    }

    .photo-popup-subtitle {
        margin-bottom: 12px;
    }

    .photo-popup-tags {
        margin-bottom: 16px;
    }
}