/* ===== ЛАБОРАТОРИИ СПИСОК - ITA PREMIUM 2026 ===== */
/* Glassmorphism Grid + 3D Cards + Particle Background */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

* {
    scrollbar-width: thin;
    scrollbar-color: rgba(30,144,255,0.5) transparent;
}

.labs-section {
    min-height: 100vh;
    padding: 80px 20px;
    background: linear-gradient(135deg, #f0f4ff 0%, #e0e8ff 50%, #f8fbff 100%);
    position: relative;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

/* Particle Background */
.labs-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(2px 2px at 20px 30px, #1e90ff20, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(30,144,255,0.15), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(0,144,255,0.2), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(30,144,255,0.15), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: particleFloat 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

/* ===== HERO HEADER ===== */
.labs-header {
    text-align: center;
    margin-bottom: 70px;
    position: relative;
    z-index: 2;
}

.labs-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    background: linear-gradient(135deg, #1e90ff 0%, #003087 50%, #00bfff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    letter-spacing: -0.03em;
    position: relative;
}

.labs-title::after {
    content: '🧪';
    position: absolute;
    font-size: 2rem;
    top: -10px;
    right: -60px;
    animation: float 3s ease-in-out infinite;
}

.labs-subtitle {
    font-size: 1.25rem;
    color: #64748b;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
}

/* ===== ГРИД КАРТОЧЕК ===== */
.labs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
    padding-bottom: 50px;
}

/* ===== LAB CARD - 3D GLASSMORPHISM ===== */
.lab-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 24px;
    overflow: hidden;
    height: 100%;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.lab-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1e90ff, #00bfff, #1e90ff);
    background-size: 200% 100%;
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.lab-card:hover {
    transform: translateY(-15px) rotateX(8deg) rotateY(2deg);
    box-shadow:
        0 35px 80px rgba(30,144,255,0.25),
        0 0 0 1px rgba(30,144,255,0.2),
        inset 0 1px 0 rgba(255,255,255,0.6);
}

.lab-card:hover::before {
    transform: scaleX(1);
    animation: shimmer 2s infinite;
}

/* Card Image */
.lab-card-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.lab-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.lab-card:hover .lab-card-image img {
    transform: scale(1.15) rotate(2deg);
}

.lab-card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.7s;
}

.lab-card:hover .lab-card-image::after {
    left: 100%;
}

/* Card Body */
.card-body {
    padding: 25px 25px 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.lab-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 12px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.lab-card:hover .lab-card-title {
    color: #1e90ff;
}

.lab-card-title a {
    text-decoration: none;
    color: inherit;
}

.lab-card-description {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: auto;
    flex-grow: 1;
}

/* Premium Button */
.lab-btn-detail {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, #1e90ff 0%, #00bfff 50%, #1e90ff 100%);
    box-shadow: 0 6px 20px rgba(30,144,255,0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 15px;
}

.lab-btn-detail:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(30,144,255,0.45);
    background: linear-gradient(135deg, #0066cc 0%, #0099ff 50%, #0066cc 100%);
}

/* ===== ПАГИНАЦИЯ - Floating Pills ===== */
.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 60px;
    position: relative;
    z-index: 2;
}

.page-item {
    margin: 0;
}

.page-link {
    padding: 12px 18px;
    font-weight: 500;
    border: none;
    border-radius: 25px;
    background: rgba(255,255,255,0.3);
    backdrop-filter: blur(15px);
    color: #1e90ff;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    min-width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-link:hover {
    background: rgba(30,144,255,0.2);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30,144,255,0.3);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, #1e90ff, #00bfff);
    color: #fff;
    box-shadow: 0 8px 25px rgba(30,144,255,0.4);
}

/* Empty State */
.col-12.text-center p {
    font-size: 1.3rem;
    color: #94a3b8;
    background: rgba(255,255,255,0.5);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

/* ===== АНИМАЦИИ ===== */
@keyframes particleFloat {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-20px) rotate(360deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Load Animation */
.lab-card {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.lab-card:nth-child(1) { animation-delay: 0.1s; }
.lab-card:nth-child(2) { animation-delay: 0.2s; }
.lab-card:nth-child(3) { animation-delay: 0.3s; }
.lab-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 992px) {
    .labs-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
    .labs-section { padding: 60px 15px; }
}

@media (max-width: 768px) {
    .labs-title { font-size: 2.25rem; }
    .labs-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .lab-card-image { height: 180px; }
    .card-body { padding: 20px; }
}

@media (max-width: 480px) {
    .labs-section { padding: 40px 10px; }
    .labs-title { font-size: 1.875rem; }
    .page-link { padding: 10px 14px; font-size: 0.9rem; min-width: 42px; height: 42px; }
}
