/* Yanıtlanan mesaj Instagram story — Ana sayfa animasyonları ile uyumlu */
@keyframes yanit-fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes yanit-glow-pulse {
    0%, 100% { filter: drop-shadow(0 0 24px rgba(212, 168, 83, 0.25)); }
    50% { filter: drop-shadow(0 0 36px rgba(212, 168, 83, 0.35)); }
}

.yanit-story-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(8, 7, 6, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    animation: yanit-fade-up 0.4s cubic-bezier(0.32, 0.72, 0, 1) forwards;
}
.yanit-story-modal.open { display: flex; }

.yanit-story-modal-inner {
    background: linear-gradient(165deg, rgba(28, 25, 22, 0.95) 0%, rgba(20, 18, 16, 0.98) 100%);
    border: 1px solid rgba(212, 168, 83, 0.12);
    border-radius: 24px;
    padding: 1.75rem;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
    animation: yanit-fade-up 0.5s cubic-bezier(0.32, 0.72, 0, 1) 0.08s both;
}

.yanit-story-modal-title {
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0 0 1.25rem;
    color: var(--merakta-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.yanit-story-modal-ig {
    display: inline-flex;
    color: var(--merakta-accent);
}
.yanit-story-modal-ig svg {
    width: 1.25em;
    height: 1.25em;
}

.yanit-story-modal-preview {
    background: linear-gradient(145deg, #0a0908 0%, #080706 50%, #060504 100%);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1.25rem;
    aspect-ratio: 9/16;
    max-height: min(78vh, 620px);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(212, 168, 83, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.02);
    animation: yanit-fade-up 0.5s cubic-bezier(0.32, 0.72, 0, 1) 0.15s both;
}
.yanit-story-modal-preview canvas {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.yanit-story-modal-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.yanit-story-modal-btn {
    flex: 1;
    min-width: 130px;
    min-height: 48px;
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    border-radius: 14px;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.yanit-story-modal-btn-primary {
    background: linear-gradient(135deg, #d4a853 0%, #c49a48 100%);
    color: #0a0908;
    box-shadow: 0 4px 16px rgba(212, 168, 83, 0.35);
}
.yanit-story-modal-btn-primary:hover {
    background: linear-gradient(135deg, #e0b96a 0%, #d4a853 100%);
    box-shadow: 0 6px 24px rgba(212, 168, 83, 0.4);
    transform: translateY(-2px);
    animation: yanit-glow-pulse 2.5s ease-in-out infinite;
}
.yanit-story-modal-btn-primary:active {
    transform: translateY(0);
}
.yanit-story-modal-btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--merakta-text-muted);
    border: 1px solid rgba(212, 168, 83, 0.15);
}
.yanit-story-modal-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--merakta-text);
    border-color: rgba(212, 168, 83, 0.25);
}

/* Story paylaş butonu — mesaj kartlarında, ana sayfa fade-up animasyonu */
.oda-mesaj-story-btn,
.py-story-btn,
.profil-yayin-story-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.85rem;
    padding: 0.6rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--merakta-accent);
    background: rgba(212, 168, 83, 0.08);
    border: 1px solid rgba(212, 168, 83, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    animation: yanit-fade-up 0.6s ease forwards;
}
.oda-mesaj-item .oda-mesaj-story-btn { animation-delay: 0.15s; opacity: 0; }
.py-card .py-story-btn { animation-delay: 0.1s; opacity: 0; }
.profil-yayin-card .profil-yayin-story-btn { animation-delay: 0.1s; opacity: 0; }
.oda-mesaj-story-btn:hover,
.py-story-btn:hover,
.profil-yayin-story-btn:hover {
    background: rgba(212, 168, 83, 0.15);
    border-color: rgba(212, 168, 83, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 168, 83, 0.15);
}
.oda-mesaj-story-btn:active,
.py-story-btn:active,
.profil-yayin-story-btn:active {
    transform: translateY(0);
}
.yanit-story-ig-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.yanit-story-ig-icon svg {
    width: 1.1em;
    height: 1.1em;
    opacity: 0.95;
}

/* Oda sayfası — hikaye çıkartması (PNG indir) */
.oda-sticker-strip {
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(212, 168, 83, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(212, 168, 83, 0.12);
}
.oda-sticker-strip__title {
    margin: 0 0 0.35rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--merakta-text);
    display: flex;
    align-items: center;
    gap: 0.45rem;
}
.oda-sticker-strip__title svg,
.oda-sticker-strip__title i {
    width: 1.1em;
    height: 1.1em;
    color: var(--merakta-accent);
    flex-shrink: 0;
}
.oda-sticker-strip__hint {
    margin: 0 0 0.85rem;
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--merakta-text-dim, var(--merakta-text-muted));
}
.oda-sticker-strip__btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.oda-sticker-btn {
    flex: 1;
    min-width: 96px;
    min-height: 44px;
    padding: 0.55rem 0.85rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--merakta-accent);
    background: rgba(212, 168, 83, 0.07);
    border: 1px solid rgba(212, 168, 83, 0.22);
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.oda-sticker-btn:hover {
    background: rgba(212, 168, 83, 0.14);
    border-color: rgba(212, 168, 83, 0.38);
    transform: translateY(-1px);
}
.oda-sticker-btn:active {
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .yanit-story-modal,
    .yanit-story-modal-inner,
    .yanit-story-modal-preview,
    .oda-mesaj-story-btn,
    .py-story-btn,
    .profil-yayin-story-btn,
    .oda-sticker-btn {
        animation: none !important;
    }
    .oda-mesaj-story-btn,
    .py-story-btn,
    .profil-yayin-story-btn {
        opacity: 1;
    }
    .yanit-story-modal-btn-primary:hover {
        animation: none;
    }
}
