.schematics-wrapper {
transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
min-height: 100vh;
padding-top: 80px;
}
.schematics-wrapper.sidebar-open {
margin-left: 260px;
}
.schematics-container {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}
.schematics-header {
background: #252b3d;
border-radius: 12px;
padding: 16px 20px;
margin-bottom: 16px;
display: flex;
justify-content: space-between;
align-items: center;
gap: 16px;
flex-wrap: wrap;
}
.schematics-header-left {
display: flex;
align-items: center;
gap: 12px;
}
.schematics-icon {
font-size: 28px;
color: #4a9eff;
}
.schematics-title {
font-size: 22px;
font-weight: 700;
color: white;
margin: 0;
line-height: 1.2;
}
.schematics-subtitle {
font-size: 12px;
color: rgba(255, 255, 255, 0.5);
margin: 2px 0 0 0;
}
.schematics-header-right {
display: flex;
align-items: center;
gap: 10px;
}
.search-box {
display: flex;
align-items: center;
gap: 8px;
padding: 8px 14px;
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 8px;
transition: all 0.2s;
}
.search-box:focus-within {
border-color: #4a9eff;
background: rgba(74, 158, 255, 0.05);
}
.search-box i {
color: rgba(255, 255, 255, 0.4);
font-size: 14px;
}
.search-box input {
background: none;
border: none;
outline: none;
color: white;
font-size: 13px;
width: 140px;
}
.search-box input::placeholder {
color: rgba(255, 255, 255, 0.4);
}
.sort-wrapper {
position: relative;
}
.sort-btn {
display: flex;
align-items: center;
gap: 6px;
padding: 8px 12px;
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 8px;
color: rgba(255, 255, 255, 0.8);
font-size: 13px;
cursor: pointer;
transition: all 0.2s;
}
.sort-btn:hover {
background: rgba(255, 255, 255, 0.08);
border-color: rgba(74, 158, 255, 0.3);
}
.sort-btn .sort-arrow {
font-size: 10px;
transition: transform 0.2s;
}
.sort-wrapper.open .sort-arrow {
transform: rotate(180deg);
}
.sort-menu {
position: absolute;
top: calc(100% + 6px);
right: 0;
min-width: 160px;
background: #1e2433;
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 10px;
padding: 6px;
opacity: 0;
visibility: hidden;
transform: translateY(-8px);
transition: all 0.2s;
z-index: 1000;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.sort-wrapper.open .sort-menu {
opacity: 1;
visibility: visible;
transform: translateY(0);
}
.sort-option {
padding: 10px 14px;
border-radius: 6px;
color: rgba(255, 255, 255, 0.7);
font-size: 13px;
cursor: pointer;
transition: all 0.15s;
}
.sort-option:hover {
background: rgba(255, 255, 255, 0.05);
color: white;
}
.sort-option.active {
background: rgba(74, 158, 255, 0.15);
color: #4a9eff;
}
.upload-btn {
display: flex;
align-items: center;
gap: 6px;
padding: 8px 16px;
background: #4a9eff;
border: none;
border-radius: 8px;
color: white;
font-weight: 600;
font-size: 13px;
cursor: pointer;
transition: all 0.2s;
}
.upload-btn:hover {
background: #3a8eef;
transform: translateY(-1px);
}
.schematics-filters {
display: flex;
gap: 8px;
margin-bottom: 16px;
padding: 14px 16px;
background: #252b3d;
border-radius: 12px;
flex-wrap: wrap;
}
.filter-chip {
padding: 8px 14px;
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 20px;
color: rgba(255, 255, 255, 0.6);
font-size: 13px;
font-weight: 500;
cursor: pointer;
transition: all 0.2s;
display: flex;
align-items: center;
gap: 6px;
}
.filter-chip i {
font-size: 12px;
}
.filter-chip:hover {
background: rgba(255, 255, 255, 0.08);
color: rgba(255, 255, 255, 0.9);
}
.filter-chip.active {
background: rgba(74, 158, 255, 0.15);
border-color: rgba(74, 158, 255, 0.4);
color: #4a9eff;
}
.schematics-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 16px;
margin-bottom: 24px;
}
.schematic-card {
background: #252b3d;
border-radius: 12px;
overflow: hidden;
border: 1px solid rgba(255, 255, 255, 0.05);
transition: all 0.25s;
}
.schematic-card:hover {
transform: translateY(-3px);
border-color: rgba(74, 158, 255, 0.25);
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}
.schematic-thumb {
position: relative;
height: 200px;
background: #1a1f2e;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
}
.schematic-thumb-bg {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
filter: blur(20px) brightness(0.4);
transform: scale(1.2);
}
.schematic-thumb img:not(.schematic-thumb-bg) {
position: relative;
width: 100%;
height: 100%;
object-fit: contain;
object-position: center;
transition: transform 0.3s;
z-index: 1;
}
.schematic-thumb-actions {
position: absolute;
top: 8px;
right: 8px;
display: flex;
gap: 6px;
z-index: 10;
opacity: 0;
transition: opacity 0.2s;
}
.schematic-card:hover .schematic-thumb-actions {
opacity: 1;
}
.report-schematic-btn, .delete-schematic-btn {
width: 32px;
height: 32px;
border: none;
border-radius: 8px;
color: white;
font-size: 14px;
cursor: pointer;
transition: all 0.2s;
display: flex;
align-items: center;
justify-content: center;
}
.report-schematic-btn {
background: rgba(255, 255, 255, 0.15);
backdrop-filter: blur(8px);
}
.report-schematic-btn:hover {
background: rgba(245, 158, 11, 0.9);
transform: scale(1.1);
}
.delete-schematic-btn {
background: rgba(239, 68, 68, 0.9);
}
.delete-schematic-btn:hover {
background: #dc2626;
transform: scale(1.1);
}
.schematic-card:hover .schematic-thumb img {
transform: scale(1.05);
}
.schematic-size {
position: absolute;
top: 8px;
right: 8px;
display: flex;
align-items: center;
gap: 4px;
padding: 4px 8px;
background: rgba(0, 0, 0, 0.7);
backdrop-filter: blur(4px);
border-radius: 6px;
color: white;
font-size: 11px;
font-weight: 600;
}
.schematic-size i {
font-size: 10px;
}
.schematic-body {
padding: 14px;
}
.schematic-meta {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 8px;
}
.schematic-tag {
padding: 3px 8px;
border-radius: 4px;
font-size: 10px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.3px;
}
.schematic-tag.house { background: rgba(74, 158, 255, 0.15); color: #4a9eff; }
.schematic-tag.base { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; }
.schematic-tag.pvp { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.schematic-tag.parkour { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.schematic-tag.aesthetic { background: rgba(236, 72, 153, 0.15); color: #ec4899; }
.schematic-tag.pixelart { background: rgba(168, 85, 247, 0.15); color: #a855f7; }
.schematic-tag.codeblock { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.schematic-tag.city { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.schematic-tag.terrain { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.schematic-tag.decoration { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.schematic-tag.minigame { background: rgba(6, 182, 212, 0.15); color: #06b6d4; }
.schematic-tag.mega { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.schematic-tag.micro { background: rgba(148, 163, 184, 0.15); color: #94a3b8; }
.schematic-tag.vehicle { background: rgba(249, 115, 22, 0.15); color: #f97316; }
.schematic-tag.statue { background: rgba(168, 85, 247, 0.15); color: #a855f7; }
.schematic-tag.skybuild { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.schematic-tag.farm { background: rgba(132, 204, 22, 0.15); color: #84cc16; }
.schematic-tag.modern { background: rgba(100, 116, 139, 0.15); color: #64748b; }
.schematic-tag.medieval { background: rgba(180, 83, 9, 0.15); color: #b45309; }
.schematic-tag.scifi { background: rgba(99, 102, 241, 0.15); color: #6366f1; }
.schematic-date {
font-size: 11px;
color: rgba(255, 255, 255, 0.4);
}
.schematic-name {
font-size: 15px;
font-weight: 600;
color: white;
margin: 0 0 6px 0;
line-height: 1.3;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.schematic-desc {
font-size: 12px;
color: rgba(255, 255, 255, 0.5);
margin: 0 0 12px 0;
line-height: 1.4;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.schematic-bottom {
display: flex;
justify-content: space-between;
align-items: center;
padding-top: 12px;
border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.schematic-author {
display: flex;
align-items: center;
gap: 8px;
cursor: pointer;
}
.schematic-author img {
width: 24px;
height: 24px;
border-radius: 50%;
object-fit: cover;
}
.schematic-author span {
font-size: 12px;
color: rgba(255, 255, 255, 0.7);
transition: color 0.2s;
}
.schematic-author:hover span {
color: #4a9eff;
}
.schematic-btns {
display: flex;
gap: 6px;
}
.like-btn, .dl-btn {
display: flex;
align-items: center;
gap: 5px;
padding: 6px 10px;
border-radius: 6px;
font-size: 12px;
font-weight: 500;
cursor: pointer;
transition: all 0.2s;
border: none;
}
.like-btn {
background: rgba(255, 255, 255, 0.05);
color: rgba(255, 255, 255, 0.6);
}
.like-btn:hover {
background: rgba(239, 68, 68, 0.15);
color: #ef4444;
}
.like-btn.liked {
background: rgba(239, 68, 68, 0.15);
color: #ef4444;
}
.like-btn.liked:hover {
background: rgba(239, 68, 68, 0.25);
}
.dl-btn {
position: relative;
background: transparent;
color: #fff;
border: none;
z-index: 1;
overflow: hidden;
border-radius: 8px;
}
.dl-btn::before {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 300%;
height: 300%;
background: conic-gradient(#ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
transform: translate(-50%, -50%);
animation: rainbow-rotate 2s linear infinite;
z-index: -2;
}
.dl-btn::after {
content: '';
position: absolute;
inset: 1.5px;
background: rgba(25, 28, 38, 0.97);
border-radius: 6.5px;
z-index: -1;
}
@keyframes rainbow-rotate {
0% { transform: translate(-50%, -50%) rotate(0deg); }
100% { transform: translate(-50%, -50%) rotate(360deg); }
}
.dl-btn:hover {
color: #fff;
transform: scale(1.05);
}
.dl-btn:hover::before {
animation: rainbow-rotate 1s linear infinite;
}
.load-more-btn {
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
width: 100%;
padding: 12px;
background: rgba(255, 255, 255, 0.03);
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 10px;
color: rgba(255, 255, 255, 0.6);
font-size: 13px;
font-weight: 500;
cursor: pointer;
transition: all 0.2s;
}
.load-more-btn:hover {
background: rgba(255, 255, 255, 0.06);
color: rgba(255, 255, 255, 0.9);
border-color: rgba(74, 158, 255, 0.2);
}
.loading-schematics, .no-schematics {
grid-column: 1 / -1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 12px;
padding: 60px 20px;
color: rgba(255, 255, 255, 0.4);
font-size: 14px;
}
.loading-schematics i, .no-schematics i {
font-size: 32px;
opacity: 0.5;
}
.loading-schematics i, .load-more-btn .spinning {
animation: spin 1s linear infinite;
}
@keyframes spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
@media (max-width: 767px) {
.schematics-wrapper.sidebar-open {
margin-left: 0;
}
.schematics-wrapper {
padding-top: 70px;
}
.schematics-container {
padding: 12px;
}
.schematics-header {
padding: 14px;
flex-direction: column;
align-items: stretch;
gap: 12px;
}
.schematics-header-left {
justify-content: center;
}
.schematics-header-right {
flex-wrap: wrap;
justify-content: center;
}
.search-box {
flex: 1;
min-width: 120px;
}
.search-box input {
width: 100%;
}
.schematics-filters {
justify-content: center;
}
.filter-chip span {
display: none;
}
.filter-chip i {
font-size: 14px;
}
.filter-chip {
padding: 10px 14px;
}
.schematics-grid {
grid-template-columns: 1fr;
gap: 12px;
}
.schematic-thumb {
height: 220px;
}
.schematic-btns {
gap: 8px;
}
.like-btn, .dl-btn {
padding: 8px 12px;
}
.schematics-container {
padding-bottom: 100px;
}
}