/* certificate-styles.css */
/* ===== СТРАНИЦА ПРОВЕРКИ СЕРТИФИКАТА ===== */
.certificate-verify-page {
    min-height: 70vh;
    padding: 40px 0;
    background: white;
}

.certificate-verify-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.certificate-verify-page h1 {
    text-align: center;
    color: #000000;
    margin-bottom: 40px;
    font-size: 2.5rem;
    font-weight: normal;
    font-family: inherit;
}

/* Секция поиска - ВСЕГДА СВЕРХУ */
.certificate-search-section {
    background: transparent;
    padding: 0;
    margin-bottom: 40px;
}

.search-form-container h3 {
    color: #000000;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: normal;
    font-family: inherit;
}

/* Подсказка под формой */
.search-hint {
    text-align: center;
    color: #666666;
    font-size: 14px;
    margin-top: 10px;
    font-style: italic;
}

/* Форма поиска */
.certificate-search-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.search-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #000000;
    border-radius: 0;
    font-size: 16px;
    background: white;
    color: #000000;
    font-family: inherit;
}

.search-input:focus {
    border-color: #000000;
    outline: none;
}

.search-input::placeholder {
    color: #666666;
}

.search-button {
    width: 100%;
    background: #000000;
    color: white;
    padding: 12px 30px;
    border: 1px solid #000000;
    border-radius: 0;
    font-size: 16px;
    font-weight: normal;
    cursor: pointer;
    font-family: inherit;
}

.search-button:hover {
    background: #333333;
    border-color: #333333;
}

/* Результаты поиска */
.certificate-result {
    margin: 40px 0 0 0;
}

.certificate-found {
    background: white;
    border: 1px solid #000000;
    padding: 30px;
}

.certificate-not-found {
    background: white;
    border: 1px solid #000000;
    padding: 30px;
    text-align: center;
}

.success-message {
    font-size: 1.3rem;
    font-weight: normal;
    color: #000000;
    margin-bottom: 30px;
    text-align: center;
    padding: 0;
    background: transparent;
    font-family: inherit;
}

.error-message {
    font-size: 1.3rem;
    font-weight: normal;
    color: #000000;
    margin-bottom: 15px;
    font-family: inherit;
}

.certificate-not-found p {
    color: #000000;
    margin: 0;
}

/* ДВУХКОЛОНОЧНЫЙ ЛАЙАУТ */
.certificate-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* ЛЕВАЯ КОЛОНКА - ОПИСАНИЕ */
.certificate-left {
    display: flex;
    flex-direction: column;
}

.certificate-info {
    background: white;
    padding: 0;
}

.certificate-number {
    font-size: 1.1rem;
    color: #000000;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #000000;
    font-family: inherit;
}

.certificate-description {
    color: #000000;
    line-height: 1.6;
    font-family: inherit;
}

.certificate-description p {
    margin-bottom: 15px;
}

.certificate-description strong {
    color: #000000;
    font-weight: bold;
}

/* ПРАВАЯ КОЛОНКА - КАРТИНКА И КНОПКИ */
.certificate-right {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Секция изображения */
.certificate-image-section {
    background: white;
    padding: 0;
    overflow: hidden;
    /*border: 1px solid #000000;*/
}

.certificate-image-container {
    text-align: center;
    padding: 0;
}

.certificate-image {
    max-width: 100%;
    height: auto;
    display: block;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.certificate-image:hover {
    transform: scale(1.02);
}

/* Кнопки действий */
.certificate-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #000000;
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 0;
    font-weight: normal;
    border: 1px solid #000000;
    cursor: pointer;
    font-size: 14px;
    text-align: center;
    font-family: inherit;
    transition: background 0.3s, border-color 0.3s;
}

.download-btn:hover {
    background: #333333;
    border-color: #333333;
    color: white;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: white;
    color: #000000;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 0;
    font-weight: normal;
    border: 1px solid #000000;
    cursor: pointer;
    font-size: 14px;
    text-align: center;
    font-family: inherit;
    transition: background 0.3s;
}

.share-btn:hover {
    background: #f5f5f5;
    color: #000000;
}

/* Стили для модального окна изображения */
.certificate-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    cursor: zoom-out;
}

.certificate-modal img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    cursor: default;
}

/* Анимация для кнопки "Поделиться" при успешном копировании */
.share-btn.copied {
    background: #27ae60 !important;
    border-color: #27ae60 !important;
    color: white !important;
}

/* Разделитель */
hr {
    border: none;
    height: 1px;
    background: #000000;
    margin: 40px 0;
}

/* Адаптивность */
@media (max-width: 968px) {
    .certificate-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .certificate-right {
        order: -1;
    }
}

@media (max-width: 768px) {
    .certificate-verify-page {
        padding: 20px 0;
    }
    
    .certificate-verify-page h1 {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .certificate-found {
        padding: 20px;
    }
    
    .search-input,
    .search-button {
        padding: 10px 12px;
    }
    
    .certificate-actions {
        flex-direction: column;
    }
    
    .download-btn,
    .share-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .certificate-verify-page h1 {
        font-size: 1.6rem;
    }
    
    .success-message,
    .error-message {
        font-size: 1.1rem;
    }
    
    .certificate-layout {
        gap: 20px;
    }
    
    .search-hint {
        font-size: 12px;
    }
}


/* ДОБАВИТЬ В КОНЕЦ ВАШЕГО ФАЙЛА */

/* Подсказка под формой */
.search-hint {
    text-align: center;
    color: #666666;
    font-size: 14px;
    margin-top: 10px;
    font-style: italic;
}

/* Курсор для увеличения изображения */
.certificate-image {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.certificate-image:hover {
    transform: scale(1.02);
    cursor: zoom-in;
}

/* Стили для модального окна изображения */
.certificate-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    cursor: zoom-out;
}

.certificate-modal img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    cursor: default;
}

/* Анимация для кнопки "Поделиться" при успешном копировании */
.share-btn.copied {
    background: #27ae60 !important;
    border-color: #27ae60 !important;
    color: white !important;
}