/* Aúnika PDF Leads — frontend */

.aunika-pdf-grid {
    display: grid;
    gap: 24px;
    margin: 24px 0;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.aunika-pdf-cols-1 { grid-template-columns: 1fr; }
.aunika-pdf-cols-2 { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.aunika-pdf-cols-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.aunika-pdf-cols-4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

@media (max-width: 640px) {
    .aunika-pdf-grid { grid-template-columns: 1fr; gap: 16px; }
}

.aunika-pdf-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s ease, transform .2s ease;
}
.aunika-pdf-card:hover {
    box-shadow: 0 10px 25px -10px rgba(0,0,0,.15);
    transform: translateY(-2px);
}
.aunika-pdf-card__image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f3f4f6;
}
.aunika-pdf-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.aunika-pdf-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}
.aunika-pdf-card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}
.aunika-pdf-card__title {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
    color: #111827;
}
.aunika-pdf-card__excerpt {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
    flex: 1;
}
.aunika-pdf-card__btn {
    margin-top: auto;
    padding: 12px 20px;
    border: 0;
    border-radius: 8px;
    background: #111827;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease;
    font-size: 15px;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.aunika-pdf-card__btn:hover {
    background: #1f2937;
    color: #fff;
}

/* Modal */
.aunika-pdf-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}
.aunika-pdf-modal.is-open { display: flex; }

.aunika-pdf-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    animation: aunika-pdf-fade .2s ease;
}
.aunika-pdf-modal__dialog {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    max-width: 460px;
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,.25);
    max-height: 90vh;
    overflow-y: auto;
    box-sizing: border-box;
    animation: aunika-pdf-slide-up .25s ease;
}
.aunika-pdf-modal__close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: transparent;
    border: 0;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #6b7280;
    padding: 4px 8px;
}
.aunika-pdf-modal__close:hover { color: #111827; }
.aunika-pdf-modal__title { margin: 0 0 4px; font-size: 22px; color: #111827; }
.aunika-pdf-modal__subtitle { margin: 0 0 20px; color: #6b7280; font-size: 14px; }

.aunika-pdf-form { display: flex; flex-direction: column; gap: 14px; }
.aunika-pdf-form label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}
.aunika-pdf-form input {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
    color: #111827;
    box-sizing: border-box;
    width: 100%;
}
.aunika-pdf-form input:focus {
    outline: none;
    border-color: #111827;
    box-shadow: 0 0 0 3px rgba(17,24,39,.1);
}
.aunika-pdf-form input.is-error { border-color: #ef4444; }

.aunika-pdf-form__submit {
    padding: 14px 20px;
    border: 0;
    border-radius: 8px;
    background: #111827;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    font-size: 15px;
    font-family: inherit;
    margin-top: 4px;
}
.aunika-pdf-form__submit:hover { background: #1f2937; }
.aunika-pdf-form__submit:disabled { opacity: .6; cursor: not-allowed; }

.aunika-pdf-form__message { font-size: 14px; min-height: 20px; }
.aunika-pdf-form__message.is-error { color: #ef4444; }
.aunika-pdf-form__message.is-success { color: #10b981; }

.aunika-pdf-form__legal {
    margin: 4px 0 0;
    color: #9ca3af;
    font-size: 11px;
    line-height: 1.4;
    text-align: center;
}

@keyframes aunika-pdf-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes aunika-pdf-slide-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
