Files
WaifuBoard/desktop/views/css/marketplace.css
2026-01-13 17:32:26 +01:00

267 lines
8.8 KiB
CSS

:root {
--bg-base: #0b0b0b;
--bg-card: rgba(255, 255, 255, 0.03);
--bg-card-hover: rgba(255, 255, 255, 0.08);
--border-subtle: rgba(255, 255, 255, 0.08);
--color-primary: #8b5cf6;
--color-primary-glow: rgba(139, 92, 246, 0.5);
--color-text-main: #ffffff;
--color-text-muted: #a1a1aa;
--nav-height: 70px;
}
body {
background-color: var(--bg-base);
color: var(--color-text-main);
font-family: system-ui, -apple-system, sans-serif;
margin: 0;
overflow-x: hidden;
}
.nav-spacer { height: var(--nav-height); width: 100%; }
.content-container {
max-width: 1400px;
margin: 0 auto;
padding: 2rem 1.5rem 5rem;
}
/* --- Header & Config --- */
.mp-header { margin-bottom: 3rem; }
.header-top {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 2rem;
}
.page-title {
font-size: 2.5rem;
font-weight: 800;
margin: 0;
background: linear-gradient(to right, #fff, #a1a1aa);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
/* Buttons */
.btn-primary, .btn-secondary, .btn-danger {
padding: 0.6rem 1.2rem;
border-radius: 8px;
font-weight: 600;
font-size: 0.9rem;
cursor: pointer;
display: flex;
align-items: center;
gap: 8px;
transition: all 0.2s ease;
border: 1px solid transparent;
}
.btn-primary {
background: var(--color-primary);
color: white;
box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
}
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-secondary {
background: rgba(255,255,255,0.05);
color: white;
border-color: var(--border-subtle);
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); }
.btn-danger {
background: rgba(220, 38, 38, 0.2);
color: #f87171;
border-color: rgba(220, 38, 38, 0.3);
}
.btn-danger:hover { background: rgba(220, 38, 38, 0.3); }
/* Config Panel */
.config-panel {
background: rgba(20, 20, 25, 0.95);
border: 1px solid var(--border-subtle);
border-radius: 12px;
padding: 1.5rem;
margin-bottom: 2rem;
animation: slideDown 0.3s ease-out;
}
.config-panel.hidden { display: none; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.config-desc { color: var(--color-text-muted); font-size: 0.9rem; margin-top: 0.5rem; }
.input-group { display: flex; gap: 10px; margin: 1rem 0; }
.input-group input {
flex: 1;
background: rgba(0,0,0,0.3);
border: 1px solid var(--border-subtle);
border-radius: 8px;
padding: 0.8rem 1rem;
color: white;
font-family: inherit;
}
.input-group input:focus { outline: none; border-color: var(--color-primary); }
.btn-text { background: none; border: none; color: var(--color-text-muted); text-decoration: underline; cursor: pointer; font-size: 0.85rem; }
/* Tabs */
.tabs-wrapper {
display: flex;
gap: 2rem;
border-bottom: 1px solid var(--border-subtle);
margin-bottom: 2rem;
}
.tab-btn {
background: none; border: none;
color: var(--color-text-muted);
font-size: 1.1rem;
font-weight: 700;
padding: 0.8rem 0;
cursor: pointer;
position: relative;
transition: color 0.2s;
}
.tab-btn.active { color: white; }
.tab-btn.active::after {
content: ''; position: absolute; bottom: -1px; left: 0; width: 100%; height: 2px;
background: var(--color-primary); box-shadow: 0 0 10px var(--color-primary-glow);
}
/* Toolbar */
.toolbar { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: flex-end; justify-content: space-between; margin-bottom: 2rem; }
.filter-group { display: flex; gap: 1.5rem; }
.select-wrapper { display: flex; flex-direction: column; gap: 6px; }
.select-wrapper label { font-size: 0.75rem; font-weight: 700; color: var(--color-text-muted); text-transform: uppercase; }
.select-wrapper select {
background: var(--bg-card);
border: 1px solid var(--border-subtle);
color: white;
padding: 0.6rem 2.5rem 0.6rem 1rem;
border-radius: 8px;
cursor: pointer;
appearance: none;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: right 8px center;
background-size: 16px;
font-weight: 600;
min-width: 140px;
}
.select-wrapper select:hover { background-color: var(--bg-card-hover); }
/* --- Grid & Cards --- */
.category-title {
font-size: 1.4rem; font-weight: 700; margin: 2.5rem 0 1rem;
color: white; display: flex; align-items: center; gap: 0.8rem;
}
.category-title::before { content: ''; display: block; width: 6px; height: 6px; background: var(--color-primary); border-radius: 50%; box-shadow: 0 0 10px var(--color-primary); }
.mp-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 1.5rem;
}
.mp-card {
background: var(--bg-card);
border: 1px solid var(--border-subtle);
border-radius: 16px;
padding: 1.2rem;
display: flex;
flex-direction: column;
transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
position: relative;
overflow: hidden;
}
.mp-card:hover {
transform: translateY(-5px);
background: var(--bg-card-hover);
border-color: rgba(255,255,255,0.2);
box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.card-header { display: flex; gap: 1rem; margin-bottom: 1rem; }
.card-icon {
width: 56px; height: 56px; border-radius: 12px;
background: #000; object-fit: contain;
border: 1px solid var(--border-subtle);
}
.card-info { flex: 1; min-width: 0; }
.card-title { font-size: 1.1rem; font-weight: 700; margin: 0 0 4px 0; color: white; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-author { font-size: 0.85rem; color: var(--color-text-muted); }
.card-desc {
font-size: 0.9rem; color: #ccc; line-height: 1.5;
margin-bottom: 1.2rem; flex: 1;
display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta { display: flex; gap: 0.5rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.pill {
font-size: 0.7rem; font-weight: 700; padding: 2px 8px; border-radius: 4px;
border: 1px solid transparent; text-transform: uppercase;
}
/* Specific Pills */
.pill.lang-multi { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border-color: rgba(59, 130, 246, 0.3); }
.pill.lang-es { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border-color: rgba(245, 158, 11, 0.3); }
.pill.lang-en { background: rgba(16, 185, 129, 0.15); color: #34d399; border-color: rgba(16, 185, 129, 0.3); }
.pill.lang-jp { background: rgba(236, 72, 153, 0.15); color: #f472b6; border-color: rgba(236, 72, 153, 0.3); }
.pill.status-installed { background: rgba(139, 92, 246, 0.15); color: #a78bfa; border-color: rgba(139, 92, 246, 0.3); }
.pill.nsfw { background: rgba(220, 38, 38, 0.1); color: #ef4444; border-color: rgba(220, 38, 38, 0.3); }
.card-actions { margin-top: auto; }
.btn-card { width: 100%; justify-content: center; }
/* Empty States */
.empty-state {
text-align: center; padding: 4rem 1rem;
background: var(--bg-card); border-radius: 16px; border: 1px dashed var(--border-subtle);
}
.empty-icon { width: 64px; height: 64px; margin-bottom: 1rem; opacity: 0.5; }
.empty-text { font-size: 1.2rem; color: var(--color-text-muted); }
/* Modal */
.modal-overlay {
position: fixed; top: 0; left: 0; width: 100%; height: 100%;
background: rgba(0,0,0,0.8); backdrop-filter: blur(5px);
display: flex; align-items: center; justify-content: center; z-index: 5000;
}
.modal-overlay.hidden { display: none; }
.modal-box {
background: #18181b; border: 1px solid var(--border-subtle);
padding: 2rem; border-radius: 16px; width: 90%; max-width: 450px;
box-shadow: 0 20px 50px rgba(0,0,0,0.7);
}
.modal-box h3 { margin-top: 0; color: white; }
.modal-box p { color: #ccc; line-height: 1.5; }
.modal-footer { display: flex; justify-content: flex-end; gap: 1rem; margin-top: 2rem; }
/* Añadir al final del CSS existente */
.mp-card.card-nsfw {
border-color: rgba(220, 38, 38, 0.2);
background: rgba(220, 38, 38, 0.03);
}
.mp-card.card-nsfw:hover {
background: rgba(220, 38, 38, 0.08);
border-color: rgba(220, 38, 38, 0.4);
}
.select-wrapper select option {
background-color: #18181b; /* Color oscuro sólido (Zinc-900) */
color: #ffffff; /* Texto blanco */
padding: 10px; /* Espaciado (si el navegador lo permite) */
}
/* Opcional: Para navegadores basados en Webkit que permitan algo de estilo en hover */
.select-wrapper select option:checked,
.select-wrapper select option:hover {
background-color: var(--color-primary);
color: white;
}