289 lines
8.4 KiB
CSS
289 lines
8.4 KiB
CSS
/* ── Ad Card ── */
|
|
.f-card {
|
|
flex-shrink: 0;
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border); border-radius: 20px; overflow: hidden;
|
|
transition: border-color .2s, transform .2s, background .2s; cursor: pointer;
|
|
}
|
|
.f-card:hover { border-color: rgba(var(--teal-rgb), .3); transform: translateY(-2px); }
|
|
|
|
.f-card-inner {
|
|
display: flex; flex-direction: row; min-height: 180px;
|
|
}
|
|
|
|
/* Image Panel */
|
|
.f-card-img {
|
|
width: 180px; min-width: 180px;
|
|
align-self: stretch;
|
|
background: var(--bg-card-img);
|
|
display: flex; align-items: center; justify-content: center;
|
|
position: relative; overflow: hidden; flex-shrink: 0;
|
|
}
|
|
.f-card-img img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; position: absolute; inset: 0; }
|
|
.f-card-emoji { font-size: 3rem; opacity: .22; }
|
|
|
|
/* Badges */
|
|
.f-card-badges {
|
|
display: flex; align-items: center;
|
|
gap: 6px; margin-bottom: 8px;
|
|
position: relative;
|
|
}
|
|
.f-cat-badge {
|
|
background: rgba(13,16,24,.8); backdrop-filter: blur(8px);
|
|
border: 1px solid var(--border); border-radius: 20px;
|
|
padding: 3px 10px; font-size: .72rem; font-weight: 700; color: var(--teal);
|
|
}
|
|
.f-type-badge {
|
|
border-radius: 20px; padding: 3px 10px;
|
|
font-size: .72rem; font-weight: 900;
|
|
margin-left: auto;
|
|
}
|
|
.f-type-loss { background: rgba(255,107,107,.2); color: #ff6b6b; border: 1px solid rgba(255,107,107,.3); }
|
|
.f-type-found { background: rgba(var(--teal-rgb), .2); color: var(--teal); border: 1px solid rgba(var(--teal-rgb), .3); }
|
|
|
|
/* Status badge for closed/found posts */
|
|
.f-status-badge {
|
|
border-radius: 20px; padding: 2px 8px;
|
|
font-size: .7rem; font-weight: 900;
|
|
display: inline-block; vertical-align: middle;
|
|
margin-left: 8px;
|
|
}
|
|
.f-status-closed {
|
|
background: rgba(72,187,120,.2); color: #48bb78; border: 1px solid rgba(72,187,120,.3);
|
|
}
|
|
|
|
/* ── Role badges (LOST_AND_FOUND / METRO) ── */
|
|
.f-role-badge {
|
|
display: inline-flex; align-items: center; gap: 4px;
|
|
border-radius: 20px; padding: 3px 8px;
|
|
font-size: .68rem; font-weight: 800;
|
|
white-space: nowrap;
|
|
}
|
|
.f-role-lost-found {
|
|
background: rgba(255,200,50,.18); color: #f5c842;
|
|
border: 1px solid rgba(255,200,50,.3);
|
|
}
|
|
.f-role-metro {
|
|
background: rgba(227,6,19,.15); color: #e30613;
|
|
border: 1px solid rgba(227,6,19,.25);
|
|
}
|
|
.f-role-metro-letter {
|
|
display: inline-flex; align-items: center; justify-content: center;
|
|
width: 14px; height: 14px; border-radius: 50%;
|
|
background: #e30613; color: #fff;
|
|
font-size: 9px; font-weight: 900; line-height: 1;
|
|
}
|
|
|
|
/* Role-based card border */
|
|
.f-card-role-lost-found {
|
|
border-color: rgba(255,200,50,.3);
|
|
box-shadow: 0 0 20px rgba(255,200,50,.08), inset 0 0 20px rgba(255,200,50,.04);
|
|
}
|
|
.f-card-role-lost-found:hover {
|
|
border-color: rgba(255,200,50,.5);
|
|
box-shadow: 0 0 30px rgba(255,200,50,.15), inset 0 0 25px rgba(255,200,50,.06);
|
|
}
|
|
.f-card-role-metro {
|
|
border-color: rgba(227,6,19,.25);
|
|
box-shadow: 0 0 20px rgba(227,6,19,.08), inset 0 0 20px rgba(227,6,19,.04);
|
|
}
|
|
.f-card-role-metro:hover {
|
|
border-color: rgba(227,6,19,.45);
|
|
box-shadow: 0 0 30px rgba(227,6,19,.15), inset 0 0 25px rgba(227,6,19,.06);
|
|
}
|
|
|
|
/* Body */
|
|
.f-card-body {
|
|
flex: 1; padding: 14px 16px;
|
|
display: flex; flex-direction: column; min-width: 0;
|
|
}
|
|
.f-card-title { color: var(--text-primary); font-weight: 900; font-size: 1rem; margin-bottom: 5px; line-height: 1.3; }
|
|
.f-card-desc {
|
|
color: var(--muted); font-size: .82rem; line-height: 1.5; margin-bottom: 10px;
|
|
display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
|
|
}
|
|
|
|
/* Meta pills */
|
|
.f-card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
|
|
.f-meta-pill {
|
|
display: flex; align-items: center; gap: 4px;
|
|
background: var(--hover-bg); border: 1px solid var(--border);
|
|
border-radius: 20px; padding: 3px 9px; font-size: .73rem; color: var(--muted);
|
|
}
|
|
.f-date-pill {
|
|
cursor: pointer;
|
|
position: relative;
|
|
}
|
|
.f-date-pill:hover {
|
|
background: rgba(128,128,128,.12);
|
|
}
|
|
|
|
/* Map stub */
|
|
.f-card-map {
|
|
width: 100%; height: 76px;
|
|
background: var(--bg-input); margin-bottom: 14px; border-radius: 12px;
|
|
border: 1px solid var(--border);
|
|
display: flex; align-items: center; justify-content: center;
|
|
gap: 8px; color: var(--muted); font-size: .78rem;
|
|
cursor: pointer; transition: border-color .2s;
|
|
font-family: var(--font); font-weight: 600;
|
|
}
|
|
.f-card-map:hover { border-color: rgba(var(--teal-rgb), .3); color: var(--teal); }
|
|
|
|
/* Footer */
|
|
.f-card-foot {
|
|
display: flex; align-items: center; justify-content: space-between;
|
|
padding-top: 10px; border-top: 1px solid var(--border); margin-top: auto;
|
|
}
|
|
.f-card-foot-left { display: flex; align-items: center; }
|
|
.f-card-foot-right { display: flex; align-items: center; gap: 6px; }
|
|
.f-card-phone {
|
|
color: var(--teal); font-size: .82rem; font-weight: 700;
|
|
text-decoration: none; display: flex; align-items: center; gap: 5px;
|
|
}
|
|
.f-card-date { color: var(--muted2); font-size: .75rem; }
|
|
.f-like-btn {
|
|
display: flex; align-items: center; gap: 5px;
|
|
background: none; border: 1px solid var(--border);
|
|
border-radius: 20px; padding: 5px 11px; cursor: pointer;
|
|
font-family: var(--font); font-size: .8rem; font-weight: 700;
|
|
color: var(--muted); transition: all .2s; line-height: 1;
|
|
}
|
|
.f-like-btn:hover, .f-like-btn.liked {
|
|
border-color: rgba(255,107,107,.5); color: #ff6b6b; background: rgba(255,107,107,.08);
|
|
}
|
|
|
|
/* Closed/Found card styling */
|
|
.f-card-closed {
|
|
opacity: 0.7;
|
|
border-color: rgba(72,187,120,.3);
|
|
}
|
|
.f-card-closed:hover {
|
|
border-color: rgba(72,187,120,.5);
|
|
transform: none;
|
|
}
|
|
.f-card-closed .f-card-img {
|
|
filter: grayscale(0.5);
|
|
}
|
|
.f-card-closed .f-card-title {
|
|
text-decoration: line-through;
|
|
opacity: 0.7;
|
|
}
|
|
|
|
/* Edit & Delete buttons */
|
|
.f-card-edit-btn,
|
|
.f-card-delete-btn {
|
|
display: flex; align-items: center; justify-content: center;
|
|
background: none; border: 1px solid var(--border);
|
|
border-radius: 8px; width: 32px; height: 32px;
|
|
cursor: pointer; transition: all .2s;
|
|
color: var(--muted); padding: 0;
|
|
}
|
|
.f-card-edit-btn:hover {
|
|
border-color: rgba(var(--teal-rgb), .5); color: var(--teal); background: rgba(var(--teal-rgb), .08);
|
|
}
|
|
.f-card-delete-btn:hover {
|
|
border-color: rgba(255,107,107,.5); color: #ff6b6b; background: rgba(255,107,107,.08);
|
|
}
|
|
|
|
/* Mark as Found button */
|
|
.f-card-found-btn {
|
|
display: flex; align-items: center; gap: 5px;
|
|
background: rgba(72,187,120,.1); border: 1px solid rgba(72,187,120,.3);
|
|
border-radius: 20px; padding: 5px 11px;
|
|
cursor: pointer; transition: all .2s;
|
|
font-family: var(--font); font-size: .75rem; font-weight: 700;
|
|
color: #48bb78;
|
|
}
|
|
.f-card-found-btn:hover {
|
|
background: rgba(72,187,120,.2); border-color: rgba(72,187,120,.5);
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 4px 12px rgba(72,187,120,.2);
|
|
}
|
|
|
|
@media (max-width: 600px) {
|
|
/* Карточка становится вертикальной */
|
|
.f-card-inner {
|
|
flex-direction: column;
|
|
min-height: unset;
|
|
}
|
|
|
|
/* Картинка — горизонтальная полоса сверху */
|
|
.f-card-img {
|
|
width: 100%;
|
|
min-width: unset;
|
|
height: 180px;
|
|
}
|
|
|
|
/* Убираем кнопку карты на мобилке — занимает много места */
|
|
.f-card-map {
|
|
display: none;
|
|
}
|
|
|
|
/* Чуть меньше паддинг в теле карточки */
|
|
.f-card-body {
|
|
padding: 12px;
|
|
}
|
|
|
|
.f-card-phone {
|
|
font-size: 0.72rem;
|
|
}
|
|
}
|
|
|
|
/* ── Calendar Popup ── */
|
|
.f-date-calendar {
|
|
position: absolute;
|
|
bottom: calc(100% + 6px);
|
|
left: 0;
|
|
z-index: 100;
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border);
|
|
border-radius: 12px;
|
|
padding: 10px;
|
|
width: 220px;
|
|
box-shadow: 0 8px 32px rgba(0,0,0,.25);
|
|
}
|
|
.f-cal-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 8px;
|
|
font-size: .82rem;
|
|
font-weight: 700;
|
|
}
|
|
.f-cal-header button {
|
|
background: none;
|
|
border: none;
|
|
color: var(--text-primary);
|
|
font-size: 1.1rem;
|
|
cursor: pointer;
|
|
padding: 2px 6px;
|
|
border-radius: 6px;
|
|
line-height: 1;
|
|
}
|
|
.f-cal-header button:hover {
|
|
background: rgba(128,128,128,.15);
|
|
}
|
|
.f-cal-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(7, 1fr);
|
|
gap: 2px;
|
|
text-align: center;
|
|
font-size: .75rem;
|
|
}
|
|
.f-cal-day-name {
|
|
font-weight: 700;
|
|
color: var(--muted);
|
|
padding: 4px 0;
|
|
font-size: .68rem;
|
|
}
|
|
.f-cal-day {
|
|
padding: 4px 0;
|
|
border-radius: 6px;
|
|
cursor: default;
|
|
}
|
|
.f-cal-selected {
|
|
background: rgba(var(--teal-rgb), .25);
|
|
color: var(--teal);
|
|
font-weight: 800;
|
|
} |