Files
ptp/static/css/trips-calendar.css

156 lines
3.4 KiB
CSS
Executable File

/**
* Стили для карточек поездок — glassmorphism
*/
.trips-calendar {
margin: 20px 0;
padding: 0;
}
.trips-calendar .trip-card {
display: flex;
flex-direction: column;
background: rgba(255, 255, 255, 0.75);
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
border: 1px solid rgba(255, 255, 255, 0.3);
border-radius: 16px;
margin-bottom: 24px;
overflow: hidden;
transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
}
.trips-calendar .trip-card:hover {
transform: translateY(-4px);
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
}
.trips-calendar .trip-image {
position: relative;
width: 100%;
height: 240px;
overflow: hidden;
}
.trips-calendar .trip-image img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.trips-calendar .trip-card:hover .trip-image img {
transform: scale(1.06);
}
/* Дата-оверлей — pill-стиль */
.trips-calendar .trip-overlay {
position: absolute;
top: 16px;
right: 16px;
background: rgba(0, 0, 0, 0.6);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
color: white;
padding: 8px 16px;
border-radius: 24px;
font-size: 0.85em;
font-weight: 600;
letter-spacing: 0.02em;
}
.trips-calendar .trip-content {
padding: 24px 24px 28px;
}
.trips-calendar .trip-content h3 {
margin: 0 0 12px 0;
font-size: 1.35em;
font-weight: 700;
color: #1a202c;
line-height: 1.35;
}
.trips-calendar .trip-details p {
margin: 0 0 20px 0;
color: #4a5568;
line-height: 1.6;
font-size: 0.95em;
}
/* Мета-теги — accent-стиль */
.trips-calendar .trip-meta {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-top: 16px;
}
.trips-calendar .trip-meta span {
background: linear-gradient(135deg, #667eea12, #764ba212);
color: #4a5568;
padding: 8px 16px;
border-radius: 24px;
font-size: 0.82em;
line-height: 1.4;
border: 1px solid rgba(102, 126, 234, 0.15);
transition: all 0.2s ease;
}
.trips-calendar .trip-meta span:hover {
background: linear-gradient(135deg, #667eea22, #764ba222);
border-color: rgba(102, 126, 234, 0.3);
}
/* Grid на десктопе */
@media (min-width: 768px) {
.trips-calendar {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
gap: 28px;
}
.trips-calendar .trip-card {
margin-bottom: 0;
}
}
@media (min-width: 1024px) {
.trips-calendar {
grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
}
.trips-calendar .trip-image {
height: 280px;
}
}
/* Состояния */
.trips-calendar .loading {
text-align: center;
padding: 48px 20px;
color: #718096;
font-size: 1em;
}
.trips-calendar .error {
text-align: center;
padding: 48px 20px;
color: #c53030;
background: rgba(254, 215, 215, 0.6);
backdrop-filter: blur(8px);
border-radius: 12px;
margin: 20px 0;
}
.trips-calendar .no-trips {
text-align: center;
padding: 48px 20px;
color: #718096;
background: rgba(247, 250, 252, 0.6);
backdrop-filter: blur(8px);
border-radius: 12px;
border: 1px dashed #cbd5e0;
}