MediaWiki:Common.css: відмінності між версіями
Перейти до навігації
Перейти до пошуку
Немає опису редагування |
Немає опису редагування |
||
| Рядок 833: | Рядок 833: | ||
margin: 0 0 12px 0 !important; | margin: 0 0 12px 0 !important; | ||
padding: 0 0 10px 0 !important; | padding: 0 0 10px 0 !important; | ||
letter-spacing: -0.2px !important; | letter-spacing: -0.2px !important; | ||
line-height: 1.3 !important; | line-height: 1.3 !important; | ||
Версія за 15:39, 18 лютого 2026
/* ── Заголовок сторінки ── */
#firstHeading {
font-size: clamp(28px, 4vw, 48px);
}
/* ── Бокове меню ── */
#mw-panel {
font-size: clamp(14px, 1.2vw, 18px);
}
/* ── Прибираємо обмеження Vector ── */
body.skin-vector-2022 .mw-page-container-inner,
body.skin-vector .mw-content-container,
body.skin-vector .vector-body,
body.skin-vector #bodyContent {
max-width: none !important;
padding-left: 0 !important;
padding-right: 0 !important;
}
body.skin-vector-2022 .mw-body,
body.skin-vector-2022 .mw-body-content {
max-width: none !important;
margin: 0 !important;
}
/* ════════════════════════════════════
ПРИВІТАННЯ + СТАТИСТИКА
═══════════════════════════════════════ */
.welcome-wrapper {
display: flex;
align-items: center;
justify-content: space-between;
gap: 40px;
padding: 40px 5vw 40px;
box-sizing: border-box;
width: 100%;
}
.welcome-text {
flex: 1;
text-align: center;
/* Зміщуємо центр тексту компенсуючи ширину панелі статистики */
transform: translateX(-80px);
}
.welcome-subtitle {
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
font-size: 1.45rem;
font-weight: 400;
color: #444;
letter-spacing: 0.6px;
margin-bottom: 10px;
opacity: 0.92;
}
.welcome-title {
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
font-size: 2.45rem;
font-weight: 700;
line-height: 1.18;
color: #003d82;
letter-spacing: -0.3px;
margin: 0;
}
/* ── Панель статистики (справа від привітання) ── */
.stats-panel {
width: 260px;
flex-shrink: 0;
background: white;
border-radius: 16px;
border: 1px solid rgba(0,61,130,0.08);
box-shadow: 0 6px 24px rgba(0,0,0,0.07);
overflow: hidden;
}
.stats-panel-header {
background: rgba(210, 230, 255, 0.35);
color: #003d82;
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
font-size: 1rem;
font-weight: 700;
padding: 12px 18px;
border-bottom: 1px solid rgba(0,61,130,0.1);
}
.stats-panel-list {
padding: 4px 0;
}
.stats-panel-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 18px;
border-bottom: 1px solid rgba(0,61,130,0.05);
transition: background 0.2s;
}
.stats-panel-item:last-child {
border-bottom: none;
}
.stats-panel-item:hover {
background: rgba(210, 230, 255, 0.2);
}
.stats-panel-label {
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
font-size: 14px;
color: #555;
}
.stats-panel-number {
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
font-size: 18px;
font-weight: 800;
color: #003d82;
}
/* ════════════════════════════════════
ЗАГОЛОВОК КАТЕГОРІЙ
═══════════════════════════════════════ */
.section-categories {
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
font-size: 2.1rem;
font-weight: 700;
color: #003d82;
text-align: center;
margin: 30px 0 30px;
padding: 0;
background: transparent;
box-sizing: border-box;
/* Центруємо тільки над сіткою категорій, ігноруючи праву колонку */
margin-right: calc(360px + 24px);
}
.section-categories::after {
content: '';
display: block;
width: 90px;
height: 4px;
background: #ffd700;
margin: 14px auto 0;
border-radius: 2px;
}
/* ════════════════════════════════════
ОСНОВНИЙ LAYOUT: категорії + права колонка
═══════════════════════════════════════ */
.main-content-layout {
display: flex;
gap: 24px;
align-items: flex-start;
padding: 0 5vw;
margin: 0 0 70px;
box-sizing: border-box;
width: 100%;
}
/* ── Сітка карток — 3 в ряд ── */
.category-grid-container {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20px;
flex: 1;
min-width: 0;
}
/* ── Права колонка ── */
.right-column {
width: 360px;
min-width: 360px;
flex-shrink: 0;
display: flex;
flex-direction: column;
gap: 20px;
align-self: flex-start;
padding-top: 0;
}
/* ════════════════════════════════════
КАРТКИ КАТЕГОРІЙ
═══════════════════════════════════════ */
.category-card {
background: white;
border-radius: 16px;
overflow: hidden;
box-shadow: 0 6px 24px rgba(0,0,0,0.08);
transition: all 0.28s cubic-bezier(0.165, 0.84, 0.44, 1);
cursor: pointer;
border: 1px solid rgba(0,61,130,0.08);
height: 100%;
display: flex;
flex-direction: column;
}
.category-card:hover {
transform: translateY(-6px);
box-shadow: 0 20px 40px rgba(0,61,130,0.18);
border-color: rgba(0,61,130,0.15);
}
.card-image {
padding: 28px 0 16px;
flex-grow: 1;
display: flex;
align-items: center;
justify-content: center;
background: white;
}
.card-image img {
width: 120px;
height: 120px;
object-fit: contain;
transition: transform 0.35s ease;
}
.category-card:hover .card-image img {
transform: scale(1.12);
}
.card-title {
font-size: 15px;
font-weight: 600;
color: #003d82;
text-align: center;
padding: 8px 12px 12px;
line-height: 1.4;
flex-grow: 0;
background: rgba(210, 230, 255, 0.15);
border-radius: 10px;
margin: 0 10px 14px;
}
.card-title pre {
background: transparent !important;
border: none !important;
box-shadow: none !important;
padding: 0 !important;
margin: 0 !important;
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
font-size: inherit !important;
font-weight: inherit !important;
color: inherit !important;
white-space: normal !important;
}
/* ════════════════════════════════════
ВИПАДКОВІ СТАТТІ
═══════════════════════════════════════ */
.random-articles-panel {
background: white;
border-radius: 16px;
border: 1px solid rgba(0,61,130,0.08);
box-shadow: 0 6px 24px rgba(0,0,0,0.07);
overflow: hidden;
display: flex;
flex-direction: column;
position: relative;
}
.random-articles-header {
background: rgba(210, 230, 255, 0.35);
color: #003d82;
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
font-size: 1rem;
font-weight: 700;
padding: 14px 18px;
border-bottom: 1px solid rgba(0,61,130,0.1);
}
#random-articles-list {
padding: 12px;
display: flex;
flex-direction: column;
gap: 12px;
}
.random-article-card {
display: flex;
gap: 14px;
padding: 14px;
border-radius: 12px;
background: rgba(210, 230, 255, 0.12);
border: 1px solid rgba(0,61,130,0.07);
text-decoration: none;
color: inherit;
transition: all 0.22s ease;
align-items: flex-start;
}
.random-article-card:hover {
background: rgba(210, 230, 255, 0.35);
border-color: rgba(0,61,130,0.18);
transform: translateX(3px);
text-decoration: none;
}
.random-article-thumb {
width: 90px;
height: 90px;
border-radius: 10px;
object-fit: cover;
flex-shrink: 0;
background: #eef2f8;
}
.random-article-thumb-placeholder {
width: 90px;
height: 90px;
border-radius: 10px;
flex-shrink: 0;
background: linear-gradient(135deg, #e8eef7, #c8d8ee);
display: flex;
align-items: center;
justify-content: center;
font-size: 22px;
}
.random-article-info {
flex: 1;
min-width: 0;
}
.random-article-title {
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
font-size: 15px;
font-weight: 700;
color: #003d82;
margin-bottom: 6px;
line-height: 1.35;
overflow: hidden;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
.random-article-excerpt {
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
font-size: 13px;
color: #555;
line-height: 1.45;
overflow: hidden;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
}
.random-articles-loading {
padding: 20px;
text-align: center;
color: #888;
font-size: 13px;
font-family: system-ui, sans-serif;
}
.random-articles-refresh {
display: none;
}
/* ════════════════════════════════════
РЕСУРСИ ТА ПОСИЛАННЯ — MODERN STYLE
═══════════════════════════════════════ */
.resources-and-contacts {
display: flex;
flex-wrap: wrap;
gap: 24px;
margin: 50px 5vw 60px;
align-items: stretch;
}
.resource-block,
.contacts-block {
flex: 1;
min-width: 320px;
background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(240, 246, 255, 0.85));
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border: 1px solid rgba(0, 61, 130, 0.12);
border-radius: 16px;
padding: 24px 28px 28px;
box-shadow: 0 6px 20px rgba(0, 61, 130, 0.08);
box-sizing: border-box;
display: flex;
flex-direction: column;
transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
position: relative;
overflow: hidden;
}
/* Gradient effect on hover */
.resource-block::before,
.contacts-block::before {
content: '';
position: absolute;
top: -50%;
left: -50%;
width: 200%;
height: 200%;
background: linear-gradient(135deg, transparent, rgba(0, 61, 130, 0.04), transparent);
transform: rotate(45deg);
transition: all 0.6s ease;
opacity: 0;
}
.resource-block:hover,
.contacts-block:hover {
transform: translateY(-6px);
box-shadow: 0 12px 32px rgba(0, 61, 130, 0.14);
border-color: rgba(0, 61, 130, 0.18);
}
.resource-block:hover::before,
.contacts-block:hover::before {
opacity: 1;
top: -25%;
left: -25%;
}
.resource-block ul,
.contacts-block ul {
flex: 1;
list-style: none;
padding-left: 0;
margin: 0;
position: relative;
z-index: 1;
}
.resource-block h2,
.contacts-block h2 {
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
font-size: 1.4rem !important;
font-weight: 700 !important;
color: #003d82 !important;
margin: 0 0 18px 0 !important;
padding: 0 0 12px 0 !important;
line-height: 1.3 !important;
letter-spacing: -0.3px !important;
position: relative;
z-index: 1;
}
.resource-block li,
.contacts-block li {
margin-bottom: 10px;
line-height: 1.6;
font-size: 14.5px;
color: #444;
padding: 8px 12px 8px 28px;
position: relative;
border-radius: 8px;
transition: all 0.2s ease;
background: rgba(255, 255, 255, 0.4);
}
.resource-block li:hover,
.contacts-block li:hover {
background: rgba(0, 61, 130, 0.06);
transform: translateX(4px);
}
.resource-block li::before,
.contacts-block li::before {
content: '→';
position: absolute;
left: 10px;
color: #003d82;
font-weight: 700;
font-size: 16px;
transition: transform 0.2s;
}
.resource-block li:hover::before,
.contacts-block li:hover::before {
transform: translateX(3px);
}
.resource-block li a,
.contacts-block li a {
color: #0645ad;
text-decoration: none;
transition: color 0.2s;
font-weight: 500;
}
.resource-block li a:hover,
.contacts-block li a:hover {
color: #003d82;
text-decoration: none;
}
/* Different accent color for contacts block */
.contacts-block h2 {
}
/* ════════════════════════════════════
АДАПТИВНІСТЬ
═══════════════════════════════════════ */
@media (max-width: 1100px) {
.welcome-wrapper {
flex-direction: column;
text-align: center;
}
.stats-panel {
width: 100%;
max-width: 400px;
}
.main-content-layout {
flex-direction: column;
}
.right-column {
width: 100%;
min-width: unset;
flex-direction: row;
flex-wrap: wrap;
}
.category-grid-container {
grid-template-columns: repeat(3, 1fr);
}
}
@media (max-width: 820px) {
.category-grid-container {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 520px) {
.category-grid-container {
grid-template-columns: 1fr;
}
.welcome-title { font-size: 2rem; }
.welcome-subtitle { font-size: 1.25rem; }
.section-categories { font-size: 1.8rem; }
}
@media (max-width: 900px) {
.resources-and-contacts {
flex-direction: column;
gap: 20px;
}
}
/* ── Ліва колонка з заголовком і сіткою ── */
.category-column {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
}
.category-column .category-grid-container {
flex: 1;
}
.timeline-dot {
left: -33px;
}
.timeline-year {
font-size: 1.2rem;
}
.timeline-event {
font-size: 14px;
}
}
/* ══════════════════════════════════════════════
MODERN UI: градієнти, glassmorphism, анімації
══════════════════════════════════════════════ */
/* ── Прогрес скролла ── */
.scroll-progress {
position: fixed;
top: 0;
left: 0;
height: 4px;
background: linear-gradient(90deg, #003d82, #0066cc, #ffd700);
z-index: 99999;
transition: width 0.1s ease;
box-shadow: 0 2px 8px rgba(0, 61, 130, 0.3);
}
/* ── Градієнтний фон для welcome ── */
.welcome-wrapper {
background: linear-gradient(135deg, #f0f6ff 0%, #e8f0ff 50%, #fff 100%);
position: relative;
overflow: hidden;
}
/* Плавний перехід до білого з усіх боків */
.welcome-wrapper::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background:
linear-gradient(to bottom, white 0%, transparent 15%, transparent 85%, white 100%),
linear-gradient(to right, white 0%, transparent 10%, transparent 90%, white 100%);
pointer-events: none;
z-index: 10;
}
.welcome-text,
.stats-panel {
position: relative;
z-index: 11;
}
/* ── Glassmorphism для статистики ── */
.stats-panel {
background: rgba(255, 255, 255, 0.7) !important;
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.3) !important;
box-shadow: 0 8px 32px rgba(0, 61, 130, 0.15) !important;
}
.stats-panel-header {
background: linear-gradient(135deg, rgba(0, 61, 130, 0.1), rgba(0, 102, 204, 0.15)) !important;
}
/* ── Glassmorphism для випадкових статей ── */
.random-articles-panel {
background: rgba(255, 255, 255, 0.75) !important;
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border: 1px solid rgba(255, 255, 255, 0.3) !important;
}
/* ── Градієнтні картки категорій ── */
.category-card {
background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
border: 1px solid rgba(0, 61, 130, 0.08);
position: relative;
overflow: hidden;
}
.category-card::before {
content: '';
position: absolute;
top: -50%;
left: -50%;
width: 200%;
height: 200%;
background: linear-gradient(135deg, transparent, rgba(0, 61, 130, 0.05), transparent);
transform: rotate(45deg);
transition: all 0.6s ease;
opacity: 0;
}
.category-card:hover::before {
opacity: 1;
top: -25%;
left: -25%;
}
/* ── Мікроанімації: bounce для іконок ── */
.category-card:hover .card-image img {
animation: icon-bounce 0.6s ease;
}
@keyframes icon-bounce {
0%, 100% { transform: scale(1.12) translateY(0); }
50% { transform: scale(1.12) translateY(-8px); }
}
/* ── Gradient hover для карточок ── */
.category-card {
transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.category-card:hover {
transform: translateY(-8px) scale(1.02);
box-shadow: 0 24px 48px rgba(0, 61, 130, 0.2);
}
/* ── Pulse для чисел статистики ── */
.stats-panel-number {
animation: number-pulse 2s ease-in-out infinite;
}
@keyframes number-pulse {
0%, 100% { transform: scale(1); }
50% { transform: scale(1.05); color: #0066cc; }
}
/* ── Rainbow effect для анімації чисел ── */
@keyframes rainbow {
0% { color: #003d82; }
25% { color: #0066cc; }
50% { color: #4a90e2; }
75% { color: #0066cc; }
100% { color: #003d82; }
}
.stats-panel-number.animating {
animation: rainbow 1.5s ease-in-out;
}
/* ── Gradient title ── */
.welcome-title {
background: linear-gradient(135deg, #003d82 0%, #0066cc 50%, #003d82 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
animation: gradient-shift 3s ease infinite;
background-size: 200% 200%;
}
@keyframes gradient-shift {
0%, 100% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
}
/* ── Smooth reveal для карточок ── */
.category-card {
/* AOS сам додає opacity при ініціалізації */
}
/* ── Неоморфізм для випадкових статей ── */
.random-article-card {
background: linear-gradient(145deg, #ffffff, #f0f6ff);
box-shadow:
8px 8px 16px rgba(0, 61, 130, 0.08),
-8px -8px 16px rgba(255, 255, 255, 0.9);
border: none !important;
}
.random-article-card:hover {
box-shadow:
12px 12px 24px rgba(0, 61, 130, 0.12),
-12px -12px 24px rgba(255, 255, 255, 1);
background: linear-gradient(145deg, #f0f6ff, #ffffff);
}
/* ── Glassmorphism для заголовків ── */
.section-categories {
text-shadow: 0 2px 8px rgba(0, 61, 130, 0.1);
}
/* ── Gradient підкреслення ── */
.section-categories::after {
background: linear-gradient(90deg, #ffd700, #ffed4e, #ffd700) !important;
box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}
/* ══════════════════════════════════════════════
СТИЛІЗАЦІЯ БОКОВОГО МЕНЮ — MODERN STYLE
══════════════════════════════════════════════ */
/* Прибираємо загальний фон */
body #mw-panel,
.mw-body #mw-panel {
background: transparent !important;
padding: 0 !important;
margin-left: 0px !important;
margin-right: 15px !important;
}
/* Блоки для кожної секції */
body #mw-panel .portal,
.mw-body #mw-panel .portal {
background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(240, 246, 255, 0.85)) !important;
backdrop-filter: blur(12px) !important;
-webkit-backdrop-filter: blur(12px) !important;
border-radius: 16px !important;
padding: 16px 14px 14px !important;
margin-bottom: 12px !important;
border: 1px solid rgba(0, 61, 130, 0.12) !important;
box-shadow: 0 6px 20px rgba(0, 61, 130, 0.08) !important;
transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
position: relative !important;
overflow: hidden !important;
}
/* Gradient light effect */
body #mw-panel .portal::before,
.mw-body #mw-panel .portal::before {
content: '' !important;
position: absolute !important;
top: -50% !important;
left: -50% !important;
width: 200% !important;
height: 200% !important;
background: linear-gradient(135deg, transparent, rgba(0, 61, 130, 0.04), transparent) !important;
transform: rotate(45deg) !important;
transition: all 0.6s ease !important;
opacity: 0 !important;
pointer-events: none !important;
}
body #mw-panel .portal:hover,
.mw-body #mw-panel .portal:hover {
transform: translateY(-4px) !important;
box-shadow: 0 10px 28px rgba(0, 61, 130, 0.12) !important;
border-color: rgba(0, 61, 130, 0.18) !important;
}
body #mw-panel .portal:hover::before,
.mw-body #mw-panel .portal:hover::before {
opacity: 1 !important;
top: -25% !important;
left: -25% !important;
}
body #mw-panel .portal:last-child,
.mw-body #mw-panel .portal:last-child {
margin-bottom: 0 !important;
}
/* Заголовки секцій з золотою лінією */
body #mw-panel .portal h3,
.mw-body #mw-panel .portal h3 {
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
font-size: 15px !important;
font-weight: 700 !important;
color: #003d82 !important;
margin: 0 0 12px 0 !important;
padding: 0 0 10px 0 !important;
letter-spacing: -0.2px !important;
line-height: 1.3 !important;
position: relative !important;
z-index: 1 !important;
}
/* Списки */
body #mw-panel .portal .body ul,
.mw-body #mw-panel .portal .body ul {
margin: 0 !important;
padding: 0 !important;
position: relative !important;
z-index: 1 !important;
}
body #mw-panel .portal .body ul li,
.mw-body #mw-panel .portal .body ul li {
list-style: none !important;
margin: 0 0 6px 0 !important;
padding: 0 !important;
}
body #mw-panel .portal .body ul li:last-child,
.mw-body #mw-panel .portal .body ul li:last-child {
margin-bottom: 0 !important;
}
/* Посилання як міні-карточки */
body #mw-panel .portal .body ul li a,
.mw-body #mw-panel .portal .body ul li a {
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
font-size: 13.5px !important;
font-weight: 400 !important;
color: #0645ad !important;
text-decoration: none !important;
transition: all 0.2s ease !important;
display: block !important;
padding: 9px 12px !important;
border-radius: 8px !important;
line-height: 1.4 !important;
background: rgba(255, 255, 255, 0.4) !important;
border: 1px solid rgba(0, 61, 130, 0.08) !important;
box-sizing: border-box !important;
}
body #mw-panel .portal .body ul li a:hover,
.mw-body #mw-panel .portal .body ul li a:hover {
background: rgba(0, 61, 130, 0.06) !important;
color: #003d82 !important;
transform: translateX(4px) !important;
border-color: rgba(0, 61, 130, 0.15) !important;
}
/* ══════════════════════════════════════════
Vue Teachers App — стилі
══════════════════════════════════════════ */
.vt-app {
font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
width: 100%;
padding: 0 0 60px;
box-sizing: border-box;
}
/* ── Панель керування ── */
/* Фільтри */
.vt-filters {
display: flex;
gap: 8px;
flex-wrap: wrap;
}
.vt-filter-btn {
padding: 8px 16px;
border-radius: 20px;
border: 1.5px solid rgba(0,61,130,0.18);
background: white;
color: #555;
font-size: 13.5px;
font-family: inherit;
cursor: pointer;
transition: all 0.2s;
white-space: nowrap;
}
.vt-filter-btn:hover {
border-color: #003d82;
color: #003d82;
}
.vt-filter-btn.active {
background: #003d82;
color: white;
border-color: #003d82;
}
/* Сортування */
.vt-sort {
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
}
.vt-sort-label {
font-size: 13px;
color: #888;
white-space: nowrap;
}
.vt-sort-btn {
padding: 7px 14px;
border-radius: 8px;
border: 1.5px solid rgba(0,61,130,0.15);
background: white;
color: #666;
font-size: 13px;
font-family: inherit;
cursor: pointer;
transition: all 0.2s;
white-space: nowrap;
}
.vt-sort-btn:hover { border-color: #003d82; color: #003d82; }
.vt-sort-btn.active { background: rgba(0,61,130,0.08); border-color: #003d82; color: #003d82; font-weight: 600; }
/* ── Лічильник ── */
.vt-count {
font-size: 13.5px;
color: #888;
margin-bottom: 20px;
padding: 0 4px;
}
.vt-count strong { color: #003d82; }
/* ── Завантаження ── */
.vt-loading {
display: flex;
flex-direction: column;
align-items: center;
gap: 16px;
padding: 60px 0;
color: #888;
font-size: 15px;
}
.vt-spinner {
width: 40px;
height: 40px;
border: 3px solid rgba(0,61,130,0.1);
border-top-color: #003d82;
border-radius: 50%;
animation: vt-spin 0.8s linear infinite;
}
@keyframes vt-spin {
to { transform: rotate(360deg); }
}
/* ── Порожній результат ── */
.vt-empty {
text-align: center;
padding: 60px 0;
color: #888;
}
.vt-empty-icon { font-size: 3rem; margin-bottom: 12px; }
.vt-empty p { font-size: 15px; margin-bottom: 20px; }
.vt-reset-btn {
padding: 10px 24px;
background: #003d82;
color: white;
border: none;
border-radius: 10px;
font-size: 14px;
font-family: inherit;
cursor: pointer;
transition: background 0.2s;
}
.vt-reset-btn:hover { background: #002d62; }
/* ── Сітка карток ── */
.vt-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 16px;
width: 100%;
box-sizing: border-box;
}
/* ── Картка ── */
.vt-card {
display: flex;
gap: 16px;
padding: 20px;
background: white;
border-radius: 16px;
border: 1.5px solid rgba(0,61,130,0.08);
box-shadow: 0 4px 16px rgba(0,0,0,0.06);
text-decoration: none;
color: inherit;
transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
align-items: flex-start;
}
.vt-card:hover {
transform: translateY(-4px);
box-shadow: 0 12px 32px rgba(0,61,130,0.15);
border-color: rgba(0,61,130,0.2);
text-decoration: none;
}
/* Фото */
.vt-card-img-wrap {
flex-shrink: 0;
}
.vt-card-img {
width: 80px;
height: 100px;
object-fit: cover;
border-radius: 10px;
display: block;
}
.vt-card-img-placeholder {
width: 80px;
height: 100px;
border-radius: 10px;
background: linear-gradient(135deg, #dce8f8, #b8d0f0);
display: flex;
align-items: center;
justify-content: center;
font-size: 2rem;
font-weight: 700;
color: #003d82;
}
/* Тіло картки */
.vt-card-body {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
gap: 5px;
}
/* Бейдж посади */
.vt-card-position {
display: inline-block;
padding: 3px 10px;
border-radius: 20px;
font-size: 11.5px;
font-weight: 700;
letter-spacing: 0.3px;
align-self: flex-start;
text-transform: uppercase;
}
.pos-професор { background: rgba(0,61,130,0.1); color: #003d82; }
.pos-доцент { background: rgba(0,130,80,0.1); color: #008250; }
.pos-викладач { background: rgba(180,100,0,0.1); color: #b46400; }
.pos-інше { background: rgba(100,100,100,0.1); color: #555; }
.vt-card-name {
font-size: 15px;
font-weight: 700;
color: #003d82;
line-height: 1.3;
}
.vt-card-occupation {
font-size: 12.5px;
color: #666;
line-height: 1.4;
overflow: hidden;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
.vt-card-title {
font-size: 12px;
color: #999;
line-height: 1.3;
overflow: hidden;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
font-style: italic;
}
/* ── Адаптивність ── */
@media (max-width: 700px) {
.vt-controls { flex-direction: column; align-items: stretch; }
.vt-grid { grid-template-columns: 1fr; }
.vt-title { font-size: 1.8rem; }
}
/* ── Загальний layout ── */
.vt-app {
padding: 0;
}
.vt-layout {
display: flex;
gap: 24px;
align-items: flex-start;
width: 100%;
box-sizing: border-box;
}
.vt-main {
flex: 1;
min-width: 0;
width: 100%;
}
/* ── Sidebar з фільтрами ── */
.vt-sidebar {
width: 160px;
flex-shrink: 0;
border: 1px solid rgba(0,61,130,0.12);
border-radius: 14px;
padding: 16px 12px;
background: white;
box-shadow: 0 4px 16px rgba(0,61,130,0.07);
font-size: 14px;
position: sticky;
top: 16px;
}
.vt-sidebar-title {
font-weight: 700;
color: #003d82;
font-size: 13.5px;
margin-bottom: 10px;
padding-bottom: 8px;
border-bottom: 2px solid rgba(0,61,130,0.1);
letter-spacing: 0.3px;
text-transform: uppercase;
}
.vt-filters {
display: flex;
flex-direction: column;
gap: 5px;
}
.vt-filter-btn {
display: block;
width: 100%;
text-align: left;
padding: 7px 12px;
border-radius: 8px;
border: 1.5px solid transparent;
background: transparent;
color: #444;
font-size: 13.5px;
font-family: inherit;
cursor: pointer;
transition: all 0.18s ease;
}
.vt-filter-btn:hover {
background: rgba(0,61,130,0.06);
color: #003d82;
text-decoration: none;
}
.vt-filter-btn.active {
background: #003d82;
color: white;
border-color: #003d82;
font-weight: 600;
box-shadow: 0 2px 8px rgba(0,61,130,0.25);
}
/* Адаптивність */
@media (max-width: 900px) {
.vt-layout { flex-direction: column-reverse; }
.vt-sidebar { width: 100%; }
.vt-filters { flex-direction: row; flex-wrap: wrap; }
.vt-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
.vt-grid { grid-template-columns: 1fr; }
}
/* ── Превью попап ── */
.vt-preview {
position: absolute;
z-index: 9999;
width: 260px;
background: white;
border-radius: 14px;
border: 1px solid rgba(0,61,130,0.12);
box-shadow: 0 8px 32px rgba(0,61,130,0.18);
padding: 16px;
pointer-events: auto;
animation: vt-preview-in 0.15s ease;
cursor: pointer;
text-decoration: none;
color: inherit;
display: block;
transition: transform 0.15s, box-shadow 0.15s;
}
.vt-preview:hover {
transform: translateY(-2px);
box-shadow: 0 12px 40px rgba(0,61,130,0.22);
text-decoration: none;
}
@keyframes vt-preview-in {
from { opacity: 0; transform: translateY(6px) scale(0.97); }
to { opacity: 1; transform: translateY(0) scale(1); }
}
.vt-preview-top {
display: flex;
gap: 12px;
align-items: flex-start;
margin-bottom: 12px;
}
.vt-preview-img {
width: 60px;
height: 75px;
object-fit: cover;
border-radius: 8px;
flex-shrink: 0;
}
.vt-preview-img-placeholder {
width: 60px;
height: 75px;
border-radius: 8px;
background: linear-gradient(135deg, #dce8f8, #b8d0f0);
display: flex;
align-items: center;
justify-content: center;
font-size: 1.6rem;
font-weight: 700;
color: #003d82;
flex-shrink: 0;
}
.vt-preview-info {
flex: 1;
min-width: 0;
}
.vt-preview-position {
display: inline-block;
padding: 2px 8px;
border-radius: 20px;
font-size: 10.5px;
font-weight: 700;
letter-spacing: 0.4px;
text-transform: uppercase;
margin-bottom: 6px;
}
.vt-preview-name {
font-size: 14px;
font-weight: 700;
color: #003d82;
line-height: 1.3;
}
.vt-preview-divider {
height: 1px;
background: rgba(0,61,130,0.08);
margin-bottom: 10px;
}
.vt-preview-row {
display: flex;
flex-direction: column;
margin-bottom: 8px;
}
.vt-preview-lbl {
font-size: 10.5px;
color: #999;
text-transform: uppercase;
letter-spacing: 0.4px;
margin-bottom: 2px;
}
.vt-preview-val {
font-size: 13px;
color: #333;
line-height: 1.4;
}