/* Amelia Event Certificates — Card Layout */

.ameliacert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    padding: 8px 0;
}

.ameliacert-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ameliacert-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    transform: translateY(-2px);
}

.ameliacert-card--draft {
    border-color: #f59e0b;
    border-style: dashed;
}

/* Thumbnail */
.ameliacert-card__thumb {
    width: 100%;
    aspect-ratio: 1 / 1.414; /* A4 ratio */
    overflow: hidden;
    background: #f3f4f6;
}

.ameliacert-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Body */
.ameliacert-card__body {
    padding: 16px 20px 20px;
}

.ameliacert-card__title {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 10px;
    line-height: 1.4;
}

.ameliacert-card__dates,
.ameliacert-card__location {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 6px;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.5;
}

.ameliacert-icon {
    flex-shrink: 0;
    font-style: normal;
}

/* Actions */
.ameliacert-card__actions {
    margin-top: 16px;
}

.ameliacert-btn {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 10px 16px;
    background: #1d4ed8;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none !important;
    transition: background 0.2s ease;
    box-sizing: border-box;
}

.ameliacert-btn:hover {
    background: #1e40af;
    color: #ffffff !important;
}

/* Draft badge */
.ameliacert-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 99px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    z-index: 1;
}

.ameliacert-badge--draft {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #f59e0b;
}

/* Empty / login states */
.ameliacert-empty,
.ameliacert-login-notice {
    padding: 24px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #6b7280;
    text-align: center;
    font-size: 15px;
}

/* Responsive */
@media (max-width: 600px) {
    .ameliacert-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}
