.bloxdboards-wrapper {
transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
min-height: 100vh;
padding: 24px;
padding-top: 90px;
}
.bloxdboards-wrapper.sidebar-open {
margin-left: 260px;
}
@media (max-width: 1020px) {
.bloxdboards-wrapper.sidebar-open {
margin-left: 0;
}
}
.bloxdboards-header {
text-align: center;
margin-bottom: 24px;
position: relative;
}
.bloxdboards-title {
font-size: 24px;
font-weight: 800;
color: #fff;
margin-bottom: 4px;
letter-spacing: -0.5px;
}
.bloxdboards-subtitle {
font-size: 13px;
color: #9ca3af;
margin-bottom: 12px;
}
.upload-board-btn {
background: #4a9eff;
color: #fff;
border: none;
padding: 12px 24px;
border-radius: 8px;
font-size: 14px;
font-weight: 600;
cursor: pointer;
display: inline-flex;
align-items: center;
gap: 8px;
transition: background 0.2s;
}
.upload-board-btn:hover {
background: #3b8de8;
}
.upload-board-btn i {
font-size: 16px;
}
.upload-modal-overlay {
position: fixed;
inset: 0;
background: rgba(0,0,0,0.85);
z-index: 10000;
display: flex;
align-items: center;
justify-content: center;
padding: 20px;
opacity: 0;
visibility: hidden;
transition: opacity 0.25s ease, visibility 0.25s ease;
}
.upload-modal-overlay.active {
opacity: 1;
visibility: visible;
}
.upload-modal {
background: rgba(26, 29, 36, 0.95);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 16px;
max-width: 500px;
width: 100%;
padding: 28px;
transform: scale(0.95);
opacity: 0;
transition: transform 0.25s ease, opacity 0.25s ease;
position: relative;
}
.upload-modal-overlay.active .upload-modal {
transform: scale(1);
opacity: 1;
}
.upload-modal-title {
color: #fff;
font-size: 22px;
font-weight: 700;
margin: 0 0 24px 0;
}
.upload-area {
border: 2px dashed rgba(255,255,255,0.2);
border-radius: 12px;
padding: 40px 20px;
text-align: center;
margin-bottom: 20px;
transition: border-color 0.2s;
position: relative;
}
.upload-area.drag-over {
border-color: #4a9eff;
background: rgba(74,158,255,0.05);
}
.upload-placeholder {
display: flex;
flex-direction: column;
align-items: center;
gap: 12px;
cursor: pointer;
}
.upload-placeholder i {
font-size: 48px;
color: #6b7280;
}
.upload-placeholder p {
color: #e5e7eb;
font-size: 15px;
margin: 0;
}
.upload-placeholder span {
color: #6b7280;
font-size: 13px;
}
.upload-preview {
position: relative;
}
.upload-preview img {
width: 100%;
border-radius: 8px;
max-height: 300px;
object-fit: contain;
}
.remove-image-btn {
position: absolute;
top: 10px;
right: 10px;
background: rgba(0,0,0,0.7);
border: none;
color: #fff;
width: 32px;
height: 32px;
border-radius: 50%;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: background 0.2s;
}
.remove-image-btn:hover {
background: rgba(0,0,0,0.9);
}
.upload-input-wrapper {
position: relative;
margin-bottom: 20px;
}
.upload-input {
width: 100%;
background: rgba(255,255,255,0.06);
border: 1px solid rgba(255,255,255,0.1);
border-radius: 8px;
padding: 12px 60px 12px 16px;
color: #fff;
font-size: 14px;
outline: none;
transition: border-color 0.2s;
font-family: inherit;
resize: none;
overflow: hidden;
min-height: 44px;
line-height: 1.4;
}
.upload-input:focus {
border-color: rgba(255,255,255,0.25);
}
.upload-input::placeholder {
color: #6b7280;
}
.upload-input-wrapper .char-counter {
position: absolute;
right: 14px;
bottom: 13px;
margin: 0;
font-size: 11px;
color: #6b7280;
pointer-events: none;
}
.char-counter.warning {
color: #f59e0b;
}
.char-counter.danger {
color: #ef4444;
}
.upload-actions {
display: flex;
gap: 12px;
}
.upload-error {
color: #ef4444;
font-size: 13px;
margin-bottom: 16px;
padding: 10px 14px;
background: rgba(239,68,68,0.1);
border-radius: 8px;
}
.boards-loading,
.comments-loading {
display: flex;
justify-content: center;
align-items: center;
padding: 40px;
}
.boards-empty,
.comments-empty {
text-align: center;
color: #6b7280;
padding: 40px 20px;
font-size: 14px;
}
.boards-loader {
display: flex;
justify-content: center;
padding: 30px;
break-inside: avoid;
}
.upload-submit-btn:disabled,
.comment-submit-btn:disabled {
opacity: 0.6;
cursor: not-allowed;
}
.upload-cancel-btn,
.upload-submit-btn {
flex: 1;
padding: 12px;
border-radius: 8px;
font-size: 14px;
font-weight: 600;
cursor: pointer;
border: none;
transition: background 0.2s;
}
.upload-cancel-btn {
background: rgba(255,255,255,0.1);
color: #e5e7eb;
}
.upload-cancel-btn:hover {
background: rgba(255,255,255,0.15);
}
.upload-submit-btn {
background: #4a9eff;
color: #fff;
}
.upload-submit-btn:hover:not(:disabled) {
background: #3b8de8;
}
.boards-grid {
position: relative;
max-width: 1400px;
margin: 0 auto;
}
.board-card {
margin-bottom: 16px;
border-radius: 12px;
overflow: hidden;
background: #16181c;
}
.card-image-wrap {
position: relative;
cursor: pointer;
}
.card-image-wrap:hover .card-hover-actions {
opacity: 1;
}
.card-image {
width: 100%;
display: block;
transition: opacity 0.3s ease;
}

/* Lazy loading optimization - smooth fade in */
.card-image.lazy-load {
background: linear-gradient(135deg, #1a1f2e 0%, #252b3d 100%);
}

.card-image[data-loaded="true"] {
animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.card-hover-actions {
position: absolute;
top: 10px;
right: 10px;
display: flex;
gap: 8px;
opacity: 0;
transition: opacity 0.2s ease;
}
.hover-like-btn,
.hover-menu-btn {
width: 36px;
height: 36px;
border-radius: 50%;
border: none;
background: rgba(0,0,0,0.6);
color: #fff;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
font-size: 16px;
transition: background 0.2s, transform 0.15s;
}
.hover-like-btn:hover,
.hover-menu-btn:hover {
background: rgba(0,0,0,0.8);
transform: scale(1.1);
}
.hover-like-btn.liked {
background: #ef4444;
color: #fff;
}
.hover-like-btn.liked:hover {
background: #dc2626;
}
.card-footer {
padding: 12px 14px;
display: flex;
align-items: center;
justify-content: space-between;
background: #16181c;
}
.card-user {
display: flex;
align-items: center;
gap: 8px;
}
.card-avatar {
width: 24px;
height: 24px;
border-radius: 50%;
object-fit: cover;
}
.card-username {
color: #e5e7eb;
font-size: 13px;
font-weight: 500;
}
.card-likes {
display: flex;
align-items: center;
gap: 5px;
color: #9ca3af;
font-size: 12px;
}
.card-likes i {
font-size: 12px;
color: #6b7280;
}
.card-likes.liked {
color: #ef4444;
}
.card-likes.liked i {
color: #ef4444;
}
.card-dropdown-menu {
position: absolute;
background: rgba(30, 33, 40, 0.95);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 10px;
padding: 6px;
min-width: 140px;
box-shadow: 0 8px 30px rgba(0,0,0,0.4);
z-index: 9999;
opacity: 0;
transform: scale(0.95);
transition: opacity 0.15s ease, transform 0.15s ease;
}
.card-dropdown-menu.active {
opacity: 1;
transform: scale(1);
}
.card-dropdown-menu button {
display: flex;
align-items: center;
gap: 10px;
width: 100%;
padding: 10px 12px;
border: none;
background: none;
color: #e5e7eb;
font-size: 13px;
cursor: pointer;
border-radius: 6px;
transition: background 0.15s;
}
.card-dropdown-menu button:hover {
background: rgba(255,255,255,0.1);
}
.card-dropdown-menu button.delete-btn {
color: #ef4444;
}
.card-dropdown-menu button.delete-btn:hover {
background: rgba(239,68,68,0.15);
}
.board-modal-overlay {
position: fixed;
inset: 0;
background: rgba(0,0,0,0.85);
z-index: 10000;
display: flex;
align-items: center;
justify-content: center;
padding: 20px;
opacity: 0;
visibility: hidden;
transition: opacity 0.25s ease, visibility 0.25s ease;
}
.board-modal-overlay.active {
opacity: 1;
visibility: visible;
}
.board-modal {
background: rgba(26, 29, 36, 0.95);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 16px;
max-width: 1000px;
width: 100%;
max-height: 90vh;
overflow: hidden;
display: flex;
flex-direction: row;
transform: scale(0.95);
opacity: 0;
transition: transform 0.25s ease, opacity 0.25s ease;
position: relative;
}
.board-modal-overlay.active .board-modal {
transform: scale(1);
opacity: 1;
}
.modal-image-section {
flex: 1.2;
background: rgba(13, 15, 18, 0.95);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
display: flex;
align-items: center;
justify-content: center;
min-height: 400px;
}
.modal-image-section img {
width: 100%;
height: 100%;
object-fit: contain;
max-height: 90vh;
}
.modal-content-section {
flex: 1;
padding: 28px;
overflow-y: auto;
display: flex;
flex-direction: column;
max-height: 90vh;
background: rgba(26, 29, 36, 0.95);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
}
.modal-close-btn {
position: absolute;
top: 16px;
right: 16px;
background: rgba(255,255,255,0.1);
border: none;
color: #fff;
width: 36px;
height: 36px;
border-radius: 50%;
cursor: pointer;
font-size: 16px;
display: flex;
align-items: center;
justify-content: center;
transition: background 0.2s;
z-index: 10;
}
.modal-close-btn:hover {
background: rgba(255,255,255,0.2);
}
.modal-header {
display: flex;
align-items: center;
gap: 14px;
margin-bottom: 20px;
}
.modal-avatar {
width: 44px;
height: 44px;
border-radius: 50%;
object-fit: cover;
}
.modal-user-info h3 {
color: #fff;
font-size: 15px;
font-weight: 600;
margin: 0;
}
.modal-user-info p {
color: #6b7280;
font-size: 12px;
margin: 2px 0 0 0;
}
.modal-title {
color: #fff;
font-size: 20px;
font-weight: 700;
margin: 0 0 20px 0;
line-height: 1.4;
word-break: break-word;
overflow-wrap: break-word;
}
.modal-stats {
display: flex;
gap: 20px;
padding: 16px 0;
border-top: 1px solid rgba(255,255,255,0.08);
border-bottom: 1px solid rgba(255,255,255,0.08);
margin-bottom: 20px;
}
.modal-stat {
display: flex;
align-items: center;
gap: 8px;
color: #9ca3af;
font-size: 14px;
cursor: pointer;
transition: color 0.2s;
}
.modal-stat:hover {
color: #fff;
}
.modal-stat.liked {
color: #ef4444;
}
.modal-stat i {
font-size: 18px;
}
.modal-comments-section {
flex: 1;
display: flex;
flex-direction: column;
min-height: 0;
}
.modal-comments-title {
color: #9ca3af;
font-size: 13px;
font-weight: 600;
margin-bottom: 16px;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.comments-list {
flex: 1;
overflow-y: auto;
display: flex;
flex-direction: column;
gap: 16px;
padding-right: 8px;
min-height: 200px;
max-height: 400px;
}
.comments-list::-webkit-scrollbar {
width: 6px;
}
.comments-list::-webkit-scrollbar-track {
background: rgba(255,255,255,0.05);
border-radius: 3px;
}
.comments-list::-webkit-scrollbar-thumb {
background: rgba(255,255,255,0.2);
border-radius: 3px;
}
.comments-list::-webkit-scrollbar-thumb:hover {
background: rgba(255,255,255,0.3);
}
.board-modal .comment-item {
display: flex;
gap: 12px;
}
.board-modal .comment-avatar {
width: 32px;
height: 32px;
border-radius: 50%;
object-fit: cover;
flex-shrink: 0;
}
.board-modal .comment-content {
flex: 1;
}
.board-modal .comment-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 4px;
}
.board-modal .comment-username {
color: #fff;
font-size: 13px;
font-weight: 600;
}
.board-modal .comment-menu-btn {
background: none;
border: none;
color: #6b7280;
cursor: pointer;
padding: 4px;
border-radius: 4px;
display: flex;
align-items: center;
justify-content: center;
transition: background 0.15s, color 0.15s;
opacity: 0;
}
.board-modal .comment-item:hover .comment-menu-btn {
opacity: 1;
}
.board-modal .comment-menu-btn:hover {
background: rgba(255,255,255,0.1);
color: #9ca3af;
}
.board-modal .comment-menu-btn i {
font-size: 14px;
}
.board-modal .comment-text {
color: #d1d5db;
font-size: 13px;
margin: 0 0 8px 0;
line-height: 1.5;
word-break: break-word;
overflow-wrap: break-word;
}
.board-modal .comment-actions {
display: flex;
align-items: center;
gap: 12px;
}
.board-modal .comment-time {
color: #6b7280;
font-size: 11px;
}
.board-modal .comment-like-btn {
display: inline-flex;
align-items: center;
gap: 5px;
background: none;
border: none;
color: #6b7280;
font-size: 12px;
cursor: pointer;
padding: 4px 8px;
border-radius: 4px;
transition: color 0.2s, background 0.2s;
}
.board-modal .comment-like-btn:hover {
background: rgba(255,255,255,0.05);
color: #9ca3af;
}
.board-modal .comment-like-btn.liked {
color: #ef4444;
}
.board-modal .comment-like-btn i {
font-size: 12px;
}
.comment-dropdown-menu {
position: fixed;
background: rgba(30, 33, 40, 0.95);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 10px;
padding: 6px;
min-width: 140px;
box-shadow: 0 8px 30px rgba(0,0,0,0.4);
z-index: 10001;
opacity: 0;
transform: scale(0.95);
transition: opacity 0.15s ease, transform 0.15s ease;
}
.comment-dropdown-menu.active {
opacity: 1;
transform: scale(1);
}
.comment-dropdown-menu button {
display: flex;
align-items: center;
gap: 10px;
width: 100%;
padding: 10px 12px;
border: none;
background: none;
color: #e5e7eb;
font-size: 13px;
cursor: pointer;
border-radius: 6px;
transition: background 0.15s;
}
.comment-dropdown-menu button:hover {
background: rgba(255,255,255,0.1);
}
.comment-dropdown-menu button.delete-btn {
color: #ef4444;
}
.comment-dropdown-menu button.delete-btn:hover {
background: rgba(239,68,68,0.15);
}
.comments-loader {
display: flex;
justify-content: center;
padding: 20px;
}
.loader-spinner {
width: 24px;
height: 24px;
border: 3px solid rgba(255,255,255,0.1);
border-top-color: #4a9eff;
border-radius: 50%;
animation: spin 0.8s linear infinite;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
.comment-input-wrapper {
display: flex;
gap: 10px;
margin-top: 20px;
padding-top: 16px;
border-top: 1px solid rgba(255,255,255,0.08);
align-items: flex-start;
}
.comment-input-container {
flex: 1;
position: relative;
}
.comment-input {
width: 100%;
background: rgba(255,255,255,0.06);
border: 1px solid rgba(255,255,255,0.1);
border-radius: 8px;
padding: 10px 60px 10px 14px;
color: #fff;
font-size: 14px;
outline: none;
transition: border-color 0.2s;
font-family: inherit;
resize: none;
overflow: hidden;
min-height: 40px;
max-height: 120px;
line-height: 1.4;
}
.comment-input:focus {
border-color: rgba(255,255,255,0.25);
}
.comment-input::placeholder {
color: #6b7280;
}
.comment-input-container .char-counter {
position: absolute;
right: 12px;
bottom: 11px;
margin: 0;
font-size: 11px;
color: #6b7280;
pointer-events: none;
}
.comment-submit-btn {
background: #4a9eff;
border: none;
color: #fff;
padding: 0 18px;
border-radius: 8px;
cursor: pointer;
font-size: 14px;
font-weight: 500;
transition: background 0.2s;
flex-shrink: 0;
height: 40px;
line-height: 40px;
}
.comment-submit-btn:hover {
background: #3b8de8;
}
@media (max-width: 900px) {
.board-modal {
flex-direction: column;
max-height: 95vh;
}
.modal-image-section {
min-height: 250px;
max-height: 40vh;
}
.modal-content-section {
max-height: 55vh;
padding: 20px;
}
}
@media (max-width: 768px) {
.bloxdboards-wrapper {
padding: 16px;
padding-top: 75px;
padding-bottom: 80px;
}
.board-card {
margin-bottom: 10px;
border-radius: 10px;
}
.card-hover-actions {
opacity: 1;
}
.hover-like-btn,
.hover-menu-btn {
width: 32px;
height: 32px;
font-size: 14px;
}
.card-footer {
padding: 10px 12px;
}
.card-avatar {
width: 20px;
height: 20px;
}
.card-username {
font-size: 12px;
}
.card-likes {
font-size: 11px;
}
.bloxdboards-title {
font-size: 24px;
}
.bloxdboards-subtitle {
font-size: 13px;
}
.modal-title {
font-size: 18px;
}
.board-modal {
padding: 0;
border-radius: 12px;
max-height: 100vh;
}
.modal-content-section {
padding: 16px;
max-height: 60vh;
}
.modal-header {
gap: 10px;
margin-bottom: 14px;
}
.modal-avatar {
width: 36px;
height: 36px;
}
.modal-user-info h3 {
font-size: 14px;
}
.modal-user-info p {
font-size: 11px;
}
.modal-stats {
gap: 16px;
padding: 12px 0;
margin-bottom: 16px;
}
.modal-stat {
font-size: 13px;
}
.modal-stat i {
font-size: 16px;
}
.modal-comments-title {
font-size: 12px;
margin-bottom: 12px;
}
.comments-list {
gap: 12px;
padding-right: 4px;
max-height: 300px;
}
.board-modal .comment-item {
gap: 10px;
}
.board-modal .comment-avatar {
width: 28px;
height: 28px;
}
.board-modal .comment-username {
font-size: 12px;
}
.board-modal .comment-text {
font-size: 13px;
line-height: 1.4;
margin-bottom: 6px;
}
.board-modal .comment-menu-btn {
opacity: 1;
padding: 6px;
}
.board-modal .comment-menu-btn i {
font-size: 16px;
}
.board-modal .comment-actions {
gap: 10px;
flex-wrap: wrap;
}
.board-modal .comment-time {
font-size: 11px;
}
.board-modal .comment-like-btn {
font-size: 11px;
padding: 4px 6px;
}
.comment-input-wrapper {
gap: 8px;
margin-top: 16px;
padding-top: 12px;
}
.comment-input {
font-size: 14px;
padding: 10px 50px 10px 12px;
min-height: 38px;
}
.comment-input-container .char-counter {
right: 10px;
bottom: 10px;
font-size: 10px;
}
.comment-submit-btn {
padding: 0 14px;
font-size: 13px;
height: 38px;
line-height: 38px;
}
.upload-modal {
padding: 20px;
max-width: 95%;
}
.upload-modal-title {
font-size: 18px;
margin-bottom: 20px;
}
.modal-close-btn {
width: 32px;
height: 32px;
font-size: 14px;
top: 12px;
right: 12px;
}
}
@media (max-width: 480px) {
.board-modal .comment-item {
gap: 8px;
}
.board-modal .comment-avatar {
width: 24px;
height: 24px;
}
.board-modal .comment-text {
font-size: 12px;
}
.board-modal .comment-username {
font-size: 11px;
}
.board-modal .comment-time {
font-size: 10px;
}
.board-modal .comment-like-btn {
font-size: 10px;
}
.board-modal .comment-like-btn i {
font-size: 11px;
}
.modal-content-section {
padding: 12px;
}
.comment-input {
font-size: 13px;
padding: 8px 45px 8px 10px;
}
.comment-submit-btn {
padding: 0 12px;
font-size: 12px;
height: 36px;
line-height: 36px;
}
}


/* Image loading skeleton */
.card-image-skeleton {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1a1d24 0%, #252830 50%, #1a1d24 100%);
    background-size: 200% 200%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.skeleton-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: rgba(255,255,255,0.4);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes skeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.card-image-wrap {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.card-image {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .card-image-skeleton {
        min-height: 180px;
    }
    
    .skeleton-spinner {
        width: 24px;
        height: 24px;
    }
}
