/* ================================================================
   news_video_extra.css
   news.php'ye eklenen video hikaye özelliği için ek stiller.
   /httpdocs/css/news_video_extra.css
   ================================================================ */

/* ── "Hikaye Ekle" özel kartı ─────────────────────────────────── */
.story-add-card {
    cursor: pointer;
}
.story-add-card .story-avatar-ring::before {
    border-color: #e74c3c !important;
    animation: rotate-border 6s linear infinite;
}
.story-add-ring {
    border: 2px dashed #e74c3c !important;
}
.story-add-plus {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    background: #e74c3c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 10px;
    z-index: 10;
    border: 2px solid var(--bg-color, #1a1a2e);
}

/* ── Boş hikaye mesajı ───────────────────────────────────────── */
.story-empty {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    color: #888;
    font-size: 13px;
    font-style: italic;
}
.story-empty i {
    font-size: 18px;
    color: #e74c3c;
    opacity: .6;
}

/* ── Video Upload Modal içeriği ──────────────────────────────── */
.video-upload-content {
    background: var(--card-bg, #1e1e2e);
    border-radius: 16px;
    width: 400px;
    max-width: 92vw;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.6);
    animation: slideUpModal .25s ease;
}
@keyframes slideUpModal {
    from { transform: translateY(30px); opacity:0; }
    to   { transform: translateY(0);    opacity:1; }
}

.video-upload-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.video-upload-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color, #eee);
    display: flex;
    align-items: center;
    gap: 8px;
}
.video-upload-header h3 i { color: #e74c3c; }

.video-upload-body {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.video-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 2px dashed rgba(231,76,60,.5);
    border-radius: 12px;
    padding: 32px 16px;
    cursor: pointer;
    color: #aaa;
    font-size: 13px;
    transition: border-color .2s, background .2s;
}
.video-upload-label:hover {
    border-color: #e74c3c;
    background: rgba(231,76,60,.06);
}
.video-upload-label i { color: #e74c3c; }

.video-upload-preview {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
}
.story-remove-video {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0,0,0,.7);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.video-upload-caption {
    width: 100%;
    min-height: 60px;
    resize: none;
    font-size: 13px;
}

.video-upload-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px 20px;
    border-top: 1px solid rgba(255,255,255,.08);
}

/* ── Upload progress bar ────────────────────────────────────── */
.video-upload-progress {
    padding: 10px 20px 16px;
    text-align: center;
}
.vup-bar {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,.1);
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 8px;
}
.vup-fill {
    height: 100%;
    background: linear-gradient(90deg, #e74c3c, #ff7043);
    border-radius: 99px;
    transition: width .3s ease;
}
#vupText {
    font-size: 12px;
    color: #aaa;
}

/* ── Video paylaşım form butonu (kırmızı) ───────────────────── */
.ig-tool-btn[onclick*="openVideoUploadModal"] {
    color: #e74c3c !important;
}
.ig-tool-btn[onclick*="openVideoUploadModal"]:hover {
    background: rgba(231,76,60,.12) !important;
}

/* ── story-count-badge (video sayısı rozeti) ────────────────── */
.story-count-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #e74c3c;
    color: #fff;
    font-size: 10px;
    border-radius: 99px;
    padding: 2px 5px;
    z-index: 10;
    font-weight: 600;
    white-space: nowrap;
}

/* ── Kendi hikayesi vurgusu ─────────────────────────────────── */
.story-card.story-own .story-avatar-ring::before {
    border-color: #25D366 !important;
}

/* ── Modal'ı ortalama (ig-story-modal zaten tanımlı,
       video-upload-modal da aynı sınıfı kullanıyor) ─────────── */
#videoUploadModal {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Video İzlenme Popup Bildirimi ─────────────────────────────── */
#videoViewerToastWrap {
    position: fixed;
    bottom: 80px;
    right: 18px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}
.vv-toast {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(103,126,234,0.4);
    border-left: 3px solid #667eea;
    border-radius: 12px;
    padding: 10px 14px;
    min-width: 240px;
    max-width: 300px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    pointer-events: all;
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.vv-toast.show  { opacity: 1; transform: translateX(0); }
.vv-toast.hide  { opacity: 0; transform: translateX(40px); }
.vv-toast-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(103,126,234,0.6);
    flex-shrink: 0;
}
.vv-toast-body  { flex: 1; min-width: 0; }
.vv-toast-name  { font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vv-toast-text  { font-size: 11px; color: rgba(255,255,255,0.6); margin-top: 2px; }
.vv-toast-icon  { font-size: 18px; color: #e74c3c; flex-shrink: 0; }
