/* static/css/patents_cards.css */

/**
 * КАРТОЧКИ ПАТЕНТОВ
 * Максимум 200 строк, модульная архитектура
 */

/* Карточки патентов */
.patent-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    height: 100%;
    border: 2px solid rgba(13, 110, 253, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    cursor: pointer;
}

.patent-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 50px rgba(13, 110, 253, 0.25);
}

/* Изображения патентов */
.patent-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.patent-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.patent-card:hover .patent-image img {
    transform: scale(1.05);
}

/* Индикатор увеличения */
.patent-zoom-hint {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.patent-card:hover .patent-zoom-hint {
    opacity: 1;
    transform: scale(1.1);
}

/* Overlay с информацией */
.patent-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        rgba(13, 110, 253, 0.8) 0%,
        rgba(0, 123, 191, 0.6) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.patent-card:hover .patent-overlay {
    opacity: 1;
}

/* Заголовок карточки */
.patent-card .card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.patent-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.9) 0%, 
        rgba(255, 255, 255, 0.7) 100%);
    color: var(--primary-color);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.patent-card:hover .patent-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(255, 255, 255, 0.9) 100%);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.patent-type {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Контент карточки */
.card-body {
    padding: 2rem;
}

.patent-title {
    color: var(--dark-color);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.patent-description {
    color: var(--gray-dark);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Высокий контраст для accessibility */
@media (prefers-contrast: high) {
    .patent-card {
        background: #ffffff;
        border: 3px solid #000080;
    }
    
    .patent-title {
        color: #000000;
    }
    
    .patent-description {
        color: #333333;
    }
    
    .patent-icon {
        background: #000080;
    }
    
    .patent-type {
        background: #f0f0f0;
        color: #000080;
    }
}
