/* Wall share — global overlay + profile inline form */

body.wall-share-open {
    overflow: hidden;
}

.wall-share-overlay {
    position: fixed;
    inset: 0;
    z-index: 1250;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: rgba(0, 8, 18, 0.78);
    backdrop-filter: blur(6px);
    padding: 12px;
}

@media (min-width: 640px) {
    .wall-share-overlay {
        align-items: center;
    }
}

.wall-share-overlay.hidden {
    display: none;
}

.wall-share-panel {
    width: min(520px, 100%);
    max-height: calc(100vh - 24px);
    overflow-y: auto;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(180deg, #111d2f, #070d17);
    padding: 14px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    color: #f5f9ff;
}

.wall-share-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.wall-share-title {
    font-weight: 900;
    font-size: 1.05rem;
}

.wall-share-app-badge {
    margin-top: 4px;
    font-size: 0.78rem;
    color: #ffd743;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.wall-share-close {
    border: 0;
    background: transparent;
    color: #cfe0f5;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}

.wall-share-body {
    width: 100%;
    min-height: 88px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    padding: 10px 12px;
    font-size: 1rem;
    resize: vertical;
}

.wall-share-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 12px 0;
}

.wall-share-photo-slot {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.3);
}

.wall-share-photo-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wall-share-photo-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: rgba(0, 0, 0, 0.45);
}

.wall-share-photo-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ffd743, #8dffbf);
    transition: width 0.15s ease;
}

.wall-share-photo-progress-bar.is-indeterminate {
    width: 40%;
    animation: wall-upload-indeterminate 1.1s ease-in-out infinite;
}

.wall-share-photo-status {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 6px;
    text-align: center;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    pointer-events: none;
}

@keyframes wall-upload-indeterminate {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(320%); }
}

.soc-post-delete-form {
    margin-left: auto;
    flex-shrink: 0;
}

.soc-post-delete {
    border: 0;
    background: transparent;
    color: rgba(207, 224, 245, 0.65);
    font-size: 1rem;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 8px;
}

.soc-post-delete:hover {
    color: #ffb2b2;
    background: rgba(255, 80, 80, 0.12);
}

.wall-share-photo-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}

.wall-share-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.wall-share-status {
    margin-top: 10px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.72);
}

.wall-share-status.is-error {
    color: #ffb2b2;
}

.wall-share-status.is-ok {
    color: #8dffbf;
}

.wall-post-form .wall-camera-btn {
    border-color: rgba(255, 255, 255, 0.22);
}

.wall-photo-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.wall-photo-preview img {
    max-width: 100%;
    max-height: 220px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    object-fit: contain;
    background: rgba(0, 0, 0, 0.35);
}

.wall-post-images {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.wall-post-image img {
    max-width: 100%;
    max-height: 280px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    object-fit: contain;
    background: rgba(0, 0, 0, 0.25);
}

.wall-camera-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 8, 18, 0.82);
    backdrop-filter: blur(8px);
    padding: 16px;
}

.wall-camera-modal.hidden {
    display: none;
}

.wall-camera-panel {
    width: min(480px, 100%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(180deg, #111d2f, #070d17);
    padding: 12px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.wall-camera-panel video {
    width: 100%;
    border-radius: 12px;
    background: #000;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.wall-camera-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 12px;
}

.hidden {
    display: none !important;
}

/* Profile share overlay */
.profile-share-panel {
    text-align: center;
}

.profile-share-empty,
.profile-share-ready {
    padding: 6px 0 2px;
}

.profile-share-empty p {
    margin: 0 0 14px;
    color: rgba(238, 244, 255, 0.78);
    line-height: 1.5;
}

.profile-share-qr-wrap {
    display: flex;
    justify-content: center;
    margin: 8px 0 12px;
}

.profile-share-qr-wrap img {
    border-radius: 14px;
    background: #fff;
    padding: 10px;
}

.profile-share-hint {
    margin: 0 0 10px;
    font-size: 0.86rem;
    color: rgba(238, 244, 255, 0.72);
    line-height: 1.45;
}

.profile-share-url {
    margin-bottom: 12px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.82rem;
    word-break: break-all;
    color: #ffd743;
}
