/* ═══════════════════════════════════════════
   FUNDR PROJECT UPDATES STYLES
   ═══════════════════════════════════════════ */

/* ── Submission Form Wrapper ── */
.fu-wrapper {
    max-width: 680px;
    margin: 40px auto;
    padding: 0 16px;
}
.fu-wrapper *, .fu-public-updates * {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.fu-header { margin-bottom: 28px; }
.fu-header h2 { font-size: 24px; font-weight: 700; margin: 0 0 6px; color: #111827; }
.fu-header p { margin: 0; color: #6b7280; font-size: 15px; }

.fu-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 20px;
}
.fu-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 16px;
    color: #111827;
}

/* Form Fields (reuse fundr-kyc patterns) */
.fu-wrapper .fundr-field { margin-bottom: 16px; }
.fu-wrapper .fundr-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
}
.fu-wrapper .fundr-field input[type="text"],
.fu-wrapper .fundr-field input[type="url"],
.fu-wrapper .fundr-field textarea,
.fu-wrapper .fundr-field select {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #111827;
    background: #fff;
    transition: all .2s;
    outline: none;
    resize: vertical;
}
.fu-wrapper .fundr-field input:focus,
.fu-wrapper .fundr-field textarea:focus,
.fu-wrapper .fundr-field select:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79,70,229,.12);
}
.fu-wrapper .fundr-field input.has-error,
.fu-wrapper .fundr-field textarea.has-error {
    border-color: #dc2626;
}

/* ── Upload Area ── */
.fu-upload-area {
    border: 2px dashed #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all .2s;
    background: #f9fafb;
    position: relative;
}
.fu-upload-area:hover {
    border-color: #4f46e5;
    background: #f5f3ff;
}
.fu-upload-area.fu-upload-area--dragover {
    border-color: #4f46e5;
    background: #ede9fe;
}
.fu-upload-placeholder { color: #6b7280; }
.fu-upload-icon { font-size: 36px; display: block; margin-bottom: 8px; }
.fu-upload-placeholder p { margin: 0 0 4px; font-weight: 600; font-size: 15px; }
.fu-upload-placeholder small { color: #9ca3af; font-size: 13px; }

.fu-upload-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
    justify-content: center;
}
.fu-upload-preview {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #e5e7eb;
}
.fu-upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.fu-upload-preview__remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #dc2626;
    color: #fff;
    border: none;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ── Existing Updates List ── */
.fu-existing { margin-top: 40px; }
.fu-existing h3 { font-size: 18px; font-weight: 700; color: #111827; margin: 0 0 16px; }
.fu-updates-list { display: flex; flex-direction: column; gap: 10px; }
.fu-update-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}
.fu-update-row__info { display: flex; flex-direction: column; gap: 2px; }
.fu-update-row__info strong { font-size: 14px; color: #111827; }
.fu-update-row__info small { font-size: 12px; color: #9ca3af; }
.fu-update-row__note { font-size: 12px; color: #dc2626; margin: 4px 0 0; }

/* ═══ PUBLIC UPDATES TIMELINE ═══ */
.fu-public-updates { margin-top: 8px; }

.fu-timeline { position: relative; padding-left: 40px; }
.fu-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(180deg, #4f46e5, #e5e7eb);
}

.fu-timeline-item { position: relative; margin-bottom: 24px; }
.fu-timeline-item__marker {
    position: absolute;
    left: -40px;
    top: 4px;
    width: 30px;
    height: 30px;
    background: #4f46e5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #e5e7eb;
}
.fu-timeline-item__number {
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.fu-timeline-item__card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 22px;
    transition: all .2s;
}
.fu-timeline-item__card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.06);
}
.fu-timeline-item__header { margin-bottom: 14px; }
.fu-timeline-item__title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 8px 0 4px;
}
.fu-timeline-item__date {
    font-size: 13px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 4px;
}

.fu-timeline-item__body {
    font-size: 15px;
    color: #374151;
    line-height: 1.75;
}
.fu-timeline-item__body p { margin: 0 0 12px; }
.fu-timeline-item__body img { max-width: 100%; border-radius: 10px; margin: 12px 0; }

.fu-timeline-item__video {
    position: relative;
    padding-top: 56.25%;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 16px;
    background: #111;
}
.fu-timeline-item__video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.fu-timeline-item__gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 16px;
}
.fu-gallery-thumb {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1;
}
.fu-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.fu-gallery-thumb:hover img {
    transform: scale(1.05);
}

/* ═══ NOTIFICATION PREFERENCES ═══ */
.fu-prefs-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 24px;
    max-width: 500px;
}
.fu-prefs-card h3 { font-size: 18px; font-weight: 700; color: #111827; margin: 0 0 16px; }

.fu-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}
.fu-toggle input { display: none; }
.fu-toggle__slider {
    width: 44px;
    height: 24px;
    background: #d1d5db;
    border-radius: 24px;
    position: relative;
    transition: .3s;
    flex-shrink: 0;
}
.fu-toggle__slider::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: .3s;
    box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.fu-toggle input:checked + .fu-toggle__slider { background: #4f46e5; }
.fu-toggle input:checked + .fu-toggle__slider::after { left: 23px; }
.fu-toggle__label { font-size: 14px; font-weight: 500; color: #374151; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 600px) {
    .fu-wrapper { margin: 20px auto; }
    .fu-card { padding: 18px; }
    .fu-timeline { padding-left: 32px; }
    .fu-timeline::before { left: 11px; }
    .fu-timeline-item__marker { left: -32px; width: 24px; height: 24px; }
    .fu-timeline-item__number { font-size: 10px; }
    .fu-timeline-item__card { padding: 16px; }
    .fu-timeline-item__title { font-size: 16px; }
    .fu-timeline-item__gallery { grid-template-columns: repeat(2, 1fr); }
    .fu-update-row { flex-direction: column; align-items: flex-start; gap: 8px; }
    .fu-upload-preview { width: 64px; height: 64px; }
}