Files
PostTracker/web/style.css
2025-11-16 13:58:32 +01:00

1725 lines
27 KiB
CSS

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
background: #f0f2f5;
color: #050505;
line-height: 1.5;
}
.shell {
min-height: 100vh;
display: flex;
flex-direction: column;
background: #f0f2f5;
}
.shell-main {
flex: 1;
padding-bottom: 40px;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}
.site-header,
header {
background: white;
padding: 16px 18px;
border-radius: 10px;
box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
margin-bottom: 18px;
display: flex;
flex-direction: column;
gap: 12px;
}
.site-header__subtitle {
margin: 0;
font-size: 13px;
color: #6b7280;
}
.page-toolbar {
background: white;
padding: 16px 18px;
border-radius: 10px;
box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
margin-bottom: 18px;
display: flex;
flex-direction: column;
gap: 12px;
}
.page-toolbar__title {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.header-main {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.header-links {
display: flex;
align-items: center;
gap: 10px;
flex-wrap: wrap;
background: #f3f4f6;
padding: 6px;
border-radius: 999px;
}
.site-nav {
display: inline-flex;
align-items: center;
gap: 8px;
background: rgba(255, 255, 255, 0.6);
border-radius: 999px;
padding: 6px;
backdrop-filter: blur(8px);
border: 1px solid rgba(148, 163, 184, 0.25);
}
.site-nav__btn {
border-radius: 999px;
padding: 10px 18px;
border: none;
background: transparent;
font-weight: 600;
color: #0f172a;
cursor: pointer;
transition: all 0.2s ease;
box-shadow: none;
}
.site-nav__btn:hover {
background: rgba(15, 23, 42, 0.05);
transform: translateY(-1px);
}
.site-nav__btn.nav-active {
background: linear-gradient(135deg, #2563eb, #7c3aed);
color: white;
box-shadow: 0 12px 30px rgba(37, 99, 235, 0.35);
}
.header-controls {
display: flex;
flex-wrap: wrap;
gap: 14px;
align-items: center;
justify-content: flex-end;
}
.header-controls .control-group:last-child {
margin-left: auto;
}
.control-group {
display: flex;
align-items: center;
gap: 8px;
font-size: 13px;
color: #374151;
}
.sort-controls {
display: flex;
align-items: center;
gap: 6px;
}
.sort-direction-toggle {
display: inline-flex;
align-items: center;
justify-content: center;
width: 28px;
height: 28px;
border: 1px solid #e5e7eb;
border-radius: 4px;
background: transparent;
color: #6b7280;
cursor: pointer;
transition: all 0.15s ease;
}
.sort-direction-toggle:hover {
background: #f3f4f6;
color: #374151;
border-color: #d1d5db;
}
.sort-direction-toggle:focus {
outline: none;
border-color: #9ca3af;
box-shadow: 0 0 0 2px rgba(156, 163, 175, 0.15);
}
.sort-direction-toggle[aria-pressed="true"] {
background: #f3f4f6;
color: #111827;
border-color: #d1d5db;
}
.sort-direction-toggle__icon {
font-size: 11px;
line-height: 1;
}
.refresh-btn {
display: inline-flex;
align-items: center;
justify-content: center;
width: 28px;
height: 28px;
border: none;
border-radius: 4px;
background: transparent;
color: #6b7280;
cursor: pointer;
transition: all 0.15s ease;
font-size: 14px;
padding: 0;
}
.refresh-btn:hover {
background: #f3f4f6;
color: #374151;
}
.refresh-btn:focus {
outline: none;
background: #f3f4f6;
box-shadow: 0 0 0 2px rgba(156, 163, 175, 0.15);
}
.refresh-btn:active {
transform: scale(0.95);
}
.app-view {
display: none;
}
.app-view--active {
display: block;
}
.control-group label {
font-weight: 600;
}
.control-group label.switch {
font-weight: 600;
gap: 6px;
}
.search-input {
padding: 6px 12px;
border: 1px solid #d1d5db;
border-radius: 6px;
font-size: 13px;
min-width: 200px;
}
.search-input:focus {
outline: none;
border-color: #3b82f6;
box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}
.switch {
display: inline-flex;
align-items: center;
gap: 6px;
font-size: 13px;
font-weight: 600;
color: #1f2937;
cursor: pointer;
}
.switch input {
width: 16px;
height: 16px;
}
.control-select {
padding: 6px 10px;
border: 1px solid #d1d5db;
border-radius: 6px;
font-size: 13px;
background: white;
cursor: pointer;
}
h1 {
font-size: 22px;
font-weight: 700;
margin: 0;
}
.add-post-card {
background: white;
padding: 20px;
border-radius: 8px;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
margin-bottom: 20px;
}
.modal {
position: fixed;
inset: 0;
display: flex;
justify-content: center;
align-items: center;
padding: 24px;
z-index: 1100;
}
.modal[hidden] {
display: none;
}
.modal__backdrop {
position: absolute;
inset: 0;
background: rgba(15, 23, 42, 0.6);
}
.modal__content {
position: relative;
z-index: 1;
width: min(640px, 92vw);
max-height: 92vh;
overflow: auto;
background: #fff;
border-radius: 12px;
padding: 28px 28px 24px;
box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
display: flex;
flex-direction: column;
gap: 16px;
}
.modal__content h2 {
font-size: 20px;
margin: 0;
color: #111827;
}
.modal__close {
position: absolute;
top: 16px;
right: 16px;
width: 36px;
height: 36px;
border-radius: 50%;
border: none;
background: #111827;
color: #fff;
font-size: 22px;
line-height: 1;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: background 0.2s ease;
}
.modal__close:hover,
.modal__close:focus-visible {
background: #2563eb;
}
.add-post-card h2 {
font-size: 18px;
margin-bottom: 16px;
color: #111827;
}
.form-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 16px;
}
.form-field {
display: flex;
flex-direction: column;
gap: 6px;
font-size: 13px;
color: #4b5563;
}
.form-field input,
.form-field select {
padding: 10px 12px;
border: 1px solid #d1d5db;
border-radius: 6px;
font-size: 14px;
outline: none;
transition: border-color 0.2s ease;
}
.form-field input:focus,
.form-field select:focus {
border-color: #2563eb;
box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.15);
}
.form-actions {
display: flex;
flex-wrap: wrap;
gap: 12px;
margin-top: 16px;
}
.form-message {
margin-top: 12px;
font-size: 13px;
min-height: 18px;
}
.form-message.error {
color: #dc2626;
}
.form-message.success {
color: #065f46;
}
.tabs-section {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
gap: 16px;
}
.tabs {
display: flex;
gap: 8px;
}
.search-container {
margin-left: auto;
}
.tab-btn {
padding: 10px 20px;
background: white;
border: none;
border-radius: 8px;
font-size: 14px;
font-weight: 600;
cursor: pointer;
transition: all 0.2s;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.tab-btn:hover {
background: #f8f9fa;
}
.tab-btn.active {
background: #1877f2;
color: white;
}
.loading,
.error {
text-align: center;
padding: 40px;
background: white;
border-radius: 8px;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.error {
color: #dc2626;
}
.posts-container {
display: flex;
flex-direction: column;
gap: 16px;
}
.posts-summary {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 8px;
padding: 12px 16px;
background: white;
border-radius: 8px;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
font-size: 14px;
color: #1f2937;
}
.posts-summary__label {
font-weight: 700;
color: #111827;
margin-right: 8px;
}
.posts-summary__label::after {
content: ':';
margin-left: 4px;
color: #6b7280;
}
.posts-summary__item {
font-weight: 500;
color: #374151;
}
.posts-summary__separator {
color: #9ca3af;
margin: 0 4px;
}
.posts-load-more {
display: flex;
justify-content: center;
padding: 12px 0 32px;
}
.posts-load-more__btn {
min-width: 220px;
font-weight: 600;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
}
.post-card {
position: relative;
background: white;
border-radius: 8px;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
padding: 20px;
transition: transform 0.2s, box-shadow 0.2s;
padding-left: 20px;
}
.post-card:hover {
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
.post-counter {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 26px;
height: 26px;
margin-right: 10px;
border-radius: 999px;
background: #f3f4f6;
color: #1f2937;
font-weight: 600;
font-size: 13px;
}
.post-counter__value::before {
content: '#';
margin-right: 2px;
color: #6b7280;
}
.post-card.complete {
opacity: 0.7;
border-left: 4px solid #059669;
}
.post-card--highlight {
box-shadow:
0 1px 2px rgba(0, 0, 0, 0.1),
0 0 0 4px rgba(102, 126, 234, 0.35);
animation: post-card-highlight-pulse 1.4s ease-in-out 2;
}
@keyframes post-card-highlight-pulse {
0% {
box-shadow:
0 1px 2px rgba(0, 0, 0, 0.1),
0 0 0 0 rgba(102, 126, 234, 0.45);
}
50% {
box-shadow:
0 1px 2px rgba(0, 0, 0, 0.1),
0 0 0 8px rgba(102, 126, 234, 0.2);
}
100% {
box-shadow:
0 1px 2px rgba(0, 0, 0, 0.1),
0 0 0 0 rgba(102, 126, 234, 0.45);
}
}
.post-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 12px;
gap: 12px;
}
.post-header-right {
display: flex;
flex-direction: column;
align-items: flex-end;
gap: 8px;
}
.post-title-with-checkbox {
display: flex;
align-items: center;
gap: 16px;
flex: 1;
}
.success-checkbox--header {
flex-shrink: 0;
}
.post-title {
flex: 0 1 auto;
font-size: 16px;
color: #050505;
line-height: 1.4;
}
.post-status {
display: flex;
align-items: center;
gap: 8px;
padding: 6px 12px;
background: #f0f2f5;
border-radius: 6px;
font-size: 14px;
font-weight: 600;
white-space: nowrap;
}
.post-status.complete {
background: #d1fae5;
color: #065f46;
}
.post-body {
display: flex;
gap: 20px;
align-items: stretch;
}
.post-body--with-screenshot {
align-items: flex-start;
}
.post-screenshot-wrapper {
flex: 0 0 clamp(200px, 26vw, 320px);
max-width: clamp(200px, 26vw, 320px);
display: flex;
}
.post-content {
flex: 1;
display: flex;
flex-direction: column;
gap: 12px;
}
.post-meta {
display: flex;
flex-wrap: wrap;
gap: 12px;
justify-content: flex-start;
}
.post-meta__line {
display: flex;
align-items: baseline;
gap: 6px;
font-size: 13px;
color: #4b5563;
}
.post-meta__line--count {
font-weight: 600;
color: #1f2937;
width: 100%;
}
.post-meta__label {
font-weight: 600;
color: #374151;
}
.post-meta__value {
font-weight: 700;
color: #111827;
}
.post-meta__stats {
font-size: 12px;
color: #6b7280;
}
.post-info {
font-size: 13px;
color: #65676b;
}
.post-last-change {
font-size: 13px;
color: #4b5563;
}
.post-creator {
font-size: 13px;
color: #1f2937;
font-weight: 500;
}
.post-target__select {
padding: 6px 10px;
border: 1px solid #d1d5db;
border-radius: 6px;
font-size: 13px;
cursor: pointer;
background: #fff;
}
.post-deadline {
font-size: 13px;
color: #4b5563;
}
.post-deadline.has-deadline {
font-weight: 600;
}
.post-deadline.overdue {
color: #dc2626;
}
.post-deadline-row {
display: flex;
align-items: center;
gap: 12px;
}
.post-deadline__calendar,
.post-deadline__clear {
border: none;
background: none;
font-size: 16px;
line-height: 1;
cursor: pointer;
padding: 2px 4px;
color: #4b5563;
}
.post-deadline__calendar:hover,
.post-deadline__calendar:focus,
.post-deadline__clear:hover,
.post-deadline__clear:focus {
color: #2563eb;
}
.deadline-picker {
position: fixed;
width: 280px;
display: flex;
flex-direction: column;
gap: 12px;
padding: 16px;
border-radius: 14px;
border: 1px solid rgba(148, 163, 184, 0.35);
background: #fff;
box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
z-index: 1600;
animation: deadline-picker-enter 120ms ease-out;
}
@keyframes deadline-picker-enter {
from {
opacity: 0;
transform: translateY(-6px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.deadline-picker__header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.deadline-picker__title {
font-size: 14px;
font-weight: 600;
color: #1f2937;
}
.deadline-picker__close {
border: none;
background: none;
padding: 2px 6px;
font-size: 20px;
line-height: 1;
color: #6b7280;
border-radius: 6px;
cursor: pointer;
transition: color 120ms ease, background-color 120ms ease;
}
.deadline-picker__close:hover,
.deadline-picker__close:focus {
color: #1d4ed8;
background-color: rgba(37, 99, 235, 0.08);
}
.deadline-picker__form {
display: flex;
flex-direction: column;
gap: 12px;
}
.deadline-picker__field label {
display: flex;
flex-direction: column;
gap: 6px;
font-size: 12px;
color: #4b5563;
font-weight: 500;
}
.deadline-picker__field input {
border: 1px solid #d1d5db;
border-radius: 9px;
padding: 8px 10px;
font-size: 14px;
color: #111827;
background: #f9fafb;
transition: border-color 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}
.deadline-picker__field input:focus {
outline: none;
border-color: #2563eb;
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
background: #fff;
}
.deadline-picker__hint {
font-size: 12px;
color: #6b7280;
}
.deadline-picker__error {
min-height: 18px;
font-size: 12px;
color: #dc2626;
visibility: hidden;
}
.deadline-picker__error.is-visible {
visibility: visible;
}
.deadline-picker__actions {
display: flex;
gap: 8px;
}
.deadline-picker__actions .btn {
flex: 1;
}
.post-deadline__clear {
font-size: 14px;
}
.post-deadline-row input[type="datetime-local"] {
padding: 6px 10px;
border: 1px solid #d1d5db;
border-radius: 6px;
font-size: 13px;
cursor: pointer;
}
.post-target {
display: flex;
align-items: center;
gap: 8px;
font-size: 13px;
color: #1f2937;
font-weight: 500;
}
.btn-inline {
background: none;
border: none;
color: #2563eb;
padding: 0;
font-size: 13px;
font-weight: 600;
cursor: pointer;
border-radius: 0;
display: inline;
}
.btn-inline:hover,
.btn-inline:focus {
text-decoration: underline;
}
.post-link {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 8px;
font-size: 13px;
}
.post-link__label {
font-weight: 600;
color: #4b5563;
}
.post-link__anchor {
color: #2563eb;
text-decoration: none;
word-break: break-all;
}
.post-link__anchor:hover {
text-decoration: underline;
}
.post-profiles {
display: flex;
flex-direction: column;
gap: 8px;
padding: 12px;
border: 1px solid #e5e7eb;
border-radius: 8px;
background: #f9fafb;
}
.profile-line {
display: flex;
justify-content: space-between;
gap: 12px;
font-size: 13px;
padding: 6px 8px;
border-radius: 6px;
align-items: center;
}
.profile-line__name {
font-weight: 600;
}
.profile-line__status {
font-weight: 500;
}
.profile-line__actions {
display: flex;
gap: 6px;
}
.profile-line__toggle {
background: none;
border: none;
color: #2563eb;
font-size: 12px;
font-weight: 600;
cursor: pointer;
padding: 2px 6px;
border-radius: 4px;
}
.profile-line__toggle:hover,
.profile-line__toggle:focus {
text-decoration: underline;
}
.profile-line--done {
background: #ecfdf5;
color: #047857;
border-left: 3px solid #10b981;
}
.profile-line--available {
background: #eff6ff;
color: #1d4ed8;
border-left: 3px solid #3b82f6;
}
.profile-line--locked {
background: #f3f4f6;
color: #6b7280;
border-left: 3px solid #9ca3af;
}
.profile-line--current {
position: relative;
box-shadow: inset 0 0 0 2px rgba(96, 165, 250, 0.35);
background: linear-gradient(90deg, rgba(239, 246, 255, 0.95), rgba(221, 214, 254, 0.9));
}
.profile-line--current.profile-line--done {
color: #065f46;
border-left-color: #34d399;
}
.profile-line--current.profile-line--available {
color: #1d4ed8;
border-left-color: #60a5fa;
}
.profile-line--current.profile-line--locked {
color: #4b5563;
border-left-color: #818cf8;
}
.profile-line__badge {
display: inline-flex;
align-items: center;
margin-left: 8px;
padding: 2px 8px;
border-radius: 999px;
background: linear-gradient(135deg, #60a5fa, #a855f7);
color: #ffffff;
font-size: 11px;
font-weight: 700;
letter-spacing: 0.02em;
text-transform: uppercase;
}
.post-hints {
display: flex;
flex-direction: column;
gap: 6px;
}
.post-hint {
font-size: 13px;
color: #92400e;
background: #fff7ed;
border-radius: 6px;
padding: 8px 10px;
}
.post-hint--success {
color: #065f46;
background: #ecfdf5;
}
.post-screenshot {
width: 100%;
border: 1px solid #d1d5db;
border-radius: 12px;
background: #f8fafc;
display: flex;
align-items: center;
justify-content: center;
height: clamp(180px, 24vw, 240px);
padding: 12px;
cursor: pointer;
transition: transform 0.2s ease, box-shadow 0.2s ease;
outline: none;
overflow: hidden;
}
.post-screenshot:hover,
.post-screenshot:focus-visible {
transform: translateY(-2px);
box-shadow: 0 14px 32px rgba(15, 23, 42, 0.18);
}
.post-screenshot img {
max-width: 100%;
max-height: 100%;
width: 100%;
height: auto;
object-fit: contain;
display: block;
border-radius: 8px;
box-shadow: 0 4px 18px rgba(15, 23, 42, 0.18);
}
.check-badge {
padding: 4px 10px;
background: #e4e6eb;
border-radius: 6px;
font-size: 13px;
font-weight: 500;
}
.check-badge:not(.checked) {
color: #4b5563;
}
.check-badge.checked {
background: #d1fae5;
color: #065f46;
}
.check-badge.current {
background: #dbeafe;
color: #1e40af;
border: 2px solid #3b82f6;
}
.post-actions {
display: flex;
gap: 8px;
flex-wrap: wrap;
margin-top: auto;
align-items: center;
}
.success-checkbox {
display: inline-flex;
align-items: center;
gap: 6px;
font-size: 13px;
font-weight: 600;
color: #1f2937;
cursor: pointer;
user-select: none;
}
.success-checkbox-input {
width: 16px;
height: 16px;
cursor: pointer;
}
.btn {
padding: 10px 16px;
border: none;
border-radius: 6px;
font-size: 14px;
font-weight: 600;
cursor: pointer;
transition: all 0.2s;
text-decoration: none;
display: inline-block;
text-align: center;
}
.btn-primary {
background: #1877f2;
color: white;
}
.btn-primary:hover {
background: #166fe5;
}
.btn-success {
background: #059669;
color: white;
}
.btn-success:hover {
background: #047857;
}
.btn-danger {
background: #dc2626;
color: white;
}
.btn-danger:hover {
background: #b91c1c;
}
.btn-secondary {
background: #e4e6eb;
color: #050505;
}
.btn-secondary:hover {
background: #d8dadf;
}
.btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.bookmark-inline {
position: relative;
display: inline-flex;
align-items: center;
margin: 0;
}
.bookmark-inline__toggle {
padding: 8px 14px;
font-size: 14px;
}
.bookmark-panel {
position: absolute;
top: calc(100% + 8px);
right: 0;
width: min(540px, 92vw);
max-height: 70vh;
background: #ffffff;
border-radius: 12px;
box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
padding: 16px;
z-index: 20;
border: 1px solid rgba(229, 231, 235, 0.8);
display: flex;
flex-direction: column;
}
.bookmark-panel__header {
display: flex;
justify-content: space-between;
align-items: center;
gap: 12px;
margin-bottom: 12px;
border-bottom: 1px solid rgba(229, 231, 235, 0.8);
padding-bottom: 8px;
}
.bookmark-panel__title {
margin: 0;
font-size: 15px;
font-weight: 600;
}
.bookmark-panel__close {
border: none;
background: transparent;
font-size: 20px;
line-height: 1;
cursor: pointer;
color: #4b5563;
padding: 2px 6px;
}
.bookmark-panel__close:hover,
.bookmark-panel__close:focus {
color: #ef4444;
}
.bookmark-list {
flex: 1;
overflow-y: auto;
display: flex;
flex-direction: column;
gap: 16px;
padding-right: 6px;
}
.bookmark-section {
display: flex;
flex-direction: column;
gap: 8px;
}
.bookmark-section__header {
display: flex;
justify-content: space-between;
align-items: baseline;
gap: 12px;
}
.bookmark-section__title {
margin: 0;
font-size: 13px;
font-weight: 600;
color: #111827;
}
.bookmark-section__hint {
font-size: 11px;
color: #6b7280;
}
.bookmark-section__list {
display: flex;
flex-direction: column;
gap: 6px;
}
.bookmark-row {
display: grid;
grid-template-columns: minmax(0, 1fr) auto auto;
align-items: center;
gap: 10px;
background: #f3f4f6;
border-radius: 8px;
padding: 7px 10px;
}
.bookmark-row[data-state="never-used"] {
background: #eef2ff;
}
.bookmark-row__open {
border: none;
background: transparent;
text-align: left;
display: flex;
flex-direction: column;
gap: 2px;
cursor: pointer;
color: inherit;
padding: 0;
}
.bookmark-row__open:focus-visible {
outline: 2px solid #2563eb;
outline-offset: 3px;
border-radius: 6px;
}
.bookmark-row__label {
font-size: 13px;
font-weight: 600;
color: #1f2937;
}
.bookmark-row__query {
font-size: 11px;
color: #4b5563;
}
.bookmark-row__meta {
font-size: 11px;
color: #6b7280;
white-space: nowrap;
justify-self: end;
}
.bookmark-row__remove {
border: none;
background: transparent;
color: #9ca3af;
cursor: pointer;
font-size: 16px;
line-height: 1;
padding: 0 6px;
border-radius: 6px;
transition: background-color 0.2s ease, color 0.2s ease;
}
.bookmark-row__remove:hover,
.bookmark-row__remove:focus-visible {
color: #ef4444;
background: rgba(239, 68, 68, 0.12);
}
.bookmark-status {
font-size: 13px;
padding: 10px 12px;
border-radius: 8px;
background: #f3f4f6;
color: #374151;
}
.bookmark-status--error {
background: #fee2e2;
color: #991b1b;
border: 1px solid rgba(248, 113, 113, 0.4);
}
.bookmark-status--loading {
background: #ede9fe;
color: #4c1d95;
}
.bookmark-form {
margin-top: 16px;
border-top: 1px solid #e5e7eb;
padding-top: 14px;
display: flex;
flex-direction: column;
gap: 12px;
}
.bookmark-form__fields {
display: flex;
flex-wrap: wrap;
gap: 12px;
}
.bookmark-form__field {
display: flex;
flex-direction: column;
flex: 1 1 220px;
gap: 6px;
}
.bookmark-form__field span {
font-size: 13px;
color: #65676b;
}
.bookmark-form__field input {
border: 1px solid #d0d3d9;
border-radius: 6px;
padding: 8px 10px;
font-size: 14px;
}
.bookmark-form__actions {
display: flex;
gap: 10px;
}
.bookmark-form__hint {
margin: 0;
font-size: 12px;
color: #65676b;
}
.bookmark-empty {
font-size: 13px;
color: #4b5563;
background: #f3f4f6;
border-radius: 10px;
padding: 14px;
text-align: center;
}
.bookmarks-page {
padding-bottom: 40px;
}
.bookmarks-page__intro {
margin-top: 12px;
color: #4b5563;
font-size: 14px;
}
.bookmark-page {
margin-top: 32px;
display: flex;
justify-content: center;
}
.bookmark-page__panel {
width: min(960px, 100%);
background: #ffffff;
border-radius: 20px;
border: 1px solid #e5e7eb;
padding: 24px 28px;
box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
display: flex;
flex-direction: column;
gap: 16px;
}
.bookmark-page__panel .bookmark-list {
max-height: none;
}
.bookmark-page__lead {
margin: 0;
color: #4b5563;
font-size: 14px;
}
.bookmark-panel__toolbar {
display: flex;
flex-wrap: wrap;
gap: 16px;
align-items: flex-end;
margin-bottom: 12px;
}
.bookmark-panel__search {
display: flex;
flex-direction: column;
gap: 6px;
flex: 1 1 220px;
}
.bookmark-panel__search input {
border: 1px solid #d0d3d9;
border-radius: 8px;
padding: 8px 10px;
font-size: 14px;
}
.bookmark-panel__sort {
display: flex;
align-items: center;
gap: 8px;
}
.bookmark-panel__sort label {
display: flex;
flex-direction: column;
gap: 6px;
font-size: 13px;
color: #4b5563;
}
.bookmark-panel__sort select {
border: 1px solid #d0d3d9;
border-radius: 8px;
padding: 8px 10px;
font-size: 14px;
min-width: 180px;
}
.bookmark-sort__direction {
border: 1px solid #d0d3d9;
border-radius: 8px;
background: #f3f4f6;
width: 40px;
height: 40px;
cursor: pointer;
display: inline-flex;
justify-content: center;
align-items: center;
padding: 0;
}
.bookmark-sort__direction:hover {
border-color: #a5b4fc;
}
@media (max-width: 640px) {
.bookmark-panel {
width: min(480px, 94vw);
max-height: 75vh;
}
.bookmark-section__list {
gap: 5px;
}
.bookmark-row {
grid-template-columns: minmax(0, 1fr) auto;
}
}
.screenshot-modal {
position: fixed;
inset: 0;
display: flex;
justify-content: center;
align-items: center;
padding: 24px;
background: rgba(15, 23, 42, 0.7);
z-index: 1000;
}
.screenshot-modal[hidden] {
display: none;
}
.screenshot-modal__backdrop {
position: absolute;
inset: 0;
}
.screenshot-modal__content {
position: relative;
width: min(95vw, 1300px);
max-height: 92vh;
padding: 24px;
border-radius: 18px;
background: rgba(15, 23, 42, 0.92);
display: flex;
justify-content: center;
align-items: center;
box-shadow: 0 30px 60px rgba(15, 23, 42, 0.45);
overflow: hidden;
}
.screenshot-modal__content.zoomed {
justify-content: flex-start;
align-items: flex-start;
}
.screenshot-modal__content img {
max-width: calc(95vw - 96px);
max-height: calc(92vh - 120px);
width: auto;
height: auto;
object-fit: contain;
border-radius: 12px;
box-shadow: 0 20px 44px rgba(8, 15, 35, 0.45);
cursor: zoom-in;
}
.screenshot-modal__content.zoomed {
cursor: zoom-out;
overflow: auto;
}
.screenshot-modal__content.zoomed img {
max-width: none;
max-height: none;
width: auto;
height: auto;
cursor: zoom-out;
}
.screenshot-modal__close {
position: absolute;
top: 12px;
right: 12px;
width: 36px;
height: 36px;
border-radius: 999px;
border: none;
background: #111827;
color: #fff;
font-size: 22px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
transition: background 0.2s ease, transform 0.2s ease;
}
.screenshot-modal__close:hover {
background: #2563eb;
transform: scale(1.05);
}
.screenshot-modal__close:focus-visible {
outline: 2px solid #2563eb;
outline-offset: 2px;
}
.empty-state {
text-align: center;
padding: 60px 20px;
background: white;
border-radius: 8px;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.empty-state-icon {
font-size: 64px;
margin-bottom: 16px;
}
.empty-state-text {
font-size: 18px;
color: #65676b;
}
@media (max-width: 768px) {
.container {
padding: 12px;
}
h1 {
font-size: 20px;
}
header {
padding: 14px;
}
.header-main {
flex-direction: column;
align-items: flex-start;
}
.header-links {
width: 100%;
justify-content: flex-start;
}
.post-card {
padding-left: 20px;
}
.post-counter {
margin-bottom: 4px;
min-width: 24px;
height: 24px;
}
.header-controls {
flex-direction: column;
align-items: flex-start;
}
.form-actions {
flex-direction: column;
}
.post-header {
flex-direction: column;
}
.post-body {
flex-direction: column;
}
.post-screenshot-wrapper {
max-width: 100%;
}
.post-actions {
flex-direction: column;
}
.btn {
width: 100%;
}
.bookmark-inline {
display: block;
margin-bottom: 10px;
}
.bookmark-panel {
position: static;
width: 100%;
margin-top: 10px;
max-height: none;
box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}
.bookmark-list {
max-height: none;
}
.bookmark-form__actions {
flex-direction: column;
}
}