.post-card { animation: fadeIn 0.3s ease-out; } .post-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; } .post-author { display: flex; gap: 12px; cursor: pointer; user-select: none; } .author-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; } .author-info { display: flex; flex-direction: column; gap: 2px; } .author-name { font-size: 15px; font-weight: 600; color: var(--text-primary); } .post-date { font-size: 13px; color: var(--text-secondary); } .menu-btn { width: 32px; height: 32px; border-radius: 50%; background: transparent; color: var(--text-primary); display: flex; align-items: center; justify-content: center; } .menu-btn svg { stroke: currentColor; } .menu-btn:active { background: var(--bg-primary); } .post-content { font-size: 15px; line-height: 1.5; color: var(--text-primary); margin-bottom: 12px; white-space: pre-wrap; word-wrap: break-word; } .post-images { margin: 0 -16px 12px; width: calc(100% + 32px); } .image-carousel { position: relative; width: 100%; max-height: 400px; overflow: hidden; } .image-carousel img { width: 100%; height: 100%; max-height: 400px; object-fit: cover; display: block; } .carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; background: rgba(0, 0, 0, 0.3); color: white; display: flex; opacity: 0.7; z-index: 10; align-items: center; justify-content: center; border: none; cursor: pointer; backdrop-filter: blur(5px); z-index: 10; } .carousel-btn svg { stroke: white; } .carousel-btn.prev { left: 0; width: 33.33%; height: 100%; border-radius: 0; background: transparent; justify-content: flex-start; padding-left: 12px; } .carousel-btn.next { right: 0; width: 33.33%; height: 100%; border-radius: 0; background: transparent; justify-content: flex-end; padding-right: 12px; } .carousel-btn.prev svg, .carousel-btn.next svg { position: relative; z-index: 2; background: rgba(0, 0, 0, 0.3); border-radius: 50%; padding: 6px; opacity: 0.7; transition: opacity 0.2s, background 0.2s; } .carousel-btn.prev:hover svg, .carousel-btn.next:hover svg, .carousel-btn.prev:active svg, .carousel-btn.next:active svg { opacity: 1; background: rgba(0, 0, 0, 0.5); } .carousel-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 10; } .dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.5); cursor: pointer; transition: all 0.2s; } .dot.active { background: white; width: 20px; border-radius: 4px; } .post-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; } .post-tag { padding: 4px 12px; border-radius: 12px; font-size: 12px; font-weight: 600; color: white; } .nsfw-badge { padding: 4px 12px; border-radius: 12px; font-size: 12px; font-weight: 600; background: #FF3B30; color: white; } .post-actions { display: flex; gap: 16px; padding-top: 12px; border-top: 1px solid var(--divider-color); } .action-btn { display: flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 20px; background: transparent; color: var(--text-primary); font-size: 14px; font-weight: 500; transition: all 0.2s; } .action-btn:active { background: var(--bg-primary); } .action-btn.active { color: var(--text-primary); } .action-btn span { min-width: 20px; } /* Fullview hint */ .fullview-hint { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%; background: rgba(0, 0, 0, 0.5); color: white; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.2s; pointer-events: none; backdrop-filter: blur(5px); z-index: 5; } .image-carousel:hover .fullview-hint { opacity: 0.8; } /* Fullview модал */ .image-fullview { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.95); z-index: 10000; display: flex; flex-direction: column; animation: fadeIn 0.2s ease-out; overflow: hidden; } .fullview-header { position: fixed; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: rgba(0, 0, 0, 0.3); backdrop-filter: blur(10px); z-index: 10001; will-change: transform; transform: translateZ(0); flex-shrink: 0; } .fullview-counter { font-size: 14px; font-weight: 500; color: white; min-width: 60px; text-align: center; flex-shrink: 0; } .fullview-btn { width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); color: white; display: flex; align-items: center; justify-content: center; transition: background 0.2s; border: none; cursor: pointer; position: relative; z-index: 10002; flex-shrink: 0; } .fullview-btn:active { background: rgba(255, 255, 255, 0.2); } .fullview-content { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; margin-top: 68px; margin-bottom: 80px; } .fullview-content img { max-width: 100%; max-height: calc(100vh - 148px); object-fit: contain; user-select: none; display: block; min-height: 0; } .fullview-nav-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; background: rgba(0, 0, 0, 0.5); color: white; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(10px); transition: background 0.2s, opacity 0.2s; z-index: 10; } .fullview-nav-btn.prev { left: 16px; } .fullview-nav-btn.next { right: 16px; } .fullview-nav-btn:active { background: rgba(0, 0, 0, 0.7); } .fullview-dots { position: fixed; bottom: 0; left: 0; right: 0; display: flex; justify-content: center; align-items: center; gap: 8px; padding: 16px; background: rgba(0, 0, 0, 0.3); backdrop-filter: blur(10px); z-index: 10001; flex-shrink: 0; } .fullview-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.4); cursor: pointer; transition: all 0.2s; } .fullview-dot.active { background: white; width: 24px; border-radius: 5px; } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }